Function at 0x503360
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x28
push 0
push 0
dec ecx
jne 0x503368
push ecx
push ebx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50403e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 1
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xb0]
lea eax, [ebp - 0x34]
mov ecx, 0x50405c
call fcn.004073f0
xor eax, eax
mov dword [ebp - 0x24], eax
mov cl, 1
mov dl, 1
mov eax, dword [0x4a1fd4]
call fcn.004a28e0
mov dword [ebp - 0x14], eax
mov dl, 1
mov eax, dword [0x426b3c]
call fcn.00404fa4
mov dword [ebp - 0x54], eax
mov dl, 1
mov eax, dword [0x426b3c]
call fcn.00404fa4
mov dword [ebp - 0x58], eax
xor eax, eax
push ebp
push 0x503fbf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x34]
call fcn.00427c10
test al, al
jne 0x5034e6
push 0x50405c
push 1
push 0
push 0
push 0
push 0x3ff00000
push 0
push 0x40000000
push 0
mov ecx, 0x504080
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00502fe0
mov dl, 1
mov eax, dword [0x425e84]
call fcn.00404fa4
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov edx, 0x5040ac
mov eax, dword [ebp - 4]
call fcn.00502dc0
test al, al
jne 0x503468
lea eax, [ebp - 0x24]
call fcn.00423f7c
mov edx, 0x5040f0
mov eax, dword [ebp - 4]
call fcn.00504ae0
mov byte [ebp - 5], 0
call fcn.00405d98
jmp 0x503fc6
xor edx, edx
mov eax, dword [ebp - 0x34]
call fcn.0042b610
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x503498
lea eax, [ebp - 0x64]
mov ecx, dword [ebp - 0x34]
mov edx, 0x504128
call fcn.004073f0
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 4]
call fcn.00504ae0
jmp 0x5034de
xor eax, eax
push ebp
push 0x5034d7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, dword [ebp - 0x24]
call fcn.00428250
push 0
push 0
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x4c]
call fcn.004285a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5034de
lea eax, [ebp - 0x4c]
call fcn.00423f7c
ret
lea eax, [ebp - 0x24]
call fcn.00423f7c
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xac]
mov ecx, 0x504164
mov edx, 0x504180
call fcn.0046db60
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xac]
call fcn.0046ce70
mov eax, dword [ebp - 0x34]
push eax
push 0
push 0
push 0x3ff00000
push 0
push 0x3ff00000
push 0
push 0x40000000
push 0
mov ecx, 0x50419c
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00502fe0
xor ecx, ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
call fcn.004a39d0
test al, al
je 0x503f58
mov edx, 0x5041c4
mov eax, dword [ebp - 0x14]
call fcn.004a2c30
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x503580
mov edx, 0x5041f4
mov eax, dword [ebp - 4]
call fcn.00504b30
mov byte [ebp - 5], 0
call fcn.00405d98
jmp 0x503fc6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
mov edx, dword [ebp - 0x24]
call fcn.004a4ca0
lea eax, [ebp - 0x24]
call fcn.00423f7c
mov edx, 0x504234
mov eax, dword [ebp - 0x14]
call fcn.004a2c30
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x5035ca
mov edx, 0x504264
mov eax, dword [ebp - 4]
call fcn.00504b30
mov byte [ebp - 5], 0
call fcn.00405d98
jmp 0x503fc6
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x54]
call fcn.004a4ca0
lea eax, [ebp - 0x24]
call fcn.00423f7c
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xac]
mov ecx, 0x5042a0
mov edx, 0x5042b4
call fcn.0046d410
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x5036c0
push 0x3e7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xac]
mov ecx, 0x5042cc
mov edx, 0x5042b4
call fcn.0046d410
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
call fcn.0042bf80
cmp eax, dword [ebp - 0x3c]
jle 0x5036c0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
call fcn.0042bf80
mov edx, dword [ebp - 0x3c]
add edx, dword [ebp - 0x40]
cmp eax, edx
jne 0x5036bb
lea ecx, [ebp - 0x80]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
mov edx, dword [ebp - 0x3c]
call fcn.0042bd70
mov edx, dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
call fcn.004072fc
mov eax, dword [ebp - 0x7c]
lea edx, [ebp - 0x78]
call fcn.0043d610
lea eax, [ebp - 0x78]
lea edx, [ebp - 0x68]
call fcn.0043d870
mov eax, dword [ebp - 0x68]
push eax
push 0
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xac]
mov ecx, 0x5042e0
mov edx, 0x5042b4
call fcn.0046d5b0
mov edx, dword [ebp - 0x84]
pop eax
call fcn.00407588
je 0x5036c0
xor eax, eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
call fcn.0042bf80
dec eax
pop edx
sub eax, edx
jl 0x503f41
inc eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x2c], edx
lea ecx, [ebp - 0x8c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
mov edx, dword [ebp - 0x2c]
call fcn.0042bd70
mov ecx, dword [ebp - 0x8c]
lea eax, [ebp - 0x88]
mov edx, 0x5042f4
call fcn.004073f0
mov edx, dword [ebp - 0x88]
mov eax, dword [ebp - 4]
call fcn.00504b30
push ebp
mov eax, dword [ebp - 0x2c]
call fcn.005031e0
pop ecx
lea ecx, [ebp - 0x90]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
mov edx, dword [ebp - 0x2c]
call fcn.0042bd70
mov ecx, dword [ebp - 0x90]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xb0]
lea eax, [ebp - 0x28]
call fcn.004073f0
mov eax, dword [ebp - 0x28]
call fcn.00427c10
test al, al
je 0x503f10
lea eax, [ebp - 0xc]
call fcn.00423f7c
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4a1fd4]
call fcn.004a28e0
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x94]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
mov edx, dword [ebp - 0x2c]
call fcn.0042bd70
mov eax, dword [ebp - 0x94]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40140000
push 0
push 0x40590000
push 0
mov edx, dword [ebp - 0x2c]
inc edx
mov ecx, 0x504334
mov eax, dword [ebp - 4]
call fcn.00502fe0
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x44], eax
xor ecx, ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.004a39d0
mov byte [ebp - 0x2d], al
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x9c]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 4]
call fcn.00504940
mov ecx, dword [ebp - 0x9c]
lea eax, [ebp - 0x98]
mov edx, 0x50435c
call fcn.004073f0
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp - 4]
call fcn.00504b30
cmp byte [ebp - 0x2d], 0
jne 0x503850
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x144]
lea eax, [ebp - 0xa0]
mov edx, 0x5043d0
call fcn.004073f0
mov edx, dword [ebp - 0xa0]
mov eax, dword [ebp - 4]
call fcn.00504b30
jmp 0x503f35
lea ecx, [ebp - 0xa8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
mov edx, dword [ebp - 0x2c]
call fcn.0042bd70
mov eax, dword [ebp - 0xa8]
lea ecx, [ebp - 0xa4]
xor edx, edx
call fcn.0042b510
mov eax, dword [ebp - 0xa4]
lea edx, [ebp - 0x18]
call fcn.00427a90
lea edx, [ebp - 0xb0]
mov eax, dword [ebp - 0xc]
call fcn.004a2ce0
mov eax, dword [ebp - 0xb0]
lea edx, [ebp - 0xac]
call fcn.00427a90
mov edx, dword [ebp - 0xac]
mov eax, dword [ebp - 0x18]
call fcn.00407588
je 0x50392b
push 0x504414
lea ecx, [ebp - 0xb8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
mov edx, dword [ebp - 0x2c]
call fcn.0042bd70
push dword [ebp - 0xb8]
push 0x50442c
lea edx, [ebp - 0xc0]
mov eax, dword [ebp - 0xc]
call fcn.004a2ce0
mov eax, dword [ebp - 0xc0]
lea edx, [ebp - 0xbc]
call fcn.00427a90
push dword [ebp - 0xbc]
push 0x504474
lea eax, [ebp - 0xb4]
mov edx, 5
call fcn.00407478
mov edx, dword [ebp - 0xb4]
mov eax, dword [ebp - 4]
call fcn.00504b30
jmp 0x503f35
lea eax, [ebp - 0x10]
call fcn.00423f7c
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4a1fd4]
call fcn.004a28e0
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0xc4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
mov edx, dword [ebp - 0x2c]
call fcn.0042bd70
mov eax, dword [ebp - 0xc4]
push eax
push 0
mov eax, dword [ebp - 0x10]
push eax
push 0x40140000
push 0
push 0x404e0000
push 0
push 0x40590000
push 0
mov edx, dword [ebp - 0x2c]
inc edx
mov ecx, 0x504484
mov eax, dword [ebp - 4]
call fcn.00502fe0
lea ecx, [ebp - 0x50]
mov edx, 0x5044b0
mov eax, dword [ebp - 0x28]
call fcn.0042b510
mov cl, 1
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x10]
call fcn.004a39d0
test al, al
je 0x503ec5
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.004a3460
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0xcc]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 4]
call fcn.00504940
mov ecx, dword [ebp - 0xcc]
lea eax, [ebp - 0xc8]
mov edx, 0x5044cc
call fcn.004073f0
mov edx, dword [ebp - 0xc8]
mov eax, dword [ebp - 4]
call fcn.00504b30
mov eax, dword [ebp - 0x58]
call fcn.0042bf80
test eax, eax
jle 0x503c2d
mov eax, dword [ebp - 0x58]
call fcn.0042bf80
lea edx, [ebp - 0xd4]
call fcn.0041d048
mov ecx, dword [ebp - 0xd4]
lea eax, [ebp - 0xd0]
mov edx, 0x504504
call fcn.004073f0
mov edx, dword [ebp - 0xd0]
mov eax, dword [ebp - 4]
call fcn.00504b30
mov dl, 1
mov eax, dword [0x425e84]
call fcn.00404fa4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x58]
call fcn.0042bf80
dec eax
test eax, eax
jl 0x503c25
inc eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0xd8]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x58]
call fcn.0042bd70
mov eax, dword [ebp - 0xd8]
push eax
push 1
push 0
mov eax, dword [ebp - 0x58]
call fcn.0042bf80
mov dword [ebp - 0xdc], eax
fild dword [ebp - 0xdc]
fild dword [ebp - 0x38]
fdivrp st(1)
fmul dword [0x50453c]
fadd dword [0x504540]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [ebp - 0x58]
call fcn.0042bf80
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
mov dword [ebp - 0xe0], eax
fild dword [ebp - 0xe0]
add esp, 0xfffffff8
fstp qword [esp]
wait
push 0x40590000
push 0
mov edx, dword [ebp - 0x2c]
inc edx
mov ecx, 0x504550
mov eax, dword [ebp - 4]
call fcn.00502fe0
mov eax, dword [ebp - 0x24]
call fcn.004288b0
lea ecx, [ebp - 0xf0]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x58]
call fcn.0042bd70
mov edx, dword [ebp - 0xf0]
lea ecx, [ebp - 0xec]
mov eax, dword [0x4a1fd4]
call fcn.004a2ff0
mov edx, dword [ebp - 0xec]
lea eax, [ebp - 0xe8]
mov ecx, 0
call fcn.00407098
mov ecx, dword [ebp - 0xe8]
lea eax, [ebp - 0xe4]
mov edx, 0x504580
call fcn.00406cbc
mov edx, dword [ebp - 0xe4]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.00502dc0
mov byte [ebp - 0x2d], al
cmp byte [ebp - 0x2d], 0
je 0x503be4
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax]
call dword [ebx + 0x18]
lea ecx, [ebp - 0xf4]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x58]
call fcn.0042bd70
mov edx, dword [ebp - 0xf4]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
call fcn.004a3fb0
push 0x5045b8
lea ecx, [ebp - 0xfc]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x58]
call fcn.0042bd70
push dword [ebp - 0xfc]
push 0x5045d4
lea eax, [ebp - 0xf8]
mov edx, 3
call fcn.00407478
mov edx, dword [ebp - 0xf8]
mov eax, dword [ebp - 4]
call fcn.00504b30
jmp 0x503c19
lea ecx, [ebp - 0x104]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x58]
call fcn.0042bd70
mov ecx, dword [ebp - 0x104]
lea eax, [ebp - 0x100]
mov edx, 0x504608
call fcn.004073f0
mov edx, dword [ebp - 0x100]
mov eax, dword [ebp - 4]
call fcn.00504b30
inc dword [ebp - 0x38]
dec dword [ebp - 0x60]
jne 0x503a7f
lea eax, [ebp - 0x24]
call fcn.00423f7c
mov eax, dword [ebp - 0x50]
push eax
push 0
push 0
push 0x40568000
push 0
push 0x40240000
push 0
push 0x40590000
push 0
mov edx, dword [ebp - 0x2c]
inc edx
mov ecx, 0x504668
mov eax, dword [ebp - 4]
call fcn.00502fe0
lea eax, [ebp - 0xc]
call fcn.00423f7c
lea eax, [ebp - 0x10]
call fcn.00423f7c
mov edx, 1
mov eax, dword [ebp - 0x50]
call fcn.0042b610
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x503dc4
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x78]
mov edx, 0x40000
mov eax, dword [ebp - 0x20]
call fcn.0043d670
lea eax, [ebp - 0x78]
lea edx, [ebp - 0x1c]
call fcn.0043d870
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x108]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x54]
call fcn.0042bd70
mov edx, dword [ebp - 0x108]
mov eax, dword [ebp - 0x1c]
call fcn.00407588
sete byte [ebp - 0x2d]
cmp byte [ebp - 0x2d], 0
je 0x503d48
push 0x5046a8
lea ecx, [ebp - 0x110]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 4]
call fcn.00504940
push dword [ebp - 0x110]
push 0x50471c
push dword [ebp - 0x1c]
push 0x504738
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
lea eax, [ebp - 0x114]
call fcn.0041d070
push dword [ebp - 0x114]
push 0x504758
lea eax, [ebp - 0x10c]
mov edx, 7
call fcn.00407478
mov edx, dword [ebp - 0x10c]
mov eax, dword [ebp - 4]
call fcn.00504b30
jmp 0x503dae
push 0x5046a8
lea ecx, [ebp - 0x11c]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 4]
call fcn.00504940
push dword [ebp - 0x11c]
push 0x50471c
push dword [ebp - 0x1c]
push 0x504738
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
lea eax, [ebp - 0x120]
call fcn.0041d070
push dword [ebp - 0x120]
push 0x504778
lea eax, [ebp - 0x118]
mov edx, 7
call fcn.00407478
mov edx, dword [ebp - 0x118]
mov eax, dword [ebp - 4]
call fcn.00504b30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x503dcb
lea eax, [ebp - 0x20]
call fcn.00423f7c
ret
push 0x504878
lea ecx, [ebp - 0x140]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
mov edx, dword [ebp - 0x2c]
call fcn.0042bd70
push dword [ebp - 0x140]
push 0x504894
lea eax, [ebp - 0x13c]
mov edx, 3
call fcn.00407478
mov edx, dword [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00504b30
mov byte [ebp - 5], 6
jmp 0x503f35
lea eax, [ebp - 0x144]
mov ecx, dword [ebp - 0x28]
mov edx, 0x5048c0
call fcn.004073f0
mov edx, dword [ebp - 0x144]
mov eax, dword [ebp - 4]
call fcn.00504b30
mov byte [ebp - 5], 6
inc dword [ebp - 0x2c]
dec dword [ebp - 0x5c]
jne 0x5036e3
push ebp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
call fcn.0042bf80
call fcn.005031e0
pop ecx
jmp 0x503f69
mov edx, 0x5048f0
mov eax, dword [ebp - 4]
call fcn.00504ae0
mov byte [ebp - 5], 6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x503fc6
push 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xac]
mov ecx, 0x504164
mov edx, 0x504180
call fcn.0046db60
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xac]
call fcn.0046ce70
lea eax, [ebp - 0x24]
call fcn.00423f7c
lea eax, [ebp - 0x14]
call fcn.00423f7c
lea eax, [ebp - 0x54]
call fcn.00423f7c
lea eax, [ebp - 0x58]
call fcn.00423f7c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x504045
lea eax, [ebp - 0x144]
mov edx, 0x17
call fcn.0040660c
lea eax, [ebp - 0xe8]
mov edx, 2
call fcn.0040663c
lea eax, [ebp - 0xd8]
mov edx, 0x17
call fcn.0040660c
lea eax, [ebp - 0x7c]
call fcn.004065f4
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.0040660c
lea eax, [ebp - 0x50]
call fcn.004065ac
lea eax, [ebp - 0x34]
call fcn.004065ac
lea eax, [ebp - 0x28]
call fcn.004065ac
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0040660c
ret