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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov dword [ebp - 4], 0
fild dword [0x100f5089]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fild dword [ebp + 8]
fstp qword [ebp - 0x14]
fadd qword [ebp - 0x14]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
call fcn.100020b3
mov dword [ebp + 8], eax
fild dword [0x100f508d]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fild dword [ebp + 0xc]
fstp qword [ebp - 0x14]
fadd qword [ebp - 0x14]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
call fcn.100020b3
mov dword [ebp + 0xc], eax
push 1
push 0xf
push 1
push 0x40400000
push dword [0x100f4c65]
push 0x3f800000
fild dword [ebp + 0x14]
fstp dword [ebp - 8]
push dword [ebp - 8]
fild dword [ebp + 0x10]
fstp dword [ebp - 0xc]
push dword [ebp - 0xc]
fild dword [ebp + 0xc]
fstp dword [ebp - 0x10]
push dword [ebp - 0x10]
fild dword [ebp + 8]
fstp dword [ebp - 0x14]
push dword [ebp - 0x14]
call fcn.1004c947
fild dword [ebp + 8]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fild dword [ebp + 0x10]
fstp qword [ebp - 0x14]
fadd qword [ebp - 0x14]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fsub qword [0x100be5aa]
fstp qword [ebp - 0x24]
fild dword [ebp + 0x14]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fdiv qword [0x100be724]
fstp qword [ebp - 0x34]
fild dword [ebp + 0xc]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
fadd qword [0x100b6933]
fstp qword [ebp - 0x44]
push 1
push dword [0x100f4c69]
fld qword [ebp - 0x44]
fstp dword [ebp - 0x48]
push dword [ebp - 0x48]
fld qword [ebp - 0x34]
fstp dword [ebp - 0x4c]
push dword [ebp - 0x4c]
fld qword [ebp - 0x24]
fstp dword [ebp - 0x50]
push dword [ebp - 0x50]
call fcn.100521ca
mov ebx, dword [ebp + 0x20]
cmp dword [ebx], 0
jne 0x1006931f
push 0x100b651c
mov ebx, dword [ebp + 0x24]
push dword [ebx]
call fcn.10002385
add esp, 8
cmp eax, 0
jne 0x100692e1
mov ebx, dword [ebp + 0x20]
mov dword [ebx], 1
fild dword [ebp + 8]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fadd qword [0x100b675a]
fstp qword [ebp - 0x14]
mov ebx, dword [ebp + 0x1c]
mov ebx, dword [ebx]
call fcn.10002093
push ebx
push ecx
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebx]
dec eax
jns 0x10069290
push 0x3c3
push 0x4062b5e
push 4
call fcn.100775a9
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x100692ad
push 0x3c3
push 0x4062b5e
push 1
call fcn.100775a9
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
push 1
push 0x41800000
push dword [0x100f4c51]
push dword [ebp - 0x18]
fild dword [ebp + 0xc]
fstp dword [ebp - 0x1c]
push dword [ebp - 0x1c]
fld qword [ebp - 0x14]
fstp dword [ebp - 0x20]
push dword [ebp - 0x20]
call fcn.1003c860
jmp 0x1006931a
fild dword [ebp + 8]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fadd qword [0x100b675a]
fstp qword [ebp - 0x14]
push 1
push 0x41800000
push dword [0x100f4c51]
push dword [ebp + 0x24]
fild dword [ebp + 0xc]
fstp dword [ebp - 0x18]
push dword [ebp - 0x18]
fld qword [ebp - 0x14]
fstp dword [ebp - 0x1c]
push dword [ebp - 0x1c]
call fcn.1003c860
jmp 0x100693a8
fild dword [ebp + 8]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fadd qword [0x100b675a]
fstp qword [ebp - 0x14]
mov ebx, dword [ebp + 0x1c]
mov ebx, dword [ebx]
call fcn.10002093
push ebx
push ecx
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebx]
dec eax
jns 0x1006935c
push 0x4d5
push 0x4062b5e
push 4
call fcn.100775a9
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10069379
push 0x4d5
push 0x4062b5e
push 1
call fcn.100775a9
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
push 1
push 0x41800000
push dword [0x100f4c51]
push dword [ebp - 0x18]
fild dword [ebp + 0xc]
fstp dword [ebp - 0x1c]
push dword [ebp - 0x1c]
fld qword [ebp - 0x14]
fstp dword [ebp - 0x20]
push dword [ebp - 0x20]
call fcn.1003c860
inc dword [ebp + 0xc]
fild dword [ebp + 8]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fild dword [ebp + 0xc]
fstp qword [ebp - 0x14]
fadd qword [ebp - 0x14]
fstp qword [ebp - 0x1c]
fild dword [0x100f50c9]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fsub qword [ebp - 0x1c]
ftst
fnstsw ax
test ah, 1
je 0x100693da
fchs
fcomp qword [0x100b7d3f]
fnstsw ax
test ah, 0x41
je 0x10069781
fild dword [ebp + 0xc]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fild dword [ebp + 0x14]
fstp qword [ebp - 0x14]
fadd qword [ebp - 0x14]
fstp qword [ebp - 0x1c]
push 1
push 0
push 1
push 0
push dword [0x100f4c41]
fild dword [ebp + 0x18]
fstp dword [ebp - 0x20]
push dword [ebp - 0x20]
fild dword [ebp + 0x10]
fstp dword [ebp - 0x24]
push dword [ebp - 0x24]
fld qword [ebp - 0x1c]
fstp dword [ebp - 0x28]
push dword [ebp - 0x28]
fild dword [ebp + 8]
fstp dword [ebp - 0x2c]
push dword [ebp - 0x2c]
call fcn.1003beec
fild dword [ebp + 0xc]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fild dword [ebp + 0x14]
fstp qword [ebp - 0x14]
fadd qword [ebp - 0x14]
fstp qword [ebp - 0x1c]
push 1
push 0x96
push dword [0x100f4c69]
call fcn.100020da
mov dword [ebp - 0x20], eax
push 1
push 0xf
push 1
push 0x40400000
push dword [ebp - 0x20]
push 0x3f800000
fild dword [ebp + 0x18]
fstp dword [ebp - 0x24]
push dword [ebp - 0x24]
fild dword [ebp + 0x10]
fstp dword [ebp - 0x28]
push dword [ebp - 0x28]
fld qword [ebp - 0x1c]
fstp dword [ebp - 0x2c]
push dword [ebp - 0x2c]
fild dword [ebp + 8]
fstp dword [ebp - 0x30]
push dword [ebp - 0x30]
call fcn.1004c947
mov ebx, dword [ebp + 0x1c]
mov ebx, dword [ebx]
call fcn.1000358d
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 0x100696d0
fild dword [ebp + 0x14]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fild dword [ebp - 4]
fstp qword [ebp - 0x14]
fmul qword [ebp - 0x14]
fstp qword [ebp - 0x1c]
fild dword [ebp + 0xc]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fadd qword [ebp - 0x1c]
fstp qword [ebp - 0x2c]
fild dword [ebp + 8]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fild dword [ebp + 0x10]
fstp qword [ebp - 0x3c]
fadd qword [ebp - 0x3c]
fstp qword [ebp - 0x44]
fild dword [ebp + 0x14]
fstp qword [ebp - 0x4c]
fld qword [ebp - 0x4c]
fild dword [ebp - 4]
fstp qword [ebp - 0x54]
fmul qword [ebp - 0x54]
fstp qword [ebp - 0x5c]
fild dword [ebp + 0xc]
fstp qword [ebp - 0x64]
fld qword [ebp - 0x64]
fadd qword [ebp - 0x5c]
fild dword [ebp + 0x14]
fstp qword [ebp - 0x6c]
fadd qword [ebp - 0x6c]
fstp qword [ebp - 0x74]
fld qword [ebp - 0x74]
call fcn.100020b3
push eax
fld qword [ebp - 0x44]
call fcn.100020b3
push eax
fld qword [ebp - 0x2c]
call fcn.100020b3
push eax
push dword [ebp + 8]
call fcn.1003cc64
test eax, eax
je 0x10069606
fild dword [ebp + 0x14]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fild dword [ebp - 4]
fstp qword [ebp - 0x14]
fmul qword [ebp - 0x14]
fstp qword [ebp - 0x1c]
fild dword [ebp + 0xc]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fadd qword [ebp - 0x1c]
fstp qword [ebp - 0x2c]
push 1
push 0x96
push dword [0x100f4c69]
call fcn.100020da
mov dword [ebp - 0x30], eax
push 1
push 0xf
push 1
push 0x40400000
push dword [ebp - 0x30]
fild dword [ebp + 0x14]
fstp dword [ebp - 0x34]
push dword [ebp - 0x34]
fild dword [ebp + 0x10]
fstp dword [ebp - 0x38]
push dword [ebp - 0x38]
fld qword [ebp - 0x2c]
fstp dword [ebp - 0x3c]
push dword [ebp - 0x3c]
fild dword [ebp + 8]
fstp dword [ebp - 0x40]
push dword [ebp - 0x40]
call fcn.1003beec
push 1
call fcn.10005431
test eax, eax
je 0x10069606
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 0x20]
mov dword [ebx], eax
mov dword [0x100f50c9], 0
push 0
mov ebx, 0x308
call sub.KERNEL32.dll_GetTickCount
add esp, 4
mov dword [0x100f50cd], eax
fild dword [ebp + 8]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fadd qword [0x100b675a]
fstp qword [ebp - 0x14]
fild dword [ebp + 0x14]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fild dword [ebp - 4]
fstp qword [ebp - 0x24]
fmul qword [ebp - 0x24]
fstp qword [ebp - 0x2c]
fild dword [ebp + 0xc]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fadd qword [ebp - 0x2c]
fstp qword [ebp - 0x3c]
mov ebx, dword [ebp + 0x1c]
mov ebx, dword [ebx]
call fcn.10002093
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x10069665
push 0xa14
push 0x4062b5e
push 4
call fcn.100775a9
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10069682
push 0xa14
push 0x4062b5e
push 1
call fcn.100775a9
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
push dword [0x100f4c51]
call fcn.100020da
mov dword [ebp - 0x48], eax
push 1
push 0x41800000
push dword [ebp - 0x48]
push dword [ebp - 0x40]
fld qword [ebp - 0x3c]
fstp dword [ebp - 0x4c]
push dword [ebp - 0x4c]
fld qword [ebp - 0x14]
fstp dword [ebp - 0x50]
push dword [ebp - 0x50]
call fcn.1003c860
pop eax
pop ebx
pop ecx
jmp 0x100694b9
add esp, 0xc
push 1
call fcn.10005431
test eax, eax
je 0x10069765
fild dword [ebp + 8]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fild dword [ebp + 0x10]
fstp qword [ebp - 0x18]
fadd qword [ebp - 0x18]
fstp qword [ebp - 0x20]
mov ebx, dword [ebp + 0x1c]
mov ebx, dword [ebx]
call fcn.1000358d
mov dword [ebp - 0x24], eax
fild dword [ebp + 0x14]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fild dword [ebp - 0x24]
fstp qword [ebp - 0x34]
fmul qword [ebp - 0x34]
fstp qword [ebp - 0x3c]
fild dword [ebp + 0xc]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
fadd qword [ebp - 0x3c]
fild dword [ebp + 0x14]
fstp qword [ebp - 0x4c]
fadd qword [ebp - 0x4c]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
call fcn.100020b3
push eax
fld qword [ebp - 0x20]
call fcn.100020b3
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1003cc64
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x10069765
mov eax, 1
jmp 0x1006976a
mov eax, 0
test eax, eax
je 0x1006977c
mov dword [0x100f50c9], 0
jmp 0x100698a8
cmp dword [0x100f50c9], 0
jne 0x100698a8
fild dword [ebp + 8]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fild dword [ebp + 0x10]
fstp qword [ebp - 0x14]
fadd qword [ebp - 0x14]
fstp qword [ebp - 0x1c]
fild dword [ebp + 0xc]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fild dword [ebp + 0x14]
fstp qword [ebp - 0x2c]
fadd qword [ebp - 0x2c]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.100020b3
push eax
fld qword [ebp - 0x1c]
call fcn.100020b3
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1003cc64
test eax, eax
je 0x100698a8
push 1
call fcn.10005431
test eax, eax
je 0x100698a8
cmp dword [0x100f50cd], 0
jne 0x1006983a
push 0
mov ebx, 0x308
call sub.KERNEL32.dll_GetTickCount
add esp, 4
mov dword [0x100f50cd], eax
fild dword [ebp + 8]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fild dword [ebp + 0xc]
fstp qword [ebp - 0x14]
fadd qword [ebp - 0x14]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
call fcn.100020b3
mov dword [0x100f50c9], eax
jmp 0x100698a8
push 0
mov ebx, 0x308
call sub.KERNEL32.dll_GetTickCount
add esp, 4
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fild dword [0x100f50cd]
fstp qword [ebp - 0x18]
fsub qword [ebp - 0x18]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fsub qword [0x100be693]
fcomp qword [0x100b7d3f]
fnstsw ax
test ah, 0x41
jne 0x100698a8
fild dword [ebp + 8]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fild dword [ebp + 0xc]
fstp qword [ebp - 0x14]
fadd qword [ebp - 0x14]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
call fcn.100020b3
mov dword [0x100f50c9], eax
jmp 0x100698a8
mov esp, ebp
pop ebp
ret 0x24