Function at 0x40890c
Capabilities:
Complete processing asynchronous io request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 8], 0x8000
lea eax, [esi + 0x140]
mov ecx, eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov byte [ebp - 4], al
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
push 1
pop edx
je 0x408b15
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x408b15
mov eax, dword [esi + 0x28]
cmp eax, dword [ebp + 0xc]
jne 0x408b15
mov eax, dword [esi + 0x2c]
cmp eax, dword [ebp + 0x10]
jne 0x408b15
lea eax, [esi + 0xe4]
cmp dword [eax], eax
jne 0x408a5c
cmp dword [ecx + 0xe0], edi
jne 0x408b15
push edx
push esi
mov dword [esi + 0xf4], edx
call fcn.00408134
jmp 0x408b15
cmp dword [eax], eax
je 0x408b15
cmp dword [ebx + 4], ecx
jne 0x408b03
mov eax, dword [ebx]
cmp dword [eax + 4], ebx
jne 0x408b03
mov dword [ecx], eax
mov dword [eax + 4], ecx
lea ecx, [ebx - 0x58]
mov edi, dword [ecx + 0x60]
mov dword [ebp - 0xc], ecx
test dword [edi + 8], 0x4000
je 0x4089e0
mov edi, dword [edi + 4]
push edi
push esi
call fcn.004088d4
cmp eax, edi
jae 0x4089e0
cmp edi, 0x8000
jbe 0x408a9a
lea edx, [ebx - 0x58]
mov dword [ebx + 4], ebx
mov dword [ebx], ebx
lea eax, [edx + 0x38]
xor ecx, ecx
xchg dword [eax], ecx
lea ebx, [esi + 0xe4]
push ebx
push edx
call fcn.00408ba4
mov dl, byte [ebp - 4]
lea ecx, [esi + 0x140]
mov edi, eax
mov byte [esi + 0xf9], 0
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov ecx, dword [ebp - 0xc]
xor dl, dl
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
lea ecx, [esi + 0x140]
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov byte [ebp - 4], al
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
je 0x408b15
mov eax, dword [esi + 0x28]
cmp eax, dword [ebp + 0xc]
jne 0x408b15
mov eax, dword [esi + 0x2c]
cmp eax, dword [ebp + 0x10]
jne 0x408b15
test edi, edi
js 0x408ab5
lea eax, [esi + 0xe4]
lea ecx, [esi + 0xec]
mov ebx, dword [ecx]
cmp ebx, ecx
jne 0x408993
cmp dword [eax], eax
je 0x408b15
lea eax, [ebp - 4]
push eax
push esi
call fcn.00408d7e
mov edi, eax
test edi, edi
js 0x408b08
lea eax, [esi + 0xe4]
lea ecx, [esi + 0xec]
cmp dword [eax], eax
jne 0x408a62
jmp 0x408b15
lea eax, [esi + 0xec]
mov ecx, dword [eax]
cmp dword [ecx + 4], eax
jne 0x408b03
mov dword [ebx], ecx
mov dword [ebx + 4], eax
mov dword [ecx + 4], ebx
mov dword [eax], ebx
xor edi, edi
jmp 0x408b15
mov eax, dword [ebx]
cmp eax, ebx
je 0x408ab1
cmp dword [eax + 0xc], 0
jl 0x408aca
cmp dword [eax + 0x9c], 0
jne 0x408ab1
mov ecx, dword [eax]
cmp dword [ecx + 4], eax
jne 0x408b03
mov edx, dword [eax + 4]
cmp dword [edx], eax
jne 0x408b03
mov dword [edx], ecx
mov dword [ecx + 4], edx
lea ecx, [esi + 0xdc]
mov edx, dword [ecx + 4]
cmp dword [edx], ecx
jne 0x408b03
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.004038f0
jmp 0x408ab1
push 3
pop ecx
int 0x29
cmp edi, 0xc000021b
jne 0x408b15
xor edi, edi
and dword [ebp - 8], edi
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
je 0x408b7d
mov eax, dword [esi + 0x28]
mov ebx, dword [esi + 0x2c]
mov dword [ebp - 0xc], eax
cmp eax, dword [ebp + 0xc]
jne 0x408b7d
cmp ebx, dword [ebp + 0x10]
jne 0x408b7d
test edi, edi
js 0x408b81
push 0
push esi
call fcn.004088d4
cmp eax, dword [ebp - 8]
jae 0x408b5b
cmp byte [esi + 0xd8], 0
je 0x408b70
cmp dword [esi + 0xf4], 0
jle 0x408b5b
push 1
push esi
call fcn.00408134
mov dl, byte [ebp - 4]
mov ecx, dword [ebp - 0x10]
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
push ebx
push dword [ebp - 0xc]
push 4
call fcn.004038f0
jmp 0x408b5b
test edi, edi
jns 0x408b5b
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
je 0x408b5b
mov eax, dword [esi + 0x28]
cmp eax, dword [ebp + 0xc]
jne 0x408b5b
mov eax, dword [esi + 0x2c]
cmp eax, dword [ebp + 0x10]
jne 0x408b5b
push dword [ebp - 4]
push esi
call fcn.00407980
jmp 0x408b67