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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d969b
push eax
mov dword fs:[0], esp
sub esp, 0x4ec
push ebx
push ebp
push esi
mov esi, dword [esp + 0x508]
push edi
push 0
mov ebx, ecx
push esi
call dword [sym.imp.USER32.dll_GetMenuItemID]
cmp eax, 0x8056
je 0x454174
cmp dword [ebx + 0x2dd20], esi
jne 0x45471c
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x60], 0x1c
push eax
push esi
mov dword [esp + 0x6c], 9
call dword [sym.imp.USER32.dll_GetMenuInfo]
mov eax, dword [esp + 0x78]
xor ecx, ecx
cmp eax, ecx
mov ebp, eax
je 0x4543ac
cmp esi, dword [ebx + 0x2d8b8]
je 0x4541de
cmp esi, dword [ebx + 0x2dd20]
je 0x4541de
cmp esi, dword [ebx + 0x2d8b4]
jne 0x454202
mov eax, dword [ebx + 0x2dd08]
mov dword [ebx + 0x2c60c], eax
mov eax, dword [ebx + 0x2dd08]
mov dword [0x73ff68], eax
jmp 0x4541ea
mov eax, dword [ebx + 0x2dd0c]
mov dword [ebx + 0x2c60c], eax
cmp esi, dword [ebx + 0x2d8b4]
jne 0x454202
mov edi, dword [sym.imp.USER32.dll_GetMenuItemCount]
push esi
call edi
cmp eax, 5
je 0x45422a
jmp 0x454208
mov edi, dword [sym.imp.USER32.dll_GetMenuItemCount]
push esi
call edi
cmp dword [ebx + 0x2df40], eax
je 0x45422a
cmp esi, dword [ebx + 0x2dd20]
jne 0x4543aa
push esi
call edi
test eax, eax
jne 0x4543aa
cmp esi, dword [ebx + 0x2d8b4]
jne 0x454286
mov cx, word [0x500df0]
xor eax, eax
mov word [esp + 0xec], cx
mov ecx, 0x81
lea edi, [esp + 0xee]
lea edx, [esp + 0xec]
rep stosd dword es:[edi], eax
push 0x104
push edx
push ebp
lea ecx, [ebx + 0x2d8c0]
stosw word es:[edi], ax
call fcn.004b0330
lea eax, [esp + 0xec]
mov ecx, ebx
push eax
call fcn.0045a5d0
mov edi, dword [sym.imp.USER32.dll_GetMenuItemCount]
mov dword [0x73ff74], eax
mov cl, byte [esp + 0x1f]
xor eax, eax
mov byte [esp + 0x20], cl
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea edx, [esp + 0x20]
lea ecx, [ebx + 0x2d8c0]
push edx
push 0x453820
push 0x60
push ebp
mov dword [esp + 0x514], eax
call fcn.004b0010
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4542e0
mov ecx, dword [esp + 0x28]
sub ecx, eax
mov eax, 0x78787879
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add edx, eax
jne 0x454403
push esi
call edi
mov cx, word [0x500df0]
mov ebp, eax
mov word [esp + 0x2f4], cx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2f6]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x2f4]
push 0x104
stosw word es:[edi], ax
mov eax, dword [0x73ff28]
push edx
push 0x27
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [esp + 0x2f4]
push 0
push ecx
push ebp
push 0x400
push ebp
push esi
call fcn.004be090
add esp, 0x18
lea edx, [esp + 0xbc]
mov ecx, 0xc
xor eax, eax
push edx
lea edi, [esp + 0xc0]
push 1
push ebp
rep stosd dword es:[edi], eax
push esi
mov dword [esp + 0xcc], 0x30
mov dword [esp + 0xd0], 1
mov dword [esp + 0xd8], 3
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
push esi
call fcn.004befe0
mov edx, dword [esp + 0x28]
mov dword [esp + 0x508], 0xffffffff
push edx
call fcn.004d4cc1
add esp, 8
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
xor ecx, ecx
mov eax, dword [ebx + 0x2d8b4]
mov dword [esp + 0x30], ecx
cmp eax, esi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
jne 0x4544cb
lea eax, [ebx + 0x43d8]
test eax, eax
je 0x4544dd
lea eax, [ebx + 0x43dc]
jmp 0x4544df
mov ecx, dword [esp + 0x78]
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.00437bf0
add esp, 8
push esi
call edi
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x2dd20]
cmp eax, esi
jne 0x454436
lea ecx, [ebx + 0x6184]
call fcn.004d1920
mov ebp, eax
dec ebp
jmp 0x454438
xor ebp, ebp
mov ecx, dword [esp + 0x14]
mov edi, ebp
shl edi, 4
add edi, ebp
mov eax, 1
shl edi, 5
lea edx, [ecx + ebp]
sub eax, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x45437e
mov ecx, dword [esp + 0x28]
sub ecx, eax
mov eax, 0x78787879
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp ebp, edx
jae 0x45437e
cmp dword [ebx + 0x2dd20], esi
jne 0x4544a4
lea ecx, [ebx + 0x6184]
call fcn.004d1920
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
add ecx, edx
sub ecx, eax
jmp 0x4544a8
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
push ecx
lea ecx, [edi + eax]
push ecx
push esi
mov ecx, ebx
call fcn.00453f70
mov ecx, dword [esp + 0x10]
inc ebp
inc ecx
add edi, 0x220
mov dword [esp + 0x10], ecx
jmp 0x454458
lea eax, [ebx + 0x6184]
test eax, eax
je 0x4544dd
lea eax, [ebx + 0x6188]
jmp 0x4544df
xor eax, eax
mov edx, dword [eax + 4]
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [ebx + 0x2d8b4], esi
jne 0x454508
lea eax, [ebx + 0x43d8]
test eax, eax
je 0x45451a
lea eax, [ebx + 0x43dc]
jmp 0x45451c
lea eax, [ebx + 0x6184]
test eax, eax
je 0x45451a
lea eax, [ebx + 0x6188]
jmp 0x45451c
xor eax, eax
mov edx, dword [eax + 4]
push 0
lea ecx, [esp + 0x44]
push 0
push ecx
push edx
call fcn.004b1ae0
add esp, 0x10
lea eax, [esp + 0xac]
push eax
call fcn.0044b7a0
add esp, 4
lea ecx, [esp + 0xac]
lea edx, [esp + 0x40]
lea eax, [esp + 0x50]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_SubtractRect]
mov edi, dword [esp + 0x5c]
mov edx, dword [esp + 0x54]
sub edi, edx
push esi
mov dword [esp + 0x14], edi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov ebp, eax
mov eax, dword [ebx + 0x2d8b4]
cmp eax, esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], 0
je 0x454596
cmp dword [ebx + 0x2d8b8], esi
je 0x454596
cmp dword [ebx + 0x2dd20], esi
jne 0x4545c5
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
sub edi, eax
mov eax, edi
cmp ecx, eax
mov dword [esp + 0x10], eax
jle 0x4545ae
mov dword [esp + 0x10], ecx
mov ecx, dword [ebx + 4]
push 0
push 0
push ecx
lea ecx, [ebx + 0x2c5fc]
call fcn.004bed80
mov edi, dword [esp + 0x10]
mov eax, dword [0x7272bc]
test eax, eax
je 0x454694
mov eax, dword [esp + 0x14]
xor ebp, ebp
test eax, eax
jle 0x45468a
lea edx, [esp + 0x7c]
mov ecx, 0xc
push edx
xor eax, eax
lea edi, [esp + 0x80]
push 1
push ebp
push esi
rep stosd dword es:[edi], eax
mov dword [esp + 0x8c], 0x30
mov dword [esp + 0x90], 0x100
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
mov eax, dword [esp + 0x84]
test al, 0x20
je 0x45462a
xor eax, 0x20
mov dword [esp + 0x84], eax
push 0
push eax
mov eax, dword [ebx + 4]
lea ecx, [ebx + 0x2c5fc]
push eax
call fcn.004bed80
mov ecx, dword [esp + 0x18]
lea edx, [eax + ecx]
mov ecx, dword [esp + 0x10]
cmp edx, ecx
jl 0x454664
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x18], 0
or ecx, 0x20
mov dword [esp + 0x84], ecx
mov edx, dword [esp + 0x18]
add edx, eax
lea eax, [esp + 0x7c]
push eax
push 1
push ebp
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
mov eax, dword [esp + 0x14]
inc ebp
cmp ebp, eax
jl 0x4545e0
mov dword [esp + 0x6c], 0
jmp 0x454710
xor ebx, ebx
test ebp, ebp
jle 0x45470c
mov ebp, dword [sym.imp.USER32.dll_GetMenuItemInfoW]
lea edx, [esp + 0x7c]
mov ecx, 0xc
push edx
xor eax, eax
lea edi, [esp + 0x80]
push 1
push ebx
push esi
rep stosd dword es:[edi], eax
mov dword [esp + 0x8c], 0x30
mov dword [esp + 0x90], 0x100
call ebp
test eax, eax
je 0x4546ff
test byte [esp + 0x84], 0x20
je 0x4546ff
mov eax, dword [esp + 0x84]
xor eax, 0x20
mov dword [esp + 0x84], eax
lea eax, [esp + 0x7c]
push eax
push 1
push ebx
push esi
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
jl 0x4546a0
mov edi, dword [esp + 0x10]
mov dword [esp + 0x6c], edi
lea ecx, [esp + 0x60]
push ecx
push esi
call dword [sym.imp.USER32.dll_SetMenuInfo]
mov ecx, dword [esp + 0x4fc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4f8
ret 0xc