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

Disassembly:
sub esp, 0x460
mov eax, 0x10624dd3
push ebx
push ebp
mov ebp, dword [0x5e9f6c]
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x474]
sub ecx, ebp
mul ecx
mov eax, dword [0x5e9fa8]
xor ecx, ecx
shr edx, 6
mov cl, ah
cmp ecx, edx
jbe 0x4eaeaa
sub ecx, edx
mov dword [esp + 0x28], ecx
jmp 0x4eaeb2
mov dword [esp + 0x28], 0
xor edx, edx
and eax, 0xff
mov dl, byte [0x5ea1da]
push edx
push eax
push 0x53e4
call fcn.004680f0
add esp, 4
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.0052b4e8
add esp, 0x10
lea ecx, [esp + 0x70]
mov ebx, 0x37
push 1
push 9
push ecx
push ebx
push 0x2d
mov ecx, esi
call fcn.004e0ab0
mov edx, dword [esp + 0x28]
push edx
push 0x53e3
call fcn.004680f0
add esp, 4
push eax
lea eax, [esp + 0x78]
push eax
call fcn.0052b4e8
add esp, 0xc
lea ecx, [esp + 0x70]
push 1
push 9
push ecx
push ebx
push 0xa5
mov ecx, esi
call fcn.004e0ab0
mov ecx, dword [esi + 0x29]
lea edx, [esp + 0x20]
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.004dd550
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add ecx, ebx
mov edi, 0x1a
mov dword [esp + 0x1c], ecx
xor ecx, ecx
mov cl, byte [0x5e9f9b]
mov edx, 3
add eax, edi
sub edx, ecx
mov dword [esp + 0x20], eax
push edx
lea eax, [esp + 0x74]
push str.x__d
push eax
call fcn.0052b4e8
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
add esp, 0xc
lea ecx, [esp + 0x70]
push 1
push 9
push ecx
push edx
push eax
mov ecx, esi
call fcn.004e0ab0
lea ecx, [esp + 0x20]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x2d]
push edx
call fcn.004dd550
mov eax, dword [esp + 0x1c]
add eax, ebx
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [0x5e9f9c]
mov ecx, 3
and eax, 0xff
lea edx, [esp + 0x70]
sub ecx, eax
add ebp, edi
push ecx
push str.x__d
push edx
mov dword [esp + 0x2c], ebp
call fcn.0052b4e8
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
add esp, 0xc
lea eax, [esp + 0x70]
push 1
push 9
push eax
push ecx
push edx
mov ecx, esi
call fcn.004e0ab0
push 0x5e9faa
mov ecx, 0x5e9f58
call fcn.004ecc60
mov ecx, dword [0x5e9f5c]
mov dword [esp + 0x24], eax
cmp eax, ecx
je 0x4eb025
mov edx, dword [0x5e9faa]
mov edi, dword [eax + 0xc]
cmp edx, edi
jb 0x4eb025
lea eax, [esp + 0x24]
jmp 0x4eb02d
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x18]
mov eax, dword [eax]
cmp eax, ecx
mov dword [esp + 0x18], eax
je 0x4eb304
mov eax, dword [eax + 0x19]
test eax, eax
jne 0x4eb047
mov eax, 0x56c2f0
push 0
push 0x32
push 0x12
push eax
push 0x50
push 0x2d
mov ecx, esi
call fcn.004eb320
mov dword [esp + 0x10], eax
mov eax, dword [0x5e9fae]
test eax, eax
je 0x4eb146
mov eax, dword [esp + 0x18]
xor ebp, ebp
add eax, 0x29
lea edi, [esp + 0x44]
lea ebx, [esi + 0x31]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
test eax, eax
jne 0x4eb08d
mov eax, 0x56c2f0
mov edx, dword [ebx]
mov dword [edi - 4], eax
mov dword [edi], edx
mov dword [edi + 4], ebp
mov ecx, dword [edi]
push 1
call fcn.004dd170
mov eax, dword [esp + 0x14]
inc ebp
add eax, 0x10
add ebx, 4
add edi, 0xc
cmp ebp, 4
mov dword [esp + 0x14], eax
jl 0x4eb07e
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], eax
mov edi, 4
mov dword [esp + 0x3c], eax
lea ebp, [esi + 0x45]
call fcn.0052b641
cdq
idiv edi
xor eax, eax
lea ecx, [esp + 0x30]
cmp dword [ecx], ebx
jne 0x4eb0ea
cmp edx, ebx
je 0x4eb0f5
dec edx
inc eax
add ecx, 4
cmp eax, 4
jl 0x4eb0e1
jmp 0x4eb118
lea ecx, [eax + eax*2]
mov dword [esp + eax*4 + 0x30], 1
mov eax, ebp
lea edx, [esp + ecx*4 + 0x40]
mov ecx, dword [esp + ecx*4 + 0x40]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov edx, dword [edx + 8]
mov dword [eax + 8], edx
dec edi
add ebp, 0xc
cmp edi, ebx
jg 0x4eb0d3
mov ecx, dword [esp + 0x18]
mov dword [0x5e9fae], ebx
xor eax, eax
mov dword [esi + 0x85], ebx
mov dword [esi + 0x75], 0xffffffff
mov al, byte [ecx + 0x14]
mov dword [esi + 0x79], eax
mov byte [esi + 0x89], 0
mov eax, dword [esi + 0x45]
xor ecx, ecx
mov dword [esp + 0x2c], ecx
cmp byte [eax], 0x69
jne 0x4eb16c
cmp byte [eax + 1], 0x6d
jne 0x4eb16c
cmp byte [eax + 2], 0x67
jne 0x4eb16c
cmp byte [eax + 3], 0x3d
jne 0x4eb16c
mov dword [esp + 0x2c], eax
jmp 0x4eb171
add dword [esp + 0x10], 0x14
mov eax, dword [esp + 0x2c]
lea ebx, [esi + 0x49]
neg eax
sbb eax, eax
mov dword [esp + 0x18], ecx
and al, 0xec
mov dword [esp + 0x14], ebx
add eax, 0x1c
mov dword [esp + 0x24], eax
jmp 0x4eb197
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
add edx, eax
xor edi, edi
test ecx, ecx
mov dword [esp + 0x10], edx
je 0x4eb1ce
mov edx, dword [esp + 0x18]
inc edx
and edx, 0x80000001
jns 0x4eb1bd
dec edx
or edx, 0xfffffffe
inc edx
jne 0x4eb1ce
mov ecx, dword [esp + 0x10]
mov edi, 0xdc
sub ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx]
lea ebp, [edi + 0x2d]
push eax
push ebp
call fcn.004dd510
mov eax, dword [ebx]
add eax, 0x34
test byte [eax], 1
je 0x4eb200
mov ebx, dword [esp + 0x10]
push 0
push 0
push str.ShapeMenucheckBG3.SHP
push ebx
push ebp
mov ecx, esi
call fcn.004e09c0
jmp 0x4eb204
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 0x75]
mov ebp, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x4eb233
mov eax, dword [ebp]
add eax, 0x34
test byte [eax], 1
je 0x4eb233
push 0
push 0
lea ecx, [ebx + 3]
push str.ShapeMenucheck2.SHP
lea edx, [edi + 0x30]
push ecx
push edx
mov ecx, esi
call fcn.004e09c0
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp - 4]
push edi
push 0x28
push eax
push ecx
push ebx
push 0x51
mov ecx, esi
call fcn.004eb320
mov edi, eax
mov eax, dword [esp + 0x28]
cmp eax, 3
mov dword [esp + 0x10], edi
ja 0x4eb2eb
mov edx, dword [esi + 0x75]
mov eax, dword [ebp + 4]
dec edx
cmp edx, eax
jne 0x4eb2eb
xor eax, eax
mov ax, word [0x5e9f99]
mov dword [0x5ea1e0], eax
call dword [0x56c08c]
mov ebx, dword [esi + 0x81]
mov ecx, eax
sub ecx, ebx
cmp ecx, 0x12c
jb 0x4eb2d3
mov ecx, dword [esi + 0x85]
mov edx, dword [esi + 0x75]
mov dword [esi + 0x81], eax
mov eax, dword [esi + 0x79]
inc ecx
cmp edx, eax
mov dword [esi + 0x85], ecx
mov eax, 0x579f54
je 0x4eb2b7
mov eax, 0x579f5c
cmp dword [eax + ecx*4], 0
jne 0x4eb2c7
mov dword [esi + 0x85], 0
mov ecx, dword [esi + 0x85]
mov edx, dword [eax + ecx*4]
mov dword [esi + 0x7d], edx
mov eax, dword [esi + 0x7d]
push 0
push 0
add edi, 0xfffffffa
push eax
push edi
push 0x181
mov ecx, esi
call fcn.004e09c0
mov eax, dword [esp + 0x18]
add ebp, 0xc
inc eax
mov dword [esp + 0x14], ebp
cmp eax, 4
mov dword [esp + 0x18], eax
jl 0x4eb18f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x460
ret 4