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

Disassembly:
sub esp, 0x27c
mov eax, dword [0x4da6bc]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
mov ebx, dword [esp + 0x284]
push ebp
push esi
push edi
push 0x4c
xor esi, esi
lea eax, [esp + 0x9c]
push esi
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0xa0], 0x50
call fcn.0049e9f0
mov eax, dword [ebx + 4]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0xc
mov dword [esp + 0x98], 0x10
mov edx, dword [eax + 0xc]
mov eax, dword [eax]
lea ecx, [esp + 0x94]
push ecx
push edx
push 0x41c
push eax
call ebp
mov edi, dword [esp + 0xb4]
push esi
push esi
push 0x418
push edi
call ebp
cmp eax, esi
mov dword [esp + 0x14], eax
jle 0x43de62
push esi
push esi
push 0x52e
push edi
call ebp
cmp eax, esi
setne cl
mov dword [esp + 0x20], eax
mov byte [ebx + 8], cl
call dword [sym.imp.USER32.dll_CreatePopupMenu]
lea edx, [esp + 0x54]
mov dword [esp + 0x10], eax
xor eax, eax
push edx
push edi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [esp + 0x14], esi
mov dword [esp + 0x1c], esi
jle 0x43de40
jmp 0x43dbe0
xor eax, eax
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], eax
lea eax, [esp + 0xe4]
push eax
push esi
push 0x417
push edi
call ebp
test byte [esp + 0xec], 8
jne 0x43de2d
lea ecx, [esp + 0x24]
push ecx
push esi
xor eax, eax
push 0x41d
push edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
call ebp
mov eax, dword [esp + 0xec]
mov edx, dword [esp + 0x2c]
mov bl, al
shr bl, 2
and bl, 1
cmp edx, dword [esp + 0x5c]
jle 0x43de2d
test ah, 1
je 0x43dc92
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x43de2d
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0x800
push ecx
call dword [sym.imp.USER32.dll_AppendMenuW]
jmp 0x43de2d
mov edx, dword [esp + 0x18]
cmp byte [edx + 8], 0
push 0x18e
push 0
je 0x43dd44
lea ecx, [esp + 0x102]
xor eax, eax
push ecx
mov word [esp + 0x104], ax
call fcn.0049e9f0
push 0x30
lea edx, [esp + 0x74]
push 0
push edx
call fcn.0049e9f0
add esp, 0x18
mov dword [esp + 0x64], 0x30
call fcn.0043d400
test al, al
je 0x43dce8
mov dword [esp + 0x64], 0x2c
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x64]
push ecx
push 1
push esi
lea eax, [esp + 0x104]
push edx
mov dword [esp + 0x78], 0x14
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], 0xc8
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x78]
xor edx, edx
test bl, bl
sete dl
push eax
mov eax, dword [esp + 0x14]
push ecx
or edx, 0x10
push edx
push eax
call dword [sym.imp.USER32.dll_AppendMenuW]
jmp 0x43de2d
lea edx, [esp + 0x102]
xor ecx, ecx
push edx
mov word [esp + 0x104], cx
call fcn.0049e9f0
mov edx, dword [esp + 0xf4]
add esp, 0xc
xor eax, eax
lea ecx, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
lea esi, [esp + 0x100]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
push 0x43f
mov eax, esi
push edi
mov dword [esp + 0x44], 0x20
mov dword [esp + 0x48], 2
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0xc8
call ebp
cmp eax, 0xffffffff
je 0x43ddc8
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x43de0d
mov edx, dword [esp + 0xe8]
mov eax, dword [0x5144c8]
push 0xc8
lea ecx, [esp + 0xfc]
push ecx
push edx
push eax
mov esi, 0x4bad64
call dword [sym.imp.USER32.dll_LoadStringW]
xor ecx, ecx
test eax, eax
jle 0x43de0d
cmp word [esp + ecx*2 + 0xf8], 0xa
je 0x43de06
inc ecx
cmp ecx, eax
jl 0x43ddf4
jmp 0x43de0d
lea esi, [esp + ecx*2 + 0xfa]
mov ecx, dword [esp + 0xe8]
mov eax, dword [esp + 0x10]
xor edx, edx
test bl, bl
sete dl
push esi
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_AppendMenuW]
mov esi, dword [esp + 0x1c]
inc esi
cmp esi, dword [esp + 0x14]
mov dword [esp + 0x1c], esi
jl 0x43dbe0
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jne 0x43de66
test esi, esi
je 0x43de5a
push esi
call dword [sym.imp.USER32.dll_DestroyMenu]
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
xor al, al
jmp 0x43de6a
mov dword [ebx], esi
mov al, 1
mov ecx, dword [esp + 0x288]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049e9d2
add esp, 0x27c
ret 4