Function at 0x179e6
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 0x17bcc
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x17bcc
mov eax, dword [esi + 0x28]
cmp eax, dword [ebp + 0xc]
jne 0x17bcc
mov eax, dword [esi + 0x2c]
cmp eax, dword [ebp + 0x10]
jne 0x17bcc
lea eax, [esi + 0xe4]
cmp dword [eax], eax
jne 0x17b30
cmp dword [ecx + 0xe0], 0
jne 0x17bcc
xor eax, eax
inc eax
push eax
push esi
mov dword [esi + 0xf4], eax
call fcn.0001b65a
jmp 0x17bcc
lea eax, [esi + 0xe4]
cmp dword [eax], eax
je 0x17b3e
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 0x17abd
push ecx
push esi
call fcn.0001770a
cmp eax, dword [ebp - 4]
jae 0x17abd
cmp dword [ebp - 4], 0x8000
jbe 0x17b63
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.00017562
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 0x17bcc
mov eax, dword [esi + 0x28]
cmp eax, dword [ebp + 0xc]
jne 0x17bcc
mov eax, dword [esi + 0x2c]
cmp eax, dword [ebp + 0x10]
jne 0x17bcc
xor edi, edi
cmp dword [ebp - 4], edi
jl 0x17b7b
lea eax, [esi + 0xec]
cmp dword [eax], eax
jne 0x17a70
lea edi, [esi + 0xe4]
cmp dword [edi], edi
je 0x17bcc
lea eax, [ebp + 8]
push eax
push esi
call fcn.00017748
mov dword [ebp - 4], eax
test eax, eax
jl 0x17bbd
cmp dword [edi], edi
jne 0x17b30
jmp 0x17bcc
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 0x17bcc
cmp dword [ebx], ebx
je 0x17bb8
mov eax, dword [ebx]
cmp dword [eax + 0xc], edi
jl 0x17b8e
cmp dword [eax + 0x9c], edi
jne 0x17bb8
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.00014f02
mov dword [ebp - 4], edi
jmp 0x17bcc
cmp eax, 0xc000021b
jne 0x17bcc
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
je 0x17c1c
mov edi, dword [esi + 0x28]
mov ebx, dword [esi + 0x2c]
cmp edi, dword [ebp + 0xc]
jne 0x17c1c
cmp ebx, dword [ebp + 0x10]
jne 0x17c1c
cmp dword [ebp - 4], 0
jl 0x17c22
push 0
push esi
call fcn.0001770a
cmp eax, dword [ebp - 0xc]
jae 0x17c1c
cmp byte [esi + 0xd8], 0
je 0x17c13
cmp dword [esi + 0xf4], 0
jle 0x17c1c
push 1
push esi
call fcn.0001b65a
jmp 0x17c1c
push ebx
push edi
push 4
call fcn.00014f02
cmp dword [ebp - 4], 0
jge 0x17c45
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
je 0x17c45
mov eax, dword [esi + 0x28]
cmp eax, dword [ebp + 0xc]
jne 0x17c45
mov eax, dword [esi + 0x2c]
cmp eax, dword [ebp + 0x10]
jne 0x17c45
push dword [ebp + 8]
push esi
call fcn.0001b47c
jmp 0x17c51
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