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

Disassembly:
sub esp, 0xc0
push ebx
mov ebx, ecx
mov al, byte [ebx + 0x25]
test al, al
je 0x4e82c7
mov eax, dword [ebx + 0x1c]
push eax
call fcn.0054da70
add esp, 4
test eax, eax
je 0x4e7d19
mov eax, dword [ebx + 4]
jmp 0x4e7d1b
xor eax, eax
mov ecx, dword [ebx + 0x1c]
push ebp
push esi
push edi
mov edi, dword [eax + 4]
push ecx
mov dword [esp + 0x28], edi
call fcn.0054da70
add esp, 4
test eax, eax
je 0x4e7d3a
mov eax, dword [ebx + 4]
jmp 0x4e7d3c
xor eax, eax
mov edx, dword [ebx + 0x1c]
mov eax, dword [eax + 8]
mov esi, dword [ebx + 0x26]
mov ebp, dword [ebx + 0x2a]
push edx
mov dword [esp + 0x24], eax
add esi, edi
add ebp, eax
call fcn.0054da70
add esp, 4
test eax, eax
je 0x4e7d62
mov eax, dword [ebx + 4]
jmp 0x4e7d64
xor eax, eax
mov edi, dword [eax + 0xc]
mov eax, dword [ebx + 0x2e]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push eax
push ebp
push esi
push 0
mov dword [esp + 0x44], edi
call fcn.00442f50
add esp, 0x30
add esi, 0x46
add ebp, 0x2d
mov dword [esp + 0x10], esi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push str.ShapeMenuiconBG.SHP
mov dword [esp + 0x3c], ebp
call fcn.0054fe30
add esp, 4
push eax
push ebp
push esi
push 0
call fcn.00442f50
mov eax, dword [ebx + 0x6e]
add esp, 0x30
test eax, eax
je 0x4e7f9d
mov si, word [eax]
test si, si
je 0x4e7f9d
mov ecx, dword [ebx + 0x72]
and esi, 0xffff
push esi
mov dword [esp + 0x20], ecx
call fcn.0046abe0
push esi
call fcn.00407f40
push esi
mov dword [esp + 0x4c], eax
call fcn.0046ab90
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x4c]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
add ebp, 2
push edi
lea eax, [edx + 2]
push ecx
push ebp
push eax
push 0
call fcn.00442f50
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x4c]
push esi
push edx
push edi
lea esi, [eax + 2]
push ebp
push esi
call fcn.004d7d70
mov ecx, dword [ebx + 0x6e]
add esp, 0x50
push edi
push ebp
push esi
push ecx
call fcn.004d9cc0
mov edx, dword [ebx + 0x6e]
xor eax, eax
mov ax, word [edx]
push eax
call fcn.0046ab90
mov ecx, dword [ebx + 0x6a]
mov eax, dword [eax + 0x50]
add esp, 0x14
test ecx, ecx
push eax
je 0x4e7e83
call fcn.004680f0
mov ecx, dword [ebx + 0x6a]
add esp, 4
lea edx, [esp + 0x50]
push eax
push ecx
push str._d_s
push edx
call fcn.0052b4e8
add esp, 0x10
jmp 0x4e7eae
call fcn.004680f0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x50]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebp, dword [ebx + 0x4a]
lea edi, [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
add ebp, 0x24
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, ebp
mov dword [esp + 0x1c], esi
call fcn.0044d0b0
cmp eax, esi
jae 0x4e7ed8
call fcn.00534310
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x4e7efd
mov al, byte [ecx - 1]
test al, al
je 0x4e7efd
cmp al, 0xff
je 0x4e7efd
test esi, esi
jne 0x4e7f21
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebp
call fcn.0044b790
jmp 0x4e7f4c
test esi, esi
jne 0x4e7f0c
push 1
mov ecx, ebp
call fcn.0044b790
jmp 0x4e7f4c
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x4e7f18
cmp eax, esi
jae 0x4e7f29
push 1
mov ecx, ebp
call fcn.0044b790
push esi
mov ecx, ebp
call fcn.0044d0c0
mov edi, dword [ebp + 4]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x1c]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.0044bfe0
mov eax, dword [0x5e6464]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jle 0x4e803d
lea edx, [ecx + 0x22]
cmp eax, edx
jge 0x4e803d
mov edx, dword [0x5e6468]
mov eax, dword [esp + 0x18]
cmp edx, eax
jle 0x4e803d
lea esi, [eax + 0x22]
cmp edx, esi
jge 0x4e803d
mov edx, dword [ebx + 0x6e]
add ecx, 0x11
push edx
push 0x22
push eax
push ecx
call fcn.00414090
add esp, 0x10
jmp 0x4e803d
mov ebp, dword [ebx + 0x4a]
mov edi, 0x5e74d0
or ecx, 0xffffffff
xor eax, eax
add ebp, 0x24
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, ebp
mov dword [esp + 0x18], esi
call fcn.0044d0b0
cmp eax, esi
jae 0x4e7fc8
call fcn.00534310
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x4e7fed
mov al, byte [ecx - 1]
test al, al
je 0x4e7fed
cmp al, 0xff
je 0x4e7fed
test esi, esi
jne 0x4e8011
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebp
call fcn.0044b790
jmp 0x4e803d
test esi, esi
jne 0x4e7ffc
push 1
mov ecx, ebp
call fcn.0044b790
jmp 0x4e803d
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x4e8008
cmp eax, esi
jae 0x4e8019
push 1
mov ecx, ebp
call fcn.0044b790
push esi
mov ecx, ebp
call fcn.0044d0c0
mov edi, dword [ebp + 4]
mov ecx, esi
mov eax, ecx
mov esi, 0x5e74d0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, ebp
call fcn.0044bfe0
push 0x52e2
call fcn.004680f0
push 0x52e3
mov dword [esp + 0x4c], eax
call fcn.004680f0
push 0x52e4
mov dword [esp + 0x54], eax
call fcn.004680f0
push 0x5353
mov dword [esp + 0x5c], eax
call fcn.004680f0
mov dword [esp + 0x28], eax
mov eax, 0x32
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], eax
lea eax, [esp + 0x3c]
add esp, 0x10
mov dword [esp + 0x2c], 0xb6
mov dword [esp + 0x34], 0xd4
mov dword [esp + 0x3c], 0xf2
xor ebp, ebp
mov dword [esp + 0x10], eax
jmp 0x4e80b1
mov eax, dword [esp + 0x10]
mov esi, dword [eax - 4]
mov ecx, dword [ebx + 0x26]
mov edi, dword [esp + 0x24]
mov edx, dword [ebx + 0x2a]
add esi, ecx
mov ecx, dword [esp + 0x20]
add esi, edi
mov edi, dword [eax]
mov eax, dword [esp + ebp + 0x44]
add edi, edx
mov edx, dword [esp + 0x14]
push 9
add edi, ecx
push 0x7530
push 0x7530
push edi
push esi
push 0
push edx
push eax
push edi
push esi
push 0
push 1
call fcn.0041b800
add esp, 0x30
mov ecx, dword [esp + 0x14]
add esi, 0x25
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push str.ShapeMenugoldSym.SHP
call fcn.0054fe30
add esp, 4
lea edx, [edi + 1]
push eax
push edx
push esi
push 0
call fcn.00442f50
add esp, 0x30
add esi, 0x1c
call fcn.004e2cc0
mov ecx, dword [eax + ebp]
mov eax, 0x68db8bad
imul ecx
mov ecx, dword [esp + 0x18]
sar edx, 0xc
mov eax, edx
push ecx
shr eax, 0x1f
add edx, eax
push edx
lea edx, [esp + 0x58]
push str._d__s
push edx
call fcn.0052b4e8
mov eax, dword [esp + 0x24]
push 9
push 0x7530
push 0x7530
push edi
push esi
push 0
lea ecx, [esp + 0x78]
push eax
add edi, 2
push ecx
push edi
push esi
push 0
push 1
call fcn.0041b800
mov edx, dword [esp + 0x50]
add esp, 0x40
add edx, 8
add ebp, 4
mov dword [esp + 0x10], edx
cmp ebp, 0xc
jl 0x4e80ad
mov eax, 0x18
mov dword [esp + 0x2c], 0xb6
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x34], 0xd4
mov dword [esp + 0x3c], 0xf2
mov dword [esp + 0x10], eax
lea esi, [esp + 0x2c]
mov ecx, dword [ebx + 0x5a]
lea edx, [eax + 0x197a]
cmp ecx, edx
jne 0x4e822b
mov eax, dword [esi - 4]
mov edx, dword [ebx + 0x26]
mov ecx, dword [esp + 0x24]
add eax, edx
mov edx, dword [esi]
push 0
lea edi, [eax + ecx + 3]
mov ecx, dword [ebx + 0x2a]
mov eax, dword [esp + 0x24]
push 0
add edx, ecx
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 0
push 0
inc ecx
push 0
push ecx
push str.ShapeMenucheck2.SHP
lea ebp, [edx + eax + 2]
call fcn.0054fe30
add esp, 4
push eax
push ebp
push edi
push 0
call fcn.00442f50
mov eax, dword [esp + 0x40]
add esp, 0x30
inc eax
add esi, 8
cmp eax, 3
mov dword [esp + 0x10], eax
jl 0x4e81cd
mov eax, dword [ebx + 0x6e]
test eax, eax
je 0x4e8245
cmp word [eax], 0
jne 0x4e82b2
mov edx, dword [ebx + 0x1c]
push edx
call fcn.0054da70
add esp, 4
test eax, eax
je 0x4e825a
mov eax, dword [ebx + 4]
jmp 0x4e825c
xor eax, eax
mov esi, dword [eax + 4]
mov eax, dword [ebx + 0x1c]
mov ebp, dword [ebx + 0x26]
push eax
add esi, ebp
call fcn.0054da70
add esp, 4
test eax, eax
je 0x4e8279
mov eax, dword [ebx + 4]
jmp 0x4e827b
xor eax, eax
mov eax, dword [eax + 8]
mov edi, dword [ebx + 0x2a]
add eax, edi
lea edx, [esi + 0xb5]
lea ecx, [eax + 0x194]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push esi
push 0
push 0
push 0x4208
push ecx
push 0xffffffffffffffff
push eax
push esi
push 0x41000000
call fcn.00442f50
add esp, 0x30
mov ecx, dword [ebx + 0x5e]
push 0
push 0
push 0xa0008003
mov edx, dword [ecx]
push ebx
call dword [edx + 8]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc0
ret