Function at 0x429110
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454fa5
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 0x429344
mov edx, dword [edi + 0x20]
lea ecx, [edx - 1]
test ecx, ecx
js 0x4292d9
mov eax, dword [edi + 0x1c]
mov ebx, dword [eax + ecx*4]
lea esi, [eax + ecx*4]
cmp ecx, edx
jge 0x4292d9
lea eax, [edx - 1]
cmp ecx, eax
je 0x429183
sub edx, ecx
shl edx, 2
lea eax, [esi + 4]
lea ecx, [edx - 4]
push ecx
push eax
push edx
push esi
call fcn.0043ca53
push eax
call fcn.004013f0
add esp, 0x14
dec dword [edi + 0x20]
test ebx, ebx
je 0x4292d9
push ebx
mov dword [ebp - 4], 0
xor esi, esi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x42927f
push 0x30
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.0043f760
push 0x110
lea eax, [ebp - 0x174]
push 0
push eax
mov dword [ebp - 0x5c], 0x30
mov dword [ebp - 0x178], 0x114
call fcn.0043f760
add esp, 0x18
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x429204
mov eax, dword [ebp - 0x174]
cmp eax, 5
jae 0x42920b
cmp eax, 4
jne 0x429204
cmp dword [ebp - 0x170], 0x5a
jae 0x42920b
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 0x42926c
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.0043ca9f
push edi
call fcn.0043c9cf
add esp, 8
push ebx
inc esi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp esi, eax
jl 0x4291a6
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 0x4292cd
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x4292cd
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4292c4
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x14]
push esi
call fcn.0043c9cf
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x429140
mov eax, dword [edi + 0x28]
lea ebx, [edi + 0x28]
mov edi, dword [eax + 4]
mov esi, edi
cmp byte [edi + 0xd], 0
jne 0x42930d
lea ebx, [ebx]
push dword [esi + 8]
mov ecx, ebx
call fcn.00415600
mov esi, dword [esi]
push edi
call fcn.0043c9cf
add esp, 4
cmp byte [esi + 0xd], 0
mov edi, esi
je 0x4292f0
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 0x42933a
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [esi + 8], 0
mov dword [0x4723e4], 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