Function at 0x494f90
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c4e33
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x62a780]
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 0x494fd7
cmp esi, eax
jae 0x494fee
call fcn.00567e12
cdq
mov ecx, 0x1e
idiv ecx
mov eax, esi
sub eax, edx
mov dword [ebx + 0x770], eax
cmp edi, 0x96
jbe 0x495794
lea eax, [ebx + 0x108]
mov dword [ebx + 0x770], esi
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
xor ebx, ebx
mov dword [ebp - 0x1c], eax
nop word [eax + eax]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax]
cmp eax, dword [ecx + 0x330]
jge 0x495152
lea eax, [edi + ebx]
imul eax, eax, 0x64
mov dword [ebp + 8], eax
cmp byte [eax + str.Ghost], 0
je 0x495152
test byte [eax + 0x61e868], 0x1e
je 0x495062
mov ecx, esi
call fcn.0044cd10
test eax, eax
je 0x495194
mov eax, dword [ebp + 8]
test byte [eax + 0x61e868], 0x20
je 0x495087
mov ecx, esi
call fcn.0044cd10
cmp eax, 4
jne 0x495084
cmp dword [esi + 0x134], 0
je 0x495373
mov eax, dword [ebp + 8]
test byte [eax + 0x61e868], 0x40
je 0x4950a9
mov ecx, esi
call fcn.0044cd10
cmp eax, 4
jne 0x4950a9
cmp dword [esi + 0x134], 1
je 0x49549f
lea eax, [edi + ebx]
imul eax, eax, 0x64
test byte [eax + 0x61e868], 0x80
je 0x4950d1
mov ecx, esi
call fcn.0044cd10
cmp eax, 4
jne 0x4950d1
cmp dword [esi + 0x134], 2
je 0x49553e
lea eax, [edi + ebx]
imul eax, eax, 0x64
test dword [eax + 0x61e868], 0x100
je 0x4950fc
mov ecx, esi
call fcn.0044cd10
cmp eax, 2
jne 0x4950fc
cmp dword [esi + 0x134], 3
je 0x49559f
lea eax, [edi + ebx]
imul eax, eax, 0x64
test dword [eax + 0x61e868], 0x400
je 0x495127
mov ecx, esi
call fcn.0044cd10
cmp eax, 2
jne 0x495127
cmp dword [esi + 0x134], 4
je 0x495600
lea eax, [edi + ebx]
imul eax, eax, 0x64
test dword [eax + 0x61e868], 0x800
je 0x495152
mov ecx, esi
call fcn.0044cd10
cmp eax, 2
jne 0x495152
cmp dword [esi + 0x134], 5
je 0x495661
mov eax, dword [ebp - 0x1c]
inc ebx
add eax, 4
mov dword [ebp - 0x1c], eax
cmp ebx, 6
jl 0x495020
mov eax, dword [ebp - 0x18]
add edi, 6
inc dword [ebp - 0x14]
add eax, 0x18
mov dword [ebp - 0x18], eax
cmp edi, 0xcc
jl 0x495015
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 - 0x14]
lea eax, [ecx + ecx*2]
lea eax, [ebx + eax*2]
imul eax, eax, 0x64
add ecx, 0xb
mov dword [ebp + 8], eax
lea eax, [ecx + ecx*2]
mov ecx, dword [ebp - 0x10]
lea eax, [ebx + eax*2]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x20], eax
jmp 0x4951c3
mov ecx, dword [ebp - 0x10]
mov edi, dword [ecx]
call fcn.00567e12
cdq
mov ecx, 3
idiv ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
mov eax, dword [eax + 0x61e860]
add eax, 4
add eax, edx
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
add eax, ebx
add eax, dword [ecx]
mov ecx, dword [ebp - 0x10]
push eax
call dword [edi + 0x18]
push dword [ebp - 0x1c]
mov ecx, esi
mov edi, 1
push dword [ebp - 0x18]
call fcn.004f6f70
lea ecx, [eax - 2]
cmp ecx, 5
ja 0x495271
cmp eax, 2
jne 0x495225
mov eax, dword [ebp + 8]
test byte [eax + 0x61e868], 2
jmp 0x49526f
cmp eax, 3
je 0x495219
cmp eax, 4
jne 0x49523e
mov eax, dword [ebp + 8]
test dword [eax + 0x61e868], 0x200
jmp 0x49526f
cmp eax, 5
jne 0x49524f
mov eax, dword [ebp + 8]
test byte [eax + 0x61e868], 0x10
jmp 0x49526f
cmp eax, 6
jne 0x495260
mov eax, dword [ebp + 8]
test byte [eax + 0x61e868], 8
jmp 0x49526f
cmp eax, 7
jne 0x495273
mov eax, dword [ebp + 8]
test byte [eax + 0x61e868], 4
jne 0x495273
xor edi, edi
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov edx, dword [esi]
push ecx
push eax
push ecx
push eax
mov ecx, esi
call dword [edx + 0x20]
neg eax
sbb eax, eax
test edi, eax
je 0x4951c0
push 0x2c4
call fcn.00558629
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4952bf
push 0
push dword [ebp - 0x10]
mov ecx, eax
push ebx
push dword [ebp - 0x14]
call fcn.00496950
mov edi, eax
jmp 0x4952c1
xor edi, edi
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x108], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x10c], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x110], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x114], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x228], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x22c], eax
mov ecx, dword [esi + 0x118]
push edi
mov dword [ebp - 4], 0xffffffff
call fcn.00513bc0
mov ecx, edi
mov byte [ebp - 0x30], 0x18
mov dword [ebp - 0x2f], edi
call fcn.0044cd10
mov byte [ebp - 0x2b], al
mov ecx, esi
movzx eax, word [edi + 0x220]
mov word [ebp - 0x2a], ax
movzx eax, word [edi + 0x224]
mov word [ebp - 0x28], ax
call fcn.0044cd10
cmp eax, 1
jne 0x495357
xor al, al
mov ecx, 1
mov byte [ebp - 0x26], al
cmp byte [edi + 0x1dc], 0
movzx eax, al
cmove eax, ecx
mov byte [ebp - 0x26], al
movzx eax, byte [edi + 0x108]
mov byte [ebp - 0x25], al
movzx eax, byte [edi + 0x10c]
mov byte [ebp - 0x24], al
lea eax, [ebp - 0x30]
jmp 0x495778
mov edi, 0x3c
call fcn.00567e12
cdq
idiv edi
add edx, 2
mov dword [ebp + 8], edx
call fcn.00567e12
cdq
idiv edi
mov ecx, dword [ebp + 8]
mov eax, edx
mov dword [ebp - 0x20], eax
lea edx, [eax + 2]
mov eax, dword [esi]
push edx
push ecx
push edx
push ecx
mov ecx, esi
mov dword [ebp - 0x1c], edx
call dword [eax + 0x20]
neg eax
sbb ecx, ecx
mov eax, dword [ebp + 8]
neg ecx
cmp eax, 1
jle 0x4953bd
xor edx, edx
cmp eax, 6
cmovl ecx, edx
mov eax, 3
cmp eax, dword [ebp - 0x20]
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xb
jne 0x4953fc
cmp ebx, 1
jne 0x495406
mov edi, dword [ebp - 0x10]
mov eax, dword [edi + 0x214]
sub eax, 0
je 0x495420
sub eax, ebx
je 0x495410
sub eax, ebx
jne 0x495420
mov dword [ebp + 8], 0x3e
mov dword [ebp - 0x1c], 4
jmp 0x495441
cmp ecx, 0x10
jne 0x495406
cmp ebx, 1
je 0x495430
test eax, eax
je 0x495378
jmp 0x49543e
mov dword [ebp + 8], 0x3d
mov dword [ebp - 0x1c], 5
jmp 0x495441
mov dword [ebp + 8], 0x3e
mov dword [ebp - 0x1c], 6
jmp 0x495441
mov dword [ebp + 8], 0x3e
mov dword [ebp - 0x1c], 3
mov edi, dword [ebp - 0x10]
push 0x2c4
call fcn.00558629
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x49546e
push 0
push edi
push ebx
push dword [ebp - 0x14]
mov ecx, eax
call fcn.00496950
mov edi, eax
jmp 0x495470
xor edi, edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov dword [edi + 0x108], eax
mov dword [edi + 0x10c], ecx
mov dword [edi + 0x110], eax
mov dword [edi + 0x114], ecx
mov dword [edi + 0x228], eax
mov dword [edi + 0x22c], ecx
jmp 0x4952f7
mov edi, 0x3c
call fcn.00567e12
cdq
idiv edi
add edx, 2
mov dword [ebp + 8], edx
call fcn.00567e12
cdq
idiv edi
mov eax, dword [esi]
lea ecx, [edx + 2]
mov edx, dword [ebp + 8]
push ecx
push edx
push ecx
mov dword [ebp - 0x1c], ecx
mov ecx, esi
push edx
call dword [eax + 0x20]
neg eax
sbb eax, eax
neg eax
cmp dword [ebp + 8], 4
jne 0x4954e0
cmp dword [ebp - 0x1c], 4
je 0x4954a4
test eax, eax
je 0x4954a4
push 0x2c4
call fcn.00558629
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x495513
push 0
push dword [ebp - 0x10]
mov ecx, eax
push ebx
push dword [ebp - 0x14]
call fcn.00496950
mov edi, eax
jmp 0x495515
xor edi, edi
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x108], ecx
mov dword [edi + 0x10c], eax
mov dword [edi + 0x110], ecx
mov dword [edi + 0x114], eax
mov dword [edi + 0x228], ecx
jmp 0x4952f1
mov edi, 0x3c
call fcn.00567e12
cdq
idiv edi
add edx, 2
mov dword [ebp + 8], edx
call fcn.00567e12
cdq
idiv edi
mov eax, dword [esi]
lea ecx, [edx + 2]
mov edx, dword [ebp + 8]
push ecx
push edx
push ecx
mov dword [ebp - 0x1c], ecx
mov ecx, esi
push edx
call dword [eax + 0x20]
neg eax
sbb eax, eax
neg eax
cmp dword [ebp + 8], 4
jne 0x49557f
cmp dword [ebp - 0x1c], 4
je 0x495543
test eax, eax
je 0x495543
push 0x2c4
call fcn.00558629
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 3
jmp 0x4954fb
mov edi, 0x3c
call fcn.00567e12
cdq
idiv edi
add edx, 2
mov dword [ebp + 8], edx
call fcn.00567e12
cdq
idiv edi
mov eax, dword [esi]
lea ecx, [edx + 2]
mov edx, dword [ebp + 8]
push ecx
push edx
push ecx
mov dword [ebp - 0x1c], ecx
mov ecx, esi
push edx
call dword [eax + 0x20]
neg eax
sbb eax, eax
neg eax
cmp dword [ebp + 8], 4
jne 0x4955e0
cmp dword [ebp - 0x1c], 4
je 0x4955a4
test eax, eax
je 0x4955a4
push 0x2c4
call fcn.00558629
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 4
jmp 0x4954fb
mov edi, 0x3c
call fcn.00567e12
cdq
idiv edi
add edx, 2
mov dword [ebp + 8], edx
call fcn.00567e12
cdq
idiv edi
mov eax, dword [esi]
lea ecx, [edx + 2]
mov edx, dword [ebp + 8]
push ecx
push edx
push ecx
mov dword [ebp - 0x1c], ecx
mov ecx, esi
push edx
call dword [eax + 0x20]
neg eax
sbb eax, eax
neg eax
cmp dword [ebp + 8], 4
jne 0x495641
cmp dword [ebp - 0x1c], 4
je 0x495605
test eax, eax
je 0x495605
push 0x2c4
call fcn.00558629
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 5
jmp 0x4954fb
mov edi, 0x3c
call fcn.00567e12
cdq
idiv edi
add edx, 2
mov dword [ebp + 8], edx
call fcn.00567e12
cdq
idiv edi
mov eax, dword [esi]
lea ecx, [edx + 2]
mov edx, dword [ebp + 8]
push ecx
push edx
push ecx
mov dword [ebp - 0x1c], ecx
mov ecx, esi
push edx
call dword [eax + 0x20]
neg eax
sbb eax, eax
neg eax
cmp dword [ebp + 8], 4
jne 0x4956a2
cmp dword [ebp - 0x1c], 4
je 0x495666
test eax, eax
je 0x495666
push 0x2c4
call fcn.00558629
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 6
test eax, eax
je 0x4956d5
push 0
push dword [ebp - 0x10]
mov ecx, eax
push ebx
push dword [ebp - 0x14]
call fcn.00496950
mov edi, eax
jmp 0x4956d7
xor edi, edi
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x108], ecx
mov dword [edi + 0x10c], eax
mov dword [edi + 0x110], ecx
mov dword [edi + 0x114], eax
mov dword [edi + 0x228], ecx
mov dword [edi + 0x22c], eax
mov ecx, dword [esi + 0x118]
push edi
mov dword [ebp - 4], 0xffffffff
call fcn.00513bc0
mov ecx, edi
mov byte [ebp - 0x40], 0x18
mov dword [ebp - 0x3f], edi
call fcn.0044cd10
mov byte [ebp - 0x3b], al
mov ecx, esi
movzx eax, word [edi + 0x220]
mov word [ebp - 0x3a], ax
movzx eax, word [edi + 0x224]
mov word [ebp - 0x38], ax
call fcn.0044cd10
cmp eax, 1
jne 0x495761
xor al, al
mov ecx, 1
mov byte [ebp - 0x36], al
cmp byte [edi + 0x1dc], 0
movzx eax, al
cmove eax, ecx
mov byte [ebp - 0x36], al
movzx eax, byte [edi + 0x108]
mov byte [ebp - 0x35], al
movzx eax, byte [edi + 0x10c]
mov byte [ebp - 0x34], al
lea eax, [ebp - 0x40]
push 0
push 5
push eax
push 0xd
push dword [edi + 0x10c]
mov ecx, esi
push dword [edi + 0x108]
push 0
call fcn.0052a350
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