Function at 0x4545b0
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x244
push ebx
push esi
mov esi, dword [esp + 0x250]
xor ebx, ebx
push edi
mov edi, ecx
cmp esi, ebx
je 0x4545df
push esi
call dword [sym.imp.USER32.dll_IsMenu]
test eax, eax
jne 0x4545df
pop edi
pop esi
pop ebx
add esp, 0x244
ret 4
test byte [edi + 0x86], 1
je 0x4545f4
cmp dword [edi + 0x44], ebx
je 0x4545f4
mov ecx, edi
call fcn.0044d580
mov eax, dword [edi + 0x44]
cmp eax, ebx
je 0x454608
test byte [edi + 0x58], 2
jne 0x454608
push eax
call dword [sym.imp.USER32.dll_DestroyMenu]
test byte [edi + 0x84], 2
mov dword [edi + 0x44], esi
jne 0x454823
mov eax, dword [edi + 4]
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push ebx
push 0xb
push eax
call ebp
mov ecx, dword [edi + 4]
push ebx
push ebx
push 0x418
push ecx
call ebp
cmp eax, ebx
jle 0x454650
mov esi, eax
lea esp, [esp]
mov edx, dword [edi + 4]
push ebx
push ebx
push 0x416
push edx
call ebp
dec esi
jne 0x454640
mov eax, dword [edi + 0x44]
cmp eax, ebx
je 0x454800
push eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
push 0xc6
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x7e]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x84], ax
call fcn.0049e6e0
add esp, 0xc
xor esi, esi
cmp dword [esp + 0x10], ebx
jle 0x454800
nop
push 0x30
lea edx, [esp + 0x4c]
push ebx
push edx
call fcn.0049e6e0
push 0x110
lea eax, [esp + 0x154]
push ebx
push eax
mov dword [esp + 0x60], 0x30
mov dword [esp + 0x158], 0x114
call fcn.0049e6e0
add esp, 0x18
lea ecx, [esp + 0x140]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4546f3
mov eax, dword [esp + 0x144]
cmp eax, 5
jae 0x4546fb
cmp eax, 4
jne 0x4546f3
cmp dword [esp + 0x148], 0x5a
jae 0x4546fb
mov dword [esp + 0x48], 0x2c
mov ecx, dword [edi + 0x44]
lea eax, [esp + 0x48]
push eax
push 1
push esi
lea edx, [esp + 0x84]
push ecx
mov dword [esp + 0x5c], 0x15
mov dword [esp + 0x60], ebx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], 0x64
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
lea edx, [esp + 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x63
jle 0x454760
mov ecx, dword [edi + 0x44]
lea eax, [esp + 0x48]
push eax
push 1
push esi
push ecx
mov dword [esp + 0x60], 4
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
xor edx, edx
mov word [esp + 0x78], dx
mov edx, dword [edi + 4]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x54]
and al, 3
neg al
lea ecx, [esp + 0x14]
push ecx
sbb al, al
push 0xffffffffffffffff
and al, 0xfc
push 0x443
add al, 4
push edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], esi
mov byte [esp + 0x2c], al
mov byte [esp + 0x2d], 0x18
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call ebp
mov edx, dword [edi + 4]
xor eax, eax
lea ecx, [esp + 0x28]
push ecx
push esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], eax
push 0x440
lea eax, [esp + 0x84]
push edx
mov dword [esp + 0x38], 0x20
mov dword [esp + 0x3c], 2
mov dword [esp + 0x50], eax
call ebp
inc esi
cmp esi, dword [esp + 0x10]
jl 0x454690
mov eax, dword [edi + 4]
push ebx
push 1
push 0xb
push eax
call ebp
mov ecx, dword [edi + 4]
push 1
push ebx
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x244
ret 4