Function at 0x12e5c
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.000231f0
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 [0x0002a8e0], edx
mov dword [0x0002a8e4], eax
mov qword [0x0002a8c8], rbx
call fcn.00021438
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 0x12f68
mov rax, qword [rsp + 0x48]
cmp rax, rbp
je 0x12fd3
lea rcx, [0x00012e1c]
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 0x12fd3
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 0x12fd3
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov qword [rbx + 8], rbp
lea rcx, [0x0002d800]
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 0x1302b
cmp rcx, rbp
je 0x131f2
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
jmp 0x131f2
mov rax, qword [rcx + 0x40]
lea rdi, [rbx + 0x70]
mov qword [rax + 6], rcx
lea rax, [0x00013220]
mov ecx, 0x1b
rep stosq qword [rdi], rax
mov rcx, qword [rsp + 0x40]
lea rax, [fcn.00013420]
mov qword [rbx + 0x68], rax
call qword [sym.imp.ntoskrnl.exe_IoRegisterShutdownNotification]
mov rdx, qword [rsp + 0x40]
mov qword [0x0002a8c0], rdx
mov qword [rbx + 8], rbp
call fcn.00013858
mov eax, dword [0x0002a8e0]
mov qword [0x0002d7f0], rbp
mov qword [0x0002a8e8], rbp
mov qword [0x0002a8f0], rbp
cmp eax, 6
jne 0x1309c
cmp dword [0x0002a8e4], 3
ja 0x1309e
cmp eax, eax
jbe 0x130ac
mov qword [0x0002d7e8], rbp
mov qword [0x0002a8f8], rbp
mov rcx, rbx
call fcn.00014120
mov rcx, rbx
call fcn.0001dc68
cmp byte [0x0002762e], bpl
jne 0x13135
cmp dword [0x0002ae88], ebp
jne 0x13135
mov r8d, dword [0x0002ae90]
mov edx, dword [0x0002ae94]
mov ecx, 1
call fcn.00020a74
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.000128b8
call fcn.00021344
mov edx, 0x40000
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [0x0002a8d8], rax
mov rax, qword [rsp + 0x40]
btr dword [rax + 0x30], 7
cmp dword [rsp + 0xb4], 6
mov rax, qword [rbx + 0x30]
jae 0x131ad
cmp rax, rbp
je 0x131f2
mov rcx, qword [rax + 0x20]
cmp rcx, rbp
je 0x131f2
cmp word [rax + 0x18], 0xc
jb 0x131f2
movzx r8d, word [rax + 0x18]
xor edx, edx
call fcn.000231f0
mov rdx, qword [rbx + 0x30]
mov rcx, qword [rdx + 0x20]
lea rdx, [0x00010000]
mov rax, qword [rdx + 0x133b0]
mov qword [rcx], rax
movzx eax, word [rdx + 0x133b8]
jmp 0x131ee
cmp rax, rbp
je 0x131f2
mov rcx, qword [rax + 0x20]
cmp rcx, rbp
je 0x131f2
cmp word [rax + 0x18], 0xc
jb 0x131f2
movzx r8d, word [rax + 0x18]
xor edx, edx
call fcn.000231f0
mov rdx, qword [rbx + 0x30]
mov rcx, qword [rdx + 0x20]
lea rdx, [0x00010000]
mov rax, qword [rdx + 0x133c0]
mov qword [rcx], rax
movzx eax, word [rdx + 0x133c8]
mov word [rcx + 8], ax
mov eax, esi
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.00021bd0
mov rbx, qword [rsp + 0x210]
add rsp, 0x1e0
pop rdi
pop rsi
pop rbp
ret