A dynamic model of the decomposition of excited molecules