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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10056eb0
push 0x1003fcdf
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1005b00c]
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 [0x10061f94]
mov edx, dword [ecx]
mov eax, dword [0x1005e718]
add eax, 0x1c
push eax
call dword [edx + 4]
cmp dword [eax], 0
je 0x100186b6
cmp dword [0x1005cee4], 0
jne 0x1001825c
cmp dword [0x10061f5c], 0
jne 0x1001825c
mov dword [0x1006433c], 0
mov dword [0x10064324], 0
wait
jmp 0x100186e0
mov dword [0x10061b0c], 0
mov dword [0x1006432c], 0
mov dword [0x10062bd4], 0
mov dword [0x1005e714], 0
mov dword [0x10064330], 0
mov dword [0x1005cf48], 0
mov dword [0x1006426c], 0
mov dword [0x1005dc44], 0
mov dword [0x1005dec4], 0
mov eax, dword [0x1005e718]
mov ecx, dword [eax + 0x298]
mov eax, dword [0x1005d098]
mov ecx, dword [eax + ecx]
call fcn.1000ea00
test eax, eax
jle 0x10018242
call fcn.1000f1d0
test eax, eax
je 0x100182e8
cmp eax, 1
jne 0x10018242
cmp dword [0x1005cee4], 1
je 0x100182fe
cmp dword [0x10061f5c], 1
jne 0x100183b9
mov eax, dword [0x1005e718]
mov ecx, dword [eax + 0x298]
mov eax, dword [0x1005d098]
mov esi, dword [eax + ecx]
call fcn.1000e020
mov edx, dword [0x1005e718]
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 0x10018370
lea eax, [esi - 0xfa0]
cmp eax, 0x3e8
jb 0x10018370
mov ecx, dword [0x1005dc4c]
jmp 0x1001837b
mov ecx, 0x64
mov dword [0x1005dc4c], ecx
lea eax, [esi - 0x1388]
cmp eax, 0x3e8
jb 0x10018395
lea eax, [esi - 0x1770]
cmp eax, 0x3e8
jae 0x100183a0
mov ecx, 0x3e8
mov dword [0x1005dc4c], ecx
lea eax, [esi - 0x7d0]
mov edx, 0x1f4
cmp eax, 0x3e8
cmovb ecx, edx
mov dword [0x1005dc4c], ecx
or esi, 0xffffffff
mov dword [ebp - 0x2c], esi
mov ecx, dword [0x1005e49c]
mov edx, 8
mov eax, dword [0x1005d53c]
test eax, eax
cmove ecx, edx
mov dword [0x1005e49c], ecx
mov edx, 0x10
cmp eax, 1
cmove ecx, edx
mov dword [0x1005e49c], ecx
mov edx, 0x14
cmp eax, 2
cmove ecx, edx
mov dword [0x1005e49c], ecx
mov edx, 0x1e
cmp eax, 3
cmove ecx, edx
mov dword [0x1005e49c], ecx
mov edx, 0x28
cmp eax, 4
cmove ecx, edx
mov dword [0x1005e49c], ecx
mov eax, dword [0x1005b024]
mov dword [0x1006258c], eax
mov ecx, edi
call fcn.100170d0
cmp eax, esi
je 0x10018442
mov dword [0x1006258c], 0xffff0000
mov esi, eax
mov dword [ebp - 0x2c], esi
mov eax, dword [0x1005e718]
mov ecx, dword [eax + 0x298]
mov eax, dword [0x1005d098]
mov ecx, dword [eax + ecx]
call fcn.1000e880
mov ecx, eax
call fcn.1000e710
mov ecx, eax
call fcn.1000e6b0
mov ecx, eax
call fcn.100176b0
mov edi, eax
cmp edi, 0xffffffff
je 0x10018490
mov ecx, edi
call fcn.1000f210
test al, al
je 0x10018490
mov dword [0x1006258c], 0xffff0000
mov esi, edi
mov dword [ebp - 0x2c], esi
cmp esi, 0xffffffff
je 0x100186a9
mov eax, dword [0x1005e718]
mov ecx, dword [eax + 0x298]
mov eax, dword [0x1005d098]
push dword [0x10061cf4]
mov edx, dword [eax + ecx]
lea ecx, [ebp - 0x28]
call fcn.1000f8f0
add esp, 4
test al, al
je 0x100186d4
push dword [0x10061cf4]
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.1000f8f0
add esp, 4
test al, al
je 0x100186d4
call fcn.1000e670
mov ecx, eax
call fcn.1000e600
mov ebx, eax
call fcn.1000e640
mov ecx, eax
call fcn.1000e500
mov esi, eax
call fcn.1000e640
mov ecx, eax
call fcn.1000e540
mov edi, eax
cmp esi, 1
jg 0x10018557
test ebx, ebx
jle 0x10018557
test edi, edi
jle 0x10018557
cmp edi, ebx
jge 0x1001853a
push edi
call fcn.1000e640
mov ecx, eax
call fcn.1000e580
push 0
call fcn.1000e640
mov ecx, eax
call fcn.1000e5c0
cmp edi, ebx
jl 0x10018557
sub edi, ebx
inc edi
push ebx
call fcn.1000e640
mov ecx, eax
call fcn.1000e580
push edi
call fcn.1000e640
mov ecx, eax
call fcn.1000e5c0
movss xmm0, dword [ebp - 0x28]
movss dword [0x10064328], xmm0
movss xmm0, dword [ebp - 0x24]
movss dword [0x1006427c], xmm0
movss xmm0, dword [ebp - 0x20]
movss dword [0x10064344], xmm0
mov dword [0x1006433c], 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [0x10063530], eax
ja 0x10018600
call fcn.1000e640
mov ecx, eax
call fcn.1000e500
test eax, eax
jle 0x100185f3
cmp dword [0x1005cee4], 1
je 0x100185ba
cmp dword [0x10061f5c], 1
jne 0x100185f3
call fcn.1000e640
mov edi, eax
mov ecx, dword [0x10061f94]
mov esi, dword [ecx]
mov edx, dword [0x1005e718]
add edx, 0x2ac
push edx
call dword [esi + 4]
mov esi, eax
mov ecx, dword [0x10061f94]
mov edx, dword [ecx]
push 0x10061f50
call dword [edx + 4]
add esi, eax
push 0
mov ecx, edi
call esi
call ebx
add eax, dword [0x1005dc4c]
mov dword [0x10063530], eax
cmp dword [0x1005dc8c], 0
je 0x100186d4
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.1000f090
mov ecx, eax
call fcn.1000eec0
test al, al
je 0x100186d4
push 0xffff0000
movss xmm2, dword [0x10052d70]
movss xmm1, dword [ebp - 0x24]
movss xmm0, dword [ebp - 0x28]
call fcn.1000c360
push ebx
push 0xfffffafa
push 1
push 0x14
cvttss2si edx, dword [ebp - 0x24]
movss xmm0, dword [ebp - 0x28]
subss xmm0, dword [0x10052d8c]
cvttss2si ecx, xmm0
call fcn.1000c1b0
push ebx
push 0xfffffafa
push 0x14
push 1
movss xmm0, dword [ebp - 0x24]
subss xmm0, dword [0x10052d8c]
cvttss2si edx, xmm0
cvttss2si ecx, dword [ebp - 0x28]
call fcn.1000c1b0
add esp, 0x24
wait
jmp 0x100186e0
mov dword [0x1006433c], 0
wait
jmp 0x100186e0
mov dword [0x1006433c], 0
mov dword [0x10064340], 0
mov dword [0x10064324], 0
wait
jmp 0x100186e0
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.1003fb29
mov esp, ebp
pop ebp
ret