Function at 0x13c10
Capabilities:
Check os version

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r12
push r13
push r15
sub rsp, 0x1b0
mov rax, qword [0x0001a100]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
cmp byte [0x0001a35c], 0
mov ebx, 0xc0000001
lea r15, [0x0003c230]
jne 0x13d10
lea rcx, [r11 - 0x148]
mov qword [0x0003c238], r15
mov qword [0x0003c230], r15
mov byte [0x0001a12c], 0
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
mov r11d, dword [rsp + 0x84]
cmp r11d, 0xa
jne 0x13cb2
cmp dword [rsp + 0x88], 0
jne 0x13d09
mov byte [0x0001a12c], 1
mov dword [0x0001a120], 0x20
mov dword [0x0001a124], 0x28
jmp 0x13cff
cmp r11d, 6
jne 0x13cd0
mov eax, dword [rsp + 0x88]
cmp eax, 3
je 0x13c9c
cmp eax, 2
je 0x13c9c
cmp eax, 1
jne 0x13d09
jmp 0x13c9c
cmp r11d, 5
jne 0x13d09
mov eax, dword [rsp + 0x88]
cmp eax, 2
je 0x13ceb
cmp eax, 1
je 0x13ceb
test eax, eax
jne 0x13d09
mov dword [0x0001a120], 0x10
mov dword [0x0001a124], 0x14
mov dword [0x0001a128], 4
mov byte [0x0001a35c], 1
and qword [rsp + 0x50], 0
and qword [rsp + 0x68], 0
and qword [rsp + 0x70], 0
lea rax, [0x0003c240]
mov edi, 0x20019
lea r8, [rsp + 0x48]
lea rcx, [rsp + 0x38]
mov edx, edi
mov dword [rsp + 0x48], 0x30
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], 0x240
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x13eeb
mov rbp, qword [rsp + 0x38]
test rbp, rbp
je 0x13eeb
and qword [rsp + 0x28], 0
and qword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
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 0x13eeb
mov rcx, qword [rsp + 0x30]
mov rsi, qword [rcx + 8]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
test rsi, rsi
je 0x13eeb
mov eax, dword [0x0001a120]
mov rdi, qword [rax + rsi]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x13ee2
mov rbx, qword [rdi + 8]
lea r13, [0x00013a0c]
cmp rbx, r13
je 0x13e9b
lea rax, [0x00013b00]
cmp rbx, rax
je 0x13e9b
mov edx, 0x430
mov ecx, 1
mov r8d, 0x52444948
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r12, rax
test rax, rax
je 0x13df8
xor edx, edx
mov r8d, 0x430
mov rcx, rax
call fcn.00017cd0
mov qword [r12 + 8], r12
mov qword [r12], r12
movzx r8d, word [0x0003c240]
mov rdx, qword [0x0003c248]
lea rcx, [r12 + 0x28]
call fcn.00017980
mov eax, dword [0x0001a124]
mov qword [r12 + 0x20], rbx
mov qword [r12 + 0x428], rdi
mov edx, dword [rax + rsi]
mov rcx, rdi
call rbx
cmp byte [0x0001a12c], 0
mov qword [r12 + 0x10], rax
mov rax, qword [0x0003c230]
mov qword [r12 + 8], r15
mov qword [r12], rax
mov qword [rax + 8], r12
lea rax, [0x00013b00]
cmovne r13, rax
mov qword [0x0003c230], r12
mov qword [rdi + 8], r13
jmp 0x13ee0
mov rax, qword [0x0003c230]
jmp 0x13eb3
mov rbx, rax
cmp qword [rax + 0x428], rdi
je 0x13eba
mov rax, qword [rax]
xor ebx, ebx
cmp rax, r15
jne 0x13ea4
cmp byte [0x0001a12c], 0
mov eax, dword [0x0001a124]
mov rcx, rdi
mov edx, dword [rax + rsi]
je 0x13ed9
lea r8, [rsp + 0x40]
call qword [rbx + 0x20]
jmp 0x13edc
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
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.00017920
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r13
pop r12
ret