Function at 0x20417
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x30
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + 0x18]
cmp eax, 0x80000005
push esi
mov esi, dword [ebx + 0x10]
push edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xc], eax
je 0x23abf
cmp dword [ebp - 0xc], 0
mov eax, dword [esi + 0x18]
mov edi, dword [eax + 8]
mov dword [ebp - 8], eax
jl 0x23acb
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x20], eax
lea eax, [ebp - 0x20]
lea ecx, [edi + 0x1c]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.HAL.dll_KeAcquireInStackQueuedSpinLock]
mov ax, word [edi]
and ax, 0xafd4
cmp ax, 0xafd4
je 0x23af3
mov al, byte [esi + 0x28]
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 0x20]
push ecx
movzx ecx, byte [edi + 8]
shr ecx, 4
and al, 1
not ecx
shl ecx, 0x1f
neg edx
sbb edx, edx
and edx, 0xfffffc00
add edx, 0x400
mov byte [ebp - 1], al
or ecx, edx
neg al
sbb eax, eax
and eax, 0x40
or ecx, eax
push ecx
push dword [esi + 0x20]
push 0
push dword [esi + 0x1c]
push dword [ebp - 8]
call fcn.0001d27f
sub dword [esi + 0x20], eax
mov dword [esi + 8], eax
je 0x2070d
mov ecx, dword [ebp - 8]
lea eax, [ecx + 0x30]
mov dword [esi + 0xc], 1
mov edx, dword [eax + 4]
mov dword [esi], eax
mov dword [esi + 4], edx
mov dword [edx], esi
xor edx, edx
cmp byte [ebp - 1], dl
mov dword [eax + 4], esi
mov eax, dword [esi + 0x20]
jne 0x23b1f
add dword [ecx + 0x38], eax
inc word [ecx + 0x40]
cmp dword [ebp - 0xc], 0x4000000f
je 0x20715
cmp dword [ebp - 0xc], 0x40000011
je 0x20715
and byte [esi + 0x28], 0xef
xor esi, esi
cmp word [ecx + 2], 3
jne 0x2054e
and byte [edi + 0xf], 0xef
cmp byte [ebp - 1], dl
mov eax, dword [edi + 0xc]
jne 0x23b2b
push edx
push 1
push edi
call fcn.000103d2
lea ecx, [ebp - 0x2c]
call dword [sym.imp.HAL.dll_KeReleaseInStackQueuedSpinLock]
xor ecx, ecx
cmp esi, ecx
jne 0x2071e
mov esi, dword [ebp - 8]
cmp word [esi + 2], 3
jne 0x2057e
cmp byte [ebp - 1], cl
jne 0x23b3c
test byte [edi + 0xe], 1
jne 0x23b61
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x20]
cmp ecx, eax
jne 0x20736
lea eax, [esi + 0x20]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
je 0x23b66
pop edi
mov eax, 0xc0000016
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
mov esi, dword [ebp - 0x18]
jmp 0x2054e
or byte [esi + 0x28], 0x10
jmp 0x2052c
mov eax, dword [ebp - 8]
and byte [esi + 0x28], 0xfe
push dword [eax + 0x14]
push esi
call fcn.0001b390
mov esi, dword [ebp - 8]
jmp 0x2057e
mov eax, dword [ecx]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x20], eax
mov dword [eax + 4], edx
mov dl, byte [0x12011]
add ecx, 0xffffffa8
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
jmp 0x2057e
mov dword [ebp - 0xc], 0x4000000f
jmp 0x2044d
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x24]
mov dword [ecx + 0x14], edx
push dword [eax + 0x14]
push esi
call fcn.0001b390
mov eax, dword [ebp - 8]
lea ecx, [eax + 0x20]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x2059c
push eax
jmp 0x23b67
mov eax, dword [ebp - 8]
cmp dword [eax + 8], edi
je 0x2048c
lea ecx, [ebp - 0x2c]
call dword [sym.imp.HAL.dll_KeReleaseInStackQueuedSpinLock]
mov eax, dword [ebp - 8]
mov edi, dword [eax + 8]
lea ecx, [edi + 0x1c]
lea edx, [ebp - 0x2c]
call dword [sym.imp.HAL.dll_KeAcquireInStackQueuedSpinLock]
jmp 0x2048c
add dword [ecx + 0x3c], eax
inc word [ecx + 0x42]
jmp 0x2050e
test ah, 1
jne 0x20545
push edx
push 2
jmp 0x20548
mov eax, dword [edi + 0xc]
test ah, 1
jne 0x20574
test eax, 0x10000
je 0x2057e
push ecx
push 2
push edi
call fcn.00010545
jmp 0x2057e
push ecx
push 1
jmp 0x23b56
push esi
call fcn.0001c24b
jmp 0x2059c