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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, ecx
mov eax, dword [ebx]
mov eax, dword [eax + 0x13a0]
cmp eax, 4
je 0x1004c599
cmp eax, 0x14
je 0x1004c599
test eax, eax
je 0x1004c599
mov eax, dword [0x100d72f0]
mov ecx, dword fs:[0x2c]
mov ecx, dword [ecx + eax*4]
mov eax, dword [0x100e00c8]
cmp eax, dword [ecx + 4]
jle 0x1004c160
push 0x100e00c8
call fcn.10081331
add esp, 4
cmp dword [0x100e00c8], 0xffffffff
jne 0x1004c160
call edi
push 0x100e00c8
call fcn.100812e7
add esp, 4
nop word [eax + eax]
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x360bc]
cmp eax, dword [ecx + 0x360c8]
je 0x1004c579
cmp byte [eax + 0x10], 0
je 0x1004c579
mov esi, dword [ecx + 0x360bc]
mov dword [esp + 0x10], esi
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x360bc], eax
test esi, esi
je 0x1004c579
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x1004c3fa
cmp byte [0xb7cb49], 0
jne 0x1004c48e
mov ecx, dword [esi]
mov eax, dword [ebx]
cmp byte [ecx + eax + 0xfb0], 0
jne 0x1004c48e
call edi
sub eax, dword [0x100d7ae4]
cmp eax, 0x1f4
jae 0x1004c48e
mov ecx, dword [ebx]
mov eax, dword [esi]
cmp dword [ecx + eax*4 + 0x1468], 0
je 0x1004c334
call edi
mov edx, dword [esi]
mov ecx, dword [ebx]
lea ecx, [ecx + edx*4]
xchg dword [ecx], eax
mov eax, dword [ebx]
mov ecx, dword [esi]
push dword [esi + 8]
push dword [esi + 4]
mov ecx, dword [eax + ecx*4 + 0x1468]
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
sub esp, 0xc
mov esi, dword [ebx]
lea eax, [edi + edi*2]
movss xmm0, dword [esi + eax*4 + 0x2420]
mov ecx, dword [esi + edi*4 + 0x1468]
movss dword [esp + 8], xmm0
movss xmm0, dword [esi + eax*4 + 0x241c]
lea eax, [edi + edi*2]
movss dword [esp + 4], xmm0
mov edx, dword [ecx]
movss xmm0, dword [esi + eax*4 + 0x2418]
movss dword [esp], xmm0
call dword [edx + 8]
mov eax, dword [ebx]
mov ecx, dword [eax + edi*4 + 0x1468]
push ecx
mov dword [esp], 0x40a00000
mov eax, dword [ecx]
call dword [eax + 0x18]
mov eax, dword [ebx]
mov ecx, dword [eax + edi*4 + 0x1468]
push ecx
mov dword [esp], 0x3f800000
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov eax, dword [ebx]
mov ecx, dword [eax + edi*4 + 0x1468]
push ecx
mov dword [esp], 0x41700000
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [ebx]
sub esp, 0xc
mov ecx, dword [eax + edi*4 + 0x1468]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [ebx]
sub esp, 0xc
mov ecx, dword [eax + edi*4 + 0x1468]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [ebx]
mov ecx, dword [eax + edi*4 + 0x1468]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
call eax
test al, al
jne 0x1004c3e2
mov eax, dword [esp + 0x10]
push dword [eax + 4]
call fcn.10081407
mov ecx, dword [ebx]
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [ecx + 0x360c4]
inc dword [ecx + 0x360cc]
mov byte [eax + 0x10], 0
mov eax, dword [ecx + 0x360c4]
mov eax, dword [eax + 0x14]
mov dword [ecx + 0x360c4], eax
jmp 0x1004c160
cmp dword [ecx + 0x5328], 0xf0
jl 0x1004c3b7
mov edi, 0x1468
mov esi, dword [ebx]
cmp dword [edi + esi], 0
je 0x1004c384
mov esi, dword [esi + edi - 0x1468]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x1388
jb 0x1004c384
mov eax, dword [ebx]
mov ecx, dword [eax + 0x1460]
push dword [edi + eax]
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov eax, dword [ebx]
mov dword [edi + eax], 0
mov eax, dword [ebx]
dec dword [eax + 0x5328]
add edi, 4
cmp edi, 0x2418
jl 0x1004c345
mov ecx, dword [ebx]
mov esi, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ecx + 0x5328], 0xf0
jl 0x1004c3b7
push dword [esi + 4]
call fcn.10081407
add esp, 4
jmp 0x1004c553
mov ecx, dword [ecx + 0x1460]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edx, dword [esi]
mov ecx, dword [ebx]
mov dword [ecx + edx*4 + 0x1468], eax
mov eax, dword [ebx]
inc dword [eax + 0x5328]
call edi
mov edx, dword [esi]
mov ecx, dword [ebx]
lea ecx, [ecx + edx*4]
xchg dword [ecx], eax
jmp 0x1004c3ec
mov esi, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [esi + 4]
call fcn.10081407
mov eax, dword [esi + 0xc]
add esp, 4
cmp eax, 2
jne 0x1004c40e
mov eax, dword [ebx]
mov ecx, dword [esi]
mov byte [ecx + eax + 0xfb0], 1
mov eax, dword [esi + 0xc]
cmp eax, 6
jne 0x1004c42c
mov ecx, dword [ebx]
cmp byte [ecx + 0x139c], 0
je 0x1004c42c
mov ecx, dword [ecx + 0x1464]
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [esi + 0xc]
cmp eax, 5
jne 0x1004c44e
mov ecx, dword [ebx]
cmp byte [ecx + 0x139c], 0
je 0x1004c50e
mov ecx, dword [ecx + 0x1464]
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi + 0xc]
cmp eax, 4
jne 0x1004c50e
mov eax, dword [esi + 4]
mov edx, dword [ebx]
mov dword [esp + 0x14], eax
mov eax, dword [esi]
mov ecx, dword [edx + eax*4 + 0x1468]
test ecx, ecx
je 0x1004c500
mov esi, dword [esp + 0x14]
movss xmm0, dword [esi]
comiss xmm0, dword [0x100ccac8]
mov esi, dword [esp + 0x10]
jbe 0x1004c4bc
push ecx
movss dword [esp], xmm0
jmp 0x1004c4fb
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x360c4]
inc dword [ecx + 0x360cc]
mov byte [eax + 0x10], 0
mov eax, dword [ecx + 0x360c4]
mov eax, dword [eax + 0x14]
mov dword [ecx + 0x360c4], eax
push dword [esi + 4]
call fcn.10081407
jmp 0x1004c154
cmp byte [ecx + 0x800e5], 0
je 0x1004c4ec
cmp byte [ecx + 0x800e7], 0
jne 0x1004c4ec
push ecx
movss dword [esp], xmm0
push 0x100a
push dword [ecx + 0x8007c]
call dword [sym.imp.OpenAL32.dll_alSourcef]
mov eax, dword [esi]
add esp, 0xc
mov edx, dword [ebx]
mov ecx, dword [edx + eax*4 + 0x1468]
push ecx
mov dword [esp], 0
mov eax, dword [ecx]
call dword [eax + 0x24]
push 4
push dword [esp + 0x18]
call fcn.100811f1
add esp, 8
mov eax, dword [esi + 0xc]
cmp eax, 3
jne 0x1004c525
mov eax, dword [ebx]
mov ecx, dword [esi]
mov byte [ecx + eax + 0xfb0], 0
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x1004c553
mov ecx, dword [ebx]
mov eax, dword [esi]
mov edx, dword [ecx + eax*4 + 0x1468]
test edx, edx
je 0x1004c553
mov ecx, dword [ecx + 0x1460]
push edx
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [esi]
mov eax, dword [ebx]
mov dword [eax + ecx*4 + 0x1468], 0
mov ecx, dword [ebx]
inc dword [ecx + 0x360cc]
mov eax, dword [ecx + 0x360c4]
mov byte [eax + 0x10], 0
mov eax, dword [ecx + 0x360c4]
mov eax, dword [eax + 0x14]
mov dword [ecx + 0x360c4], eax
jmp 0x1004c160
call edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 5
mov dword [esp + 0x1c], 0
call fcn.100493d0
jmp 0x1004c0f4
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 5
mov dword [esp + 0x24], 0
call fcn.100493d0
jmp 0x1004c0f4