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

Disassembly:
sub esp, 0x264
push ebx
push ebp
push esi
push edi
call fcn.0044c6a0
push 0x60
mov dword [esp + 0x84], eax
lea eax, [esp + 0x88]
push 0
push eax
call fcn.0049e6e0
mov ebp, dword [esp + 0x284]
mov eax, dword [ebp + 4]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0xc
mov dword [esp + 0x84], 0x10
mov edx, dword [eax + 0xc]
mov eax, dword [eax]
lea ecx, [esp + 0x80]
push ecx
push edx
push 0x41c
push eax
call esi
mov edi, dword [esp + 0xa0]
push 0
push 0
push 0x418
push edi
call esi
mov ebx, eax
mov dword [esp + 0x2c], ebx
test ebx, ebx
jle 0x4540b7
push 0
push 0
push 0x52e
push edi
call esi
test eax, eax
setne cl
mov dword [esp + 0x28], eax
mov byte [ebp + 8], cl
call dword [sym.imp.USER32.dll_CreatePopupMenu]
lea edx, [esp + 0x30]
mov dword [esp + 0x10], eax
xor eax, eax
push edx
xor ebp, ebp
push edi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.dll_GetClientRect]
test ebx, ebx
jle 0x454095
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
push eax
push ebp
push 0x417
push edi
call esi
test byte [esp + 0x1c], 8
jne 0x45408a
lea ecx, [esp + 0x40]
push ecx
push ebp
xor eax, eax
push 0x41d
push edi
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
call esi
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x48]
mov bl, al
shr bl, 2
and bl, 1
cmp edx, dword [esp + 0x38]
jg 0x453ef9
mov ecx, dword [esp + 0x4c]
cmp ecx, dword [esp + 0x3c]
jle 0x45408a
test ah, 1
je 0x453f2a
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x45408a
mov eax, dword [esp + 0x10]
push 0
push 0
push 0x800
push eax
call dword [sym.imp.USER32.dll_AppendMenuW]
jmp 0x45408a
mov ecx, dword [esp + 0x278]
xor edx, edx
push 0x18e
lea eax, [esp + 0xea]
push edx
mov word [esp + 0xec], dx
push eax
cmp byte [ecx + 8], dl
je 0x453fb8
call fcn.0049e6e0
add esp, 0xc
lea ecx, [esp + 0x50]
call fcn.004417d0
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x50]
push edx
push 1
push ebp
lea ecx, [esp + 0xf0]
push eax
mov dword [esp + 0x64], 0x14
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], 0xc8
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x64]
xor eax, eax
test bl, bl
sete al
push ecx
mov ecx, dword [esp + 0x14]
push edx
or eax, 0x10
push eax
push ecx
call dword [sym.imp.USER32.dll_AppendMenuW]
jmp 0x45408a
call fcn.0049e6e0
xor eax, eax
add esp, 0xc
mov dword [esp + 0x54], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x1c]
push eax
lea esi, [esp + 0xec]
push 0x43f
mov ecx, esi
push edi
mov dword [esp + 0x60], 0x20
mov dword [esp + 0x64], 2
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], 0xc8
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x454029
cmp word [esp + 0xe4], 0
jne 0x45406b
mov edx, dword [esp + 0x18]
mov eax, dword [0x4de188]
push 0xc8
lea ecx, [esp + 0xe8]
push ecx
push edx
push eax
mov esi, 0x4bdc44
call dword [sym.imp.USER32.dll_LoadStringW]
xor ecx, ecx
test eax, eax
jle 0x45406b
cmp word [esp + ecx*2 + 0xe4], 0xa
je 0x454064
inc ecx
cmp ecx, eax
jl 0x454052
jmp 0x45406b
lea esi, [esp + ecx*2 + 0xe6]
mov ecx, dword [esp + 0x18]
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 [sym.imp.USER32.dll_SendMessageW]
inc ebp
cmp ebp, dword [esp + 0x2c]
jl 0x453e86
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jne 0x4540c6
test esi, esi
je 0x4540af
push esi
call dword [sym.imp.USER32.dll_DestroyMenu]
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x264
ret 4
mov ecx, dword [esp + 0x278]
pop edi
mov dword [ecx], esi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x264
ret 4