Function at 0x42ea20
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451105
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x170
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
jne 0x42ec54
mov edx, dword [edi + 0x20]
lea ecx, [edx - 1]
test ecx, ecx
js 0x42ebe9
mov eax, dword [edi + 0x1c]
mov ebx, dword [eax + ecx*4]
lea esi, [eax + ecx*4]
cmp ecx, edx
jge 0x42ebe9
lea eax, [edx - 1]
cmp ecx, eax
je 0x42ea93
sub edx, ecx
shl edx, 2
lea eax, [esi + 4]
lea ecx, [edx - 4]
push ecx
push eax
push edx
push esi
call fcn.0043b1dc
push eax
call fcn.00401ae0
add esp, 0x14
dec dword [edi + 0x20]
test ebx, ebx
je 0x42ebe9
push ebx
mov dword [ebp - 4], 0
xor esi, esi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x42eb8f
push 0x30
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.0043da70
push 0x110
lea eax, [ebp - 0x174]
push 0
push eax
mov dword [ebp - 0x5c], 0x30
mov dword [ebp - 0x178], 0x114
call fcn.0043da70
add esp, 0x18
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x42eb14
mov eax, dword [ebp - 0x174]
cmp eax, 5
jae 0x42eb1b
cmp eax, 4
jne 0x42eb14
cmp dword [ebp - 0x170], 0x5a
jae 0x42eb1b
mov dword [ebp - 0x5c], 0x2c
lea eax, [ebp - 0x5c]
push eax
push 1
push esi
push ebx
mov dword [ebp - 0x58], 0x30
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
mov edi, dword [ebp - 0x3c]
test edi, edi
je 0x42eb7c
mov dword [ebp - 0x58], 0x30
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x54], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x38], eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x5c]
push eax
push 1
push esi
push ebx
mov dword [ebp - 0x3c], 0
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
push dword [edi + 8]
call fcn.0043b668
push edi
call fcn.0043b158
add esp, 8
push ebx
inc esi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp esi, eax
jl 0x42eab6
mov edi, dword [ebp - 0x10]
xorps xmm0, xmm0
lea eax, [ebp - 0x2c]
push eax
movq qword [ebp - 0x28], xmm0
push ebx
movq qword [ebp - 0x20], xmm0
movq qword [ebp - 0x18], xmm0
mov dword [ebp - 0x2c], 0x1c
mov dword [ebp - 0x28], 8
call dword [sym.imp.USER32.dll_GetMenuInfo]
test eax, eax
je 0x42ebdd
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x42ebdd
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x42ebd4
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x14]
push esi
call fcn.0043b158
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x42ea50
mov eax, dword [edi + 0x28]
lea ebx, [edi + 0x28]
mov edi, dword [eax + 4]
mov esi, edi
cmp byte [edi + 0xd], 0
jne 0x42ec1d
lea ebx, [ebx]
push dword [esi + 8]
mov ecx, ebx
call fcn.00422680
mov esi, dword [esi]
push edi
call fcn.0043b158
add esp, 4
cmp byte [esi + 0xd], 0
mov edi, esi
je 0x42ec00
mov eax, dword [ebx]
mov esi, dword [ebp - 0x10]
mov dword [eax + 4], eax
mov eax, dword [ebx]
mov dword [eax], eax
mov eax, dword [ebx]
mov dword [eax + 8], eax
mov dword [ebx + 4], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x42ec4a
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [esi + 8], 0
mov dword [0x46a074], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [eax], 0
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8