Function at 0x5a5efc
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 0x5a631c
push dword fs:[eax]
mov dword fs:[eax], esp
or esi, 0xffffffff
xor ebx, ebx
lea edx, [ebp - 4]
mov eax, dword [0x5e7b5c]
mov eax, dword [eax]
call fcn.00467f84
mov eax, dword [0x5e7214]
mov eax, dword [eax]
dec eax
je 0x5a5f5f
dec eax
je 0x5a5fe9
jmp case.default.0x5a61c0
mov eax, dword [0x5e7528]
mov eax, dword [eax]
sub eax, 0xa
jb 0x5a5f77
sub eax, 0x50
jb 0x5a5fa3
je 0x5a5fe2
jmp case.default.0x5a61c0
mov eax, dword [ebp - 4]
mov edx, 0x5a6338
call fcn.00485b84
je 0x5a5f95
mov eax, dword [ebp - 4]
mov edx, 0x5a6348
call fcn.00485b84
jne 0x5a5f9c
mov bl, 2
jmp case.default.0x5a61c0
mov bl, 1
jmp case.default.0x5a61c0
cmp dword [0x5eec18], 0x4005a
jne 0x5a5fb6
mov bl, 5
jmp case.default.0x5a61c0
mov eax, dword [ebp - 4]
mov edx, 0x5a6358
call fcn.00485b84
je 0x5a5fd4
mov eax, dword [ebp - 4]
mov edx, 0x5a6338
call fcn.00485b84
jne 0x5a5fdb
mov bl, 4
jmp case.default.0x5a61c0
mov bl, 3
jmp case.default.0x5a61c0
mov bl, 5
jmp case.default.0x5a61c0
mov eax, dword [0x5e7524]
mov eax, dword [eax]
add eax, 0xfffffffd
cmp eax, 7
ja case.default.0x5a61c0
jmp dword [eax*4 + 0x5a6003]
mov eax, dword [0x5e7528]
mov eax, dword [eax]
dec eax
je 0x5a603c
sub eax, 4
je 0x5a6043
sub eax, 0x2e
je 0x5a604a
jmp case.default.0x5a61c0
mov bl, 6
jmp case.default.0x5a61c0
mov bl, 7
jmp case.default.0x5a61c0
mov bl, 8
jmp case.default.0x5a61c0
mov bl, 9
jmp case.default.0x5a61c0
mov eax, dword [0x5e7528]
mov eax, dword [eax]
sub eax, 1
jb 0x5a606e
je 0x5a6075
dec eax
je 0x5a607c
jmp case.default.0x5a61c0
mov bl, 0xa
jmp case.default.0x5a61c0
mov bl, 0xb
jmp case.default.0x5a61c0
mov dword [ebp - 0x148], 0x11c
xor eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
call fcn.005a6798
push 0x59
call sub.USER32.DLL_GetSystemMetrics
test eax, eax
je 0x5a60a5
mov bl, 0xe
jmp case.default.0x5a61c0
cmp word [ebp - 0x2c], 0
je 0x5a60c9
lea eax, [ebp - 0x148]
push eax
call sub.KERNEL32.DLL_GetVersionExW
test eax, eax
je 0x5a60c9
cmp byte [ebp - 0x2e], 1
jne 0x5a60c9
mov bl, 0xd
jmp case.default.0x5a61c0
mov bl, 0xc
jmp case.default.0x5a61c0
mov eax, dword [0x5e7528]
cmp dword [eax], 2
jne 0x5a61b0
push 0
lea eax, [ebp - 8]
push eax
mov ecx, 0x5a6368
mov edx, 0x5a638c
mov eax, SysStringLen
call fcn.005a2708
lea edx, [ebp - 0x14c]
mov eax, dword [0x5e7d04]
call fcn.00488704
mov eax, dword [ebp - 0x14c]
mov edx, dword [ebp - 8]
call fcn.00485d28
dec eax
je 0x5a613a
lea edx, [ebp - 0x150]
mov eax, dword [0x5e7d08]
call fcn.00488704
mov eax, dword [ebp - 0x150]
mov edx, dword [ebp - 8]
call fcn.00485d28
dec eax
jne 0x5a6141
mov eax, 3
jmp 0x5a61b7
lea edx, [ebp - 0x154]
mov eax, dword [0x5e7cfc]
call fcn.00488704
mov eax, dword [ebp - 0x154]
mov edx, dword [ebp - 8]
call fcn.00485d28
dec eax
je 0x5a6183
lea edx, [ebp - 0x158]
mov eax, dword [0x5e7d00]
call fcn.00488704
mov eax, dword [ebp - 0x158]
mov edx, dword [ebp - 8]
call fcn.00485d28
dec eax
jne 0x5a618a
mov eax, 2
jmp 0x5a61b7
call fcn.005a63e8
mov esi, eax
cmp esi, 6
jne 0x5a619d
mov eax, 4
jmp 0x5a61b7
cmp esi, 0xa
jne 0x5a61a7
or eax, 0xffffffff
jmp 0x5a61b7
mov eax, dword [0x5e7528]
mov eax, dword [eax]
jmp 0x5a61b7
mov eax, dword [0x5e7528]
mov eax, dword [eax]
cmp eax, 4
ja case.default.0x5a61c0
jmp dword [eax*4 + 0x5a61c7]
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.KERNEL32.DLL_GetVersionExW
test eax, eax
je 0x5a6202
cmp byte [ebp - 0x2e], 1
jne 0x5a6202
mov bl, 0xf
jmp case.default.0x5a61c0
mov bl, 0x10
jmp case.default.0x5a61c0
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.KERNEL32.DLL_GetVersionExW
test eax, eax
je 0x5a6230
cmp byte [ebp - 0x2e], 1
jne 0x5a6230
mov bl, 0x11
jmp case.default.0x5a61c0
mov bl, 0x12
jmp case.default.0x5a61c0
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.KERNEL32.DLL_GetVersionExW
test eax, eax
je 0x5a625b
cmp byte [ebp - 0x2e], 1
jne 0x5a625b
mov bl, 0x13
jmp case.default.0x5a61c0
mov bl, 0x15
jmp case.default.0x5a61c0
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.KERNEL32.DLL_GetVersionExW
test eax, eax
je 0x5a6283
cmp byte [ebp - 0x2e], 1
jne 0x5a6283
mov bl, 0x16
jmp case.default.0x5a61c0
mov bl, 0x18
jmp case.default.0x5a61c0
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.KERNEL32.DLL_GetVersionExW
test eax, eax
je 0x5a62ab
cmp byte [ebp - 0x2e], 1
jne 0x5a62ab
mov bl, 0x19
jmp case.default.0x5a61c0
mov bl, 0x1a
jmp case.default.0x5a61c0
mov esi, dword [0x5e7524]
mov esi, dword [esi]
cmp esi, 0xa
jl 0x5a62f1
sub esi, 0xa
jne 0x5a62f1
call fcn.005a65c0
sub eax, 1
jae 0x5a62f1
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.KERNEL32.DLL_GetVersionExW
test eax, eax
je 0x5a62ef
cmp byte [ebp - 0x2e], 1
jne 0x5a62ef
mov bl, 0x19
jmp 0x5a62f1
mov bl, 0x1a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a6323
lea eax, [ebp - 0x158]
mov edx, 4
call fcn.004849f4
lea eax, [ebp - 8]
mov edx, 2
call fcn.004849f4
ret