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

Disassembly:
sub esp, 0x68
mov eax, dword [0x434020]
xor eax, esp
mov dword [esp + 0x60], eax
mov ecx, dword [esi + 4]
push ebx
push ebp
mov ebp, dword [esp + 0x74]
xor eax, eax
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
push eax
push ebp
push 0x41d
push ecx
mov dword [esp + 0x1c], 0
call edi
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
mov ebx, dword [sym.imp.USER32.dll_MapWindowPoints]
push 1
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], edx
mov edx, dword [esi + 4]
push 0
push edx
mov dword [esp + 0x30], eax
call ebx
mov ecx, dword [esi + 4]
push 2
lea eax, [esp + 0x10]
push eax
push 0
push ecx
call ebx
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x44]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x18]
push ebp
push eax
mov dword [esp + 0x2c], 0x14
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x58]
push ecx
push ebp
mov dword [esp + 0x40], eax
xor eax, eax
push 0x417
push edx
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
call edi
mov ebx, dword [esp + 0x5c]
mov eax, dword [esi + 4]
push 1
push ebx
push 0x403
push eax
mov dword [esi + 0x88], ebp
call edi
mov ecx, dword [esi + 4]
push 0
push ebx
push 0x448
push ecx
call edi
cmp byte [0x436664], 0
je 0x41625d
mov al, byte [esp + 0x7c]
neg al
sbb eax, eax
and eax, 0xffffd000
add eax, 0x4000
jmp 0x41625f
xor eax, eax
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x28]
or eax, 0x40
push eax
push edx
push esi
call fcn.004143e0
mov eax, dword [esi + 4]
push 0
push ebx
push 0x403
push eax
call edi
mov ebp, dword [esi + 4]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, ebp
je 0x4162a3
push 0
push 0xffffffffffffffff
push 0x448
push ebp
call edi
mov ecx, dword [esi + 4]
mov ebp, dword [sym.imp.USER32.dll_PeekMessageW]
xor eax, eax
push eax
push 0x201
push 0x201
push ecx
lea edx, [esp + 0x4c]
push edx
mov dword [esi + 0x88], 0xffffffff
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
call ebp
test eax, eax
je 0x41631b
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
push eax
push ecx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x41631b
mov eax, dword [esi + 4]
push 1
push 0x201
push 0x201
push eax
lea ecx, [esp + 0x4c]
push ecx
call ebp
or ebp, 0xffffffff
cmp dword [esi + 0x8c], ebp
je 0x4163bd
cmp dword [0x43666c], 0
jne 0x416363
mov edi, dword [0x436448]
add edi, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x43666c], 0
jne 0x41635c
push str.WTL_CmdBar_InternalAutoPopupMsg
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [0x43666c], eax
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx edx, word [esi + 0x8c]
mov eax, dword [0x43666c]
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
push 0
push edx
push eax
push ecx
call edi
test dword [esi + 0x8c], 0xffff0000
jne 0x4163a3
test byte [esi + 0x84], 8
jne 0x4163a3
mov edx, dword [esi + 4]
push 0
push 0x28
push pe_nt_image_headers32
push edx
call edi
mov dword [esi + 0x8c], ebp
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00424bfa
add esp, 0x68
ret 8
and byte [esi + 0x84], 0xef
test byte [esi + 0x84], 0x20
jne 0x4163fe
mov al, byte [esi + 0x85]
test al, 2
je 0x4163e3
test al, 4
je 0x4163e3
and al, 0xf7
mov byte [esi + 0x85], al
mov eax, esi
call fcn.00416b90
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00424bfa
add esp, 0x68
ret 8
mov eax, dword [esi + 4]
push 0
push ebx
push 0x448
push eax
call edi
mov ecx, dword [esi + 4]
push 0
push 1
push 0x449
push ecx
call edi
mov ecx, dword [esp + 0x6c]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00424bfa
add esp, 0x68
ret 8