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

Disassembly:
sub esp, 0x290
mov eax, dword [0x4ace70]
xor eax, esp
mov dword [esp + 0x28c], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2a4]
mov dword [esp + 0x14], edi
mov esi, 0x64
call fcn.0045b720
test al, al
je 0x45c016
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0
call fcn.0045b6b0
add esp, 8
test eax, eax
jl 0x45c016
cmp dword [esp + 0x10], 6
jae 0x45c01b
mov esi, 0x50
push 0x60
lea edx, [esp + 0x9c]
push 0
push edx
mov dword [esp + 0xa0], esi
call fcn.0046a210
mov eax, dword [edi + 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 0
push 0
push 0x418
push edi
call ebp
mov ebx, eax
xor esi, esi
cmp ebx, esi
mov dword [esp + 0x1c], ebx
jle 0x45c35a
push esi
push esi
push 0x52e
push edi
call ebp
mov edx, dword [esp + 0x14]
cmp eax, esi
setne cl
mov dword [esp + 0x20], eax
mov byte [edx + 8], cl
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0x54]
push eax
push edi
mov dword [esp + 0x5c], esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov dword [esp + 0x18], esi
test ebx, ebx
jle 0x45c338
lea ecx, [esp + 0xf8]
push ecx
xor eax, eax
push esi
push 0x417
push edi
mov dword [esp + 0x108], eax
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], eax
mov dword [esp + 0x118], eax
call ebp
test byte [esp + 0x100], 8
jne 0x45c329
lea edx, [esp + 0x24]
push edx
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 + 0x100]
mov ecx, dword [esp + 0x2c]
mov bl, al
shr bl, 2
and bl, 1
cmp ecx, dword [esp + 0x5c]
jle 0x45c329
test ah, 1
je 0x45c183
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x45c329
mov eax, dword [esp + 0x10]
push 0
push 0
push 0x800
push eax
call dword [sym.imp.USER32.dll_AppendMenuW]
jmp 0x45c329
mov ecx, dword [esp + 0x14]
cmp byte [ecx + 8], 0
push 0x18e
push 0
je 0x45c235
lea eax, [esp + 0x116]
xor edx, edx
push eax
mov word [esp + 0x118], dx
call fcn.0046a210
push 0x30
lea ecx, [esp + 0x74]
push 0
push ecx
call fcn.0046a210
add esp, 0x18
mov dword [esp + 0x64], 0x30
call fcn.004544f0
test al, al
je 0x45c1d9
mov dword [esp + 0x64], 0x2c
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x64]
push eax
push 1
push esi
lea edx, [esp + 0x118]
push ecx
mov dword [esp + 0x78], 0x14
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], 0xc8
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x78]
xor ecx, ecx
test bl, bl
sete cl
push edx
mov edx, dword [esp + 0x14]
push eax
or ecx, 0x10
push ecx
push edx
call dword [sym.imp.USER32.dll_AppendMenuW]
jmp 0x45c329
lea ecx, [esp + 0x116]
xor eax, eax
push ecx
mov word [esp + 0x118], ax
call fcn.0046a210
mov ecx, dword [esp + 0x108]
xor eax, eax
add esp, 0xc
mov dword [esp + 0x38], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea eax, [esp + 0x34]
push eax
push ecx
lea esi, [esp + 0x114]
push 0x43f
mov edx, esi
push edi
mov dword [esp + 0x44], 0x20
mov dword [esp + 0x48], 2
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], 0xc8
call ebp
cmp eax, 0xffffffff
je 0x45c2b9
mov edx, esi
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x45c309
mov ecx, dword [esp + 0xfc]
mov edx, dword [0x4b6550]
push 0xc8
lea eax, [esp + 0x110]
push eax
push ecx
push edx
mov esi, 0x494d30
call dword [sym.imp.USER32.dll_LoadStringW]
xor ecx, ecx
test eax, eax
jle 0x45c309
jmp 0x45c2f0
cmp word [esp + ecx*2 + 0x10c], 0xa
je 0x45c302
inc ecx
cmp ecx, eax
jl 0x45c2f0
jmp 0x45c309
lea esi, [esp + ecx*2 + 0x10e]
mov eax, dword [esp + 0xfc]
mov edx, dword [esp + 0x10]
xor ecx, ecx
test bl, bl
sete cl
push esi
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_AppendMenuW]
mov esi, dword [esp + 0x18]
inc esi
cmp esi, dword [esp + 0x1c]
mov dword [esp + 0x18], esi
jl 0x45c0d1
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jne 0x45c35e
test esi, esi
je 0x45c352
push esi
call dword [sym.imp.USER32.dll_DestroyMenu]
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
xor al, al
jmp 0x45c366
mov eax, dword [esp + 0x14]
mov dword [eax], esi
mov al, 1
mov ecx, dword [esp + 0x29c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00469e0a
add esp, 0x290
ret 4