Function at 0x494ae0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c64f7
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x62b768]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edi, eax
mov eax, dword [esi + 0x770]
mov ebx, edi
sub ebx, eax
test eax, eax
je 0x494b27
cmp edi, eax
jae 0x494b3e
call fcn.00569587
cdq
mov ecx, 0x12c
idiv ecx
mov eax, edi
sub eax, edx
mov dword [esi + 0x770], eax
cmp ebx, 0x12c
jbe 0x494d42
mov dword [esi + 0x770], edi
xor ebx, ebx
xor edx, edx
lea edi, [esi + 0x108]
nop word [eax + eax]
xor esi, esi
mov ecx, edi
mov eax, dword [ecx]
cmp eax, dword [ecx + 0x330]
jge 0x494b7d
lea eax, [edx + esi]
imul eax, eax, 0x64
cmp byte [eax + str.Ghost], 0
jne 0x494ba9
inc esi
add ecx, 4
cmp esi, 6
jl 0x494b64
add edx, 6
inc ebx
add edi, 0x18
cmp edx, 0xcc
jl 0x494b60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x18]
lea eax, [ebx + ebx*2]
lea eax, [esi + eax*2]
imul eax, eax, 0x64
mov dword [ebp - 0x20], eax
lea eax, [ebx + 0xb]
lea eax, [eax + eax*2]
lea eax, [esi + eax*2]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x24], eax
jmp 0x494bd3
mov ecx, dword [ebp - 0x18]
mov edi, dword [ecx]
call fcn.00569587
cdq
mov ecx, 3
idiv ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov eax, dword [eax + 0x61f878]
add eax, 4
add eax, edx
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + ebx]
add eax, dword [ecx]
mov ecx, dword [ebp - 0x18]
push eax
call dword [edi + 0x18]
push dword [ebp - 0x14]
mov edi, dword [ebp + 8]
mov ecx, edi
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], 1
call fcn.004f8640
cmp eax, 5
jg 0x494c29
cmp eax, 1
jge 0x494c30
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov edx, dword [edi]
push ecx
push eax
push ecx
push eax
mov ecx, edi
call dword [edx + 0x20]
neg eax
sbb eax, eax
test dword [ebp - 0x1c], eax
je 0x494bd0
push 0x2c4
call fcn.00559eaa
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x494c77
push 0
push dword [ebp - 0x18]
mov ecx, eax
push esi
push ebx
call fcn.00496ed0
mov esi, eax
jmp 0x494c79
xor esi, esi
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x108], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x10c], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x110], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x114], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x228], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x22c], eax
mov ecx, dword [edi + 0x118]
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.00515fc0
mov ecx, esi
mov byte [ebp - 0x34], 0x18
mov dword [ebp - 0x33], esi
call fcn.0044ce90
mov byte [ebp - 0x2f], al
mov ecx, edi
movzx eax, word [esi + 0x220]
mov word [ebp - 0x2e], ax
movzx eax, word [esi + 0x224]
mov word [ebp - 0x2c], ax
call fcn.0044ce90
cmp eax, 1
jne 0x494d0f
xor al, al
mov ecx, 1
mov byte [ebp - 0x2a], al
cmp byte [esi + 0x1dc], 0
movzx eax, al
cmove eax, ecx
mov byte [ebp - 0x2a], al
movzx eax, byte [esi + 0x108]
mov ecx, edi
mov byte [ebp - 0x29], al
movzx eax, byte [esi + 0x10c]
push 0
push 5
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x34]
push eax
push 0xd
push dword [esi + 0x10c]
push dword [esi + 0x108]
push 0
call fcn.0052c790
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4