Function at 0x12920
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x120
mov qword [rsp + 0x60], rsp
mov rbx, rdx
mov r12, rcx
mov r14, qword [rdx + 0xb8]
mov qword [rsp + 0x170], r14
mov r13, qword [r14 + 0x30]
xor r15d, r15d
cmp r13, r15
je 0x12df7
cmp word [r13 + 0x58], r15w
je 0x12df7
mov qword [rax + 0x20], r15
lea rdx, [r13 + 0x58]
lea rcx, [rax - 0x68]
call fcn.00014a4c
lea r8, [rsp + 0x178]
mov rdx, qword [rax]
mov rcx, r12
call fcn.00013918
mov edi, eax
lea rcx, [rsp + 0xf0]
call fcn.000114e0
lea esi, [r15 + 1]
sub edi, esi
je 0x12b32
cmp edi, esi
je 0x129d0
add byte [rbx + 0x43], sil
add qword [rbx + 0xb8], 0x48
mov rdx, rbx
mov rcx, qword [r12 + 0x48]
call qword [sym.imp.ntoskrnl.exe_IofCallDriver]
jmp 0x12e15
cmp word [r12 + 0xa0], 0x5c
jne 0x129ff
xor eax, eax
or r15, 0xffffffffffffffff
mov rcx, r15
lea rdi, [0x00020830]
repne scasw ax, word [rdi]
not rcx
sub rcx, rsi
mov qword [rsp + 0x168], rcx
jmp 0x12a0b
mov word [rsp + 0x168], si
or r15, 0xffffffffffffffff
lea rdx, [r13 + 0x58]
lea rcx, [rsp + 0xc8]
call fcn.00014a4c
xor eax, eax
mov rcx, r15
mov r8, qword [rsp + 0xc8]
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
sub rcx, rsi
mov r14, rcx
mov rcx, r15
lea rdi, [0x00020840]
repne scasw ax, word [rdi]
not rcx
sub rcx, rsi
add r14w, cx
add r14w, word [rsp + 0x168]
add r14w, si
add r14w, r14w
cmp word [r13 + 0x5a], r14w
jae 0x12a90
xor edx, edx
mov rcx, qword [r13 + 0x60]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
movzx edx, r14w
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [r13 + 0x60], rax
mov word [r13 + 0x5a], r14w
mov r8, qword [rsp + 0xc8]
movzx eax, word [r12 + 0xa0]
cmp ax, 0x5c
jne 0x12abb
movzx edx, r14w
shr rdx, 1
mov r9, r8
lea r8, [0x00020870]
mov rcx, qword [r13 + 0x60]
call fcn.00015a98
jmp 0x12adb
movzx r9d, ax
movzx edx, r14w
shr rdx, 1
mov qword [rsp + 0x20], r8
lea r8, [0x000208b0]
mov rcx, qword [r13 + 0x60]
call fcn.00015a98
xor eax, eax
mov rcx, r15
mov rdi, qword [r13 + 0x60]
repne scasw ax, word [rdi]
not rcx
sub rcx, rsi
add cx, cx
mov word [r13 + 0x58], cx
mov rax, qword [rsp + 0x170]
mov rax, qword [rax + 0x30]
and qword [rax + 0x40], 0
mov edi, 0x104
mov dword [rbx + 0x30], edi
and qword [rbx + 0x38], 0
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
lea rcx, [rsp + 0xc8]
call fcn.000114e0
mov eax, edi
jmp 0x12e15
mov rdx, qword [rbx + 0xb8]
lea rdi, [rdx - 0x48]
mov rcx, rdi
mov r8d, 0x38
call fcn.0001f610
mov byte [rdi + 3], r15b
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
mov rdx, qword [rbx + 0xb8]
lea rax, [0x00013408]
mov qword [rdx - 0x10], rax
lea rax, [rsp + 0xa0]
mov qword [rdx - 8], rax
mov byte [rdx - 0x45], 0xe0
mov rdx, rbx
mov rcx, qword [r12 + 0x48]
call qword [sym.imp.ntoskrnl.exe_IofCallDriver]
mov dword [rsp + 0x170], eax
cmp eax, 0x103
jne 0x12bc2
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov dword [rsp + 0x170], eax
cmp eax, r15d
je 0x12be6
lea rdx, [0x00012bda]
mov rcx, qword [rsp + 0x60]
call sub.ntoskrnl.exe__local_unwind
nop
nop
mov eax, dword [rsp + 0x170]
jmp 0x12e15
lea rdi, [r12 + 0x130]
mov qword [rsp + 0x50], rdi
call qword [sym.imp.ntoskrnl.exe_KeEnterCriticalRegion]
mov dl, sil
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExAcquireResourceSharedLite]
call qword [sym.imp.ntoskrnl.exe_KeLeaveCriticalRegion]
mov r11, qword [r14 + 0x30]
lea rdi, [r12 + 0x70]
mov rax, rdi
mov qword [rsp + 0x48], rax
mov rdx, qword [rdi + 8]
cmp rdx, r15
je 0x12c43
mov rcx, qword [r11 + 0x18]
cmp qword [rdx + 0x20], rcx
jb 0x12c3d
mov rax, rdx
mov qword [rsp + 0x48], rdx
mov rdx, qword [rdx + 0x10]
jmp 0x12c41
mov rdx, qword [rdx + 0x18]
jmp 0x12c20
cmp rax, rdi
je 0x12c59
mov rcx, qword [rax + 0x20]
cmp qword [r11 + 0x18], rcx
cmovb rax, rdi
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x58], rax
lea rbx, [r12 + 0x70]
mov qword [rsp + 0x80], rbx
cmp rax, rbx
jne 0x12dc2
mov r13, qword [r11 + 0x18]
mov qword [rsp + 0x88], r13
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], rax
mov rdi, rbx
mov rax, qword [rbx + 8]
mov cl, sil
cmp rax, r15
je 0x12cc4
mov rdi, rax
cmp r13, qword [rax + 0x20]
setb cl
cmp cl, r15b
je 0x12cbe
mov rax, qword [rax + 0x10]
jmp 0x12cc2
mov rax, qword [rax + 0x18]
jmp 0x12ca4
mov rax, rdi
mov qword [rsp + 0x170], rax
cmp cl, r15b
je 0x12d23
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0xc0], rax
cmp rdi, rax
jne 0x12d13
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x68]
mov r8, rdi
lea rdx, [rsp + 0x78]
mov rcx, rbx
call fcn.00018a94
mov rcx, qword [rax]
mov qword [rsp + 0x38], rcx
mov byte [rsp + 0x40], sil
jmp 0x12d6f
mov rcx, rdi
call fcn.000158e0
mov qword [rsp + 0x170], rax
lea rcx, [rax + 0x20]
mov qword [rsp + 0xb8], rcx
cmp qword [rcx], r13
jae 0x12d65
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x68]
mov r8, rdi
lea rdx, [rsp + 0x98]
mov rcx, rbx
call fcn.00018a94
mov rcx, qword [rax]
mov qword [rsp + 0x38], rcx
mov byte [rsp + 0x40], sil
jmp 0x12d6f
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x40], r15b
mov rdi, qword [r14 + 0x30]
add r12, 0x70
mov rax, r12
mov qword [rsp + 0x30], rax
mov rdx, qword [r12 + 8]
cmp rdx, r15
je 0x12da7
mov rcx, qword [rdi + 0x18]
cmp qword [rdx + 0x20], rcx
jb 0x12da1
mov rax, rdx
mov qword [rsp + 0x30], rdx
mov rdx, qword [rdx + 0x10]
jmp 0x12da5
mov rdx, qword [rdx + 0x18]
jmp 0x12d84
cmp rax, r12
je 0x12dbd
mov rcx, qword [rax + 0x20]
cmp qword [rdi + 0x18], rcx
cmovb rax, r12
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x58], rax
mov rcx, qword [rax + 0x28]
lock add dword [rcx], esi
call qword [sym.imp.ntoskrnl.exe_KeEnterCriticalRegion]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ExReleaseResourceLite]
call qword [sym.imp.ntoskrnl.exe_KeLeaveCriticalRegion]
lea rdx, [0x00012df3]
mov rcx, qword [rsp + 0x60]
call sub.ntoskrnl.exe__local_unwind
nop
nop
xor eax, eax
jmp 0x12e15
mov esi, 1
add byte [rdx + 0x43], sil
lea rax, [r14 + 0x48]
mov qword [rdx + 0xb8], rax
mov rcx, qword [rcx + 0x48]
call qword [sym.imp.ntoskrnl.exe_IofCallDriver]
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret