Function at 0x4c8510
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4c88a8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [edi + 0x3e], 0
je 0x4c888a
lea eax, [ebp - 4]
mov edx, dword [edi + 0x34]
call fcn.00407b54
mov eax, edi
call fcn.004cb8b4
test eax, eax
jle 0x4c8563
mov eax, edi
call fcn.004c8b6c
mov dword [ebp - 0x34], eax
jmp 0x4c85ad
cmp word [edi + 0x60], 0
je 0x4c85ad
mov ebx, dword [edi + 0x64]
test ebx, ebx
je 0x4c8589
cmp dword [ebx + 0x64], 0
jne 0x4c8589
mov eax, dword [ebx + 4]
mov edx, dword [0x4c48ac]
call fcn.00405970
test al, al
jne 0x4c85ad
push dword [ebp - 4]
push 0x4c88c4
lea edx, [ebp - 0x4c]
movzx eax, word [edi + 0x60]
call fcn.004c7a74
push dword [ebp - 0x4c]
lea eax, [ebp - 4]
mov edx, 3
call fcn.004080b8
call sub.kernel32.dll_GetVersion_1
cmp al, 4
jb 0x4c8800
mov eax, dword [0x737cc8]
cmp dword [eax], 1
jne 0x4c85ce
mov eax, dword [0x737010]
cmp dword [eax], 4
jle 0x4c85d7
mov dword [ebp - 0x48], 0x30
jmp 0x4c85de
mov dword [ebp - 0x48], 0x2c
mov eax, dword [0x737010]
cmp dword [eax], 6
jl 0x4c85f2
mov eax, dword [0x737cc8]
cmp dword [eax], 2
je 0x4c85f6
xor ebx, ebx
jmp 0x4c85f8
mov bl, 1
test bl, bl
je 0x4c8622
call fcn.004f3cb8
cmp byte [eax + 5], 0
je 0x4c8622
push 0x3e9
push 0
mov eax, dword [0x736eec]
mov eax, dword [eax]
call eax
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x11], al
jmp 0x4c8626
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x44], 0x3f
mov eax, edi
call fcn.004cbe80
mov dword [ebp - 0x10], eax
mov eax, edi
call fcn.004cb02c
mov esi, eax
cmp dword [ebp - 0x10], 0
je 0x4c8653
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x40], 0
jne 0x4c8669
test esi, esi
jne 0x4c8669
mov ebx, dword [edi + 0x4c]
test ebx, ebx
je 0x4c8665
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x20]
test al, al
je 0x4c8669
xor eax, eax
jmp 0x4c866b
mov al, 1
mov ebx, eax
mov eax, dword [edi + 0x64]
mov eax, dword [eax + 4]
mov edx, dword [0x4c48ac]
call fcn.00405970
test al, al
je 0x4c86c2
xor edx, edx
mov eax, 6
call fcn.0041bcfc
test al, al
je 0x4c86c2
call fcn.004f3cb8
cmp byte [eax + 5], 0
je 0x4c86c2
test bl, bl
je 0x4c86ba
test esi, esi
je 0x4c86ab
cmp dword [edi + 0x40], 0xffffffff
jne 0x4c86be
cmp dword [edi + 0x4c], 0
jne 0x4c86be
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x40], 0
jne 0x4c86be
xor eax, eax
jmp 0x4c86c0
mov al, 1
mov ebx, eax
cmp byte [ebp - 0x11], 0
je 0x4c86ca
xor ebx, ebx
mov eax, dword [edi + 0x34]
mov edx, 0x4c88d4
call fcn.00408278
sete al
and eax, 0x7f
mov eax, dword [eax*4 + 0x729f3c]
movzx edx, byte [edi + 0x3d]
mov edx, dword [edx*4 + 0x729f34]
movzx ecx, byte [edi + 0x48]
or edx, dword [ecx*4 + 0x729f10]
or eax, edx
movzx edx, byte [ebp - 9]
or eax, dword [edx*4 + 0x729f44]
movzx edx, bl
or eax, dword [edx*4 + 0x729f4c]
mov dword [ebp - 0x40], eax
movzx eax, byte [edi + 0x38]
mov eax, dword [eax*4 + 0x729f1c]
movzx edx, byte [edi + 0x39]
or eax, dword [edx*4 + 0x729f2c]
movzx edx, byte [edi + 0x3a]
or eax, dword [edx*4 + 0x729f24]
mov dword [ebp - 0x3c], eax
movzx eax, word [edi + 0x50]
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
mov eax, edi
call fcn.004cb8b4
test eax, eax
jle 0x4c8763
mov eax, edi
call fcn.004c8b6c
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 4]
call fcn.00407b8c
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x48]
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_InsertMenuItemW
cmp byte [ebp - 0x11], 0
je 0x4c888a
mov eax, edi
call fcn.004cb02c
mov esi, eax
test esi, esi
je 0x4c888a
cmp dword [edi + 0x40], 0xffffffff
jle 0x4c888a
mov eax, esi
call fcn.004f69e0
cmp eax, dword [edi + 0x40]
jle 0x4c888a
mov eax, esi
call fcn.004f6610
mov edx, eax
lea ecx, [ebp - 0x18]
mov eax, dword [0x73d600]
call fcn.004cf8d8
test al, al
je 0x4c888a
mov dword [ebp - 0x44], 0x80
mov edx, dword [edi + 0x40]
mov eax, dword [ebp - 0x18]
call fcn.004cefd4
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x48]
push eax
push 0
movzx eax, word [edi + 0x50]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_SetMenuItemInfoW
jmp 0x4c888a
mov eax, dword [edi + 0x34]
mov edx, 0x4c88d4
call fcn.00408278
sete al
and eax, 0x7f
mov ebx, dword [eax*4 + 0x729f08]
movzx eax, byte [edi + 0x48]
mov eax, dword [eax*4 + 0x729efc]
movzx edx, byte [edi + 0x38]
or eax, dword [edx*4 + 0x729eec]
movzx edx, byte [edi + 0x39]
or eax, dword [edx*4 + 0x729ef4]
or ebx, eax
or ebx, 0x400
mov eax, edi
call fcn.004cb8b4
test eax, eax
jle 0x4c8870
mov eax, dword [edi + 0x34]
call fcn.00407b8c
push eax
mov eax, edi
call fcn.004c8b6c
push eax
or ebx, 0x10
push ebx
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_InsertMenuW
jmp 0x4c888a
mov eax, dword [ebp - 4]
call fcn.00407b8c
push eax
movzx eax, word [edi + 0x50]
push eax
push ebx
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_InsertMenuW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c88af
lea eax, [ebp - 0x4c]
call fcn.00407af0
lea eax, [ebp - 4]
call fcn.00407af0
ret