Function at 0x14000a940
Capabilities:
Check os version

Disassembly:
push rbp
push rsi
push r12
push r15
lea rbp, [rsp - 0x1b8]
sub rsp, 0x2b8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x190], rax
cmp word [r8], 6
mov rsi, r9
movups xmm0, xmmword [str.DosDevices:_]
mov r15, r8
mov r12, rcx
movups xmm1, xmmword [0x140011480]
movups xmmword [rbp + 0x170], xmm0
movups xmmword [rbp + 0x180], xmm1
jae 0x14000a99d
mov eax, 0xc000000d
jmp 0x14000adb0
mov rax, qword [r8 + 8]
lea rdx, [rbp + 0x170]
mov qword [rsp + 0x2a8], r13
movzx ecx, word [rax]
mov word [rbp + 0x188], cx
lea rcx, [rbp - 0x28]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x68], 0x100
lea rax, [rbp - 0x28]
xor r13d, r13d
mov qword [rbp - 0x60], rax
mov qword [rsp + 0x60], r13
lea r8, [rbp - 0x70]
mov dword [rsp + 0x58], r13d
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x50], r13d
mov eax, 0x80
mov qword [rsp + 0x48], r13
xorps xmm0, xmm0
mov dword [rsp + 0x40], 0x20
mov r9, rsi
mov dword [rsp + 0x38], 1
mov edx, 0x80100000
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r13
mov dword [rbp - 0x70], 0x30
mov qword [rbp - 0x68], r13
mov dword [rbp - 0x58], 0x240
movdqu xmmword [rbp - 0x50], xmm0
call qword [sym.imp.ntoskrnl.exe_IoCreateFile]
test eax, eax
js 0x14000ada8
mov r8, qword [sym.imp.ntoskrnl.exe_IoFileObjectType]
lea rax, [rbp - 0x78]
mov rcx, qword [rsp + 0x78]
lea edx, [r13 + 1]
mov qword [rsp + 0x28], r13
xor r9d, r9d
mov qword [rsp + 0x2e8], rbx
mov r8, qword [r8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov rcx, qword [rsp + 0x78]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_NtClose]
test ebx, ebx
jns 0x14000aa94
mov eax, ebx
jmp 0x14000ada0
mov rcx, qword [rbp - 0x78]
mov qword [rsp + 0x2a0], r14
mov rax, qword [rcx + 0x10]
mov r14, qword [rax + 8]
mov rbx, qword [rax + 0x10]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, qword [sym.imp.ntoskrnl.exe_IoFileObjectType]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
lea r8, [rbp - 0x70]
mov dword [rsp + 0x38], r13d
xorps xmm0, xmm0
mov eax, 0xd8
mov dword [rsp + 0x30], r13d
mov dword [rbp - 0x70], 0x30
xor r9d, r9d
mov qword [rbp - 0x68], r13
xor ecx, ecx
mov dword [rbp - 0x58], 0x240
mov qword [rbp - 0x60], r13
movdqu xmmword [rbp - 0x50], xmm0
mov rdx, qword [rdx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r13
call qword [sym.imp.ntoskrnl.exe_ObCreateObject]
test eax, eax
js 0x14000ad98
movzx ecx, byte [r14 + 0x4c]
xor edx, edx
mov qword [rsp + 0x2b0], rdi
call qword [sym.imp.ntoskrnl.exe_IoAllocateIrp]
mov rdi, rax
test rax, rax
jne 0x14000ab45
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 0xc000009a
jmp 0x14000ad90
xor r8d, r8d
lea rcx, [rbp - 0x18]
lea edx, [r8 + 1]
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
mov rcx, qword [rsp + 0x70]
xor edx, edx
mov r8d, 0xd8
call fcn.140001720
mov rax, qword [rsp + 0x70]
mov ecx, 5
mov word [rax], cx
mov ecx, 0xd8
mov rax, qword [rsp + 0x70]
mov word [rax + 2], cx
xor ecx, ecx
mov rax, qword [rsp + 0x70]
mov qword [rax + 8], rbx
mov rax, qword [rsp + 0x70]
mov dword [rax + 0x50], 2
movzx edx, word [r15 + 2]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
movzx r8d, word [r15 + 2]
xor edx, edx
mov rcx, rax
mov rbx, rax
call fcn.140001720
movzx ecx, word [r15]
mov rdx, qword [r15 + 8]
sub ecx, 4
movsxd r8, ecx
add rdx, 4
mov rcx, rbx
call fcn.140001010
mov rcx, qword [rsp + 0x70]
mov rdx, rbx
add rcx, 0x58
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x70]
xor r8d, r8d
sub rcx, 0xffffffffffffff80
lea edx, [r8 + 1]
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
mov rcx, qword [rsp + 0x70]
xor r8d, r8d
add rcx, 0x98
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
xor r9d, r9d
lea r8, [rbp - 0x80]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_PsGetVersion]
xor edx, edx
lea rcx, [rbp + 0xa0]
mov r8d, 0xc8
call fcn.140001720
call qword [sym.imp.ntoskrnl.exe_IoGetFileObjectGenericMapping]
mov r8d, 0x110180
lea rdx, [rbp + 0xa0]
mov r9, rax
lea rcx, [rbp]
call qword [sym.imp.ntoskrnl.exe_SeCreateAccessState]
mov ebx, eax
test eax, eax
jns 0x14000ac74
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_IoFreeIrp]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x14000ad8e
mov qword [rbp - 0x40], r13
lea rax, [rbp]
mov qword [rbp - 0x38], rax
lea rcx, [0x14000a8e0]
mov qword [rbp - 0x30], 0x110180
lea rax, [rbp - 0x18]
mov qword [rdi + 0x50], rax
mov qword [rdi + 8], r13
mov qword [rdi + 0x18], r13
mov dword [rdi + 0x10], 0x84
mov word [rdi + 0x40], r13w
mov qword [rdi + 0x48], rsi
mov byte [rdi + 0x44], r13b
mov qword [rdi + 0x68], r13
mov rax, qword gs:[0x188]
mov rdx, qword [rdi + 0xb8]
mov qword [rdi + 0x98], rax
mov qword [rdi + 0xa0], r13
mov rax, qword [rsp + 0x70]
mov qword [rdi + 0xc0], rax
mov byte [rdx - 0x48], r13b
mov qword [rdx - 0x20], r14
mov rax, qword [rsp + 0x70]
mov qword [rdx - 0x18], rax
lea rax, [rbp - 0x40]
mov qword [rdx - 0x40], rax
mov eax, dword [rbp + 0x220]
mov dword [rdx - 0x30], 0x40080
bts eax, 0x18
mov dword [rdx - 0x38], eax
mov dword [rdx - 0x28], r13d
mov rdx, rdi
mov rax, qword [rdi + 0xb8]
mov qword [rax - 0x10], rcx
mov rcx, r14
mov qword [rax - 8], r13
mov byte [rax - 0x45], 0xe0
call qword [sym.imp.ntoskrnl.exe_IofCallDriver]
cmp eax, 0x103
jne 0x14000ad4f
mov r9b, 1
mov qword [rsp + 0x20], r13
xor r8d, r8d
lea rcx, [rbp - 0x18]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov ebx, dword [rsi]
mov rax, qword [rsp + 0x70]
test ebx, ebx
jns 0x14000ad6b
mov qword [rax + 8], r13
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x14000ad8e
mov rcx, qword [rax + 8]
lock inc dword [rcx + 4]
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rcx + 0x10]
test rdx, rdx
je 0x14000ad8a
lock inc dword [rdx + 0x1c]
mov rcx, qword [rsp + 0x70]
mov qword [r12], rcx
mov eax, ebx
mov rdi, qword [rsp + 0x2b0]
mov r14, qword [rsp + 0x2a0]
mov rbx, qword [rsp + 0x2e8]
mov r13, qword [rsp + 0x2a8]
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140001360
add rsp, 0x2b8
pop r15
pop r12
pop rsi
pop rbp
ret