Function at 0x419674
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 [0x481729]
call fcn.00407b45
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jle 0x419960
push 0x50002
push 0
push dword [0x48173d]
push 1
mov ebx, 0x44
mov eax, 0x45b9b0
call fcn.00454d60
add esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x419771
mov ebx, dword [0x481729]
call fcn.00407b45
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 0x419762
mov dword [ebp - 8], 0
mov ebx, dword [0x481729]
call fcn.00404690
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x419732
push 4
call fcn.004547fa
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x419745
push 1
call fcn.004547fa
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.00419964
pop eax
pop ebx
pop ecx
jmp 0x4196fd
add esp, 0xc
mov dword [ebp - 8], 0
jmp 0x419960
mov dword [ebp - 0xc], 0
mov ebx, dword [0x481729]
call fcn.00407b45
mov dword [ebp - 0x18], eax
mov ebx, dword [0x481739]
call fcn.00407b45
cmp dword [ebp - 0x18], eax
je 0x4197a6
mov dword [ebp - 0xc], 1
jmp 0x4197f4
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 [0x48174d]
fstp qword [ebp - 0x28]
fsub qword [ebp - 0x28]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fsub qword [0x468f81]
fcomp qword [0x4684a1]
fnstsw ax
test ah, 0x41
jne 0x4197f4
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 1
jne 0x419960
mov ebx, dword [0x481729]
call fcn.00407b45
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 0x419946
mov dword [ebp - 0x10], 1
mov ebx, dword [0x481739]
call fcn.00407b45
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 0x4198df
mov ebx, dword [0x481729]
call fcn.00404690
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x419869
push 4
call fcn.004547fa
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x41987c
push 1
call fcn.004547fa
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
mov ebx, dword [0x481739]
call fcn.00404690
push ebx
push ecx
mov eax, dword [ebp - 0x14]
dec eax
jns 0x4198a4
push 4
call fcn.004547fa
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4198b7
push 1
call fcn.004547fa
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 0x4198d7
dec dword [ebp - 0x10]
jmp 0x4198df
pop eax
pop ebx
pop ecx
jmp 0x41983b
add esp, 0xc
cmp dword [ebp - 0x10], 1
jne 0x41993e
mov dword [ebp - 8], 0
mov ebx, dword [0x481729]
call fcn.00404690
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x419913
push 4
call fcn.004547fa
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x419926
push 1
call fcn.004547fa
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.00419964
pop eax
pop ebx
pop ecx
jmp 0x419812
add esp, 0xc
push 0
mov ebx, 0x308
call sub.KERNEL32.dll_GetTickCount
add esp, 4
mov dword [0x48174d], eax
mov esp, ebp
pop ebp
ret