Function at 0x490b70
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c2887
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x6287a8]
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 0x490bb7
cmp edi, eax
jae 0x490bce
call fcn.00565b3a
cdq
mov ecx, 0x12c
idiv ecx
mov eax, edi
sub eax, edx
mov dword [esi + 0x770], eax
cmp ebx, 0x12c
jbe 0x490dd2
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 0x490c0d
lea eax, [edx + esi]
imul eax, eax, 0x64
cmp byte [eax + str.Ghost], 0
jne 0x490c39
inc esi
add ecx, 4
cmp esi, 6
jl 0x490bf4
add edx, 6
inc ebx
add edi, 0x18
cmp edx, 0xcc
jl 0x490bf0
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 0x490c63
mov ecx, dword [ebp - 0x18]
mov edi, dword [ecx]
call fcn.00565b3a
cdq
mov ecx, 3
idiv ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov eax, dword [eax + 0x61c8c0]
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.004f5070
cmp eax, 5
jg 0x490cb9
cmp eax, 1
jge 0x490cc0
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 0x490c60
push 0x2c8
call fcn.0055644a
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x490d07
push 0
push dword [ebp - 0x18]
mov ecx, eax
push esi
push ebx
call fcn.00492f60
mov esi, eax
jmp 0x490d09
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.005155c0
mov ecx, esi
mov byte [ebp - 0x34], 0x18
mov dword [ebp - 0x33], esi
call fcn.0044c8d0
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.0044c8d0
cmp eax, 1
jne 0x490d9f
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.0052acd0
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