Function at 0x14000dfa0
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
cmp dword [0x140008450], 0x10
jb 0x14000dfc8
mov eax, 0xc000000d
jmp 0x14000e359
mov dword [rsp + 0x58], 0
jmp 0x14000dfdc
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
mov eax, dword [0x140008450]
cmp dword [rsp + 0x58], eax
jae 0x14000e00f
mov eax, dword [rsp + 0x58]
lea rcx, [0x140008460]
mov rdx, qword [rsp + 0xc0]
mov eax, dword [rcx + rax*4]
cmp dword [rdx + 8], eax
jne 0x14000e00d
mov eax, 0xc000000d
jmp 0x14000e359
jmp 0x14000dfd2
mov r8d, 0x4d525356
mov edx, 0x1530
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x14000e039
mov eax, 0xc000009a
jmp 0x14000e359
mov r8d, 0x34
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x78]
call fcn.140001880
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x78]
call fcn.14000f8c0
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jge 0x14000e08c
cmp qword [rsp + 0x48], 0
je 0x14000e083
mov edx, 0x4d525356
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [rsp + 0x54]
jmp 0x14000e359
mov eax, dword [0x140008450]
lea rcx, [0x1400084a0]
mov rdx, qword [rsp + 0xc0]
mov edx, dword [rdx + 4]
mov dword [rcx + rax*4], edx
mov eax, dword [0x140008450]
lea rcx, [0x140008460]
mov rdx, qword [rsp + 0xc0]
mov edx, dword [rdx + 8]
mov dword [rcx + rax*4], edx
mov eax, dword [0x140008450]
inc eax
mov dword [0x140008450], eax
mov eax, dword [rsp + 0xc8]
sub rax, 0x34
xor edx, edx
mov ecx, 2
div rcx
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0xc0]
movzx eax, word [rcx + rax*2 + 0x34]
test eax, eax
jne 0x14000e11c
mov eax, dword [rsp + 0x50]
sub eax, 2
mov eax, eax
mov rcx, qword [rsp + 0xc0]
movzx eax, word [rcx + rax*2 + 0x34]
test eax, eax
je 0x14000e13e
cmp qword [rsp + 0x48], 0
je 0x14000e134
mov edx, 0x4d525356
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, 0xc000000d
jmp 0x14000e359
mov byte [rsp + 0x40], 1
call qword [sym.imp.ntoskrnl.exe_KeEnterCriticalRegion]
mov rax, qword [rsp + 0xd0]
add rax, 0x48
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_ExAcquireFastMutex]
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x68], rax
jmp 0x14000e17e
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0xd0]
add rax, 0x30
cmp qword [rsp + 0x68], rax
je 0x14000e1bd
mov rax, qword [rsp + 0x68]
sub rax, 0x38
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x30]
cmp dword [rax + 4], ecx
jne 0x14000e1bb
mov byte [rsp + 0x40], 0
jmp 0x14000e1bd
jmp 0x14000e171
mov rax, qword [rsp + 0xd0]
add rax, 0x48
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_ExReleaseFastMutex]
call qword [sym.imp.ntoskrnl.exe_KeLeaveCriticalRegion]
movzx eax, byte [rsp + 0x40]
test eax, eax
jne 0x14000e203
cmp qword [rsp + 0x48], 0
je 0x14000e1f9
mov edx, 0x4d525356
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, 0xc000000d
jmp 0x14000e359
mov eax, dword [rsp + 0x50]
shl rax, 1
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x30], rcx
mov byte [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x180
mov r9d, 0x2a
xor r8d, r8d
mov edx, 0x1580
mov rcx, qword [rax + 8]
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jge 0x14000e274
cmp qword [rsp + 0x48], 0
je 0x14000e26b
mov edx, 0x4d525356
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [rsp + 0x54]
jmp 0x14000e359
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x50]
mov r8d, 0x4d525356
mov edx, eax
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rcx, qword [rsp + 0x60]
mov qword [rcx + 0x28], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x28], 0
jne 0x14000e2d8
cmp qword [rsp + 0x48], 0
je 0x14000e2c3
mov edx, 0x4d525356
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, 0xc000009a
jmp 0x14000e359
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0xc0]
add rcx, 0x34
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x28]
call fcn.140001880
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0xc0]
mov ecx, dword [rcx + 4]
mov dword [rax + 0x30], ecx
mov rdx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x70]
call fcn.14000de80
mov rax, qword [rsp + 0x60]
add rax, 0x50
mov r8d, 0x1530
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.140001880
cmp qword [rsp + 0x48], 0
je 0x14000e355
mov edx, 0x4d525356
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [rsp + 0x54]
add rsp, 0xb8
ret