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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d811b
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 0x452f14
cmp dword [ebx + 0x2dd24], esi
jne 0x4534be
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 0x45314c
cmp esi, dword [ebx + 0x2d8bc]
je 0x452f7e
cmp esi, dword [ebx + 0x2dd24]
je 0x452f7e
cmp esi, dword [ebx + 0x2d8b8]
jne 0x452fa2
mov eax, dword [ebx + 0x2dd0c]
mov dword [ebx + 0x2c610], eax
mov eax, dword [ebx + 0x2dd0c]
mov dword [0x6dcfc0], eax
jmp 0x452f8a
mov eax, dword [ebx + 0x2dd10]
mov dword [ebx + 0x2c610], eax
cmp esi, dword [ebx + 0x2d8b8]
jne 0x452fa2
mov edi, dword [sym.imp.USER32.dll_GetMenuItemCount]
push esi
call edi
cmp eax, 5
je 0x452fca
jmp 0x452fa8
mov edi, dword [sym.imp.USER32.dll_GetMenuItemCount]
push esi
call edi
cmp dword [ebx + 0x2df44], eax
je 0x452fca
cmp esi, dword [ebx + 0x2dd24]
jne 0x45314a
push esi
call edi
test eax, eax
jne 0x45314a
cmp esi, dword [ebx + 0x2d8b8]
jne 0x453026
mov cx, word [0x4ffec0]
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 + 0x2d8c4]
stosw word es:[edi], ax
call fcn.004aefe0
lea eax, [esp + 0xec]
mov ecx, ebx
push eax
call fcn.004592c0
mov edi, dword [sym.imp.USER32.dll_GetMenuItemCount]
mov dword [0x6dcfcc], 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 + 0x2d8c4]
push edx
push 0x4525c0
push 0x60
push ebp
mov dword [esp + 0x514], eax
call fcn.004aecc0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x453080
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 0x4531a3
push esi
call edi
mov cx, word [0x4ffec0]
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 [0x6dcf80]
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.004bcc70
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.004bdbc0
mov edx, dword [esp + 0x28]
mov dword [esp + 0x508], 0xffffffff
push edx
call fcn.004d3765
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 + 0x2d8b8]
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 0x45326d
lea eax, [ebx + 0x43d8]
test eax, eax
je 0x45327f
lea eax, [ebx + 0x43dc]
jmp 0x453281
mov ecx, dword [esp + 0x78]
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.00437870
add esp, 8
push esi
call edi
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x2dd24]
cmp eax, esi
jne 0x4531d8
lea ecx, [ebx + 0x6184]
call fcn.004d04f0
mov ebp, eax
sub ebp, 2
jmp 0x4531da
xor ebp, ebp
mov ecx, dword [esp + 0x14]
mov edi, ebp
shl edi, 4
add edi, ebp
mov eax, 2
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 0x45311e
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 0x45311e
cmp dword [ebx + 0x2dd24], esi
jne 0x453246
lea ecx, [ebx + 0x6184]
call fcn.004d04f0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
add ecx, edx
sub ecx, eax
jmp 0x45324a
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.00452d10
mov ecx, dword [esp + 0x10]
inc ebp
inc ecx
add edi, 0x220
mov dword [esp + 0x10], ecx
jmp 0x4531fa
lea eax, [ebx + 0x6184]
test eax, eax
je 0x45327f
lea eax, [ebx + 0x6188]
jmp 0x453281
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 + 0x2d8b8], esi
jne 0x4532aa
lea eax, [ebx + 0x43d8]
test eax, eax
je 0x4532bc
lea eax, [ebx + 0x43dc]
jmp 0x4532be
lea eax, [ebx + 0x6184]
test eax, eax
je 0x4532bc
lea eax, [ebx + 0x6188]
jmp 0x4532be
xor eax, eax
mov edx, dword [eax + 4]
push 0
lea ecx, [esp + 0x44]
push 0
push ecx
push edx
call fcn.004b0760
add esp, 0x10
lea eax, [esp + 0xac]
push eax
call fcn.0044a400
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 + 0x2d8b8]
cmp eax, esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], 0
je 0x453338
cmp dword [ebx + 0x2d8bc], esi
je 0x453338
cmp dword [ebx + 0x2dd24], esi
jne 0x453367
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 0x453350
mov dword [esp + 0x10], ecx
mov ecx, dword [ebx + 4]
push 0
push 0
push ecx
lea ecx, [ebx + 0x2c600]
call fcn.004bd960
mov edi, dword [esp + 0x10]
mov eax, dword [0x6c4324]
test eax, eax
je 0x453436
mov eax, dword [esp + 0x14]
xor ebp, ebp
test eax, eax
jle 0x45342c
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 0x4533cc
xor eax, 0x20
mov dword [esp + 0x84], eax
push 0
push eax
mov eax, dword [ebx + 4]
lea ecx, [ebx + 0x2c600]
push eax
call fcn.004bd960
mov ecx, dword [esp + 0x18]
lea edx, [eax + ecx]
mov ecx, dword [esp + 0x10]
cmp edx, ecx
jl 0x453406
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 0x453382
mov dword [esp + 0x6c], 0
jmp 0x4534b2
xor ebx, ebx
test ebp, ebp
jle 0x4534ae
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 0x4534a1
test byte [esp + 0x84], 0x20
je 0x4534a1
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 0x453442
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