Function at 0x13648
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 0x13b1f
cmp word [r13 + 0x58], r15w
je 0x13b1f
mov qword [rax + 0x20], r15
lea rdx, [r13 + 0x58]
lea rcx, [rax - 0x68]
call fcn.000156ec
lea r8, [rsp + 0x178]
mov rdx, qword [rax]
mov rcx, r12
call fcn.00014640
mov edi, eax
lea rcx, [rsp + 0xf0]
call fcn.00012208
lea esi, [r15 + 1]
sub edi, esi
je 0x1385a
cmp edi, esi
je 0x136f8
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 0x13b3d
cmp word [r12 + 0xa0], 0x5c
jne 0x13727
xor eax, eax
or r15, 0xffffffffffffffff
mov rcx, r15
lea rdi, [0x00022280]
repne scasw ax, word [rdi]
not rcx
sub rcx, rsi
mov qword [rsp + 0x168], rcx
jmp 0x13733
mov word [rsp + 0x168], si
or r15, 0xffffffffffffffff
lea rdx, [r13 + 0x58]
lea rcx, [rsp + 0xc8]
call fcn.000156ec
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, [0x00022290]
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 0x137b8
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 0x137e3
movzx edx, r14w
shr rdx, 1
mov r9, r8
lea r8, [0x000222c0]
mov rcx, qword [r13 + 0x60]
call fcn.000162f0
jmp 0x13803
movzx r9d, ax
movzx edx, r14w
shr rdx, 1
mov qword [rsp + 0x20], r8
lea r8, [0x00022300]
mov rcx, qword [r13 + 0x60]
call fcn.000162f0
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.00012208
mov eax, edi
jmp 0x13b3d
mov rdx, qword [rbx + 0xb8]
lea rdi, [rdx - 0x48]
mov rcx, rdi
mov r8d, 0x38
call fcn.00020330
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, [0x00014130]
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 0x138ea
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 0x1390e
lea rdx, [0x00013902]
mov rcx, qword [rsp + 0x60]
call sub.ntoskrnl.exe__local_unwind
nop
nop
mov eax, dword [rsp + 0x170]
jmp 0x13b3d
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 0x1396b
mov rcx, qword [r11 + 0x18]
cmp qword [rdx + 0x20], rcx
jb 0x13965
mov rax, rdx
mov qword [rsp + 0x48], rdx
mov rdx, qword [rdx + 0x10]
jmp 0x13969
mov rdx, qword [rdx + 0x18]
jmp 0x13948
cmp rax, rdi
je 0x13981
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 0x13aea
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 0x139ec
mov rdi, rax
cmp r13, qword [rax + 0x20]
setb cl
cmp cl, r15b
je 0x139e6
mov rax, qword [rax + 0x10]
jmp 0x139ea
mov rax, qword [rax + 0x18]
jmp 0x139cc
mov rax, rdi
mov qword [rsp + 0x170], rax
cmp cl, r15b
je 0x13a4b
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0xc0], rax
cmp rdi, rax
jne 0x13a3b
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.00019454
mov rcx, qword [rax]
mov qword [rsp + 0x38], rcx
mov byte [rsp + 0x40], sil
jmp 0x13a97
mov rcx, rdi
call fcn.00016138
mov qword [rsp + 0x170], rax
lea rcx, [rax + 0x20]
mov qword [rsp + 0xb8], rcx
cmp qword [rcx], r13
jae 0x13a8d
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.00019454
mov rcx, qword [rax]
mov qword [rsp + 0x38], rcx
mov byte [rsp + 0x40], sil
jmp 0x13a97
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 0x13acf
mov rcx, qword [rdi + 0x18]
cmp qword [rdx + 0x20], rcx
jb 0x13ac9
mov rax, rdx
mov qword [rsp + 0x30], rdx
mov rdx, qword [rdx + 0x10]
jmp 0x13acd
mov rdx, qword [rdx + 0x18]
jmp 0x13aac
cmp rax, r12
je 0x13ae5
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, [0x00013b1b]
mov rcx, qword [rsp + 0x60]
call sub.ntoskrnl.exe__local_unwind
nop
nop
xor eax, eax
jmp 0x13b3d
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