Function at 0x308f4
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov rbx, rcx
lea rcx, [0x00065b10]
xor edx, edx
mov r8d, 0x3a30
call fcn.000407c0
xor ebp, ebp
lea rcx, [0x00065b40]
lea r12d, [rbp + 1]
mov byte [0x00065b10], bpl
mov byte [0x00065b11], bpl
mov byte [0x00065b12], bpl
mov byte [0x00065b13], bpl
mov byte [0x00065b14], bpl
mov byte [0x00065b15], bpl
mov byte [0x00065b16], bpl
mov dword [0x00065b1c], ebp
mov byte [0x00065b20], bpl
mov byte [0x00065b21], bpl
mov byte [0x00065b22], bpl
mov edx, r12d
xor r8d, r8d
mov dword [0x00065b28], r12d
mov qword [0x00065b30], rbp
mov dword [0x00065b38], ebp
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
lea r8, [0x00065b68]
lea rdx, [0x00065b64]
lea rcx, [0x00065b60]
xor r9d, r9d
call qword [sym.imp.ntoskrnl.exe_PsGetVersion]
mov eax, dword [0x00065b60]
mov ecx, dword [0x00065b64]
lea r11d, [rbp + 2]
cmp eax, 5
jne 0x309f4
cmp ecx, ebp
jne 0x309f4
mov byte [0x00065b6c], r12b
mov byte [0x00065b6d], bpl
cmp eax, 5
jne 0x30a0c
cmp ecx, r11d
jb 0x30a0c
mov byte [0x00065b6e], r12b
jmp 0x30a1a
mov byte [0x00065b6c], bpl
cmp eax, 5
jne 0x309da
cmp ecx, r12d
jne 0x309da
mov byte [0x00065b6d], r12b
mov byte [0x00065b6e], bpl
cmp eax, 5
ja 0x30a28
jne 0x30a1f
cmp ecx, r11d
jae 0x30a28
mov byte [0x00065b6f], bpl
jmp 0x30a2f
mov byte [0x00065b6f], r12b
cmp eax, 6
jne 0x30a3f
mov byte [0x00065b70], r12b
cmp ecx, ebp
je 0x30a46
mov byte [0x00065b70], bpl
cmp eax, 6
setae byte [0x00065b71]
cmp eax, 6
jne 0x30a63
cmp ecx, r12d
jne 0x30a63
mov byte [0x00065b72], r12b
jmp 0x30a74
mov byte [0x00065b72], bpl
cmp eax, 6
jne 0x30a7d
cmp ecx, r12d
jb 0x30a7d
mov byte [0x00065b73], r12b
jmp 0x30a89
mov byte [0x00065b73], bpl
cmp eax, 6
jne 0x30a95
mov byte [0x00065b74], r12b
cmp ecx, r11d
je 0x30a9c
mov byte [0x00065b74], bpl
mov rax, qword [rbx + 0x28]
lea r9, [0x00065b90]
mov rsi, rbp
mov ecx, dword [rax + 0x30]
movzx edi, bp
mov dword [0x00065b88], ecx
mov eax, dword [rax + 0x40]
mov qword [0x00065c30], r9
add ecx, eax
mov eax, 0xa
mov word [0x00065c2a], ax
lea rax, [0x00065ba4]
mov dword [0x00065b8c], ecx
mov qword [0x00065c40], rax
mov ecx, 0x20
lea rax, [0x00065be4]
mov qword [0x00065c50], rax
mov word [0x00065c3a], cx
mov word [0x00065c4a], cx
mov r8, qword [rbx + 0x40]
cmp r8, rbp
je 0x30cdf
cmp word [rbx + 0x38], r11w
jb 0x30cdf
movzx ecx, word [rbx + 0x38]
shr ecx, 1
sub ecx, r12d
movsxd rax, ecx
js 0x30cdf
lea rdx, [r8 + rax*2]
cmp word [rdx], 0x5c
je 0x30b4c
movsxd rax, ecx
sub ecx, r12d
add di, r11w
sub rdx, r11
cmp ecx, ebp
lea rsi, [r8 + rax*2]
jge 0x30b31
cmp rsi, rbp
je 0x30cdf
cmp di, bp
je 0x30cdf
mov r13d, 0x10
cmp di, r13w
ja 0x30cdf
movzx ebx, di
mov rdx, rsi
mov rcx, r9
mov r8, rbx
mov word [0x00065c28], di
call fcn.00040300
mov rcx, qword [0x00065c40]
mov rax, qword [str.Device_]
mov word [0x00065c38], r13w
mov qword [rcx], rax
mov rax, qword [0x00049088]
mov qword [rcx + 8], rax
mov rcx, qword [0x00065c40]
mov r8, rbx
add rcx, r13
mov rdx, rsi
call fcn.00040300
mov rcx, qword [0x00065c50]
add word [0x00065c38], di
lea eax, [r13 + 8]
mov r8, rbx
mov rdx, rsi
mov word [0x00065c48], ax
mov rax, qword [str.DosDevices_]
mov qword [rcx], rax
mov rax, qword [0x000490a0]
mov qword [rcx + 8], rax
mov rax, qword [0x000490a8]
mov qword [rcx + 0x10], rax
mov rcx, qword [0x00065c50]
add rcx, 0x18
call fcn.00040300
add word [0x00065c48], di
or eax, 0xffffffff
lea r8d, [r13 + 0x1c]
lea rdx, [rsp + 0x20]
xor r9d, r9d
xor ecx, ecx
mov dword [0x00065c68], eax
mov dword [0x00065c6c], eax
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov ecx, 0x2625a
cmp eax, ebp
cmovge ecx, dword [rsp + 0x24]
mov dword [0x00065c88], ecx
cmp byte [0x00065b71], bpl
je 0x30c6c
mov dword [0x00065c8c], 0x40
mov dword [0x00065c90], r13d
mov dword [0x00065c94], r13d
jmp 0x30c83
mov eax, 8
mov dword [0x00065c8c], eax
mov dword [0x00065c90], eax
mov dword [0x00065c94], eax
mov dword [0x000680d4], ebp
lea rcx, [0x000680f0]
xor r8d, r8d
mov edx, r12d
mov dword [0x000680d8], r12d
mov qword [0x000680e0], rbp
mov dword [0x000680e8], ebp
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
lea r11, [0x00068110]
lea rcx, [0x00068120]
mov qword [0x00068118], r11
mov qword [0x00068110], r11
mov qword [0x00068128], rcx
mov qword [0x00068120], rcx
mov al, r12b
jmp 0x30ce1
xor al, al
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret