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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1008b0c0
push 0x100630e2
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1009100c]
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 [0x100973f0]
mov edx, dword [ecx]
mov eax, dword [0x10093784]
add eax, 0x1c
push eax
call dword [edx + 4]
cmp dword [eax], 0
je 0x1001f818
cmp dword [0x10098120], 0
jne 0x1001f3bc
cmp dword [0x100973bc], 0
jne 0x1001f3bc
mov dword [0x1009a8d8], 0
mov dword [0x1009a8c0], 0
wait
jmp 0x1001f842
mov dword [0x10096f6c], 0
mov dword [0x1009a8c8], 0
mov dword [0x10098064], 0
mov dword [0x10093780], 0
mov dword [0x1009a8cc], 0
mov dword [0x1009818c], 0
mov dword [0x1009a804], 0
mov dword [0x10098ea0], 0
mov dword [0x10099124], 0
mov eax, dword [0x10093784]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [0x100982dc]
mov ecx, dword [eax + ecx]
call fcn.100156c0
test eax, eax
jle 0x1001f3a2
call fcn.10015e80
test eax, eax
je 0x1001f448
cmp eax, 1
jne 0x1001f3a2
cmp dword [0x10098120], 1
je 0x1001f45e
cmp dword [0x100973bc], 1
jne 0x1001f51b
mov eax, dword [0x10093784]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [0x100982dc]
mov esi, dword [eax + ecx]
call fcn.10014c00
mov edx, dword [0x10093784]
mov ecx, dword [edx + 0x2b4]
imul ecx, esi
add ecx, eax
mov eax, dword [edx + 0x2d0]
add eax, dword [edx + 0x2b8]
mov esi, dword [eax + ecx]
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 0x1001f4d2
lea eax, [esi - 0xfa0]
cmp eax, 0x3e8
jb 0x1001f4d2
mov ecx, dword [0x10098ea8]
jmp 0x1001f4dd
mov ecx, 0x64
mov dword [0x10098ea8], ecx
lea eax, [esi - 0x1388]
cmp eax, 0x3e8
jb 0x1001f4f7
lea eax, [esi - 0x1770]
cmp eax, 0x3e8
jae 0x1001f502
mov ecx, 0x3e8
mov dword [0x10098ea8], ecx
lea eax, [esi - 0x7d0]
mov edx, 0x1f4
cmp eax, 0x3e8
cmovb ecx, edx
mov dword [0x10098ea8], ecx
or esi, 0xffffffff
mov dword [ebp - 0x2c], esi
mov ecx, dword [0x100934f8]
mov edx, 8
mov eax, dword [0x10098784]
test eax, eax
cmove ecx, edx
mov dword [0x100934f8], ecx
mov edx, 0x10
cmp eax, 1
cmove ecx, edx
mov dword [0x100934f8], ecx
mov edx, 0x14
cmp eax, 2
cmove ecx, edx
mov dword [0x100934f8], ecx
mov edx, 0x1e
cmp eax, 3
cmove ecx, edx
mov dword [0x100934f8], ecx
mov edx, 0x28
cmp eax, 4
cmove ecx, edx
mov dword [0x100934f8], ecx
mov eax, dword [0x10091048]
mov dword [0x10097a14], eax
mov ecx, edi
call fcn.1001e170
cmp eax, esi
je 0x1001f5a4
mov dword [0x10097a14], 0xffff0000
mov esi, eax
mov dword [ebp - 0x2c], esi
mov eax, dword [0x10093784]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [0x100982dc]
mov ecx, dword [eax + ecx]
call fcn.10015540
mov ecx, eax
call fcn.100153d0
mov ecx, eax
call fcn.10015370
mov ecx, eax
call fcn.1001e750
mov edi, eax
cmp edi, 0xffffffff
je 0x1001f5f2
mov ecx, edi
call fcn.10015ec0
test al, al
je 0x1001f5f2
mov dword [0x10097a14], 0xffff0000
mov esi, edi
mov dword [ebp - 0x2c], esi
cmp esi, 0xffffffff
je 0x1001f80b
mov eax, dword [0x10093784]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [0x100982dc]
push dword [0x10097154]
mov edx, dword [eax + ecx]
lea ecx, [ebp - 0x28]
call fcn.100165a0
add esp, 4
test al, al
je 0x1001f836
push dword [0x10097154]
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.100165a0
add esp, 4
test al, al
je 0x1001f836
call fcn.10015300
mov ecx, eax
call fcn.10015240
mov ebx, eax
call fcn.100152b0
mov ecx, eax
call fcn.100150e0
mov esi, eax
call fcn.100152b0
mov ecx, eax
call fcn.10015150
mov edi, eax
cmp esi, 1
jg 0x1001f6b9
test ebx, ebx
jle 0x1001f6b9
test edi, edi
jle 0x1001f6b9
cmp edi, ebx
jge 0x1001f69c
push edi
call fcn.100152b0
mov ecx, eax
call fcn.100151f0
push 0
call fcn.100152b0
mov ecx, eax
call fcn.100151a0
cmp edi, ebx
jl 0x1001f6b9
sub edi, ebx
inc edi
push ebx
call fcn.100152b0
mov ecx, eax
call fcn.100151f0
push edi
call fcn.100152b0
mov ecx, eax
call fcn.100151a0
movss xmm0, dword [ebp - 0x28]
movss dword [0x1009a8c4], xmm0
movss xmm0, dword [ebp - 0x24]
movss dword [0x1009a814], xmm0
movss xmm0, dword [ebp - 0x20]
movss dword [0x1009a8e0], xmm0
mov dword [0x1009a8d8], 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [0x10099a64], eax
ja 0x1001f762
call fcn.100152b0
mov ecx, eax
call fcn.100150e0
test eax, eax
jle 0x1001f755
cmp dword [0x10098120], 1
je 0x1001f71c
cmp dword [0x100973bc], 1
jne 0x1001f755
call fcn.100152b0
mov edi, eax
mov ecx, dword [0x100973f0]
mov esi, dword [ecx]
mov edx, dword [0x10093784]
add edx, 0x2d8
push edx
call dword [esi + 4]
mov esi, eax
mov ecx, dword [0x100973f0]
mov edx, dword [ecx]
push 0x100973b0
call dword [edx + 4]
add esi, eax
push 0
mov ecx, edi
call esi
call ebx
add eax, dword [0x10098ea8]
mov dword [0x10099a64], eax
cmp dword [0x10098eec], 0
je 0x1001f836
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.10015d40
mov ecx, eax
call fcn.10015b70
test al, al
je 0x1001f836
push 0xffff0000
movss xmm2, dword [0x100832e8]
movss xmm1, dword [ebp - 0x24]
movss xmm0, dword [ebp - 0x28]
call fcn.10012e50
push ebx
push 0xfffffafa
push 1
push 0x14
cvttss2si edx, dword [ebp - 0x24]
movss xmm0, dword [ebp - 0x28]
subss xmm0, dword [0x10083304]
cvttss2si ecx, xmm0
call fcn.10012df0
push ebx
push 0xfffffafa
push 0x14
push 1
movss xmm0, dword [ebp - 0x24]
subss xmm0, dword [0x10083304]
cvttss2si edx, xmm0
cvttss2si ecx, dword [ebp - 0x28]
call fcn.10012df0
add esp, 0x24
wait
jmp 0x1001f842
mov dword [0x1009a8d8], 0
wait
jmp 0x1001f842
mov dword [0x1009a8d8], 0
mov dword [0x1009a8dc], 0
mov dword [0x1009a8c0], 0
wait
jmp 0x1001f842
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.10062f29
mov esp, ebp
pop ebp
ret