Function at 0x4b7f51
Capabilities:
Check os version

Disassembly:
mov eax, 0x4c48f0
call fcn.004a7c38
sub esp, 0x54
and dword [ebp - 0x10], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
cmp ebx, 0x111
push ecx
pop edi
jne 0x4b7f8a
push dword [ebp + 0x10]
mov eax, dword [edi]
push dword [ebp + 0xc]
call dword [eax + 0x78]
test eax, eax
je 0x4b80da
jmp 0x4b83a7
cmp ebx, 0x4e
jne 0x4b7fb7
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x4b80da
mov edx, dword [edi]
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [ebp + 0xc]
push edi
pop ecx
call dword [edx + 0x7c]
test eax, eax
jne case.0x4b8125.38
jmp 0x4b80da
mov esi, dword [ebp + 0x10]
cmp ebx, 6
jne 0x4b7fcf
push esi
call fcn.004b70aa
push eax
push dword [ebp + 0xc]
push edi
call fcn.004b6e08
cmp ebx, 0x20
jne 0x4b7fec
mov eax, esi
shr eax, 0x10
push eax
movsx eax, si
push eax
push edi
call fcn.004b6e69
test eax, eax
jne 0x4b83a7
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x28]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
push eax
pop ebx
mov eax, 0x1ff
and ebx, eax
and ecx, eax
push 7
xor ebx, ecx
call fcn.004bfe97
mov ecx, dword [ebp + 8]
lea eax, [ebx + ebx*2]
cmp ecx, dword [eax*4 + 0x5320c8]
lea ebx, [eax*4 + 0x5320c8]
mov eax, dword [ebp - 0x14]
jne 0x4b8052
cmp eax, dword [ebx + 8]
jne 0x4b8052
mov ebx, dword [ebx + 4]
push 7
mov dword [ebp + 0x10], ebx
call fcn.004bff07
test ebx, ebx
je 0x4b80da
cmp dword [ebp + 8], 0xc000
jb 0x4b80fa
jmp 0x4b83dd
or eax, eax
mov dword [ebx], ecx
mov dword [ebx + 8], eax
je 0x4b80cf
jmp 0x4b8063
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov edx, 0xc000
cmp ecx, edx
jae 0x4b8082
push 0
push 0
push ecx
push dword [eax + 4]
call fcn.004b7ecd
test eax, eax
mov dword [ebp + 0x10], eax
jne 0x4b80ed
jmp 0x4b80c3
mov eax, dword [eax + 4]
push 0
push 0
push edx
push eax
call fcn.004b7ecd
test eax, eax
mov dword [ebp + 0x10], eax
je 0x4b80c3
jmp 0x4b809c
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp + 8]
cmp dword [ecx], edx
je 0x4b83d0
push 0
push 0
add eax, 0x18
push 0xc000
push eax
call fcn.004b7ecd
or eax, eax
mov dword [ebp + 0x10], eax
jne 0x4b8099
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
or eax, eax
mov dword [ebp - 0x14], eax
jne 0x4b805d
and dword [ebx + 4], 0
push 7
call fcn.004bff07
sub eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
push 7
mov dword [ebx + 4], eax
call fcn.004bff07
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebx + 0x14]
cmp dword [ecx + 8], 0x1a
mov eax, dword [ecx + 0x10]
jne 0x4b811b
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, dword [ebp + 0x10]
cmp al, 4
sbb eax, eax
and al, 0xf0
add eax, 0x2f
dec eax
cmp eax, 0x30
ja case.0x4b8125.38
jmp dword [eax*4 + 0x4b83ff]
push dword [ebp + 0xc]
call fcn.004bb7c3
push eax
jmp 0x4b8235
push dword [ebp + 0xc]
jmp 0x4b8235
mov eax, esi
shr eax, 0x10
push eax
movsx eax, si
push eax
push dword [ebp + 0xc]
call fcn.004b70aa
jmp 0x4b8250
push esi
push dword [ebp + 0xc]
call fcn.004b70aa
jmp 0x4b836a
lea ecx, [ebp - 0x24]
call fcn.004bb721
mov eax, dword [esi + 4]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x20], eax
call fcn.004b6c7f
mov eax, dword [esi]
mov esi, dword [esi + 8]
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x44], eax
call fcn.004b70d1
test eax, eax
jne 0x4b81b3
mov eax, dword [edi + 0x34]
test eax, eax
je 0x4b81b0
push dword [ebp - 0x44]
lea ecx, [eax + 0x20]
call fcn.004b5036
or eax, eax
je 0x4b81b0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x60]
push esi
push eax
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call ebx
and dword [ebp - 0x20], 0
and dword [ebp - 0x44], 0
and byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x10], eax
call fcn.004b7738
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
jmp 0x4b820b
lea ecx, [ebp - 0x24]
call fcn.004bb721
mov eax, dword [esi + 4]
push dword [esi + 8]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
push edi
pop ecx
mov dword [ebp - 4], 2
call ebx
and dword [ebp - 0x20], 0
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x24]
call fcn.004bb856
jmp case.0x4b8125.38
mov eax, dword [ebp + 0xc]
shr eax, 0x10
push eax
push esi
call fcn.004b70aa
jmp 0x4b824b
mov eax, dword [ebp + 0xc]
shr eax, 0x10
push eax
movzx eax, word [ebp + 0xc]
jmp 0x4b836a
push esi
mov ecx, edi
call ebx
jmp 0x4b83e8
push esi
call fcn.004baa36
push eax
mov eax, dword [ebp + 0xc]
shr eax, 0x10
push eax
movzx eax, word [ebp + 0xc]
push eax
push edi
pop ecx
call ebx
jmp 0x4b83e8
push edi
pop ecx
call ebx
jmp case.0x4b8125.38
push dword [ebp + 0xc]
jmp 0x4b8374
push esi
pop eax
shr eax, 0x10
movsx eax, ax
push eax
movsx eax, si
push eax
jmp 0x4b8357
mov eax, esi
shr eax, 0x10
push eax
movzx eax, si
jmp 0x4b8395
push dword [ebp + 0xc]
call fcn.004b70aa
push eax
push esi
call fcn.004b70aa
push eax
xor eax, eax
cmp dword [edi + 0x1c], esi
sete al
push eax
jmp 0x4b8399
push dword [ebp + 0xc]
call fcn.004bb7c3
push eax
jmp 0x4b8374
push dword [ebp + 0xc]
call fcn.004baa36
jmp 0x4b82b1
push esi
pop eax
shr eax, 0x10
push eax
movzx eax, si
push eax
push dword [ebp + 0xc]
call fcn.004baa36
jmp 0x4b82a3
push dword [ebp + 0xc]
jmp 0x4b82db
push esi
call fcn.004b70aa
jmp 0x4b82b1
mov eax, esi
shr eax, 0x10
push eax
movzx eax, si
jmp 0x4b82f7
movsx eax, si
shr esi, 0x10
movsx ecx, si
push ecx
push eax
push dword [ebp + 0xc]
call fcn.004b70aa
jmp 0x4b82a3
push esi
push dword [ebp + 0xc]
call fcn.004b70aa
jmp 0x4b8277
push esi
call fcn.004b70aa
push eax
jmp 0x4b8354
mov eax, dword [ebp + 0xc]
shr eax, 0x10
push eax
push esi
call fcn.004b70aa
jmp 0x4b8381
mov eax, dword [ebp + 0xc]
movsx edx, ax
shr eax, 0x10
cmp dword [ecx + 0x10], 0x1d
mov dword [ebp + 8], edx
movsx eax, ax
mov dword [ebp + 0xc], eax
jne 0x4b834f
push esi
call fcn.004b70aa
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
jmp 0x4b8399
push eax
push edx
jmp 0x4b8357
push esi
push dword [ebp + 0xc]
push edi
pop ecx
call ebx
jmp case.0x4b8125.38
movsx eax, si
shr esi, 0x10
movsx ecx, si
push ecx
push eax
jmp 0x4b83e4
mov ecx, edi
call ebx
jmp 0x4b83e8
push esi
mov ecx, edi
call ebx
jmp case.0x4b8125.38
mov eax, dword [ebp + 0xc]
push esi
shr eax, 0x10
push eax
movzx eax, word [ebp + 0xc]
jmp 0x4b82a3
movsx eax, si
shr esi, 0x10
movsx ecx, si
push ecx
push eax
push dword [ebp + 0xc]
mov ecx, edi
call ebx
jmp case.0x4b8125.38
push esi
push edi
pop ecx
push dword [ebp + 0xc]
call ebx
mov dword [ebp - 0x10], 1
jmp case.0x4b8125.38
movzx eax, si
shr esi, 0x10
push esi
push eax
mov eax, dword [ebp + 0xc]
mov ecx, edi
shr eax, 0x10
push eax
movzx eax, word [ebp + 0xc]
push eax
call ebx
mov dword [ebp - 0x10], eax
jmp 0x4b7faa
push 7
mov dword [ebx + 4], eax
call fcn.004bff07
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx + 0x14]
push esi
push dword [ebp + 0xc]
mov ecx, edi
call ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4b83f7
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
push 1
pop eax
jmp 0x4b80dc