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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x1e0
mov rax, qword [0x00026100]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov rbx, rcx
mov rdi, rdx
xor ebp, ebp
mov esi, 0x114
lea rcx, [rsp + 0xb0]
xor edx, edx
mov r8, rsi
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x50], rbp
call fcn.00022a90
lea rcx, [rsp + 0xb0]
mov dword [rsp + 0xb0], esi
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
mov edx, dword [rsp + 0xb4]
mov eax, dword [rsp + 0xb8]
mov dword [0x0002a8d8], edx
mov dword [0x0002a8dc], eax
mov qword [0x0002a8c0], rbx
call fcn.00020ce0
lea rdx, [0x00026730]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x48], rbp
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rax, qword [sym.imp.ntoskrnl.exe_IoDriverObjectType]
mov rcx, qword [rax]
lea r11, [rsp + 0x48]
lea edx, [rbp + 0x40]
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x30], rbp
mov byte [rsp + 0x28], bpl
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x68]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByName]
lea esi, [rbp + 0x22]
cmp eax, ebp
jl 0x12f8c
mov rax, qword [rsp + 0x48]
cmp rax, rbp
je 0x12ff7
lea rcx, [0x00012e40]
mov qword [rax + 0xe0], rcx
mov rax, qword [rsp + 0x48]
mov qword [rax + 0x70], rcx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x12ff7
lea rdx, [0x00026770]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x000267b0]
lea rcx, [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r11, [rsp + 0x50]
lea r8, [rsp + 0x58]
mov qword [rsp + 0x30], r11
mov r9d, esi
mov edx, 0xf
mov rcx, rbx
mov byte [rsp + 0x28], bpl
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
cmp eax, ebp
jl 0x12ff7
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov qword [rbx + 8], rbp
lea rcx, [0x0002d5b0]
mov r8b, 1
mov rdx, rdi
call qword [sym.imp.ntoskrnl.exe_RtlUpcaseUnicodeString]
lea rcx, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x30], rcx
lea edx, [r8 + 0xf]
mov rcx, rbx
mov r9d, esi
mov byte [rsp + 0x28], bpl
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov rcx, qword [rsp + 0x40]
cmp eax, ebp
mov esi, eax
jge 0x1304f
cmp rcx, rbp
je 0x1320a
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
jmp 0x1320a
mov rax, qword [rcx + 0x40]
lea rdi, [rbx + 0x70]
mov qword [rax + 6], rcx
lea rax, [0x00013238]
mov ecx, 0x1b
rep stosq qword [rdi], rax
lea rax, [fcn.00022ba4]
mov qword [rbx + 8], rbp
mov qword [rbx + 0x68], rax
call fcn.00013854
mov eax, dword [0x0002a8d8]
mov qword [0x0002d5a8], rbp
mov qword [0x0002a8e0], rbp
mov qword [0x0002a8e8], rbp
cmp eax, 6
jne 0x130a9
cmp dword [0x0002a8dc], 2
jae 0x130ab
cmp eax, eax
jbe 0x130b9
mov qword [0x0002d5a0], rbp
mov qword [0x0002a8f0], rbp
mov rcx, rbx
call fcn.0001411c
mov rcx, rbx
call fcn.0001d528
cmp byte [0x0002762d], bpl
jne 0x13142
cmp dword [0x0002ae68], ebp
jne 0x13142
mov r8d, dword [0x0002ae70]
mov edx, dword [0x0002ae74]
mov ecx, 1
call fcn.0002031c
lea rdx, [0x00027050]
lea rcx, [rsp + 0x88]
mov dword [0x0002a8b8], ebp
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x00027250]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8d, 4
lea r9, [0x0002a8b8]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x88]
mov dword [rsp + 0x20], r8d
call fcn.000128dc
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_IoRegisterShutdownNotification]
call fcn.00020bec
mov edx, 0x40000
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [0x0002a8d0], rax
mov rax, qword [rsp + 0x40]
btr dword [rax + 0x30], 7
cmp dword [rsp + 0xb4], 6
mov rax, qword [rbx + 0x30]
jae 0x131c5
cmp rax, rbp
je 0x1320a
mov rcx, qword [rax + 0x20]
cmp rcx, rbp
je 0x1320a
cmp word [rax + 0x18], 0xc
jb 0x1320a
movzx r8d, word [rax + 0x18]
xor edx, edx
call fcn.00022a90
mov rdx, qword [rbx + 0x30]
mov rcx, qword [rdx + 0x20]
lea rdx, [0x00010000]
mov rax, qword [rdx + 0x12c50]
mov qword [rcx], rax
movzx eax, word [rdx + 0x12c58]
jmp 0x13206
cmp rax, rbp
je 0x1320a
mov rcx, qword [rax + 0x20]
cmp rcx, rbp
je 0x1320a
cmp word [rax + 0x18], 0xc
jb 0x1320a
movzx r8d, word [rax + 0x18]
xor edx, edx
call fcn.00022a90
mov rdx, qword [rbx + 0x30]
mov rcx, qword [rdx + 0x20]
lea rdx, [0x00010000]
mov rax, qword [rdx + 0x12c60]
mov qword [rcx], rax
movzx eax, word [rdx + 0x12c68]
mov word [rcx + 8], ax
mov eax, esi
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.00021470
mov rbx, qword [rsp + 0x210]
add rsp, 0x1e0
pop rdi
pop rsi
pop rbp
ret