Function at 0x140009c50
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 [0x140005450], 0x10
jb 0x140009c78
mov eax, 0xc000000d
jmp 0x14000a009
mov dword [rsp + 0x58], 0
jmp 0x140009c8c
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
mov eax, dword [0x140005450]
cmp dword [rsp + 0x58], eax
jae 0x140009cbf
mov eax, dword [rsp + 0x58]
lea rcx, [0x140005460]
mov rdx, qword [rsp + 0xc0]
mov eax, dword [rcx + rax*4]
cmp dword [rdx + 8], eax
jne 0x140009cbd
mov eax, 0xc000000d
jmp 0x14000a009
jmp 0x140009c82
mov r8d, 0x61525356
mov edx, 0x1530
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140009ce9
mov eax, 0xc000009a
jmp 0x14000a009
mov r8d, 0x34
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x78]
call fcn.1400015f0
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x78]
call fcn.14000ac00
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jge 0x140009d3c
cmp qword [rsp + 0x48], 0
je 0x140009d33
mov edx, 0x61525356
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [rsp + 0x54]
jmp 0x14000a009
mov eax, dword [0x140005450]
lea rcx, [0x1400054a0]
mov rdx, qword [rsp + 0xc0]
mov edx, dword [rdx + 4]
mov dword [rcx + rax*4], edx
mov eax, dword [0x140005450]
lea rcx, [0x140005460]
mov rdx, qword [rsp + 0xc0]
mov edx, dword [rdx + 8]
mov dword [rcx + rax*4], edx
mov eax, dword [0x140005450]
inc eax
mov dword [0x140005450], 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 0x140009dcc
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 0x140009dee
cmp qword [rsp + 0x48], 0
je 0x140009de4
mov edx, 0x61525356
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, 0xc000000d
jmp 0x14000a009
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 0x140009e2e
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 0x140009e6d
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 0x140009e6b
mov byte [rsp + 0x40], 0
jmp 0x140009e6d
jmp 0x140009e21
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 0x140009eb3
cmp qword [rsp + 0x48], 0
je 0x140009ea9
mov edx, 0x61525356
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, 0xc000000d
jmp 0x14000a009
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 0x140009f24
cmp qword [rsp + 0x48], 0
je 0x140009f1b
mov edx, 0x61525356
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [rsp + 0x54]
jmp 0x14000a009
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x50]
mov r8d, 0x61525356
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 0x140009f88
cmp qword [rsp + 0x48], 0
je 0x140009f73
mov edx, 0x61525356
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 0x14000a009
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.1400015f0
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.140009b30
mov rax, qword [rsp + 0x60]
add rax, 0x50
mov r8d, 0x1530
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.1400015f0
cmp qword [rsp + 0x48], 0
je 0x14000a005
mov edx, 0x61525356
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [rsp + 0x54]
add rsp, 0xb8
ret