I'll try to reproduce it by copying the code into a little test game using the same avi as in the original game.

I think that makes it easier for you to take a look at instead of parsing the whole game-code.

Regards,
Pegamode.