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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100856f8
push 0x1005f69f
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1008b00c]
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 [0x100913cc]
mov edx, dword [ecx]
mov eax, dword [0x1008d760]
add eax, 0x1c
push eax
call dword [edx + 4]
cmp dword [eax], 0
je 0x1001f9b8
cmp dword [0x100920dc], 0
jne 0x1001f55c
cmp dword [0x10091394], 0
jne 0x1001f55c
mov dword [0x10094808], 0
mov dword [0x100947f0], 0
wait
jmp 0x1001f9e2
mov dword [0x10090f44], 0
mov dword [0x100947f8], 0
mov dword [0x10092024], 0
mov dword [0x1008d75c], 0
mov dword [0x100947fc], 0
mov dword [0x10092140], 0
mov dword [0x1009473c], 0
mov dword [0x10092e44], 0
mov dword [0x100930c8], 0
mov eax, dword [0x1008d760]
mov ecx, dword [eax + 0x2a8]
mov eax, dword [0x10092290]
mov ecx, dword [eax + ecx]
call fcn.10014d20
test eax, eax
jle 0x1001f542
call fcn.100154e0
test eax, eax
je 0x1001f5e8
cmp eax, 1
jne 0x1001f542
cmp dword [0x100920dc], 1
je 0x1001f5fe
cmp dword [0x10091394], 1
jne 0x1001f6bb
mov eax, dword [0x1008d760]
mov ecx, dword [eax + 0x2a8]
mov eax, dword [0x10092290]
mov esi, dword [eax + ecx]
call fcn.10014260
mov edx, dword [0x1008d760]
mov ecx, dword [edx + 0x2a0]
imul ecx, esi
add ecx, eax
mov eax, dword [edx + 0x2bc]
add eax, dword [edx + 0x2a4]
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 0x1001f672
lea eax, [esi - 0xfa0]
cmp eax, 0x3e8
jb 0x1001f672
mov ecx, dword [0x10092e4c]
jmp 0x1001f67d
mov ecx, 0x64
mov dword [0x10092e4c], ecx
lea eax, [esi - 0x1388]
cmp eax, 0x3e8
jb 0x1001f697
lea eax, [esi - 0x1770]
cmp eax, 0x3e8
jae 0x1001f6a2
mov ecx, 0x3e8
mov dword [0x10092e4c], ecx
lea eax, [esi - 0x7d0]
mov edx, 0x1f4
cmp eax, 0x3e8
cmovb ecx, edx
mov dword [0x10092e4c], ecx
or esi, 0xffffffff
mov dword [ebp - 0x2c], esi
mov ecx, dword [0x1008d4d4]
mov edx, 8
mov eax, dword [0x10092738]
test eax, eax
cmove ecx, edx
mov dword [0x1008d4d4], ecx
mov edx, 0x10
cmp eax, 1
cmove ecx, edx
mov dword [0x1008d4d4], ecx
mov edx, 0x14
cmp eax, 2
cmove ecx, edx
mov dword [0x1008d4d4], ecx
mov edx, 0x1e
cmp eax, 3
cmove ecx, edx
mov dword [0x1008d4d4], ecx
mov edx, 0x28
cmp eax, 4
cmove ecx, edx
mov dword [0x1008d4d4], ecx
mov eax, dword [0x1008b048]
mov dword [0x100919d8], eax
mov ecx, edi
call fcn.1001e370
cmp eax, esi
je 0x1001f744
mov dword [0x100919d8], 0xffff0000
mov esi, eax
mov dword [ebp - 0x2c], esi
mov eax, dword [0x1008d760]
mov ecx, dword [eax + 0x2a8]
mov eax, dword [0x10092290]
mov ecx, dword [eax + ecx]
call fcn.10014ba0
mov ecx, eax
call fcn.10014a30
mov ecx, eax
call fcn.100149d0
mov ecx, eax
call fcn.1001e950
mov edi, eax
cmp edi, 0xffffffff
je 0x1001f792
mov ecx, edi
call fcn.10015520
test al, al
je 0x1001f792
mov dword [0x100919d8], 0xffff0000
mov esi, edi
mov dword [ebp - 0x2c], esi
cmp esi, 0xffffffff
je 0x1001f9ab
mov eax, dword [0x1008d760]
mov ecx, dword [eax + 0x2a8]
mov eax, dword [0x10092290]
push dword [0x1009112c]
mov edx, dword [eax + ecx]
lea ecx, [ebp - 0x28]
call fcn.10015c00
add esp, 4
test al, al
je 0x1001f9d6
push dword [0x1009112c]
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.10015c00
add esp, 4
test al, al
je 0x1001f9d6
call fcn.10014960
mov ecx, eax
call fcn.100148a0
mov ebx, eax
call fcn.10014910
mov ecx, eax
call fcn.10014740
mov esi, eax
call fcn.10014910
mov ecx, eax
call fcn.100147b0
mov edi, eax
cmp esi, 1
jg 0x1001f859
test ebx, ebx
jle 0x1001f859
test edi, edi
jle 0x1001f859
cmp edi, ebx
jge 0x1001f83c
push edi
call fcn.10014910
mov ecx, eax
call fcn.10014850
push 0
call fcn.10014910
mov ecx, eax
call fcn.10014800
cmp edi, ebx
jl 0x1001f859
sub edi, ebx
inc edi
push ebx
call fcn.10014910
mov ecx, eax
call fcn.10014850
push edi
call fcn.10014910
mov ecx, eax
call fcn.10014800
movss xmm0, dword [ebp - 0x28]
movss dword [0x100947f4], xmm0
movss xmm0, dword [ebp - 0x24]
movss dword [0x1009474c], xmm0
movss xmm0, dword [ebp - 0x20]
movss dword [0x10094810], xmm0
mov dword [0x10094808], 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [0x100939f0], eax
ja 0x1001f902
call fcn.10014910
mov ecx, eax
call fcn.10014740
test eax, eax
jle 0x1001f8f5
cmp dword [0x100920dc], 1
je 0x1001f8bc
cmp dword [0x10091394], 1
jne 0x1001f8f5
call fcn.10014910
mov edi, eax
mov ecx, dword [0x100913cc]
mov esi, dword [ecx]
mov edx, dword [0x1008d760]
add edx, 0x2c4
push edx
call dword [esi + 4]
mov esi, eax
mov ecx, dword [0x100913cc]
mov edx, dword [ecx]
push 0x10091388
call dword [edx + 4]
add esi, eax
push 0
mov ecx, edi
call esi
call ebx
add eax, dword [0x10092e4c]
mov dword [0x100939f0], eax
cmp dword [0x10092e90], 0
je 0x1001f9d6
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.100153a0
mov ecx, eax
call fcn.100151d0
test al, al
je 0x1001f9d6
push 0xffff0000
movss xmm2, dword [0x1007ddc8]
movss xmm1, dword [ebp - 0x24]
movss xmm0, dword [ebp - 0x28]
call fcn.10012470
push ebx
push 0xfffffafa
push 1
push 0x14
cvttss2si edx, dword [ebp - 0x24]
movss xmm0, dword [ebp - 0x28]
subss xmm0, dword [0x1007dde4]
cvttss2si ecx, xmm0
call fcn.10012410
push ebx
push 0xfffffafa
push 0x14
push 1
movss xmm0, dword [ebp - 0x24]
subss xmm0, dword [0x1007dde4]
cvttss2si edx, xmm0
cvttss2si ecx, dword [ebp - 0x28]
call fcn.10012410
add esp, 0x24
wait
jmp 0x1001f9e2
mov dword [0x10094808], 0
wait
jmp 0x1001f9e2
mov dword [0x10094808], 0
mov dword [0x1009480c], 0
mov dword [0x100947f0], 0
wait
jmp 0x1001f9e2
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.1005f4e9
mov esp, ebp
pop ebp
ret