RAND is a very uncomon routine, unless the application is a game. What if RAND where to always return an obscenly large value? That would enable your app to run for a month or so continiously...
Seriously, I would just nuke the VMT entry for On Timer or whatever it is (been a while since I've messed with Delphi code).