Function at 0x5c8620
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 0x5c8a40
push dword fs:[eax]
mov dword fs:[eax], esp
or esi, 0xffffffff
xor ebx, ebx
lea edx, [ebp - 4]
mov eax, dword [0x620118]
mov eax, dword [eax]
call fcn.00468264
mov eax, dword [0x61f7b8]
mov eax, dword [eax]
dec eax
je 0x5c8683
dec eax
je 0x5c870d
jmp case.default.0x5c88e4
mov eax, dword [0x61facc]
mov eax, dword [eax]
sub eax, 0xa
jb 0x5c869b
sub eax, 0x50
jb 0x5c86c7
je 0x5c8706
jmp case.default.0x5c88e4
mov eax, dword [ebp - 4]
mov edx, 0x5c8a5c
call fcn.00485eac
je 0x5c86b9
mov eax, dword [ebp - 4]
mov edx, 0x5c8a6c
call fcn.00485eac
jne 0x5c86c0
mov bl, 2
jmp case.default.0x5c88e4
mov bl, 1
jmp case.default.0x5c88e4
cmp dword [0x6271e4], 0x4005a
jne 0x5c86da
mov bl, 5
jmp case.default.0x5c88e4
mov eax, dword [ebp - 4]
mov edx, 0x5c8a7c
call fcn.00485eac
je 0x5c86f8
mov eax, dword [ebp - 4]
mov edx, 0x5c8a5c
call fcn.00485eac
jne 0x5c86ff
mov bl, 4
jmp case.default.0x5c88e4
mov bl, 3
jmp case.default.0x5c88e4
mov bl, 5
jmp case.default.0x5c88e4
mov eax, dword [0x61fac8]
mov eax, dword [eax]
add eax, 0xfffffffd
cmp eax, 7
ja case.default.0x5c88e4
jmp dword [eax*4 + 0x5c8727]
mov eax, dword [0x61facc]
mov eax, dword [eax]
dec eax
je 0x5c8760
sub eax, 4
je 0x5c8767
sub eax, 0x2e
je 0x5c876e
jmp case.default.0x5c88e4
mov bl, 6
jmp case.default.0x5c88e4
mov bl, 7
jmp case.default.0x5c88e4
mov bl, 8
jmp case.default.0x5c88e4
mov bl, 9
jmp case.default.0x5c88e4
mov eax, dword [0x61facc]
mov eax, dword [eax]
sub eax, 1
jb 0x5c8792
je 0x5c8799
dec eax
je 0x5c87a0
jmp case.default.0x5c88e4
mov bl, 0xa
jmp case.default.0x5c88e4
mov bl, 0xb
jmp case.default.0x5c88e4
mov dword [ebp - 0x148], 0x11c
xor eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
call fcn.005c8ebc
push 0x59
call sub.USER32.DLL_GetSystemMetrics
test eax, eax
je 0x5c87c9
mov bl, 0xe
jmp case.default.0x5c88e4
cmp word [ebp - 0x2c], 0
je 0x5c87ed
lea eax, [ebp - 0x148]
push eax
call sub.KERNEL32.DLL_GetVersionExW
test eax, eax
je 0x5c87ed
cmp byte [ebp - 0x2e], 1
jne 0x5c87ed
mov bl, 0xd
jmp case.default.0x5c88e4
mov bl, 0xc
jmp case.default.0x5c88e4
mov eax, dword [0x61facc]
cmp dword [eax], 2
jne 0x5c88d4
push 0
lea eax, [ebp - 8]
push eax
mov ecx, 0x5c8a8c
mov edx, 0x5c8ab0
mov eax, SysStringLen
call fcn.005c4e2c
lea edx, [ebp - 0x14c]
mov eax, dword [0x6202c0]
call fcn.00488a2c
mov eax, dword [ebp - 0x14c]
mov edx, dword [ebp - 8]
call fcn.00486050
dec eax
je 0x5c885e
lea edx, [ebp - 0x150]
mov eax, dword [0x6202c4]
call fcn.00488a2c
mov eax, dword [ebp - 0x150]
mov edx, dword [ebp - 8]
call fcn.00486050
dec eax
jne 0x5c8865
mov eax, 3
jmp 0x5c88db
lea edx, [ebp - 0x154]
mov eax, dword [0x6202b8]
call fcn.00488a2c
mov eax, dword [ebp - 0x154]
mov edx, dword [ebp - 8]
call fcn.00486050
dec eax
je 0x5c88a7
lea edx, [ebp - 0x158]
mov eax, dword [0x6202bc]
call fcn.00488a2c
mov eax, dword [ebp - 0x158]
mov edx, dword [ebp - 8]
call fcn.00486050
dec eax
jne 0x5c88ae
mov eax, 2
jmp 0x5c88db
call fcn.005c8b0c
mov esi, eax
cmp esi, 6
jne 0x5c88c1
mov eax, 4
jmp 0x5c88db
cmp esi, 0xa
jne 0x5c88cb
or eax, 0xffffffff
jmp 0x5c88db
mov eax, dword [0x61facc]
mov eax, dword [eax]
jmp 0x5c88db
mov eax, dword [0x61facc]
mov eax, dword [eax]
cmp eax, 4
ja case.default.0x5c88e4
jmp dword [eax*4 + 0x5c88eb]
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.KERNEL32.DLL_GetVersionExW
test eax, eax
je 0x5c8926
cmp byte [ebp - 0x2e], 1
jne 0x5c8926
mov bl, 0xf
jmp case.default.0x5c88e4
mov bl, 0x10
jmp case.default.0x5c88e4
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.KERNEL32.DLL_GetVersionExW
test eax, eax
je 0x5c8954
cmp byte [ebp - 0x2e], 1
jne 0x5c8954
mov bl, 0x11
jmp case.default.0x5c88e4
mov bl, 0x12
jmp case.default.0x5c88e4
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.KERNEL32.DLL_GetVersionExW
test eax, eax
je 0x5c897f
cmp byte [ebp - 0x2e], 1
jne 0x5c897f
mov bl, 0x13
jmp case.default.0x5c88e4
mov bl, 0x15
jmp case.default.0x5c88e4
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.KERNEL32.DLL_GetVersionExW
test eax, eax
je 0x5c89a7
cmp byte [ebp - 0x2e], 1
jne 0x5c89a7
mov bl, 0x16
jmp case.default.0x5c88e4
mov bl, 0x18
jmp case.default.0x5c88e4
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.KERNEL32.DLL_GetVersionExW
test eax, eax
je 0x5c89cf
cmp byte [ebp - 0x2e], 1
jne 0x5c89cf
mov bl, 0x19
jmp case.default.0x5c88e4
mov bl, 0x1a
jmp case.default.0x5c88e4
mov esi, dword [0x61fac8]
mov esi, dword [esi]
cmp esi, 0xa
jl 0x5c8a15
sub esi, 0xa
jne 0x5c8a15
call fcn.005c8ce4
sub eax, 1
jae 0x5c8a15
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.KERNEL32.DLL_GetVersionExW
test eax, eax
je 0x5c8a13
cmp byte [ebp - 0x2e], 1
jne 0x5c8a13
mov bl, 0x19
jmp 0x5c8a15
mov bl, 0x1a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c8a47
lea eax, [ebp - 0x158]
mov edx, 4
call fcn.00484d1c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00484d1c
ret