Function at 0x5bf8e4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
push ebx
push esi
push edi
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 0x5bfd32
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 [0x72a964]
mov eax, dword [eax]
call fcn.0042141c
mov eax, dword [0x72b1d4]
mov eax, dword [eax]
dec eax
je 0x5bf94b
dec eax
je 0x5bf9d5
jmp case.default.0x5bfbc7
mov eax, dword [0x72aea8]
mov eax, dword [eax]
sub eax, 0xa
jb 0x5bf963
sub eax, 0x50
jb 0x5bf98f
je 0x5bf9ce
jmp case.default.0x5bfbc7
mov eax, dword [ebp - 4]
mov edx, 0x5bfd50
call fcn.0040a8a8
je 0x5bf981
mov eax, dword [ebp - 4]
mov edx, 0x5bfd60
call fcn.0040a8a8
jne 0x5bf988
mov bl, 2
jmp case.default.0x5bfbc7
mov bl, 1
jmp case.default.0x5bfbc7
cmp dword [0x732748], 0x4005a
jne 0x5bf9a2
mov bl, 5
jmp case.default.0x5bfbc7
mov eax, dword [ebp - 4]
mov edx, 0x5bfd70
call fcn.0040a8a8
je 0x5bf9c0
mov eax, dword [ebp - 4]
mov edx, 0x5bfd50
call fcn.0040a8a8
jne 0x5bf9c7
mov bl, 4
jmp case.default.0x5bfbc7
mov bl, 3
jmp case.default.0x5bfbc7
mov bl, 5
jmp case.default.0x5bfbc7
mov eax, dword [0x72a9bc]
mov eax, dword [eax]
add eax, 0xfffffffd
cmp eax, 7
ja case.default.0x5bfbc7
jmp dword [eax*4 + 0x5bf9ef]
mov eax, dword [0x72aea8]
mov eax, dword [eax]
dec eax
je 0x5bfa28
sub eax, 4
je 0x5bfa2f
sub eax, 0x2e
je 0x5bfa36
jmp case.default.0x5bfbc7
mov bl, 6
jmp case.default.0x5bfbc7
mov bl, 7
jmp case.default.0x5bfbc7
mov bl, 8
jmp case.default.0x5bfbc7
mov bl, 9
jmp case.default.0x5bfbc7
mov eax, dword [0x72aea8]
mov eax, dword [eax]
sub eax, 1
jb 0x5bfa5a
je 0x5bfa61
dec eax
je 0x5bfa68
jmp case.default.0x5bfbc7
mov bl, 0xa
jmp case.default.0x5bfbc7
mov bl, 0xb
jmp case.default.0x5bfbc7
mov dword [ebp - 0x148], 0x11c
xor eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
call fcn.005c0204
push 0x59
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x5bfa91
mov bl, 0xe
jmp case.default.0x5bfbc7
cmp word [ebp - 0x2c], 0
je 0x5bfab5
lea eax, [ebp - 0x148]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x5bfab5
cmp byte [ebp - 0x2e], 1
jne 0x5bfab5
mov bl, 0xd
jmp case.default.0x5bfbc7
mov bl, 0xc
jmp case.default.0x5bfbc7
mov eax, dword [0x72aea8]
cmp dword [eax], 2
jne 0x5bfbb4
push 0
lea eax, [ebp - 8]
push eax
mov ecx, 0x5bfd80
mov edx, 0x5bfda4
mov eax, 0x80000002
call fcn.005c54a8
lea edx, [ebp - 0x14c]
mov eax, dword [0x72ae00]
call fcn.0040ecf0
mov eax, dword [ebp - 0x14c]
mov ecx, 1
mov edx, dword [ebp - 8]
call fcn.0040aaf0
dec eax
je 0x5bfb30
lea edx, [ebp - 0x150]
mov eax, dword [0x72aeb4]
call fcn.0040ecf0
mov eax, dword [ebp - 0x150]
mov ecx, 1
mov edx, dword [ebp - 8]
call fcn.0040aaf0
dec eax
jne 0x5bfb3a
mov esi, 3
jmp 0x5bfbbc
lea edx, [ebp - 0x154]
mov eax, dword [0x72b0c0]
call fcn.0040ecf0
mov eax, dword [ebp - 0x154]
mov ecx, 1
mov edx, dword [ebp - 8]
call fcn.0040aaf0
dec eax
je 0x5bfb86
lea edx, [ebp - 0x158]
mov eax, dword [0x72b11c]
call fcn.0040ecf0
mov eax, dword [ebp - 0x158]
mov ecx, 1
mov edx, dword [ebp - 8]
call fcn.0040aaf0
dec eax
jne 0x5bfb8d
mov esi, 2
jmp 0x5bfbbc
call fcn.005bfe00
mov edi, eax
cmp edi, 6
jne 0x5bfba0
mov esi, 4
jmp 0x5bfbbc
cmp edi, 0xa
jne 0x5bfbaa
or esi, 0xffffffff
jmp 0x5bfbbc
mov esi, dword [0x72aea8]
mov esi, dword [esi]
jmp 0x5bfbbc
mov esi, dword [0x72aea8]
mov esi, dword [esi]
mov eax, esi
cmp eax, 4
ja case.default.0x5bfbc7
jmp dword [eax*4 + 0x5bfbce]
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x5bfc09
cmp byte [ebp - 0x2e], 1
jne 0x5bfc09
mov bl, 0xf
jmp case.default.0x5bfbc7
mov bl, 0x10
jmp case.default.0x5bfbc7
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x5bfc37
cmp byte [ebp - 0x2e], 1
jne 0x5bfc37
mov bl, 0x11
jmp case.default.0x5bfbc7
mov bl, 0x12
jmp case.default.0x5bfbc7
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x5bfc62
cmp byte [ebp - 0x2e], 1
jne 0x5bfc62
mov bl, 0x13
jmp case.default.0x5bfbc7
mov bl, 0x15
jmp case.default.0x5bfbc7
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x5bfc8a
cmp byte [ebp - 0x2e], 1
jne 0x5bfc8a
mov bl, 0x16
jmp case.default.0x5bfbc7
mov bl, 0x18
jmp case.default.0x5bfbc7
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x5bfcb2
cmp byte [ebp - 0x2e], 1
jne 0x5bfcb2
mov bl, 0x19
jmp case.default.0x5bfbc7
mov bl, 0x1a
jmp case.default.0x5bfbc7
mov edi, dword [0x72a9bc]
mov edi, dword [edi]
mov esi, dword [0x72aea8]
mov esi, dword [esi]
cmp edi, 0xa
jl 0x5bfd07
sub edi, 0xa
jne 0x5bfd07
cmp esi, 0xffffffff
jne 0x5bfcdc
call fcn.005bfffc
mov esi, eax
sub esi, 1
jae 0x5bfd07
mov dword [ebp - 0x148], 0x11c
lea eax, [ebp - 0x148]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x5bfd05
cmp byte [ebp - 0x2e], 1
jne 0x5bfd05
mov bl, 0x19
jmp 0x5bfd07
mov bl, 0x1a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5bfd39
lea eax, [ebp - 0x158]
mov edx, 4
call fcn.004098f4
lea eax, [ebp - 8]
mov edx, 2
call fcn.004098f4
ret