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

Disassembly:
push ebx
push esi
push edi
push ebp
sub esp, 0x40
mov esi, dword [esp + 0x6c]
mov ebx, ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
cmp dword [esp + 0x54], 2
jne 0x445fa0
cmp dword [esp + 0xc], 0
je 0x445f84
mov ecx, dword [esp + 0xc]
call fcn.0040b9e0
cmp dword [esp + 8], 0
je 0x445f94
mov ecx, dword [esp + 8]
call fcn.0040b9e0
add esp, 0x40
pop ebp
pop edi
pop esi
pop ebx
ret 0x2c
lea ecx, [ebx + 0xc]
call fcn.00401060
mov ebp, eax
mov eax, dword [esp + 0x70]
push eax
call fcn.00496970
pop ecx
mov edi, eax
mov ecx, dword [esp + 0x58]
call fcn.0040bb50
mov dword [edi + 0x18], eax
mov ecx, dword [esp + 0x60]
call fcn.0040bb50
mov dword [edi + 0x1c], eax
mov ecx, dword [esp + 0x78]
call fcn.0040bb50
mov dword [edi + 0x20], eax
mov ecx, dword [esp + 0x7c]
call fcn.0040bb50
mov dword [edi + 0x24], eax
mov ecx, esi
call fcn.0040bb50
mov dword [edi + 0x38], eax
mov ecx, dword [esp + 0x5c]
mov dword [edi + 0x28], ecx
mov eax, dword [esp + 0x68]
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebp
mov byte [edi + 0x3c], 1
mov byte [edi + 0x3d], 1
mov byte [edi + 0x41], 1
mov byte [edi + 0x42], 1
call fcn.00445890
mov dword [edi + 0x44], eax
push 0x4f51b0
mov ecx, dword [edi + 4]
call fcn.00473120
test al, al
jne 0x446121
mov dword [esp + 0x10], 0
push str.WARNING:_menu_item
call fcn.0040ca30
pop ecx
push eax
push str.WARNING:_menu_item
lea ecx, [esp + 0x18]
call fcn.0040bb00
cmp dword [esp + 0x10], 0
je 0x446067
mov edx, dword [esp + 0x10]
mov eax, dword [0x4bf2dc]
mov dword [edx + 0x10], eax
push dword [esp + 0x60]
lea ebp, [esp + 0x14]
push ebp
lea eax, [esp + 0x1c]
push eax
call fcn.0040c300
add esp, 0xc
mov dword [esp + 0x18], 0
push str._was_not_a_MenuItem
call fcn.0040ca30
pop ecx
push eax
push str._was_not_a_MenuItem
lea ecx, [esp + 0x20]
call fcn.0040bb00
cmp dword [esp + 0x18], 0
je 0x4460b2
mov ecx, dword [esp + 0x18]
mov eax, dword [0x4bf2dc]
mov dword [ecx + 0x10], eax
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.0040c300
add esp, 0xc
push 0xa
lea eax, [esp + 0x20]
push eax
call fcn.00446400
pop ecx
pop ecx
cmp dword [esp + 0x1c], 0
je 0x4460e7
mov ecx, dword [esp + 0x1c]
call fcn.0040b9e0
cmp dword [esp + 0x18], 0
je 0x4460f7
mov ecx, dword [esp + 0x18]
call fcn.0040b9e0
cmp dword [esp + 0x14], 0
je 0x446107
mov ecx, dword [esp + 0x14]
call fcn.0040b9e0
cmp dword [esp + 0x10], 0
je 0x446117
mov ecx, dword [esp + 0x10]
call fcn.0040b9e0
mov eax, dword [edi + 4]
mov dword [eax + 0x18], 0x4f51b0
push 0x4f58b8
mov ecx, dword [edi + 4]
call fcn.00473120
mov byte [esp], al
push 0x4f0910
mov ecx, dword [edi + 4]
call fcn.00473120
mov byte [esp + 4], al
push 0x4c80a1
mov ecx, dword [esp + 0x64]
call fcn.0040bbb0
push eax
call fcn.0040ca90
pop ecx
pop ecx
test eax, eax
jne 0x446160
mov al, 1
jmp 0x446162
xor al, al
test al, al
je 0x446174
push 0
push 0
push 0x800
jmp 0x4463c0
mov eax, dword [esi]
mov dword [esp + 0x20], eax
test eax, eax
je 0x446185
mov ecx, eax
call fcn.0040b9a0
lea ebp, [esp + 0xc]
push ebp
lea eax, [esp + 0x24]
push eax
call fcn.004459f0
pop ecx
pop ecx
cmp dword [esp + 0x20], 0
je 0x4461a6
mov ecx, dword [esp + 0x20]
call fcn.0040b9e0
cmp byte [esp], 0
je 0x4461c0
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x4461d4
push edi
call fcn.00447a20
jmp 0x4461d4
cmp byte [esp + 4], 0
je 0x4461d4
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x4461d4
push edi
call fcn.00447a60
cmp dword [esp + 0x74], 0
je 0x446298
mov dword [esp + 0x24], 0
push 0x4c80f5
call fcn.0040ca30
pop ecx
push eax
push 0x4c80f5
lea ecx, [esp + 0x2c]
call fcn.0040bb00
cmp dword [esp + 0x24], 0
je 0x446214
mov ecx, dword [esp + 0x24]
mov eax, dword [0x4bf2dc]
mov dword [ecx + 0x10], eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x64]
lea eax, [esp + 0x30]
push eax
call fcn.0040c300
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.0040c300
add esp, 0xc
lea ecx, [esp + 0x2c]
call fcn.0040bb90
push eax
mov eax, dword [esp + 0x78]
mov eax, dword [eax + 8]
push eax
push 0x10
mov eax, dword [ebx + 8]
push eax
call dword [0x4eaa04]
cmp dword [esp + 0x2c], 0
je 0x44626f
mov ecx, dword [esp + 0x2c]
call fcn.0040b9e0
cmp dword [esp + 0x28], 0
je 0x44627f
mov ecx, dword [esp + 0x28]
call fcn.0040b9e0
cmp dword [esp + 0x24], 0
je 0x4463ca
mov ecx, dword [esp + 0x24]
call fcn.0040b9e0
jmp 0x4463ca
cmp dword [esp + 0xc], 0
je 0x4462a8
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0xc]
jmp 0x4462aa
xor ecx, ecx
test ecx, ecx
je 0x4463b0
mov eax, dword [ebx + 8]
and eax, 0xffff
movzx ebp, ax
shl ebp, 0x10
mov esi, dword [edi + 0x44]
and esi, 0xffff
movzx eax, si
or ebp, eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x30], eax
test eax, eax
je 0x4462e1
mov ecx, eax
call fcn.0040b9a0
lea eax, [esp + 0x30]
push eax
push 0
push ebp
call fcn.0043ca60
add esp, 0xc
cmp dword [esp + 0x30], 0
je 0x446301
mov ecx, dword [esp + 0x30]
call fcn.0040b9e0
mov dword [esp + 0x34], 0
push 0x4c80f5
call fcn.0040ca30
pop ecx
push eax
push 0x4c80f5
lea ecx, [esp + 0x3c]
call fcn.0040bb00
cmp dword [esp + 0x34], 0
je 0x446336
mov ecx, dword [esp + 0x34]
mov eax, dword [0x4bf2dc]
mov dword [ecx + 0x10], eax
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x64]
lea eax, [esp + 0x40]
push eax
call fcn.0040c300
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.0040c300
add esp, 0xc
lea ecx, [esp + 0x3c]
call fcn.0040bb90
push eax
mov eax, dword [edi + 0x44]
push eax
push 0
mov eax, dword [ebx + 8]
push eax
call dword [0x4eaa04]
cmp dword [esp + 0x3c], 0
je 0x44638d
mov ecx, dword [esp + 0x3c]
call fcn.0040b9e0
cmp dword [esp + 0x38], 0
je 0x44639d
mov ecx, dword [esp + 0x38]
call fcn.0040b9e0
cmp dword [esp + 0x34], 0
je 0x4463ca
mov ecx, dword [esp + 0x34]
call fcn.0040b9e0
jmp 0x4463ca
mov ecx, dword [esp + 0x60]
call fcn.0040bb90
push eax
mov eax, dword [edi + 0x44]
push eax
push 0
mov eax, dword [ebx + 8]
push eax
call dword [0x4eaa04]
push edi
add ebx, 0xc
mov ecx, ebx
call fcn.00401390
cmp dword [esp + 0xc], 0
je 0x4463e5
mov ecx, dword [esp + 0xc]
call fcn.0040b9e0
cmp dword [esp + 8], 0
je 0x4463f5
mov ecx, dword [esp + 8]
call fcn.0040b9e0
add esp, 0x40
pop ebp
pop edi
pop esi
pop ebx
ret 0x2c