Function at 0x14050
Capabilities:
Check os version
Create device object

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x1a0
mov rax, qword [0x00027100]
xor rax, rsp
mov qword [rsp + 0x190], rax
and qword [rsp + 0x40], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
mov rbp, rcx
mov ebx, 0x114
lea rcx, [rsp + 0x70]
mov r8, rbx
xor edx, edx
call fcn.00024210
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], ebx
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
mov eax, dword [0x0002c220]
cmp eax, 6
jne 0x140c5
cmp dword [0x0002c224], 2
jae 0x140c7
cmp eax, eax
jbe 0x140d0
lea rdx, [0x00024410]
jmp 0x140d7
lea rdx, [0x00024340]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x48]
lea rcx, [rsp + 0x58]
mov edx, 0x80
call qword [sym.imp.ntoskrnl.exe_IoGetDeviceObjectPointer]
mov ebx, eax
test eax, eax
jns 0x14119
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14112
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
jmp 0x143c3
mov rax, qword [rsp + 0x48]
mov r12d, dword [0x0002c220]
lea rbx, [0x0002c280]
mov esi, 0x1c
test rax, rax
je 0x141a6
cmp dword [rsp + 0x74], 6
jb 0x1419d
cmp r12d, 6
jne 0x1414f
cmp dword [0x0002c224], 2
jae 0x141a6
cmp r12d, r12d
ja 0x141a6
cmp qword [rax + 8], 0
je 0x141a6
mov rax, qword [rax + 8]
mov qword [0x0002c268], rax
mov rdi, qword [rax + 8]
mov qword [0x0002c270], rdi
test rdi, rdi
je 0x141ad
mov rdx, rbx
lea rcx, [rdi + 0x70]
mov r8, rsi
mov rax, qword [rcx]
mov qword [rdx], rax
lea rax, [fcn.000143f4]
add rdx, 8
mov qword [rcx], rax
add rcx, 8
sub r8, 1
jne 0x1417d
jmp 0x141ad
mov rdi, qword [0x0002c270]
jmp 0x141b4
mov rdi, qword [0x0002c270]
cmp dword [rsp + 0x74], 6
jae 0x14206
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14206
cmp word [rbp + 0x38], si
jb 0x14206
movzx r8d, word [rbp + 0x38]
xor edx, edx
call fcn.00024210
mov r11, qword [rbp + 0x40]
lea rdx, [0x00010000]
mov rax, qword [rdx + 0x14430]
mov qword [r11], rax
mov rax, qword [rdx + 0x14438]
mov qword [r11 + 8], rax
mov rax, qword [rdx + 0x14440]
mov qword [r11 + 0x10], rax
movzx eax, word [rdx + 0x14448]
mov word [r11 + 0x18], ax
cmp r12d, 6
jne 0x14218
cmp dword [0x0002c224], 2
jae 0x1421a
cmp r12d, r12d
jbe 0x1426c
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x1426c
cmp word [rbp + 0x38], si
jb 0x1426c
movzx r8d, word [rbp + 0x38]
xor edx, edx
call fcn.00024210
mov r11, qword [rbp + 0x40]
lea rcx, [0x00010000]
mov rax, qword [rcx + 0x14450]
mov qword [r11], rax
mov rax, qword [rcx + 0x14458]
mov qword [r11 + 8], rax
mov rax, qword [rcx + 0x14460]
mov qword [r11 + 0x10], rax
movzx eax, word [rcx + 0x14468]
mov word [r11 + 0x18], ax
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
test rdi, rdi
mov r9d, dword [rcx + 0x48]
mov qword [rsp + 0x30], rax
mov eax, dword [rcx + 0x34]
cmovne rbp, rdi
xor r8d, r8d
mov byte [rsp + 0x28], 0
lea r12d, [r8 + 0x28]
mov rcx, rbp
mov dword [rsp + 0x20], eax
mov edx, r12d
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov edi, eax
test eax, eax
jns 0x142fa
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x142bb
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp qword [0x0002c268], 0
je 0x143c1
mov rcx, qword [0x0002c270]
test rcx, rcx
je 0x143c1
add rcx, 0x70
mov rax, qword [rbx]
mov qword [rcx], rax
and qword [rbx], 0
add rbx, 8
add rcx, 8
sub rsi, 1
jne 0x142dd
jmp 0x143c1
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_IoAttachDeviceToDeviceStack]
mov rbp, rax
test rax, rax
jne 0x1436a
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov rcx, qword [rsp + 0x48]
and qword [rsp + 0x40], rbp
test rcx, rcx
je 0x14332
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp qword [0x0002c268], 0
je 0x143c1
mov rcx, qword [0x0002c270]
test rcx, rcx
je 0x143c1
add rcx, 0x70
mov rax, qword [rbx]
mov qword [rcx], rax
and qword [rbx], 0
add rbx, 8
add rcx, 8
sub rsi, 1
jne 0x14350
jmp 0x143c1
mov rax, qword [rsp + 0x40]
mov r8, r12
xor edx, edx
mov rbx, qword [rax + 0x40]
mov rcx, rbx
call fcn.00024210
mov dword [rbx], r12d
mov rax, qword [rsp + 0x40]
mov qword [rbx + 0x20], rax
mov rax, qword [rsp + 0x50]
mov qword [rbx + 8], rax
mov rax, qword [rsp + 0x48]
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x10], rax
mov rax, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rax + 0x30]
and ecx, 0x14
or dword [rdx + 0x30], ecx
mov rax, qword [rsp + 0x40]
mov qword [0x0002c260], rax
mov eax, edi
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.00022be0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret