Princess
Days left routine
Mon Dec 7 00:54:58 1998


Greetings all:

Sandmans other questions I will not dwell on as there are a lot of responses.
Days left routine:
The days left routine is calculated in the loop at 00402DE0 - 00402E35
The # 62 is loaded into 00402DF9. This # seems to have been written into the program.
00402DFE #62 is multiplied by 8 then 62 added giving 372
00402E01 372 is multiplied by 8 then 62 added giving 1BF2
00402E0D 1BF2 multiplied by 4 then 1BF2 added giving 8BBA
00404E10 mov eax 0B ( This seems to stay 0B unless we are no in the 30 days)
00402E13 subtract OB from 8BBA = 8BAF
00402E17 shift OB left five = 160 and add to esi = 8D0F
00402E27 todays day (Dec 6th) = 6
00402E2A (8DF0+6+A951B) = B2230 = Decimal 729648 the number in the file RCW.D98 if you loaded the program Dec 6th
This number in 00402E2A changes according to the number of days you use the program.
0040302D sub esi, eax the number from our file (RCW.D98) is subtracted from the number we calculated above and CMP at 00403030 to the 30 days

Princess