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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
fild dword [0x100f5089]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fild dword [ebp + 8]
fstp qword [ebp - 0x10]
fadd qword [ebp - 0x10]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.100020b3
mov dword [ebp + 8], eax
fild dword [0x100f508d]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fild dword [ebp + 0xc]
fstp qword [ebp - 0x10]
fadd qword [ebp - 0x10]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.100020b3
mov dword [ebp + 0xc], eax
fild dword [ebp + 8]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fadd qword [0x100c080b]
fstp qword [ebp - 0x10]
fild dword [ebp + 0xc]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fsub qword [0x100b6731]
fstp qword [ebp - 0x20]
push 1
push 0x41800000
push dword [0x100f4c51]
push dword [ebp + 0x10]
fld qword [ebp - 0x20]
fstp dword [ebp - 0x24]
push dword [ebp - 0x24]
fld qword [ebp - 0x10]
fstp dword [ebp - 0x28]
push dword [ebp - 0x28]
call fcn.1003c860
mov ebx, dword [ebp + 0x14]
cmp dword [ebx], 0
je 0x100661c1
push 1
push 0xf
push 1
push 0x41700000
push dword [0x100f4c69]
push 0x41800000
push 0x41f00000
fild dword [ebp + 0xc]
fstp dword [ebp - 4]
push dword [ebp - 4]
fild dword [ebp + 8]
fstp dword [ebp - 8]
push dword [ebp - 8]
call fcn.1003beec
fild dword [ebp + 8]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fadd qword [0x100be388]
fstp qword [ebp - 0x10]
fild dword [ebp + 0xc]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fadd qword [0x100b69b9]
fstp qword [ebp - 0x20]
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
push 0xffffff
call fcn.100020da
mov dword [ebp - 0x28], eax
push 0x64
push dword [ebp - 0x28]
push 0x40c00000
fld qword [ebp - 0x20]
fstp dword [ebp - 0x2c]
push dword [ebp - 0x2c]
fld qword [ebp - 0x10]
fstp dword [ebp - 0x30]
push dword [ebp - 0x30]
call fcn.1004cf9e
jmp 0x10066257
push 1
push 0xf
push 1
push 0x41700000
push dword [0x100f4c65]
push 0x41800000
push 0x41f00000
fild dword [ebp + 0xc]
fstp dword [ebp - 4]
push dword [ebp - 4]
fild dword [ebp + 8]
fstp dword [ebp - 8]
push dword [ebp - 8]
call fcn.1003beec
fild dword [ebp + 8]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fadd qword [0x100be5aa]
fstp qword [ebp - 0x10]
fild dword [ebp + 0xc]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fadd qword [0x100b69b9]
fstp qword [ebp - 0x20]
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
push 0xffffff
call fcn.100020da
mov dword [ebp - 0x28], eax
push 0x64
push dword [ebp - 0x28]
push 0x40c00000
fld qword [ebp - 0x20]
fstp dword [ebp - 0x2c]
push dword [ebp - 0x2c]
fld qword [ebp - 0x10]
fstp dword [ebp - 0x30]
push dword [ebp - 0x30]
call fcn.1004cf9e
push 1
call fcn.10005431
test eax, eax
je 0x1006634c
fild dword [ebp + 8]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fadd qword [0x100be7b3]
fstp qword [ebp - 0x10]
fild dword [ebp + 0xc]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fadd qword [0x100b6729]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
call fcn.100020b3
push eax
fld qword [ebp - 0x10]
call fcn.100020b3
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1003cc64
test eax, eax
je 0x1006634c
cmp dword [0x100f50c1], 0
jne 0x100662e2
mov ebx, dword [ebp + 0x14]
and dword [ebx], 1
mov ebx, dword [ebp + 0x14]
xor dword [ebx], 1
push 0
mov ebx, 0x308
call sub.KERNEL32.dll_GetTickCount
add esp, 4
mov dword [0x100f50c1], eax
push 0
mov ebx, 0x308
call sub.KERNEL32.dll_GetTickCount
add esp, 4
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fild dword [0x100f50c1]
fstp qword [ebp - 0x14]
fsub qword [ebp - 0x14]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fsub qword [0x100be693]
fcomp qword [0x100b7d3f]
fnstsw ax
test ah, 0x41
jne 0x1006634c
mov ebx, dword [ebp + 0x14]
and dword [ebx], 1
mov ebx, dword [ebp + 0x14]
xor dword [ebx], 1
push 0
mov ebx, 0x308
call sub.KERNEL32.dll_GetTickCount
add esp, 4
mov dword [0x100f50c1], eax
mov esp, ebp
pop ebp
ret 0x10