Function at 0x13da6
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + 0x13c]
push edi
mov dword [ebp - 0xc], 0x8000
mov dword [ebp - 8], ecx
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov byte [ebp + 8], al
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
je 0x13f6d
cmp dword [esi + 0x34], 0
je 0x13f6d
mov eax, dword [esi + 0x28]
cmp eax, dword [ebp + 0xc]
jne 0x13f6d
mov eax, dword [esi + 0x2c]
cmp eax, dword [ebp + 0x10]
jne 0x13f6d
lea eax, [esi + 0xe4]
cmp dword [eax], eax
je 0x13f6d
jmp 0x13ed1
lea eax, [esi + 0xe4]
cmp dword [eax], eax
je 0x13edf
lea eax, [esi + 0xec]
mov ebx, dword [eax]
mov ecx, dword [ebx]
mov dword [eax], ecx
mov dword [ecx + 4], eax
lea edi, [ebx - 0x58]
mov eax, dword [edi + 0x60]
add eax, 4
test word [eax + 4], 0x4000
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
je 0x13e5e
push ecx
push esi
call fcn.00013aca
cmp eax, dword [ebp - 4]
jae 0x13e5e
cmp dword [ebp - 4], 0x8000
jbe 0x13f04
lea eax, [edi + 0x58]
mov dword [eax + 4], eax
mov dword [eax], eax
xor eax, eax
lea ecx, [edi + 0x38]
xchg dword [ecx], eax
lea ebx, [esi + 0xe4]
push ebx
push edi
call fcn.00013922
mov dl, byte [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], eax
mov byte [esi + 0xf9], 0
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
xor dl, dl
mov ecx, edi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov ecx, dword [ebp - 8]
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov byte [ebp + 8], al
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
je 0x13f6d
mov eax, dword [esi + 0x28]
cmp eax, dword [ebp + 0xc]
jne 0x13f6d
mov eax, dword [esi + 0x2c]
cmp eax, dword [ebp + 0x10]
jne 0x13f6d
xor edi, edi
cmp dword [ebp - 4], edi
jl 0x13f1c
lea eax, [esi + 0xec]
cmp dword [eax], eax
jne 0x13e12
lea edi, [esi + 0xe4]
cmp dword [edi], edi
je 0x13f6d
lea eax, [ebp + 8]
push eax
push esi
call fcn.00013b08
test eax, eax
mov dword [ebp - 4], eax
jl 0x13f5e
cmp dword [edi], edi
jne 0x13ed1
jmp 0x13f6d
and dword [ebp - 4], 0
lea eax, [esi + 0xec]
mov ecx, dword [eax]
mov dword [ebx], ecx
mov dword [ebx + 4], eax
mov dword [ecx + 4], ebx
mov dword [eax], ebx
jmp 0x13f6d
cmp dword [ebx], ebx
je 0x13f59
mov eax, dword [ebx]
cmp dword [eax + 0xc], edi
jl 0x13f2f
cmp dword [eax + 0x9c], edi
jne 0x13f59
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [edx], ecx
mov dword [ecx + 4], edx
lea ecx, [esi + 0xdc]
mov edx, dword [ecx + 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [edx], eax
mov dword [ecx + 4], eax
push dword [esi + 0x2c]
push dword [esi + 0x28]
push 2
call fcn.00018028
mov dword [ebp - 4], edi
jmp 0x13f6d
cmp eax, 0xc000021b
jne 0x13f6d
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
je 0x13fbd
mov edi, dword [esi + 0x28]
cmp edi, dword [ebp + 0xc]
mov ebx, dword [esi + 0x2c]
jne 0x13fbd
cmp ebx, dword [ebp + 0x10]
jne 0x13fbd
cmp dword [ebp - 4], 0
jl 0x13fc3
push 0
push esi
call fcn.00013aca
cmp eax, dword [ebp - 0xc]
jae 0x13fbd
cmp byte [esi + 0xd8], 0
je 0x13fb4
cmp dword [esi + 0xf4], 0
jle 0x13fbd
push 1
push esi
call fcn.000130b2
jmp 0x13fbd
push ebx
push edi
push 4
call fcn.00018028
cmp dword [ebp - 4], 0
jge 0x13fe6
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
je 0x13fe6
mov eax, dword [esi + 0x28]
cmp eax, dword [ebp + 0xc]
jne 0x13fe6
mov eax, dword [esi + 0x2c]
cmp eax, dword [ebp + 0x10]
jne 0x13fe6
push dword [ebp + 8]
push esi
call fcn.00012ed4
jmp 0x13ff2
mov dl, byte [ebp + 8]
mov ecx, dword [ebp - 8]
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc