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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1006b328
push 0x1004d769
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1006f00c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
mov dword [ebp - 0x30], edi
wait
mov dword [ebp - 4], 0
mov ecx, dword [0x10074de0]
mov edx, dword [ecx]
mov eax, dword [0x10071168]
add eax, 0x1c
push eax
call dword [edx + 4]
cmp dword [eax], 0
je 0x1001f736
cmp dword [0x10075aec], 0
jne 0x1001f2dc
cmp dword [0x10074da8], 0
jne 0x1001f2dc
mov dword [0x10076b18], 0
mov dword [0x10078794], 0
wait
jmp 0x1001f760
mov dword [0x10074958], 0
mov dword [0x10078798], 0
mov dword [0x10075a34], 0
mov dword [0x10071164], 0
mov dword [0x1007879c], 0
mov dword [0x10075b4c], 0
mov dword [0x100786ec], 0
mov dword [0x1007684c], 0
mov dword [0x10076acc], 0
mov eax, dword [0x10071168]
mov ecx, dword [eax + 0x298]
mov eax, dword [0x10075c9c]
mov ecx, dword [eax + ecx]
call fcn.10015a20
test eax, eax
jle 0x1001f2c2
call fcn.100161e0
test eax, eax
je 0x1001f368
cmp eax, 1
jne 0x1001f2c2
cmp dword [0x10075aec], 1
je 0x1001f37e
cmp dword [0x10074da8], 1
jne 0x1001f439
mov eax, dword [0x10071168]
mov ecx, dword [eax + 0x298]
mov eax, dword [0x10075c9c]
mov esi, dword [eax + ecx]
call fcn.10014f00
mov edx, dword [0x10071168]
mov ecx, dword [edx + 0x290]
imul ecx, esi
add ecx, eax
mov eax, dword [edx + 0x294]
mov esi, dword [eax + ecx + 0x9c]
mov eax, 0x4f8b588f
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0x10
imul eax, eax, 0x186a0
sub esi, eax
lea eax, [esi - 0xbb8]
cmp eax, 0x3e8
jb 0x1001f3f0
lea eax, [esi - 0xfa0]
cmp eax, 0x3e8
jb 0x1001f3f0
mov ecx, dword [0x10076854]
jmp 0x1001f3fb
mov ecx, 0x64
mov dword [0x10076854], ecx
lea eax, [esi - 0x1388]
cmp eax, 0x3e8
jb 0x1001f415
lea eax, [esi - 0x1770]
cmp eax, 0x3e8
jae 0x1001f420
mov ecx, 0x3e8
mov dword [0x10076854], ecx
lea eax, [esi - 0x7d0]
mov edx, 0x1f4
cmp eax, 0x3e8
cmovb ecx, edx
mov dword [0x10076854], ecx
or esi, 0xffffffff
mov dword [ebp - 0x2c], esi
mov ecx, dword [0x100770b8]
mov edx, 8
mov eax, dword [0x10076140]
test eax, eax
cmove ecx, edx
mov dword [0x100770b8], ecx
mov edx, 0x10
cmp eax, 1
cmove ecx, edx
mov dword [0x100770b8], ecx
mov edx, 0x14
cmp eax, 2
cmove ecx, edx
mov dword [0x100770b8], ecx
mov edx, 0x1e
cmp eax, 3
cmove ecx, edx
mov dword [0x100770b8], ecx
mov edx, 0x28
cmp eax, 4
cmove ecx, edx
mov dword [0x100770b8], ecx
mov eax, dword [0x1006f044]
mov dword [0x100753e4], eax
mov ecx, edi
call fcn.1001e110
cmp eax, esi
je 0x1001f4c2
mov dword [0x100753e4], 0xffff0000
mov esi, eax
mov dword [ebp - 0x2c], esi
mov eax, dword [0x10071168]
mov ecx, dword [eax + 0x298]
mov eax, dword [0x10075c9c]
mov ecx, dword [eax + ecx]
call fcn.100158a0
mov ecx, eax
call fcn.10015730
mov ecx, eax
call fcn.100156d0
mov ecx, eax
call fcn.1001e6f0
mov edi, eax
cmp edi, 0xffffffff
je 0x1001f510
mov ecx, edi
call fcn.10016220
test al, al
je 0x1001f510
mov dword [0x100753e4], 0xffff0000
mov esi, edi
mov dword [ebp - 0x2c], esi
cmp esi, 0xffffffff
je 0x1001f729
mov eax, dword [0x10071168]
mov ecx, dword [eax + 0x298]
mov eax, dword [0x10075c9c]
push dword [0x10074b40]
mov edx, dword [eax + ecx]
lea ecx, [ebp - 0x28]
call fcn.10016900
add esp, 4
test al, al
je 0x1001f754
push dword [0x10074b40]
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.10016900
add esp, 4
test al, al
je 0x1001f754
call fcn.10015660
mov ecx, eax
call fcn.100155a0
mov ebx, eax
call fcn.10015610
mov ecx, eax
call fcn.100153e0
mov esi, eax
call fcn.10015610
mov ecx, eax
call fcn.10015450
mov edi, eax
cmp esi, 1
jg 0x1001f5d7
test ebx, ebx
jle 0x1001f5d7
test edi, edi
jle 0x1001f5d7
cmp edi, ebx
jge 0x1001f5ba
push edi
call fcn.10015610
mov ecx, eax
call fcn.100154c0
push 0
call fcn.10015610
mov ecx, eax
call fcn.10015530
cmp edi, ebx
jl 0x1001f5d7
sub edi, ebx
inc edi
push ebx
call fcn.10015610
mov ecx, eax
call fcn.100154c0
push edi
call fcn.10015610
mov ecx, eax
call fcn.10015530
movss xmm0, dword [ebp - 0x28]
movss dword [0x10076f9c], xmm0
movss xmm0, dword [ebp - 0x24]
movss dword [0x10071214], xmm0
movss xmm0, dword [ebp - 0x20]
movss dword [0x10076b00], xmm0
mov dword [0x10076b18], 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [0x100779a0], eax
ja 0x1001f680
call fcn.10015610
mov ecx, eax
call fcn.100153e0
test eax, eax
jle 0x1001f673
cmp dword [0x10075aec], 1
je 0x1001f63a
cmp dword [0x10074da8], 1
jne 0x1001f673
call fcn.10015610
mov edi, eax
mov ecx, dword [0x10074de0]
mov esi, dword [ecx]
mov edx, dword [0x10071168]
add edx, 0x2ac
push edx
call dword [esi + 4]
mov esi, eax
mov ecx, dword [0x10074de0]
mov edx, dword [ecx]
push 0x10074d94
call dword [edx + 4]
add esi, eax
push 0
mov ecx, edi
call esi
call ebx
add eax, dword [0x10076854]
mov dword [0x100779a0], eax
cmp dword [0x10076894], 0
je 0x1001f754
movq xmm0, qword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x30]
push ebx
lea eax, [ebp - 0x28]
push eax
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], ecx
call fcn.100160a0
mov ecx, eax
call fcn.10015ed0
test al, al
je 0x1001f754
push 0xffff0000
movss xmm2, dword [0x10064e08]
movss xmm1, dword [ebp - 0x24]
movss xmm0, dword [ebp - 0x28]
call fcn.10012db0
push ebx
push 0xfffffafa
push 1
push 0x14
cvttss2si edx, dword [ebp - 0x24]
movss xmm0, dword [ebp - 0x28]
subss xmm0, dword [0x10064e24]
cvttss2si ecx, xmm0
call fcn.10012d50
push ebx
push 0xfffffafa
push 0x14
push 1
movss xmm0, dword [ebp - 0x24]
subss xmm0, dword [0x10064e24]
cvttss2si edx, xmm0
cvttss2si ecx, dword [ebp - 0x28]
call fcn.10012d50
add esp, 0x24
wait
jmp 0x1001f760
mov dword [0x10076b18], 0
wait
jmp 0x1001f760
mov dword [0x10076b18], 0
mov dword [0x100787a8], 0
mov dword [0x10078794], 0
wait
jmp 0x1001f760
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1004d4d9
mov esp, ebp
pop ebp
ret