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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
fild dword [ebp + 0xc]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fmul qword [0x48b423]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fild dword [ebp + 0x10]
fstp qword [ebp - 0x20]
fdiv qword [ebp - 0x20]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.00401000
mov dword [ebp - 4], eax
cmp dword [0x490008], 1
jne 0x4038e4
push 1
push dword [ebp - 4]
push 0x49000c
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x204]
cmp dword [0x49001c], 0
jne 0x40366f
push 0
mov ebx, 0x308
call sub.KERNEL32.dll_GetTickCount
add esp, 4
mov dword [0x49001c], eax
push 0
mov ebx, 0x308
call sub.KERNEL32.dll_GetTickCount
add esp, 4
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fild dword [0x49001c]
fstp qword [ebp - 0x1c]
fsub qword [ebp - 0x1c]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fsub qword [0x48b423]
fcomp qword [0x48b42b]
fnstsw ax
test ah, 0x41
jne 0x403848
fild dword [ebp + 0xc]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fild dword [0x490020]
fstp qword [ebp - 0x18]
fsub qword [ebp - 0x18]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fdiv qword [0x48b433]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fstp dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [0x490020], eax
push 0
mov ebx, 0x308
call sub.KERNEL32.dll_GetTickCount
add esp, 4
mov dword [0x49001c], eax
fld dword [ebp - 8]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fsub qword [0x48b433]
fcomp qword [0x48b43b]
fnstsw ax
test ah, 1
je 0x4037ad
push 0x80000501
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x9dc
call fcn.0045e810
add esp, 0x10
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.0045e240
add esp, 0x10
mov dword [ebp - 0x10], eax
push str.KB_s
push dword [ebp - 0x10]
push 0x48b448
mov ecx, 3
call fcn.00403588
add esp, 0xc
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40378b
push ebx
call fcn.0045d9cc
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [0x490024]
test ebx, ebx
je 0x4037a2
push ebx
call fcn.0045d9cc
add esp, 4
pop eax
mov dword [0x490024], eax
jmp 0x403848
fld dword [ebp - 8]
fdiv qword [0x48b433]
fstp qword [ebp - 0x10]
push 0x80000301
push 0
push 2
push 0x80000601
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 2
mov ebx, 0x68
call fcn.0045ebc0
add esp, 0x1c
push 0x80000601
push edx
push eax
push 1
mov ebx, 0x168
call fcn.0045e240
add esp, 0x10
mov dword [ebp - 0x1c], eax
push str.MB_s
push dword [ebp - 0x1c]
push 0x48b448
mov ecx, 3
call fcn.00403588
add esp, 0xc
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40382b
push ebx
call fcn.0045d9cc
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [0x490024]
test ebx, ebx
je 0x403842
push ebx
call fcn.0045d9cc
add esp, 4
pop eax
mov dword [0x490024], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fdiv qword [0x48b459]
fstp qword [ebp - 0x18]
push 0x80000601
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 1
mov ebx, 0x168
call fcn.0045e240
add esp, 0x10
mov dword [ebp - 0x1c], eax
push dword [0x490024]
push 0x48b461
push dword [ebp - 0x1c]
push 0x48b3af
mov ecx, 4
call fcn.00403588
add esp, 0x10
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4038ad
push ebx
call fcn.0045d9cc
add esp, 4
push 1
lea eax, [ebp - 0x20]
push eax
push 0x490010
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x218]
mov ebx, eax
test ebx, ebx
je 0x4038d4
push ebx
call fcn.0045d9cc
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4038e4
push ebx
call fcn.0045d9cc
add esp, 4
mov eax, 0
jmp 0x4038ee
mov esp, ebp
pop ebp
ret 0x14