Function at 0x5d29e4
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 0x5d2cbf
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 0x5d28eb
dec eax
je 0x5d2975
jmp case.default.0x5d2b63
mov eax, dword [0x694dcc]
mov eax, dword [eax]
sub eax, 0xa
jb 0x5d2903
sub eax, 0x50
jb 0x5d292f
je 0x5d296e
jmp case.default.0x5d2b63
mov eax, dword [ebp - 4]
mov edx, 0x5d2cdc
call fcn.0040aa2c
je 0x5d2921
mov eax, dword [ebp - 4]
mov edx, 0x5d2cec
call fcn.0040aa2c
jne 0x5d2928
mov bl, 2
jmp case.default.0x5d2b63
mov bl, 1
jmp case.default.0x5d2b63
cmp dword [0x69bd54], 0x4005a
jne 0x5d2942
mov bl, 5
jmp case.default.0x5d2b63
mov eax, dword [ebp - 4]
mov edx, 0x5d2cfc
call fcn.0040aa2c
je 0x5d2960
mov eax, dword [ebp - 4]
mov edx, 0x5d2cdc
call fcn.0040aa2c
jne 0x5d2967
mov bl, 4
jmp case.default.0x5d2b63
mov bl, 3
jmp case.default.0x5d2b63
mov bl, 5
jmp case.default.0x5d2b63
mov eax, dword [0x694918]
mov eax, dword [eax]
add eax, 0xfffffffd
cmp eax, 7
ja case.default.0x5d2b63
jmp dword [eax*4 + 0x5d298f]
mov eax, dword [0x694dcc]
mov eax, dword [eax]
dec eax
je 0x5d29c8
sub eax, 4
je 0x5d29cf
sub eax, 0x2e
je 0x5d29d6
jmp case.default.0x5d2b63
mov bl, 6
jmp case.default.0x5d2b63
mov bl, 7
jmp case.default.0x5d2b63
mov bl, 8
jmp case.default.0x5d2b63
mov bl, 9
jmp case.default.0x5d2b63
mov eax, dword [0x694dcc]
mov eax, dword [eax]
sub eax, 1
jb 0x5d29fa
je 0x5d2a01
dec eax
je 0x5d2a08
jmp case.default.0x5d2b63
mov bl, 0xa
jmp case.default.0x5d2b63
mov bl, 0xb
jmp case.default.0x5d2b63
mov dword [ebp - 0x148], 0x11c
xor eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
call fcn.005d313c
push 0x59
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x5d2a31
mov bl, 0xe
jmp case.default.0x5d2b63
cmp word [ebp - 0x2c], 0
je 0x5d2a55
lea eax, [ebp - 0x148]
push eax
call sub.kernel32.dll_GetVersionExW_1
test eax, eax
je 0x5d2a55
cmp byte [ebp - 0x2e], 1
jne 0x5d2a55
mov bl, 0xd
jmp case.default.0x5d2b63
mov bl, 0xc
jmp case.default.0x5d2b63
mov eax, dword [0x694dcc]
cmp dword [eax], 2
jne 0x5d2b53
push 0
lea eax, [ebp - 8]
push eax
mov ecx, 0x5d2d0c
mov edx, 0x5d2d30
mov eax, 0x80000002
call fcn.005d5e7c
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 0x5d2ad0
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 0x5d2ada
mov eax, 3
jmp 0x5d2b5a
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 0x5d2b26
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 0x5d2b2d
mov eax, 2
jmp 0x5d2b5a
call fcn.005d2d8c
mov esi, eax
cmp esi, 6
jne 0x5d2b40
mov eax, 4
jmp 0x5d2b5a
cmp esi, 0xa
jne 0x5d2b4a
or eax, 0xffffffff
jmp 0x5d2b5a
mov eax, dword [0x694dcc]
mov eax, dword [eax]
jmp 0x5d2b5a
mov eax, dword [0x694dcc]
mov eax, dword [eax]
cmp eax, 4
ja case.default.0x5d2b63
jmp dword [eax*4 + 0x5d2b6a]
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.kernel32.dll_GetVersionExW_1
test eax, eax
je 0x5d2ba5
cmp byte [ebp - 0x2e], 1
jne 0x5d2ba5
mov bl, 0xf
jmp case.default.0x5d2b63
mov bl, 0x10
jmp case.default.0x5d2b63
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.kernel32.dll_GetVersionExW_1
test eax, eax
je 0x5d2bd3
cmp byte [ebp - 0x2e], 1
jne 0x5d2bd3
mov bl, 0x11
jmp case.default.0x5d2b63
mov bl, 0x12
jmp case.default.0x5d2b63
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, 0x13
jmp case.default.0x5d2b63
mov bl, 0x15
jmp case.default.0x5d2b63
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, 0x16
jmp case.default.0x5d2b63
mov bl, 0x18
jmp case.default.0x5d2b63
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.kernel32.dll_GetVersionExW_1
test eax, eax
je 0x5d2c4e
cmp byte [ebp - 0x2e], 1
jne 0x5d2c4e
mov bl, 0x19
jmp case.default.0x5d2b63
mov bl, 0x1a
jmp case.default.0x5d2b63
mov esi, dword [0x694918]
mov esi, dword [esi]
cmp esi, 0xa
jl 0x5d2c94
sub esi, 0xa
jne 0x5d2c94
call fcn.005d2f64
sub eax, 1
jae 0x5d2c94
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.kernel32.dll_GetVersionExW_1
test eax, eax
je 0x5d2c92
cmp byte [ebp - 0x2e], 1
jne 0x5d2c92
mov bl, 0x19
jmp 0x5d2c94
mov bl, 0x1a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d2cc6
lea eax, [ebp - 0x158]
mov edx, 4
call fcn.004098d8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004098d8
ret