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

Disassembly:
sub esp, 0x4bc
mov eax, dword [esp + 0x4c0]
push ebx
imul eax, eax, 0xb84e
push ebp
push esi
mov esi, ecx
push edi
xor edx, edx
mov ecx, 0x3c3
lea ebp, [eax + esi]
xor eax, eax
lea ebx, [esi + 0x2a9c6c]
mov dword [esp + 0x4c], str.MMB_CLOSE
lea edi, [ebp + 0x9e797f]
mov dword [ebp + 0x9e797b], edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x50], str.MMB_AUTO
rep stosd dword es:[edi], eax
lea eax, [ebp + 0x9e8899]
xor ecx, ecx
lea edi, [ebp + 0x9e888b]
mov dword [esp + 0x54], str.MMB_SKIP
mov dword [eax], ecx
push edi
push str.MODE_MENU_TYPE
push str.MAPMENU
mov dword [eax + 4], ecx
mov dword [esp + 0x64], str.MMB_JUMP
mov dword [esp + 0x68], str.MMB_RETURN
mov dword [esp + 0x6c], str.MMB_BACKLOG
mov dword [eax + 8], ecx
mov dword [esp + 0x70], str.MMB_SYSTEM
mov dword [esp + 0x74], str.MMB_VOICE
mov dword [esp + 0x78], str.MMB_SAVE
mov dword [eax + 0xc], ecx
mov word [edi], dx
lea eax, [ebp + 0x9e8895]
mov word [ebp + 0x9e8891], dx
mov word [ebp + 0x9e8893], dx
mov dword [esp + 0x20], eax
mov word [eax], dx
lea eax, [ebp + 0x9e8897]
mov dword [esp + 0x1c], eax
mov ecx, ebx
mov word [eax], dx
mov edx, dword [esi + 0x5a6796]
mov dword [ebp + 0x9e88ad], edx
mov eax, dword [esi + 0x5a6796]
mov dword [ebp + 0x9e88b1], eax
mov dword [esp + 0x7c], str.MMB_LOAD
mov dword [esp + 0x80], str.MMB_QSAVE
mov dword [esp + 0x84], str.MMB_QLOAD
mov dword [esp + 0x88], str.MMB_MENU
mov dword [esp + 0x8c], str.MMB_TITLE
mov dword [esp + 0x90], str.MMB_EXIT
mov dword [esp + 0x94], str.MMB_SCENE_BACK
mov dword [esp + 0x98], 0x200204
mov dword [esp + 0x9c], 0x200102
mov dword [esp + 0xa0], 0x200101
mov dword [esp + 0xa4], 0x200103
mov dword [esp + 0xa8], 0x200104
mov dword [esp + 0xac], 0x200303
mov dword [esp + 0xb0], 0x200304
mov dword [esp + 0xb4], 0x200201
mov dword [esp + 0xb8], 0x200301
mov dword [esp + 0xbc], 0x200302
mov dword [esp + 0xc0], 0x200202
mov dword [esp + 0xc4], 0x200203
mov dword [esp + 0xc8], 0x200305
mov dword [esp + 0xcc], 0x2002fe
mov dword [esp + 0xd0], 0x2002ff
mov dword [esp + 0xd4], 0x2002fb
call fcn.00407c60
mov ecx, dword [esp + 0x14]
push ecx
push str.MMB_WIDTH
push str.MAPMENU
mov ecx, ebx
call fcn.00407c60
mov edx, dword [esp + 0x10]
push edx
push str.MMB_HEIGHT
push str.MAPMENU
mov ecx, ebx
call fcn.00407c60
xor eax, eax
mov ax, word [edi]
dec eax
cmp eax, 3
ja case.default.0x43d458
jmp dword [eax*4 + 0x43d820]
mov ecx, dword [esp + 0x10]
xor eax, eax
mov word [ebp + 0x9e8891], ax
mov word [ebp + 0x9e8893], ax
mov dword [esp + 0x18], eax
mov ax, word [ecx]
neg eax
jmp 0x43d508
mov eax, dword [esp + 0x14]
mov dx, word [esi + 0x2aa5dc]
sub dx, word [eax]
xor eax, eax
xor ecx, ecx
mov word [ebp + 0x9e8891], dx
mov word [ebp + 0x9e8893], ax
mov cx, word [esi + 0x2aa5dc]
jmp 0x43d504
mov ecx, dword [esp + 0x10]
xor eax, eax
mov word [ebp + 0x9e8891], ax
mov dx, word [esi + 0x2aa5de]
sub dx, word [ecx]
mov dword [esp + 0x18], eax
mov word [ebp + 0x9e8893], dx
xor edx, edx
mov dx, word [esi + 0x2aa5de]
mov dword [esp + 0x1c], edx
jmp 0x43d50c
mov edx, dword [esp + 0x10]
xor eax, eax
mov word [ebp + 0x9e8891], ax
mov cx, word [esi + 0x2aa5de]
sub cx, word [edx]
mov edx, dword [esp + 0x14]
mov word [ebp + 0x9e8893], cx
xor ecx, ecx
mov cx, word [edx]
neg ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x10]
xor eax, eax
xor edx, edx
mov ax, word [ecx]
movsx ecx, word [ebp + 0x9e8893]
push eax
mov eax, dword [esp + 0x18]
mov dx, word [eax]
lea eax, [ebp + 0x9e8899]
push edx
push ecx
movsx edx, word [ebp + 0x9e8891]
push edx
push eax
call dword [0x4b6218]
mov edi, dword [esp + 0x4d4]
push 0
push 3
push edi
push str.sys_mode_menu_base
mov ecx, esi
call fcn.00418ea0
test eax, eax
je case.default.0x43d458
lea eax, [edi + 1]
push 0
push 3
push eax
push str.sys_mode_menu_button
mov ecx, esi
call fcn.00418ea0
test eax, eax
je case.default.0x43d458
mov dword [esp + 0x24], 2
xor eax, eax
mov dword [esp + 0x20], eax
mov ebx, dword [esp + eax + 0x4c]
lea eax, [esp + 0xcc]
push 0x400
push eax
push ebx
push str.MAPMENU
lea ecx, [esi + 0x2a9c6c]
call fcn.00407b80
test eax, eax
je 0x43d759
mov edi, str.MMB_SCENE_BACK
mov eax, ebx
mov dl, byte [eax]
mov bl, byte [edi]
mov cl, dl
cmp dl, bl
jne 0x43d5e0
test cl, cl
je 0x43d5dc
mov dl, byte [eax + 1]
mov bl, byte [edi + 1]
mov cl, dl
cmp dl, bl
jne 0x43d5e0
add eax, 2
add edi, 2
test cl, cl
jne 0x43d5b8
xor eax, eax
jmp 0x43d5e5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x43d5f7
mov eax, dword [esi + 0xa9df37]
test eax, eax
je 0x43d759
lea eax, [esp + 0x48]
lea ecx, [esp + 0xcc]
push eax
push 0x2c
push 0
push ecx
call fcn.00402990
mov eax, dword [esp + 0x58]
add esp, 0x10
test eax, eax
je 0x43d759
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + edx + 0x8c]
cmp ebx, 0x200301
je 0x43d647
cmp ebx, 0x200302
je 0x43d647
cmp ebx, 0x200202
je 0x43d647
cmp ebx, 0x200203
jne 0x43d655
mov al, byte [esi + 0x5a6c12]
test al, al
je 0x43d759
lea eax, [esp + 0x3c]
lea ecx, [esp + 0xcc]
push eax
push 0x2c
push 1
push ecx
call fcn.00402990
lea edx, [esp + 0x44]
lea eax, [esp + 0xdc]
push edx
push 0x2c
push 2
push eax
call fcn.00402990
lea ecx, [esp + 0x50]
lea edx, [esp + 0xec]
push ecx
push 0x2c
push 3
push edx
call fcn.00402990
lea eax, [esp + 0x70]
lea ecx, [esp + 0xfc]
push eax
push 0x2c
push 4
push ecx
call fcn.00402990
add esp, 0x40
lea edx, [esp + 0x44]
lea eax, [esp + 0xcc]
push edx
push 0x2c
push 5
push eax
call fcn.00402990
lea ecx, [esp + 0x48]
lea edx, [esp + 0xdc]
push ecx
push 0x2c
push 6
push edx
call fcn.00402990
lea eax, [esp + 0x4c]
lea ecx, [esp + 0xec]
push eax
push 0x2c
push 1
push ecx
call fcn.00402990
mov edx, dword [esp + 0x5c]
add esp, 0x30
mov ecx, esi
lea edi, [edx + 0x100]
call fcn.0041f410
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x4d4]
mov edx, dword [esp + 0x38]
push 0
push eax
push 1
push ebx
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x50]
push edi
push eax
mov eax, dword [esp + 0x5c]
push 1
push 1
push 0x200
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x6c]
push edx
push eax
push ecx
mov ecx, esi
call fcn.0041f450
push 1
push 0
push 0
push 0
mov ecx, esi
call fcn.0041f770
mov eax, dword [esp + 0x20]
add eax, 4
cmp eax, 0x40
mov dword [esp + 0x20], eax
jl 0x43d587
mov eax, dword [esp + 0x24]
dec eax
mov dword [esp + 0x24], eax
jne 0x43d581
mov eax, dword [esp + 0x4d4]
mov dword [ebp + 0x9e797b], 1
mov edx, dword [esi + 0x5a6796]
mov esi, dword [esp + 0x28]
mov dword [ebp + 0x9e88b1], edx
push 1
mov ecx, esi
mov dword [ebp + 0x9e88a9], eax
call fcn.00415ef0
fild dword [esp + 0x1c]
push 0
push ecx
fstp dword [esp]
fild dword [esp + 0x20]
push ecx
mov ecx, esi
fstp dword [esp]
call fcn.004165d0
push 0
push 0
push 0
mov ecx, esi
call fcn.004165d0
mov edx, dword [esp + 0x10]
xor ecx, ecx
xor eax, eax
mov cx, word [edx]
push ecx
mov ecx, dword [esp + 0x18]
mov ax, word [ecx]
mov ecx, esi
push eax
push 0
push 0
call fcn.00416820
push 0
push 0
mov ecx, esi
call fcn.004167f0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x4bc
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4bc
ret 8