Function at 0x1847c
Capabilities:
Complete processing asynchronous io request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
and dword [ebp - 0x10], 0
cmp dword [ebp + 0x24], 0x20
push esi
mov esi, dword [0x1cf4c]
mov dword [ebp - 0x14], esi
jb 0x18668
mov eax, dword [ebp + 0x1c]
cmp eax, 0x5c
jbe 0x184af
push 0x12
add eax, 0xffffffa4
xor edx, edx
pop ecx
div ecx
mov dword [ebp - 0x10], eax
push ebx
lea ecx, [esi + 0xc0]
push edi
mov dword [ebp - 0x18], ecx
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
and byte [ebp + 0x1f], 0
lea ecx, [esi + 0x158]
mov byte [ebp - 1], al
mov eax, dword [ecx]
cmp eax, ecx
mov dword [ebp - 0x24], ecx
je 0x185cf
lea ebx, [eax - 0x58]
mov edx, dword [ebx + 0x18]
cmp byte [edx + 0x10], 0
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
je 0x18566
mov edi, dword [ebp + 0x18]
push 3
add edi, 0x12
pop ecx
lea esi, [edx + 0x20]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x185b3
mov eax, dword [ebx + 0x58]
mov ecx, dword [ebx + 0x5c]
mov dword [ecx], eax
mov dword [eax + 4], ecx
dec dword [edx + 0x14]
jne 0x18527
movzx eax, word [edx + 0x2c]
add eax, 4
lea eax, [eax + eax*2]
push 1
shl eax, 2
push eax
push edx
call fcn.0001673a
mov dl, byte [ebp - 1]
mov ecx, dword [ebp - 0x18]
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
push dword [ebp - 0x14]
call fcn.00017db8
xor edi, edi
cmp eax, edi
jne 0x185e0
mov dl, 2
mov ecx, ebx
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], 0xc000009a
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
push dword [ebp - 0x14]
call fcn.00016426
jmp 0x18666
push 4
pop ecx
mov edi, 0x1ce8c
mov esi, edx
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x185c1
and dword [ebp - 0xc], eax
cmp dword [ebp - 0x10], eax
jbe 0x185b3
mov eax, dword [ebp + 0x18]
add eax, 0x5c
mov dword [ebp - 8], eax
mov edi, dword [ebp - 8]
push 4
pop ecx
mov esi, edx
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x1859e
mov eax, dword [ebp - 8]
test byte [eax + 0x11], 0x80
jne 0x185af
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], 0x12
cmp eax, dword [ebp - 0x10]
jb 0x18587
jmp 0x185b3
mov byte [ebp + 0x1f], 1
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x24]
jne 0x184da
jmp 0x185c5
mov byte [ebp + 0x1f], 1
cmp byte [ebp + 0x1f], 0
jne 0x18501
mov dl, byte [ebp - 1]
mov ecx, dword [ebp - 0x18]
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
jmp 0x18666
mov byte [eax - 0x16], 3
mov dword [eax - 0x10], ebx
mov dword [ebx + 0x18], edi
mov byte [eax - 0x17], 1
lea esi, [eax - 0x50]
mov eax, dword [ebx + 4]
cmp dword [eax], edi
mov ecx, eax
je 0x18600
mov ecx, dword [ecx]
cmp dword [ecx], edi
jne 0x185fa
mov edx, dword [esi + 8]
cmp edx, edi
jne 0x1860a
mov dword [esi + 0xc], ecx
mov dword [ecx], edx
and byte [esi + 0x1c], 0
mov dword [esi + 8], eax
xor ecx, ecx
add ecx, dword [eax + 0x14]
mov eax, dword [eax]
cmp eax, edi
jne 0x18615
mov eax, dword [ebp + 0x24]
add eax, 0xffffffe0
cmp ecx, eax
jae 0x18631
mov eax, ecx
mov dword [ebx + 0x18], 0x80000005
lea ecx, [ebp - 0x28]
push ecx
push esi
push eax
mov eax, dword [ebp + 0x20]
add eax, 0x20
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x14]
call dword [eax + 0x340]
cmp dword [ebp - 0x1c], 0x103
je 0x18666
push dword [ebp - 0x28]
push dword [ebp - 0x1c]
push esi
call fcn.000191ae
pop edi
pop ebx
pop esi
leave
ret 0x20