Function at 0x13d62
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 0x13f2a
cmp dword [esi + 0x34], 0
je 0x13f2a
mov eax, dword [esi + 0x28]
cmp eax, dword [ebp + 0xc]
jne 0x13f2a
mov eax, dword [esi + 0x2c]
cmp eax, dword [ebp + 0x10]
jne 0x13f2a
lea eax, [esi + 0xe4]
cmp dword [eax], eax
je 0x13f2a
jmp 0x13e8e
lea eax, [esi + 0xe4]
cmp dword [eax], eax
je 0x13e9c
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 dword [eax + 4], 0x4000
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
je 0x13e1b
push ecx
push esi
call fcn.00013a86
cmp eax, dword [ebp - 4]
jae 0x13e1b
cmp dword [ebp - 4], 0x8000
jbe 0x13ec1
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.000138de
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 0x13f2a
mov eax, dword [esi + 0x28]
cmp eax, dword [ebp + 0xc]
jne 0x13f2a
mov eax, dword [esi + 0x2c]
cmp eax, dword [ebp + 0x10]
jne 0x13f2a
xor edi, edi
cmp dword [ebp - 4], edi
jl 0x13ed9
lea eax, [esi + 0xec]
cmp dword [eax], eax
jne 0x13dce
lea edi, [esi + 0xe4]
cmp dword [edi], edi
je 0x13f2a
lea eax, [ebp + 8]
push eax
push esi
call fcn.00013ac4
mov dword [ebp - 4], eax
test eax, eax
jl 0x13f1b
cmp dword [edi], edi
jne 0x13e8e
jmp 0x13f2a
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 0x13f2a
cmp dword [ebx], ebx
je 0x13f16
mov eax, dword [ebx]
cmp dword [eax + 0xc], edi
jl 0x13eec
cmp dword [eax + 0x9c], edi
jne 0x13f16
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.00017d8e
mov dword [ebp - 4], edi
jmp 0x13f2a
cmp eax, 0xc000021b
jne 0x13f2a
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
je 0x13f7a
mov edi, dword [esi + 0x28]
mov ebx, dword [esi + 0x2c]
cmp edi, dword [ebp + 0xc]
jne 0x13f7a
cmp ebx, dword [ebp + 0x10]
jne 0x13f7a
cmp dword [ebp - 4], 0
jl 0x13f80
push 0
push esi
call fcn.00013a86
cmp eax, dword [ebp - 0xc]
jae 0x13f7a
cmp byte [esi + 0xd8], 0
je 0x13f71
cmp dword [esi + 0xf4], 0
jle 0x13f7a
push 1
push esi
call fcn.0001307c
jmp 0x13f7a
push ebx
push edi
push 4
call fcn.00017d8e
cmp dword [ebp - 4], 0
jge 0x13fa3
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
je 0x13fa3
mov eax, dword [esi + 0x28]
cmp eax, dword [ebp + 0xc]
jne 0x13fa3
mov eax, dword [esi + 0x2c]
cmp eax, dword [ebp + 0x10]
jne 0x13fa3
push dword [ebp + 8]
push esi
call fcn.00012e9e
jmp 0x13faf
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