Function at 0x490eb0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c28c7
mov eax, dword fs:[0]
push eax
sub esp, 0x24
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 ebx, ecx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.WINMM.dll_timeGetTime]
mov esi, eax
mov eax, dword [ebx + 0x770]
mov edi, esi
sub edi, eax
test eax, eax
je 0x490ef7
cmp esi, eax
jae 0x490f0e
call fcn.00565b3a
cdq
mov ecx, 0x7d0
idiv ecx
mov eax, esi
sub eax, edx
mov dword [ebx + 0x770], eax
cmp edi, 0x7d0
jbe 0x491197
mov dword [ebx + 0x770], esi
mov eax, dword [0x62ca90]
mov eax, dword [eax + 0x64]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5cf230]
cvtpd2ps xmm1, xmm0
movss xmm0, dword [0x5d4150]
comiss xmm0, xmm1
ja 0x491197
comiss xmm1, dword [0x5d4154]
ja 0x491197
mov edi, dword [ebp - 0x1c]
xor ebx, ebx
xor edx, edx
mov dword [ebp - 0x18], ebx
add edi, 0x108
nop
xor esi, esi
mov ecx, edi
mov dword [ebp - 0x14], esi
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [ecx + 0x330]
jge 0x490f99
lea eax, [edx + esi]
imul eax, eax, 0x64
cmp byte [eax + str.Ghost], 0
jne 0x490fcb
inc esi
add ecx, 4
mov dword [ebp - 0x14], esi
cmp esi, 6
jl 0x490f80
inc ebx
add edx, 6
add edi, 0x18
mov dword [ebp - 0x18], ebx
cmp edx, 0xcc
jl 0x490f70
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
lea eax, [ebx + ebx*2]
mov ebx, dword [ebp + 8]
lea eax, [esi + eax*2]
imul eax, eax, 0x64
mov dword [ebp - 0x10], eax
mov esi, eax
nop dword [eax]
call fcn.00565b3a
xorps xmm0, xmm0
xorps xmm1, xmm1
cvtsi2ss xmm0, eax
mulss xmm0, dword [0x5d0078]
divss xmm0, dword [0x5d3e8c]
addss xmm0, xmm1
movss dword [ebp - 0x10], xmm0
call fcn.00565b3a
xorps xmm0, xmm0
cvtsi2ss xmm0, eax
divss xmm0, dword [0x5d3e8c]
addss xmm0, dword [0x5d0048]
movss dword [ebp - 0x20], xmm0
movss xmm0, dword [ebp - 0x10]
cvtps2pd xmm0, xmm0
call fcn.00594c30
movaps xmm1, xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, dword [esi + 0x61c8c0]
mulsd xmm1, xmm0
movss xmm0, dword [ebp - 0x20]
cvtps2pd xmm0, xmm0
mulsd xmm1, xmm0
addsd xmm1, qword [0x5d4268]
cvttsd2si edi, xmm1
call fcn.00565b3a
xorps xmm0, xmm0
cvtsi2ss xmm0, eax
divss xmm0, dword [0x5d3e8c]
addss xmm0, dword [0x5d0048]
movss dword [ebp - 0x20], xmm0
movss xmm0, dword [ebp - 0x10]
cvtps2pd xmm0, xmm0
call fcn.00594a70
xorps xmm1, xmm1
mov eax, dword [ebx]
cvtsi2sd xmm1, dword [esi + 0x61c8c0]
mulsd xmm0, xmm1
movss xmm1, dword [ebp - 0x20]
cvtps2pd xmm1, xmm1
mulsd xmm0, xmm1
addsd xmm0, qword [0x5d4268]
cvttsd2si ecx, xmm0
push ecx
push edi
push ecx
mov dword [ebp - 0x20], ecx
mov ecx, ebx
push edi
call dword [eax + 0x20]
test eax, eax
je 0x490fe0
push 0x2c8
call fcn.0055644a
add esp, 4
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 4], 0
test eax, eax
je 0x4910fe
push 0
push dword [ebp - 0x1c]
mov ecx, eax
push esi
push ebx
call fcn.00492f60
mov esi, eax
jmp 0x491100
xor esi, esi
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x108], edi
mov dword [esi + 0x110], edi
mov dword [esi + 0x228], edi
mov edi, dword [ebp + 8]
mov dword [esi + 0x10c], eax
mov dword [esi + 0x114], eax
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 - 0x30], 0x18
mov dword [ebp - 0x2f], esi
call fcn.0044c8d0
mov byte [ebp - 0x2b], al
mov ecx, edi
movzx eax, word [esi + 0x220]
mov word [ebp - 0x2a], ax
movzx eax, word [esi + 0x224]
mov word [ebp - 0x28], ax
movzx eax, byte [esi + 0x108]
mov byte [ebp - 0x25], al
movzx eax, byte [esi + 0x10c]
push 0
push 5
mov byte [ebp - 0x24], al
lea eax, [ebp - 0x30]
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