Function at 0x12154
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc8
call qword [sym.imp.ntoskrnl.exe_IoGetRelatedDeviceObject]
mov rdi, rax
mov qword [rsp + 0x80], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
mov r12d, 0x76
mov rdx, r12
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rsi, rax
mov qword [rsp + 0x70], rax
test rax, rax
jne 0x121c4
mov eax, 0xc000009a
jmp 0x124b0
mov r8, r12
xor edx, edx
mov rcx, rax
call fcn.00022a90
and dword [rsi + 0x20], 0
and qword [rsi + 0x28], 0
lea rax, [rsi + 0x30]
mov qword [rsp + 0x68], rax
mov dword [rax + 0x20], 0x16
lea r15, [rax + 0x30]
mov qword [rax + 0x28], r15
mov qword [rsp + 0x60], r15
mov r13d, 1
mov dword [r15], r13d
lea eax, [r13 + 0xd]
mov word [r15 + 4], ax
lea r14d, [r13 + 1]
mov word [r15 + 6], r14w
lea rax, [rsp + 0x88]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x30], r13b
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
lea ecx, [r13 + 2]
call qword [sym.imp.ntoskrnl.exe_IoBuildDeviceIoControlRequest]
mov r12, rax
mov qword [rsp + 0x98], rax
test rax, rax
jne 0x12274
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, 0xc000009a
jmp 0x124b0
mov ecx, dword [rsp + 0x120]
test ecx, ecx
je 0x1233e
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, ecx
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.ntoskrnl.exe_IoAllocateMdl]
mov rdi, rax
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x122ca
mov rcx, r12
call qword [sym.imp.ntoskrnl.exe_IoFreeIrp]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, 0xc000009a
jmp 0x124b0
mov r8d, r13d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_MmProbeAndLockPages]
xor eax, eax
mov dword [rsp + 0x54], eax
mov ecx, dword [rsp + 0x120]
jmp 0x12335
test eax, eax
jns 0x12343
jmp 0x124b0
mov rdi, qword [rsp + 0x58]
and dword [rsp + 0x50], 0
mov rax, qword [r12 + 0xb8]
lea rdx, [0x00012138]
mov qword [rax - 0x10], rdx
lea rdx, [rsp + 0x50]
mov qword [rax - 8], rdx
mov byte [rax - 0x45], 0xe0
mov rax, qword [r12 + 0xb8]
and qword [rax - 0x10], 0
and qword [rax - 8], 0
mov byte [rax - 0x45], 0
mov rax, qword [r12 + 0xb8]
mov byte [rax - 0x48], 0xf
mov byte [rax - 0x47], 0xa
mov r8, qword [rsp + 0x80]
mov qword [rax - 0x20], r8
mov rdx, qword [rsp + 0x100]
mov qword [rax - 0x18], rdx
mov dword [rax - 0x40], ecx
mov qword [rax - 0x38], rsi
mov rdx, qword [rsp + 0x68]
mov qword [rax - 0x30], rdx
mov dword [rax - 0x28], 0x20
neg ecx
sbb rax, rax
and rax, rdi
mov qword [r12 + 8], rax
mov rdx, r12
mov rcx, r8
call qword [sym.imp.ntoskrnl.exe_IofCallDriver]
mov edi, eax
cmp eax, 0x103
jne 0x12471
mov qword [rsp + 0x78], 0xfffffffff4143e00
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov dword [rsp + 0x54], eax
cmp eax, 0x102
jne 0x1246a
xchg dword [rsp + 0x50], r13d
test r13d, r13d
jne 0x12440
mov rcx, r12
call qword [sym.imp.ntoskrnl.exe_IoCancelIrp]
xchg dword [rsp + 0x50], r14d
cmp r14d, 3
jne 0x12440
xor edx, edx
mov rcx, r12
call qword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
and dword [rsp + 0x88], 0
mov edi, dword [rsp + 0x54]
jmp 0x12471
mov edi, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x108]
test rcx, rcx
je 0x12484
mov eax, dword [r15 + 0xa]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x110]
test rcx, rcx
je 0x12499
movzx eax, word [r15 + 8]
mov word [rcx], ax
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test edi, edi
cmovns edi, dword [rsp + 0x90]
mov eax, edi
add rsp, 0xc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret