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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov ebx, dword [0x48c73a]
call fcn.00406792
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jle 0x4187dc
push 0x50002
push 0
push dword [0x48c74e]
push 1
mov ebx, 0x44
mov eax, 0x45bec0
call fcn.00455240
add esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4185ed
mov ebx, dword [0x48c73a]
call fcn.00406792
xor ecx, ecx
push eax
lea eax, [ebp - 4]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x4185de
mov dword [ebp - 8], 0
mov ebx, dword [0x48c73a]
call fcn.004032dd
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x4185ae
push 4
call fcn.00454cec
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4185c1
push 1
call fcn.00454cec
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
mov dword [ebp - 8], eax
push dword [ebp - 8]
call fcn.004187e0
pop eax
pop ebx
pop ecx
jmp 0x418579
add esp, 0xc
mov dword [ebp - 8], 0
jmp 0x4187dc
mov dword [ebp - 0xc], 0
mov ebx, dword [0x48c73a]
call fcn.00406792
mov dword [ebp - 0x18], eax
mov ebx, dword [0x48c74a]
call fcn.00406792
cmp dword [ebp - 0x18], eax
je 0x418622
mov dword [ebp - 0xc], 1
jmp 0x418670
push 0
mov ebx, 0x308
call sub.KERNEL32.dll_GetTickCount
add esp, 4
mov dword [ebp - 0x20], eax
fild dword [ebp - 0x20]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [0x48c75e]
fstp qword [ebp - 0x28]
fsub qword [ebp - 0x28]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fsub qword [0x473e67]
fcomp qword [0x4732bb]
fnstsw ax
test ah, 0x41
jne 0x418670
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 1
jne 0x4187dc
mov ebx, dword [0x48c73a]
call fcn.00406792
xor ecx, ecx
push eax
lea eax, [ebp - 4]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x4187c2
mov dword [ebp - 0x10], 1
mov ebx, dword [0x48c74a]
call fcn.00406792
xor ecx, ecx
push eax
lea eax, [ebp - 0x14]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x41875b
mov ebx, dword [0x48c73a]
call fcn.004032dd
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x4186e5
push 4
call fcn.00454cec
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4186f8
push 1
call fcn.00454cec
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
mov ebx, dword [0x48c74a]
call fcn.004032dd
push ebx
push ecx
mov eax, dword [ebp - 0x14]
dec eax
jns 0x418720
push 4
call fcn.00454cec
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x418733
push 1
call fcn.00454cec
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
cmp dword [ebx], eax
jne 0x418753
dec dword [ebp - 0x10]
jmp 0x41875b
pop eax
pop ebx
pop ecx
jmp 0x4186b7
add esp, 0xc
cmp dword [ebp - 0x10], 1
jne 0x4187ba
mov dword [ebp - 8], 0
mov ebx, dword [0x48c73a]
call fcn.004032dd
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x41878f
push 4
call fcn.00454cec
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4187a2
push 1
call fcn.00454cec
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
mov dword [ebp - 8], eax
push dword [ebp - 8]
call fcn.004187e0
pop eax
pop ebx
pop ecx
jmp 0x41868e
add esp, 0xc
push 0
mov ebx, 0x308
call sub.KERNEL32.dll_GetTickCount
add esp, 4
mov dword [0x48c75e], eax
mov esp, ebp
pop ebp
ret