Function at 0x4b5268
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff28
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4b569f
push dword fs:[eax]
mov dword fs:[eax], esp
or edi, 0xffffffff
or esi, 0xffffffff
xor ebx, ebx
lea edx, [ebp - 4]
mov eax, dword [0x535d10]
mov eax, dword [eax]
call fcn.0040aea4
mov eax, dword [0x5365c4]
mov eax, dword [eax]
dec eax
je 0x4b52cf
dec eax
je 0x4b5359
jmp case.default.0x4b5534
mov eax, dword [0x536288]
mov eax, dword [eax]
sub eax, 0xa
jb 0x4b52e7
sub eax, 0x50
jb 0x4b5313
je 0x4b5352
jmp case.default.0x4b5534
mov eax, dword [ebp - 4]
mov edx, 0x4b56b8
call fcn.00404f08
je 0x4b5305
mov eax, dword [ebp - 4]
mov edx, 0x4b56c4
call fcn.00404f08
jne 0x4b530c
mov bl, 2
jmp case.default.0x4b5534
mov bl, 1
jmp case.default.0x4b5534
cmp dword [0x53a1d0], 0x4005a
jne 0x4b5326
mov bl, 5
jmp case.default.0x4b5534
mov eax, dword [ebp - 4]
mov edx, 0x4b56d0
call fcn.00404f08
je 0x4b5344
mov eax, dword [ebp - 4]
mov edx, 0x4b56b8
call fcn.00404f08
jne 0x4b534b
mov bl, 4
jmp case.default.0x4b5534
mov bl, 3
jmp case.default.0x4b5534
mov bl, 5
jmp case.default.0x4b5534
mov eax, dword [0x535d74]
mov eax, dword [eax]
add eax, 0xfffffffd
cmp eax, 7
ja case.default.0x4b5534
jmp dword [eax*4 + 0x4b5373]
mov eax, dword [0x536288]
mov eax, dword [eax]
dec eax
je 0x4b53ac
sub eax, 4
je 0x4b53b3
sub eax, 0x2e
je 0x4b53ba
jmp case.default.0x4b5534
mov bl, 6
jmp case.default.0x4b5534
mov bl, 7
jmp case.default.0x4b5534
mov bl, 8
jmp case.default.0x4b5534
mov bl, 9
jmp case.default.0x4b5534
mov eax, dword [0x536288]
mov eax, dword [eax]
sub eax, 1
jb 0x4b53de
je 0x4b53e5
dec eax
je 0x4b53ec
jmp case.default.0x4b5534
mov bl, 0xa
jmp case.default.0x4b5534
mov bl, 0xb
jmp case.default.0x4b5534
mov dword [ebp - 0xc8], 0x9c
xor eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
call fcn.004b5a08
push 0x59
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x4b5415
mov bl, 0xe
jmp case.default.0x4b5534
cmp word [ebp - 0x2c], 0
je 0x4b5439
lea eax, [ebp - 0xc8]
push eax
call sub.kernel32.dll_GetVersionExA_1
test eax, eax
je 0x4b5439
cmp byte [ebp - 0x2e], 1
jne 0x4b5439
mov bl, 0xd
jmp case.default.0x4b5534
mov bl, 0xc
jmp case.default.0x4b5534
mov eax, dword [0x536288]
cmp dword [eax], 2
jne 0x4b5521
push 0
lea eax, [ebp - 8]
push eax
mov ecx, 0x4b56dc
mov edx, 0x4b56f0
mov eax, 0x80000002
call fcn.004bf434
lea edx, [ebp - 0xcc]
mov eax, dword [0x5361d4]
call fcn.00406f5c
mov eax, dword [ebp - 0xcc]
mov edx, dword [ebp - 8]
call fcn.00405100
dec eax
je 0x4b54aa
lea edx, [ebp - 0xd0]
mov eax, dword [0x536294]
call fcn.00406f5c
mov eax, dword [ebp - 0xd0]
mov edx, dword [ebp - 8]
call fcn.00405100
dec eax
jne 0x4b54b1
mov esi, 3
jmp 0x4b5529
lea edx, [ebp - 0xd4]
mov eax, dword [0x53649c]
call fcn.00406f5c
mov eax, dword [ebp - 0xd4]
mov edx, dword [ebp - 8]
call fcn.00405100
dec eax
je 0x4b54f3
lea edx, [ebp - 0xd8]
mov eax, dword [0x536504]
call fcn.00406f5c
mov eax, dword [ebp - 0xd8]
mov edx, dword [ebp - 8]
call fcn.00405100
dec eax
jne 0x4b54fa
mov esi, 2
jmp 0x4b5529
call fcn.004b5720
mov edi, eax
cmp edi, 6
jne 0x4b550d
mov esi, 4
jmp 0x4b5529
cmp edi, 0xa
jne 0x4b5517
or esi, 0xffffffff
jmp 0x4b5529
mov esi, dword [0x536288]
mov esi, dword [esi]
jmp 0x4b5529
mov esi, dword [0x536288]
mov esi, dword [esi]
mov eax, esi
cmp eax, 4
ja case.default.0x4b5534
jmp dword [eax*4 + 0x4b553b]
mov dword [ebp - 0xc8], 0x9c
lea eax, [ebp - 0xc8]
push eax
call sub.kernel32.dll_GetVersionExA_1
test eax, eax
je 0x4b5576
cmp byte [ebp - 0x2e], 1
jne 0x4b5576
mov bl, 0xf
jmp case.default.0x4b5534
mov bl, 0x10
jmp case.default.0x4b5534
mov dword [ebp - 0xc8], 0x9c
lea eax, [ebp - 0xc8]
push eax
call sub.kernel32.dll_GetVersionExA_1
test eax, eax
je 0x4b55a4
cmp byte [ebp - 0x2e], 1
jne 0x4b55a4
mov bl, 0x11
jmp case.default.0x4b5534
mov bl, 0x12
jmp case.default.0x4b5534
mov dword [ebp - 0xc8], 0x9c
lea eax, [ebp - 0xc8]
push eax
call sub.kernel32.dll_GetVersionExA_1
test eax, eax
je 0x4b55cf
cmp byte [ebp - 0x2e], 1
jne 0x4b55cf
mov bl, 0x13
jmp case.default.0x4b5534
mov bl, 0x15
jmp case.default.0x4b5534
mov dword [ebp - 0xc8], 0x9c
lea eax, [ebp - 0xc8]
push eax
call sub.kernel32.dll_GetVersionExA_1
test eax, eax
je 0x4b55f7
cmp byte [ebp - 0x2e], 1
jne 0x4b55f7
mov bl, 0x16
jmp case.default.0x4b5534
mov bl, 0x18
jmp case.default.0x4b5534
mov dword [ebp - 0xc8], 0x9c
lea eax, [ebp - 0xc8]
push eax
call sub.kernel32.dll_GetVersionExA_1
test eax, eax
je 0x4b561f
cmp byte [ebp - 0x2e], 1
jne 0x4b561f
mov bl, 0x19
jmp case.default.0x4b5534
mov bl, 0x1a
jmp case.default.0x4b5534
mov edi, dword [0x535d74]
mov edi, dword [edi]
mov esi, dword [0x536288]
mov esi, dword [esi]
cmp edi, 0xa
jl 0x4b5674
sub edi, 0xa
jne 0x4b5674
cmp esi, 0xffffffff
jne 0x4b5649
call fcn.004b5894
mov esi, eax
sub esi, 1
jae 0x4b5674
mov dword [ebp - 0xc8], 0x9c
lea eax, [ebp - 0xc8]
push eax
call sub.kernel32.dll_GetVersionExA_1
test eax, eax
je 0x4b5672
cmp byte [ebp - 0x2e], 1
jne 0x4b5672
mov bl, 0x19
jmp 0x4b5674
mov bl, 0x1a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b56a6
lea eax, [ebp - 0xd8]
mov edx, 4
call fcn.00404b20
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404b20
ret