Function at 0x450a20
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4bc1a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x20], esi
push 0x4de1e8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebp, ebp
cmp esi, ebp
je 0x450a60
lea eax, [esi + 4]
mov dword [0x4dd308], eax
jmp 0x450a66
mov dword [0x4dd308], ebp
mov edi, dword [0x4de184]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push edi
push 0x44fa40
push 5
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov ebx, dword [esp + 0x184]
mov edx, dword [esp + 0x180]
mov dword [0x4dd304], eax
mov cl, byte [esi + 0x84]
mov edi, dword [esi + 4]
and cl, 0xf7
or cl, 1
push ebx
push edx
mov byte [esi + 0x84], cl
call fcn.0044cd50
mov ecx, dword [esp + 0x190]
mov edx, dword [esp + 0x184]
add esp, 8
push ecx
push edi
push ebx
push eax
mov eax, dword [esp + 0x188]
push edx
push eax
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
and byte [esi + 0x84], 0xfe
mov ecx, dword [0x4dd304]
push ecx
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
push 0x4de1e8
mov dword [0x4dd304], ebp
mov dword [0x4dd308], ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esi + 4]
mov ebp, dword [sym.imp.USER32.dll_UpdateWindow]
push edx
call ebp
mov edi, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push edi
call ebx
test eax, eax
je 0x450b29
nop
push eax
mov edi, eax
call ebx
test eax, eax
jne 0x450b20
push edi
call ebp
test byte [esi + 0x84], 4
je 0x450c87
lea esp, [esp]
mov ecx, dword [esi + 0x18]
lea eax, [ecx - 1]
test eax, eax
js 0x450c87
mov edx, dword [esi + 0x14]
mov ebx, dword [edx + eax*4]
cmp eax, ecx
jge 0x450c87
mov dword [esi + 0x18], eax
test ebx, ebx
je 0x450c87
push ebx
xor edi, edi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x450b40
push 0x30
lea eax, [esp + 0x28]
push 0
push eax
call fcn.0049e6e0
push 0x110
lea ecx, [esp + 0x68]
push 0
push ecx
mov dword [esp + 0x3c], 0x30
mov dword [esp + 0x6c], 0x114
call fcn.0049e6e0
add esp, 0x18
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x450bca
mov eax, dword [esp + 0x58]
cmp eax, 5
jae 0x450bd2
cmp eax, 4
jne 0x450bca
cmp dword [esp + 0x5c], 0x5a
jae 0x450bd2
mov dword [esp + 0x24], 0x2c
lea eax, [esp + 0x24]
push eax
push 1
push edi
push ebx
mov dword [esp + 0x38], 0x32
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
mov eax, dword [esp + 0x44]
mov ebp, eax
test eax, eax
je 0x450c72
cmp dword [eax], 0x1313
jne 0x450c72
mov dword [esp + 0x28], 0x31
mov ecx, dword [eax + 8]
mov dword [esp + 0x2c], ecx
mov edx, dword [eax + 0xc]
lea esi, [eax + 4]
mov dword [esp + 0x30], edx
mov eax, dword [esi]
mov dword [esp + 0x48], eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esp + 0x24]
push edx
push 1
push edi
push ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x54], 0
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
mov edx, dword [esp + 0x30]
mov eax, dword [esi]
or edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
push eax
push ecx
or edx, 0x400
push edx
push edi
push ebx
call dword [sym.imp.USER32.dll_ModifyMenuW]
mov eax, dword [esi]
push eax
call fcn.0049e9ee
push ebp
call fcn.0049e3c8
mov esi, dword [esp + 0x28]
add esp, 8
push ebx
inc edi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp edi, eax
jl 0x450b74
jmp 0x450b40
mov ecx, dword [esp + 0x168]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret 0x14