Function at 0x49e2b0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5af704
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x616798]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], 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 0x49e2f7
cmp esi, eax
jae 0x49e30e
call fcn.005619b8
cdq
mov ecx, 0x12c
idiv ecx
mov eax, esi
sub eax, edx
mov dword [ebx + 0x770], eax
cmp edi, 0x12c
jbe 0x49e75b
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x770], esi
xor ebx, ebx
add eax, 0x108
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], eax
xor esi, esi
mov edi, eax
nop dword [eax + eax]
mov eax, dword [edi]
cmp eax, dword [edi + 0x330]
jge 0x49e3a1
lea eax, [ebx + esi]
imul ebx, eax, 0x64
cmp byte [ebx + str.Ghost], 0
je 0x49e39e
mov eax, dword [ebx + 0x60a938]
cmp eax, 1
je 0x49e379
cmp eax, 0x20
je 0x49e379
test eax, eax
je 0x49e379
mov ecx, dword [ebp + 8]
call fcn.0044c2c0
test eax, eax
je 0x49e3dc
test byte [ebx + 0x60a938], 0x20
je 0x49e39e
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.0044c2c0
cmp eax, 4
jne 0x49e39e
cmp dword [ebx + 0x134], 0
je 0x49e5a4
mov ebx, dword [ebp - 0x14]
inc esi
add edi, 4
cmp esi, 6
jl 0x49e340
mov eax, dword [ebp - 0x1c]
add ebx, 6
inc dword [ebp - 0x18]
add eax, 0x18
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], ebx
cmp ebx, 0xcc
jl 0x49e337
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]
mov ebx, dword [ebp + 8]
lea eax, [ecx + ecx*2]
lea eax, [esi + eax*2]
imul eax, eax, 0x64
add ecx, 0xb
mov dword [ebp - 0x14], eax
lea eax, [ecx + ecx*2]
mov ecx, dword [ebp - 0x10]
lea eax, [esi + eax*2]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x20], eax
jmp 0x49e405
mov ecx, dword [ebp - 0x10]
mov edi, dword [ecx]
call fcn.005619b8
cdq
mov ecx, 3
idiv ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
mov eax, dword [eax + 0x60a930]
add eax, 4
add eax, edx
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 0x18]
add eax, esi
add eax, dword [ecx]
mov ecx, dword [ebp - 0x10]
push eax
call dword [edi + 0x18]
push dword [ebp - 0x1c]
mov ecx, ebx
mov edi, 1
push dword [ebp + 8]
call fcn.004f5390
lea ecx, [eax - 1]
cmp ecx, 4
ja 0x49e49e
cmp eax, edi
jne 0x49e466
mov eax, dword [ebp - 0x14]
test byte [eax + 0x60a938], 2
jmp 0x49e49c
cmp eax, 2
je 0x49e45a
cmp eax, 3
jne 0x49e47c
mov eax, dword [ebp - 0x14]
test byte [eax + 0x60a938], 0x10
jmp 0x49e49c
cmp eax, 4
jne 0x49e48d
mov eax, dword [ebp - 0x14]
test byte [eax + 0x60a938], 8
jmp 0x49e49c
cmp eax, 5
jne 0x49e4a0
mov eax, dword [ebp - 0x14]
test byte [eax + 0x60a938], 4
jne 0x49e4a0
xor edi, edi
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov edx, dword [ebx]
push ecx
push eax
push ecx
push eax
mov ecx, ebx
call dword [edx + 0x20]
test eax, eax
je 0x49e402
test edi, edi
je 0x49e402
push 0x2c8
call fcn.00554883
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x49e4f0
push 0
push dword [ebp - 0x10]
mov ecx, eax
push esi
push dword [ebp - 0x18]
call fcn.004955d0
mov esi, eax
jmp 0x49e4f2
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [esi + 0x108], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x10c], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x110], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x114], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x228], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x22c], eax
mov ecx, dword [ebx + 0x118]
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.00515a10
mov ecx, esi
mov byte [ebp - 0x30], 0x18
mov dword [ebp - 0x2f], esi
call fcn.0044c2c0
mov byte [ebp - 0x2b], al
mov ecx, ebx
movzx eax, word [esi + 0x220]
mov word [ebp - 0x2a], ax
movzx eax, word [esi + 0x224]
mov word [ebp - 0x28], ax
call fcn.0044c2c0
cmp eax, 1
jne 0x49e588
xor al, al
mov ecx, 1
mov byte [ebp - 0x26], al
cmp byte [esi + 0x1dc], 0
movzx eax, al
cmove eax, ecx
mov byte [ebp - 0x26], al
movzx eax, byte [esi + 0x108]
mov byte [ebp - 0x25], al
movzx eax, byte [esi + 0x10c]
mov byte [ebp - 0x24], al
lea eax, [ebp - 0x30]
jmp 0x49e73f
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x20], 3
nop
call fcn.005619b8
cdq
mov ecx, 0x3c
idiv ecx
lea eax, [edx + 2]
mov dword [ebp + 8], eax
call fcn.005619b8
cdq
mov ecx, 0x3c
idiv ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ebx]
add edx, 2
push edx
push ecx
push edx
push ecx
mov ecx, ebx
mov dword [ebp - 0x18], edx
call dword [eax + 0x20]
mov ecx, dword [ebp + 8]
neg eax
mov edx, dword [ebp - 0x18]
sbb eax, eax
add ecx, 0xfffffffe
and eax, 1
add edx, 0xfffffffe
cmp dword [ebp - 0x20], ecx
sbb ecx, ecx
and ecx, eax
mov eax, 3
cmp eax, edx
sbb eax, eax
and eax, ecx
cmp edi, 0xb
jne 0x49e634
cmp esi, 1
jne 0x49e63e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x214]
sub eax, esi
je 0x49e651
mov dword [ebp + 8], 0x3e
sub eax, esi
je 0x49e648
mov dword [ebp - 0x18], 6
jmp 0x49e66f
cmp edi, 0x10
jne 0x49e63e
cmp esi, 1
je 0x49e661
test eax, eax
je 0x49e5b0
jmp 0x49e66f
mov dword [ebp - 0x18], 4
jmp 0x49e66f
mov dword [ebp + 8], 0x3d
mov dword [ebp - 0x18], 5
jmp 0x49e66f
mov dword [ebp + 8], 0x3e
mov dword [ebp - 0x18], 3
push 0x2c8
call fcn.00554883
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x49e69c
push 0
push dword [ebp - 0x10]
mov ecx, eax
push esi
push edi
call fcn.004955d0
mov esi, eax
jmp 0x49e69e
xor esi, esi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [esi + 0x108], eax
mov dword [esi + 0x10c], ecx
mov dword [esi + 0x110], eax
mov dword [esi + 0x114], ecx
mov dword [esi + 0x228], eax
mov dword [esi + 0x22c], ecx
mov ecx, dword [ebx + 0x118]
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.00515a10
mov ecx, esi
mov byte [ebp - 0x40], 0x18
mov dword [ebp - 0x3f], esi
call fcn.0044c2c0
mov byte [ebp - 0x3b], al
mov ecx, ebx
movzx eax, word [esi + 0x220]
mov word [ebp - 0x3a], ax
movzx eax, word [esi + 0x224]
mov word [ebp - 0x38], ax
call fcn.0044c2c0
cmp eax, 1
jne 0x49e728
xor al, al
mov ecx, 1
mov byte [ebp - 0x36], al
cmp byte [esi + 0x1dc], 0
movzx eax, al
cmove eax, ecx
mov byte [ebp - 0x36], al
movzx eax, byte [esi + 0x108]
mov byte [ebp - 0x35], al
movzx eax, byte [esi + 0x10c]
mov byte [ebp - 0x34], al
lea eax, [ebp - 0x40]
push 0
push 5
push eax
push 0xd
push dword [esi + 0x10c]
mov ecx, ebx
push dword [esi + 0x108]
push 0
call fcn.0052c140
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