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

Disassembly:
mov eax, 0x10b0
call fcn.00495c50
mov eax, dword [esp + 0x10b4]
push esi
mov esi, ecx
push edi
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov eax, dword [0x5cad40]
push 0x80b
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
call dword [sym.imp.USER32.dll_LoadMenuW]
xor edi, edi
mov dword [esp + 0x14], eax
cmp eax, edi
je 0x450cad
push ebx
push edi
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ebx, eax
cmp ebx, edi
je 0x450ca1
mov ecx, dword [0x69404c]
push ebp
neg ecx
sbb ecx, ecx
mov ebp, dword [sym.imp.USER32.dll_CheckMenuItem]
and ecx, 0xfffffff8
add ecx, 8
push ecx
push 0x8021
push ebx
call ebp
mov edx, dword [0x694058]
neg edx
sbb edx, edx
and edx, 8
push edx
push 0x803c
push ebx
call ebp
push ebx
mov ecx, 0x5cae58
call fcn.0047c930
call fcn.004631b0
mov ebp, eax
cmp ebp, edi
je 0x450a87
mov dword [0x5cae60], ebp
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x10], edi
call fcn.0048c310
mov dword [esp + 0x14], eax
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov ecx, 0x411
lea edi, [esp + 0x7a]
mov word [esp + 0x78], ax
mov dword [esp + 0x34], 0x30
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x54]
stosw word es:[edi], ax
call fcn.0048bf20
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
xor edi, edi
test eax, eax
jle 0x450bc4
mov ecx, dword [esi + 0x54]
push edi
mov dword [esp + 0x3c], 0x42
call fcn.0048bf10
lea ecx, [esp + 0x10]
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [esi + 0x54]
push edx
push eax
mov dword [esp + 0x3c], eax
call fcn.0048c540
mov eax, dword [esp + 0x10]
test eax, eax
je 0x450bb7
add eax, 0x30f8
push eax
mov dword [esp + 0x5c], eax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov dword [esp + 0x60], eax
add esp, 4
lea eax, [edi + 1]
test ebp, ebp
mov dword [esp + 0x44], eax
je 0x450b79
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x78]
push 0x823
add edx, 0x20b0
push ecx
push edx
call fcn.0042aba0
add esp, 0xc
test eax, eax
je 0x450b79
push 0
push 0
push 0
lea eax, [esp + 0x84]
push 1
push eax
call fcn.0042ad20
add esp, 0x14
push eax
push 0xffffffffffffffff
push ebp
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jne 0x450b95
mov dword [esp + 0x38], 0x43
mov dword [esp + 0x40], 0x1000
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x44]
push 0
push 0
push edx
lea eax, [esp + 0x40]
push 0
push eax
push 0
push ecx
push ebx
mov ecx, 0x5cae58
call fcn.0047cb60
mov eax, dword [esp + 0x14]
inc edi
cmp edi, eax
jl 0x450adc
mov edx, dword [esp + 0x10c4]
lea eax, [esp + 0x68]
push edx
push eax
mov dword [esp + 0x6c], 0x14
call dword [sym.imp.USER32.dll_CopyRect]
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x64]
mov dword [esi + 0xa0], ebx
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
push 0x108
push ebx
mov ecx, 0x5cae58
call fcn.0047cfa0
push ebx
mov ecx, 0x5cae58
mov edi, eax
call fcn.0047c9e0
test ebp, ebp
mov dword [esi + 0xa0], 0
je 0x450c2a
push ebp
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
test edi, edi
pop ebp
je 0x450ca1
mov eax, edi
sub eax, 0x8021
je 0x450c7d
sub eax, 0x1b
je 0x450c64
sub eax, 0x1c3f
je 0x450c5b
mov ecx, dword [esi + 0x54]
dec edi
push edi
call fcn.0048bf10
mov ecx, dword [esi + 0x54]
push 0
push eax
call fcn.0048b5f0
jmp 0x450ca1
mov ecx, esi
call fcn.0044cf70
jmp 0x450ca1
mov esi, dword [0x694058]
xor edx, edx
test esi, esi
sete dl
push 0
mov dword [0x694058], edx
push 0x13
jmp 0x450c93
mov esi, dword [0x69404c]
xor eax, eax
test esi, esi
sete al
push 0
mov dword [0x69404c], eax
push 1
push 1
call fcn.004259c0
mov ecx, eax
call fcn.004264f0
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_DestroyMenu]
pop ebx
pop edi
pop esi
add esp, 0x10b0
ret 4