Function at 0x146d4
Capabilities:
Check os version

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x60
cmp byte [0x000dc70c], 0
mov ebx, 0xc0000001
lea r15, [0x000fe8b0]
jne 0x147c7
and qword [0x000fe900], 0
lea r8, [rax + 0x18]
lea rdx, [rax + 8]
lea rcx, [rax + 0x10]
xor r9d, r9d
mov qword [0x000fe8b8], r15
mov qword [0x000fe8b0], r15
mov byte [0x000dc2cc], 0
call qword [sym.imp.ntoskrnl.exe_PsGetVersion]
mov r11d, dword [rsp + 0xa8]
cmp r11d, 0xa
jne 0x14769
cmp dword [rsp + 0xa0], 0
jne 0x147c0
mov byte [0x000dc2cc], 1
mov dword [0x000dc2c0], 0x20
mov dword [0x000dc2c4], 0x28
jmp 0x147b6
cmp r11d, 6
jne 0x14787
mov eax, dword [rsp + 0xa0]
cmp eax, 3
je 0x14753
cmp eax, 2
je 0x14753
cmp eax, 1
jne 0x147c0
jmp 0x14753
cmp r11d, 5
jne 0x147c0
mov eax, dword [rsp + 0xa0]
cmp eax, 2
je 0x147a2
cmp eax, 1
je 0x147a2
test eax, eax
jne 0x147c0
mov dword [0x000dc2c0], 0x10
mov dword [0x000dc2c4], 0x14
mov dword [0x000dc2c8], 4
mov byte [0x000dc70c], 1
and qword [rsp + 0x38], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
lea rax, [0x000fe8c0]
mov edi, 0x20019
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0xb0]
mov edx, edi
mov dword [rsp + 0x30], 0x30
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], 0x240
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x149ee
mov rbp, qword [rsp + 0xb0]
test rbp, rbp
je 0x149ee
and qword [rsp + 0x28], 0
and qword [rsp + 0xa8], 0
lea rax, [rsp + 0xa8]
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov ecx, 0xc0000000
and eax, ecx
cmp eax, ecx
je 0x149ee
mov rcx, qword [rsp + 0xa8]
mov rsi, qword [rcx + 8]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
test rsi, rsi
je 0x149ee
mov eax, dword [0x000dc2c0]
mov rdi, qword [rax + rsi]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x149e5
mov rbx, qword [rdi + 8]
lea r13, [0x000144d0]
cmp rbx, r13
je 0x1497d
lea rax, [0x000145c4]
cmp rbx, rax
je 0x1497d
mov edx, 0x430
mov ecx, 1
mov r8d, 0x52444948
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r12, rax
test rax, rax
je 0x148be
xor edx, edx
mov r8d, 0x430
mov rcx, rax
call fcn.00019aa0
mov qword [r12 + 8], r12
mov qword [r12], r12
movzx r8d, word [0x000fe8c0]
mov rdx, qword [0x000fe8c8]
lea rcx, [r12 + 0x28]
call fcn.00019750
mov eax, dword [0x000dc2c4]
mov qword [r12 + 0x20], rbx
mov qword [r12 + 0x428], rdi
mov edx, dword [rax + rsi]
mov rcx, rdi
call rbx
lea rcx, [0x000fe900]
mov qword [r12 + 0x10], rax
call qword [sym.imp.ntoskrnl.exe_KeAcquireSpinLockRaiseToDpc]
mov rdx, qword [0x000fe8b0]
mov qword [r12], rdx
mov qword [r12 + 8], r15
mov qword [rdx + 8], r12
lea rcx, [0x000fe900]
mov dl, al
mov qword [0x000fe8b0], r12
call qword [sym.imp.ntoskrnl.exe_KeReleaseSpinLock]
cmp byte [0x000dc2cc], 0
lea rax, [0x000145c4]
cmovne r13, rax
mov qword [rdi + 8], r13
jmp 0x149e3
lea rcx, [0x000fe900]
xor ebx, ebx
call qword [sym.imp.ntoskrnl.exe_KeAcquireSpinLockRaiseToDpc]
mov rcx, qword [0x000fe8b0]
jmp 0x149a6
mov rbx, rcx
cmp qword [rcx + 0x428], rdi
je 0x149ab
mov rcx, qword [rcx]
xor ebx, ebx
cmp rcx, r15
jne 0x14995
lea rcx, [0x000fe900]
mov dl, al
call qword [sym.imp.ntoskrnl.exe_KeReleaseSpinLock]
cmp byte [0x000dc2cc], 0
mov eax, dword [0x000dc2c4]
mov edx, dword [rax + rsi]
mov rcx, rdi
je 0x149dc
lea r8, [rsp + 0xa0]
call qword [rbx + 0x20]
jmp 0x149df
call qword [rbx + 0x20]
mov qword [rbx + 0x10], rax
xor ebx, ebx
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
add rsp, 0x60
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret