Function at 0x4bb160
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6568c3
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x6af168]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebx
push esi
push edi
mov eax, dword [0x6af168]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov eax, dword [ecx + 0xac]
mov edx, dword [ecx + 0x8c]
mov esi, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov eax, dword [edx + 0x7f4]
cmp eax, 3
sete dl
cmp eax, 4
sete al
test dl, dl
mov dword [esp + 0x24], ecx
mov byte [esp + 0x1e], dl
mov byte [esp + 0x1f], al
jne 0x4bb1de
test al, al
mov byte [esp + 0x13], 1
je 0x4bb1e3
mov byte [esp + 0x13], 0
lea edi, [ecx + 0xbc]
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], edi
mov ebx, dword [edi - 8]
lea eax, [edi - 8]
push 0
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], eax
call fcn.005029b0
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call fcn.00525260
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x38]
mov eax, dword [ebx + 0x34]
add ecx, 0x14
push ecx
mov ecx, dword [ebx + 0x30]
add edx, 0x14
push edx
sub eax, 0xa
push eax
sub ecx, 0xa
push ecx
mov eax, esi
call fcn.005252f0
mov eax, dword [edi - 4]
test eax, eax
mov dword [esp + 0x44], eax
je 0x4bb365
cmp dword [edi], 0
jne 0x4bb257
mov dword [esp + 0x18], 0
jmp 0x4bb283
mov eax, dword [esp + 0x18]
call fcn.004b9d50
test al, al
je 0x4bb26e
mov dword [esp + 0x18], 0xff
jmp 0x4bb283
fld qword [ebx + 0x108]
fmul qword [0x686838]
call fcn.0062a660
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x38]
sub eax, 0xc8
cdq
sub eax, edx
mov edi, eax
mov eax, dword [ebx + 0x3c]
sub eax, 0xb1
cdq
sub eax, edx
sar edi, 1
add edi, dword [ebx + 0x30]
sar eax, 1
add eax, dword [ebx + 0x34]
cmp dword [esp + 0x18], 0xff
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], eax
jge 0x4bb2d2
push 0xb1
push 0xc8
push eax
push edi
mov edi, dword [esp + 0x54]
mov eax, esi
call fcn.00526180
mov edi, dword [esp + 0x30]
cmp dword [esp + 0x18], 0
jle 0x4bb323
mov edx, dword [esp + 0x14]
cmp dword [edx], 0
je 0x4bb323
mov cl, 1
mov eax, esi
call fcn.005252b0
mov eax, dword [esp + 0x18]
push eax
mov ecx, 0xffffff
lea eax, [esp + 0x4c]
call fcn.005029f0
push eax
mov ecx, esi
call fcn.00525260
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push ecx
push edi
push eax
mov ecx, esi
call fcn.00525c50
xor cl, cl
mov eax, esi
call fcn.005252b0
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push ecx
call fcn.004bb970
test al, al
jne 0x4bb361
mov ecx, dword [0x6b8a28]
mov eax, dword [ebx + 0x3c]
sub eax, dword [ecx + 0x28]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebx + 0x34]
push eax
mov eax, dword [ebx + 0x38]
sub eax, dword [ecx + 0x24]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebx + 0x30]
push eax
push ecx
mov ecx, esi
call fcn.00525c50
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
add eax, 1
add edi, 0x18
cmp eax, 5
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], edi
jl 0x4bb1f5
mov edx, dword [0x6b8594]
push 0
push 0
push edx
mov ecx, esi
call fcn.00525c50
mov ebx, dword [esp + 0x24]
add ebx, 0xc4
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], ebx
jmp 0x4bb3b0
cmp dword [ebx], 0
mov edi, dword [ebx - 0x10]
lea eax, [ebx - 0x10]
je 0x4bb4a4
call fcn.004b9d50
neg al
lea ecx, [esp + 0x34]
sbb eax, eax
and eax, 0x6c2dec
add eax, 0x93c814
push eax
call fcn.005029b0
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call fcn.00525260
mov ecx, dword [0x6b85f4]
mov eax, esi
call fcn.00525250
mov eax, dword [ebx]
xor ebx, ebx
push 0xffffffffffffffff
add eax, 0x38
push ebx
push eax
lea ecx, [esp + 0x9c]
mov dword [esp + 0xb4], 0xf
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
call fcn.00401d10
mov eax, esi
mov dword [esp + 0xd8], ebx
call fcn.00525240
mov edx, dword [eax]
mov edx, dword [edx + 0x1c]
lea ecx, [esp + 0x90]
push ecx
mov ecx, eax
call edx
mov ebx, eax
mov eax, esi
call fcn.00525240
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi + 0x34]
lea edx, [eax + ecx + 0x1a]
mov eax, dword [edi + 0x38]
sub eax, ebx
push edx
cdq
sub eax, edx
sar eax, 1
add eax, dword [edi + 0x30]
mov ecx, esi
push eax
lea eax, [esp + 0x98]
push eax
call fcn.00525c20
mov dword [esp + 0xd8], 0xffffffff
cmp dword [esp + 0xa8], 0x10
jb 0x4bb4a0
mov ecx, dword [esp + 0x94]
push ecx
call fcn.0062493b
add esp, 4
mov ebx, dword [esp + 0x14]
fldz
fcomp qword [edi + 0x108]
fnstsw ax
test ah, 5
jp 0x4bb53f
mov ebx, dword [edi + 0x30]
mov edx, dword [edi + 0x34]
mov cl, 1
mov eax, esi
add ebx, 4
mov dword [esp + 0x2c], edx
call fcn.005252b0
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
call fcn.004bb970
fld qword [edi + 0x108]
test al, al
je 0x4bb4fc
fmul qword [0x686838]
call fcn.0062a660
push eax
mov ecx, 0xffffff
lea eax, [esp + 0x4c]
jmp 0x4bb511
fmul qword [0x6875b8]
call fcn.0062a660
push eax
mov ecx, 0x666666
lea eax, [esp + 0x5c]
call fcn.005029f0
push eax
mov ecx, esi
call fcn.00525260
mov ecx, dword [esp + 0x2c]
mov edx, dword [0x6b890c]
push ecx
push ebx
push edx
mov ecx, esi
call fcn.00525c50
xor cl, cl
mov eax, esi
call fcn.005252b0
mov ebx, dword [esp + 0x14]
cmp byte [ebx + 4], 0
je 0x4bb56e
cmp byte [esp + 0x13], 0
je 0x4bb56e
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x30]
mov edx, dword [0x6b853c]
lea ecx, [eax + ecx - 0x3c]
mov eax, dword [edi + 0x34]
add eax, 0xb1
push eax
push ecx
push edx
mov ecx, esi
call fcn.00525c50
cmp byte [ebx + 5], 0
je 0x4bb5a1
cmp byte [esp + 0x13], 0
je 0x4bb5a1
mov ecx, dword [edi + 0x30]
mov eax, dword [edi + 0x38]
mov edi, dword [edi + 0x34]
mov edx, dword [0x6b866c]
add edi, 0xb1
lea eax, [eax + ecx - 0xe1]
push edi
push eax
push edx
mov ecx, esi
call fcn.00525c50
mov eax, dword [esp + 0x20]
add eax, 1
add ebx, 0x18
cmp eax, 5
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ebx
jl 0x4bb3b0
mov eax, dword [0x6b8600]
push 0x20c
push 0xf
push eax
mov ecx, esi
call fcn.00525c50
mov ebx, dword [esp + 0x24]
mov ecx, dword [ebx + 0x134]
cmp byte [ecx + 0x54], 0
je 0x4bb5f8
mov edx, dword [0x6b8a8c]
push 0x1fc
push 0x2bf
push edx
mov ecx, esi
call fcn.00525c50
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], 0
mov byte [esp + 0x78], 0
mov dword [esp + 0xd8], 1
mov ecx, dword [0x6b8504]
mov eax, esi
call fcn.00525250
push 0xb6ffff
lea ecx, [esp + 0x38]
call fcn.005029b0
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call fcn.00525260
cmp byte [esp + 0x1e], 0
je 0x4bb655
push 0xf
push str.Two_Player_Duel
jmp 0x4bb689
cmp byte [esp + 0x1f], 0
je 0x4bb682
mov eax, dword [ebx + 0xa4]
test eax, eax
lea ecx, [esp + 0x74]
je 0x4bb679
push 0xffffffffffffffff
add eax, 0xc
push 0
push eax
call fcn.00401d10
jmp 0x4bb692
push 0xc
push str.Pick_a_Level
jmp 0x4bb68d
push 0xa
push str.Quick_Play
lea ecx, [esp + 0x7c]
call fcn.00402300
mov edx, dword [ebx]
mov edx, dword [edx + 0xf8]
lea eax, [esp + 0x74]
push eax
push 0x30
push esi
lea ecx, [esp + 0x64]
push ecx
mov ecx, ebx
call edx
mov eax, dword [esp + 0x28]
push eax
mov edx, esi
mov ecx, ebx
call fcn.004ba690
mov eax, dword [ebx + 0x8c]
cmp dword [eax + 0x930], 0
je 0x4bb864
cmp dword [ebx + 0xa8], 2
jge 0x4bb864
mov eax, dword [eax + 0x7f4]
cmp eax, 3
je 0x4bb864
cmp eax, 4
je 0x4bb864
mov ecx, dword [0x6b866c]
push 0x226
push 0x6f
push ecx
mov ecx, esi
call fcn.00525c50
mov edx, dword [0x6b853c]
push 0x226
push 0x245
push edx
mov ecx, esi
call fcn.00525c50
mov edi, dword [0x6b85f4]
mov ecx, edi
mov eax, esi
call fcn.00525250
push 0xffffff
lea ecx, [esp + 0x38]
call fcn.005029b0
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call fcn.00525260
mov eax, dword [ebx + 0x8c]
mov ecx, dword [eax + 0x930]
mov edx, dword [ecx + 0x178]
mov eax, dword [eax + 0x90c]
push 1
mov dword [esp + 0x2c], edx
call fcn.0047b750
push eax
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0xb4]
push str._d____d
push ecx
call fcn.004e7a20
add esp, 0x10
mov byte [esp + 0xd8], 2
mov eax, dword [ebx + 0x8c]
mov edx, dword [eax + 0x930]
mov eax, dword [eax + 0x90c]
mov ebx, dword [edx + 0x184]
push 1
call fcn.0047b750
push eax
push ebx
lea eax, [esp + 0x60]
push str._d____d
push eax
call fcn.004e7a20
add esp, 0x10
mov byte [esp + 0xd8], 3
mov edx, dword [edi]
mov edx, dword [edx + 0x1c]
push 0x247
lea eax, [esp + 0x5c]
push eax
mov ecx, edi
call edx
mov ecx, 0xd2
sub ecx, eax
push ecx
lea edx, [esp + 0x60]
push edx
mov ecx, esi
call fcn.00525c20
mov eax, dword [edi]
mov edx, dword [eax + 0x1c]
push 0x247
lea ecx, [esp + 0xb0]
push ecx
mov ecx, edi
call edx
mov ecx, 0x2a8
sub ecx, eax
push ecx
lea edx, [esp + 0xb4]
push edx
mov ecx, esi
call fcn.00525c20
mov esi, 0x10
cmp dword [esp + 0x70], esi
jb 0x4bb834
mov eax, dword [esp + 0x5c]
push eax
call fcn.0062493b
add esp, 4
cmp dword [esp + 0xc4], esi
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
jb 0x4bb869
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.0062493b
add esp, 4
jmp 0x4bb869
mov esi, 0x10
cmp dword [esp + 0x8c], esi
jb 0x4bb87f
mov edx, dword [esp + 0x78]
push edx
call fcn.0062493b
add esp, 4
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.00624940
mov esp, ebp
pop ebp
ret 4