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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x1a0
mov rax, qword [0x00026100]
xor rax, rsp
mov qword [rsp + 0x190], rax
and qword [rsp + 0x40], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
mov rbx, rcx
mov edi, 0x114
lea rcx, [rsp + 0x70]
mov r8, rdi
xor edx, edx
call fcn.00022a90
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], edi
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
mov r11d, dword [0x0002a8d8]
cmp r11d, 6
jne 0x14196
cmp dword [0x0002a8dc], 2
jae 0x14198
cmp r11d, r11d
jbe 0x141a1
lea rdx, [0x00022c80]
jmp 0x141a8
lea rdx, [0x00022bc0]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x58]
mov edx, 0x80
call qword [sym.imp.ntoskrnl.exe_IoGetDeviceObjectPointer]
mov edi, eax
test eax, eax
jns 0x141ea
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x141e3
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
jmp 0x14402
cmp dword [rsp + 0x74], 6
mov rcx, qword [rbx + 0x40]
mov edi, 0x1c
jae 0x1424d
test rcx, rcx
je 0x1429b
cmp word [rbx + 0x38], di
jb 0x1429b
movzx r8d, word [rbx + 0x38]
xor edx, edx
call fcn.00022a90
mov r11, qword [rbx + 0x40]
lea rcx, [0x00010000]
mov rax, qword [rcx + 0x12ca0]
mov qword [r11], rax
mov rax, qword [rcx + 0x12ca8]
mov qword [r11 + 8], rax
mov rax, qword [rcx + 0x12cb0]
mov qword [r11 + 0x10], rax
movzx eax, word [rcx + 0x12cb8]
jmp 0x14296
test rcx, rcx
je 0x1429b
cmp word [rbx + 0x38], di
jb 0x1429b
movzx r8d, word [rbx + 0x38]
xor edx, edx
call fcn.00022a90
mov r11, qword [rbx + 0x40]
lea rcx, [0x00010000]
mov rax, qword [rcx + 0x12cc0]
mov qword [r11], rax
mov rax, qword [rcx + 0x12cc8]
mov qword [r11 + 8], rax
mov rax, qword [rcx + 0x12cd0]
mov qword [r11 + 0x10], rax
movzx eax, word [rcx + 0x12cd8]
mov word [r11 + 0x18], ax
mov rax, qword [0x0002a908]
mov rcx, qword [rsp + 0x48]
mov r9d, dword [rcx + 0x48]
test rax, rax
cmovne rbx, rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov eax, dword [rcx + 0x34]
lea edx, [r8 + 0x29]
mov rcx, rbx
mov byte [rsp + 0x28], 0
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov esi, eax
test eax, eax
jns 0x14334
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x142ee
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp qword [0x0002a900], 0
je 0x14400
mov rdx, qword [0x0002a908]
test rdx, rdx
je 0x14400
lea rcx, [0x0002a910]
add rdx, 0x70
mov rax, qword [rcx]
mov qword [rdx], rax
and qword [rcx], 0
add rcx, 8
add rdx, 8
sub rdi, 1
jne 0x14317
jmp 0x14400
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_IoAttachDeviceToDeviceStack]
mov rbp, rax
test rax, rax
jne 0x143ab
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov rcx, qword [rsp + 0x50]
and qword [rsp + 0x40], rbp
test rcx, rcx
je 0x1436c
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp qword [0x0002a900], 0
je 0x14400
mov rdx, qword [0x0002a908]
test rdx, rdx
je 0x14400
lea rcx, [0x0002a910]
add rdx, 0x70
mov rax, qword [rcx]
mov qword [rdx], rax
and qword [rcx], 0
add rcx, 8
add rdx, 8
sub rdi, 1
jne 0x14391
jmp 0x14400
mov rax, qword [rsp + 0x40]
xor edx, edx
mov rbx, qword [rax + 0x40]
lea r8d, [rdx + 0x29]
mov rcx, rbx
call fcn.00022a90
mov r11, qword [rsp + 0x40]
mov qword [rbx + 0x1c], r11
mov rax, qword [rsp + 0x48]
mov qword [rbx + 1], rax
mov rax, qword [rsp + 0x50]
mov qword [rbx + 0x13], rbp
mov qword [rbx + 0xa], rax
mov rax, qword [rsp + 0x48]
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 [0x0002a8f8], rax
mov eax, esi
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.00021470
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret