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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call fcn.004f3237
mov ebx, dword [0xb52042]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [0xb5204e]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x20
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x4f37e8
mov ebx, dword [0xb52042]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [0xb5204e]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x20
mov dword [ebp - 4], ebx
mov ebx, dword [0xb52042]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [0xb5204e]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [0xb52042]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [0xb5204e]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x18
mov dword [ebp - 0xc], ebx
push 0
mov ebx, dword [ebp - 0xc]
push dword [ebx]
mov ebx, dword [ebp - 8]
push dword [ebx]
push 0x10
mov ebx, dword [ebp - 4]
push dword [ebx]
call fcn.00491d98
mov dword [0xb52066], eax
cmp dword [0xb52066], 0
jne 0x4f36fc
mov dword [0xb52066], 0
mov dword [0xb5205e], 1
push 0
mov ebx, 0x2dc
call fcn.006a8210
add esp, 4
mov dword [ebp - 4], eax
push 0
mov ebx, 0x2e0
call fcn.006a8230
add esp, 4
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0xb169cd]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.0048c99e
push eax
push dword [ebp - 4]
push dword [0xb5204e]
call fcn.004f38bc
mov dword [0xb52056], 0
mov ebx, dword [0xb52042]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [0xb5204e]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x14
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x4f36e3
push 0
mov ebx, 0x308
call sub.kernel32.dll_GetTickCount
add esp, 4
mov dword [0xb52062], eax
jmp 0x4f36f7
mov dword [0xb52056], 0
mov dword [0xb52062], 0xffffffff
jmp 0x4f37e3
cmp dword [0xb52066], 1
jne 0x4f3736
mov dword [0xb52066], 0xffffffff
mov dword [0xb52056], 0
mov dword [0xb52062], 0xffffffff
mov eax, 1
jmp 0x4f38b8
cmp dword [0xb52066], 2
jne 0x4f37c5
mov dword [0xb52066], 0xfffffffe
mov dword [0xb5205e], 1
mov dword [0xb52056], 0
mov ebx, dword [0xb52042]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [0xb5204e]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x14
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x4f37ac
push 0
mov ebx, 0x308
call sub.kernel32.dll_GetTickCount
add esp, 4
mov dword [0xb52062], eax
jmp 0x4f37b6
mov dword [0xb52062], 0xffffffff
mov eax, 2
jmp 0x4f38b8
mov dword [0xb52066], 0xffffffff
mov dword [0xb52056], 0
mov dword [0xb52062], 0xffffffff
jmp 0x4f38ae
mov dword [0xb52066], 0
mov dword [0xb5205e], 1
push 0
mov ebx, 0x2dc
call fcn.006a8210
add esp, 4
mov dword [ebp - 4], eax
push 0
mov ebx, 0x2e0
call fcn.006a8230
add esp, 4
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0xb169cd]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.0048c99e
push eax
push dword [ebp - 4]
push dword [0xb5204e]
call fcn.004f38bc
mov dword [0xb52056], 0
mov ebx, dword [0xb52042]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [0xb5204e]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x14
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x4f38a4
push 0
mov ebx, 0x308
call sub.kernel32.dll_GetTickCount
add esp, 4
mov dword [0xb52062], eax
jmp 0x4f38ae
mov dword [0xb52062], 0xffffffff
mov eax, 0
jmp 0x4f38b8
mov esp, ebp
pop ebp
ret