Function at 0x5d2b56
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5d2c97
push dword fs:[eax]
mov dword fs:[eax], esp
or esi, 0xffffffff
xor ebx, ebx
lea edx, [ebp - 4]
mov eax, dword [0x6948c0]
mov eax, dword [eax]
call fcn.00423c40
mov eax, dword [0x6950d8]
mov eax, dword [eax]
dec eax
je 0x5d28c3
dec eax
je 0x5d294d
jmp case.default.0x5d2b3b
mov eax, dword [0x694dcc]
mov eax, dword [eax]
sub eax, 0xa
jb 0x5d28db
sub eax, 0x50
jb 0x5d2907
je 0x5d2946
jmp case.default.0x5d2b3b
mov eax, dword [ebp - 4]
mov edx, 0x5d2cb4
call fcn.0040aa2c
je 0x5d28f9
mov eax, dword [ebp - 4]
mov edx, 0x5d2cc4
call fcn.0040aa2c
jne 0x5d2900
mov bl, 2
jmp case.default.0x5d2b3b
mov bl, 1
jmp case.default.0x5d2b3b
cmp dword [0x69bd54], 0x4005a
jne 0x5d291a
mov bl, 5
jmp case.default.0x5d2b3b
mov eax, dword [ebp - 4]
mov edx, 0x5d2cd4
call fcn.0040aa2c
je 0x5d2938
mov eax, dword [ebp - 4]
mov edx, 0x5d2cb4
call fcn.0040aa2c
jne 0x5d293f
mov bl, 4
jmp case.default.0x5d2b3b
mov bl, 3
jmp case.default.0x5d2b3b
mov bl, 5
jmp case.default.0x5d2b3b
mov eax, dword [0x694918]
mov eax, dword [eax]
add eax, 0xfffffffd
cmp eax, 7
ja case.default.0x5d2b3b
jmp dword [eax*4 + 0x5d2967]
mov eax, dword [0x694dcc]
mov eax, dword [eax]
dec eax
je 0x5d29a0
sub eax, 4
je 0x5d29a7
sub eax, 0x2e
je 0x5d29ae
jmp case.default.0x5d2b3b
mov bl, 6
jmp case.default.0x5d2b3b
mov bl, 7
jmp case.default.0x5d2b3b
mov bl, 8
jmp case.default.0x5d2b3b
mov bl, 9
jmp case.default.0x5d2b3b
mov eax, dword [0x694dcc]
mov eax, dword [eax]
sub eax, 1
jb 0x5d29d2
je 0x5d29d9
dec eax
je 0x5d29e0
jmp case.default.0x5d2b3b
mov bl, 0xa
jmp case.default.0x5d2b3b
mov bl, 0xb
jmp case.default.0x5d2b3b
mov dword [ebp - 0x148], 0x11c
xor eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
call fcn.005d3114
push 0x59
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x5d2a09
mov bl, 0xe
jmp case.default.0x5d2b3b
cmp word [ebp - 0x2c], 0
je 0x5d2a2d
lea eax, [ebp - 0x148]
push eax
call sub.kernel32.dll_GetVersionExW_1
test eax, eax
je 0x5d2a2d
cmp byte [ebp - 0x2e], 1
jne 0x5d2a2d
mov bl, 0xd
jmp case.default.0x5d2b3b
mov bl, 0xc
jmp case.default.0x5d2b3b
mov eax, dword [0x694dcc]
cmp dword [eax], 2
jne 0x5d2b2b
push 0
lea eax, [ebp - 8]
push eax
mov ecx, 0x5d2ce4
mov edx, 0x5d2d08
mov eax, 0x80000002
call fcn.005d5e54
lea edx, [ebp - 0x14c]
mov eax, dword [0x694d20]
call fcn.0040d994
mov eax, dword [ebp - 0x14c]
mov ecx, 1
mov edx, dword [ebp - 8]
call fcn.0040ac74
dec eax
je 0x5d2aa8
lea edx, [ebp - 0x150]
mov eax, dword [0x694dd8]
call fcn.0040d994
mov eax, dword [ebp - 0x150]
mov ecx, 1
mov edx, dword [ebp - 8]
call fcn.0040ac74
dec eax
jne 0x5d2ab2
mov eax, 3
jmp 0x5d2b32
lea edx, [ebp - 0x154]
mov eax, dword [0x694fdc]
call fcn.0040d994
mov eax, dword [ebp - 0x154]
mov ecx, 1
mov edx, dword [ebp - 8]
call fcn.0040ac74
dec eax
je 0x5d2afe
lea edx, [ebp - 0x158]
mov eax, dword [0x695024]
call fcn.0040d994
mov eax, dword [ebp - 0x158]
mov ecx, 1
mov edx, dword [ebp - 8]
call fcn.0040ac74
dec eax
jne 0x5d2b05
mov eax, 2
jmp 0x5d2b32
call fcn.005d2d64
mov esi, eax
cmp esi, 6
jne 0x5d2b18
mov eax, 4
jmp 0x5d2b32
cmp esi, 0xa
jne 0x5d2b22
or eax, 0xffffffff
jmp 0x5d2b32
mov eax, dword [0x694dcc]
mov eax, dword [eax]
jmp 0x5d2b32
mov eax, dword [0x694dcc]
mov eax, dword [eax]
cmp eax, 4
ja case.default.0x5d2b3b
jmp dword [eax*4 + 0x5d2b42]
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.kernel32.dll_GetVersionExW_1
test eax, eax
je 0x5d2b7d
cmp byte [ebp - 0x2e], 1
jne 0x5d2b7d
mov bl, 0xf
jmp case.default.0x5d2b3b
mov bl, 0x10
jmp case.default.0x5d2b3b
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.kernel32.dll_GetVersionExW_1
test eax, eax
je 0x5d2bab
cmp byte [ebp - 0x2e], 1
jne 0x5d2bab
mov bl, 0x11
jmp case.default.0x5d2b3b
mov bl, 0x12
jmp case.default.0x5d2b3b
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.kernel32.dll_GetVersionExW_1
test eax, eax
je 0x5d2bd6
cmp byte [ebp - 0x2e], 1
jne 0x5d2bd6
mov bl, 0x13
jmp case.default.0x5d2b3b
mov bl, 0x15
jmp case.default.0x5d2b3b
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.kernel32.dll_GetVersionExW_1
test eax, eax
je 0x5d2bfe
cmp byte [ebp - 0x2e], 1
jne 0x5d2bfe
mov bl, 0x16
jmp case.default.0x5d2b3b
mov bl, 0x18
jmp case.default.0x5d2b3b
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.kernel32.dll_GetVersionExW_1
test eax, eax
je 0x5d2c26
cmp byte [ebp - 0x2e], 1
jne 0x5d2c26
mov bl, 0x19
jmp case.default.0x5d2b3b
mov bl, 0x1a
jmp case.default.0x5d2b3b
mov esi, dword [0x694918]
mov esi, dword [esi]
cmp esi, 0xa
jl 0x5d2c6c
sub esi, 0xa
jne 0x5d2c6c
call fcn.005d2f3c
sub eax, 1
jae 0x5d2c6c
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.kernel32.dll_GetVersionExW_1
test eax, eax
je 0x5d2c6a
cmp byte [ebp - 0x2e], 1
jne 0x5d2c6a
mov bl, 0x19
jmp 0x5d2c6c
mov bl, 0x1a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d2c9e
lea eax, [ebp - 0x158]
mov edx, 4
call fcn.004098d8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004098d8
ret