Function at 0x408d7e
Capabilities:
Complete processing asynchronous io request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x408da0
mov edi, 0xc000020c
jmp 0x408e16
mov eax, dword [esi + 0x34]
test eax, eax
je 0x408d99
mov ecx, dword [eax + 0xe0]
mov eax, dword [eax + 0xe4]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x408d99
lea ecx, [esi + 0xe4]
push ebx
mov ebx, dword [ecx]
test ebx, ebx
je 0x408e10
cmp ebx, ecx
je 0x408e10
mov eax, dword [ebx]
mov edi, dword [ebx + 0x9c]
mov dword [ebp - 0x18], edi
cmp dword [eax + 4], ebx
jne 0x40921b
mov edx, dword [ebx + 4]
cmp dword [edx], ebx
jne 0x40921b
mov dword [edx], eax
mov dword [eax + 4], edx
cmp dword [ebx + 0xc], 0
jl 0x408e01
cmp dword [ebx + 0x9c], 0
jne 0x408e23
cmp byte [esi + 0x130], 0
je 0x408e1e
push ebx
call fcn.004059ae
mov edi, 0xc000020c
pop ebx
mov eax, edi
pop edi
pop esi
leave
ret 8
xor edi, edi
mov dword [ebp - 0x18], edi
cmp byte [esi + 0xf9], 0
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
jne 0x408ea1
mov byte [esi + 0xfa], 1
lea ecx, [esi + 0x140]
mov dl, byte [eax]
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 0x98]
add eax, 0xa4
add eax, ebx
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebx + 0x9c]
mov edi, dword [ebp - 0xc]
mov ecx, edi
push 0xc20
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call dword [0x40c0ec]
call edi
lea ecx, [esi + 0x140]
mov edi, eax
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov ecx, dword [ebp + 0xc]
mov byte [ecx], al
lea ecx, [esi + 0xe4]
mov byte [esi + 0xfa], 0
jmp 0x408ea6
mov edi, 0xc000021b
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
je 0x4091e1
cmp dword [esi + 0x34], 0
je 0x4091e1
cmp edi, 0xc000021b
jne 0x408ec8
xor eax, eax
jmp 0x408ee1
mov eax, dword [ebp - 0x10]
test edi, edi
jne 0x408ed8
test eax, eax
jne 0x408ed8
mov edi, 0xc000021b
mov edx, dword [ebp - 0x18]
cmp eax, edx
jbe 0x408ee4
mov eax, edx
mov dword [ebp - 0x10], eax
mov edx, dword [ebx + 0x9c]
cmp eax, edx
jae 0x408f1f
sub edx, eax
mov dword [ebx + 0x9c], edx
mov eax, dword [ebp - 0x10]
add dword [ebx + 0x98], eax
mov eax, dword [ecx]
cmp dword [eax + 4], ecx
jne 0x40921b
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [eax + 4], ebx
mov dword [ecx], ebx
test edi, edi
jne 0x408f25
mov edi, 0xc000021b
jmp 0x408f25
push ebx
call fcn.004059ae
cmp edi, 0xc000021b
jne 0x408f39
mov byte [esi + 0xf9], 1
jmp 0x408e15
cmp edi, 0xc0000016
jne 0x409188
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x408e15
mov eax, dword [ebx + 0x60]
xor edi, edi
mov dword [ebp - 0x14], edi
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x408f7a
and dword [ebx + 0x18], edi
xor edi, edi
xor eax, eax
jmp 0x409107
mov ecx, dword [eax + 0x14]
mov dword [ebp - 8], ecx
cmp ecx, edx
jbe 0x408f87
mov dword [ebp - 8], edx
test byte [eax + 6], 5
je 0x408f95
mov edi, dword [eax + 0xc]
mov dword [ebp - 0xc], edi
jmp 0x408fa8
push 0x20
push edi
push edi
push 1
push edi
push eax
call dword [sym.imp.ntoskrnl.exe_MmMapLockedPagesSpecifyCache]
mov edi, eax
mov dword [ebp - 0xc], eax
test edi, edi
jne 0x408fb1
and dword [ebx + 0x18], edi
jmp 0x408f71
mov edx, dword [ebp - 8]
lea eax, [esi + 0xe4]
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
cmp ecx, eax
je 0x4090ef
cmp dword [ecx + 0xc], 0
jl 0x4090c5
mov eax, dword [ecx + 0x9c]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4090c5
mov edi, dword [ebp - 0x18]
cmp edi, edx
jbe 0x408feb
mov edi, edx
mov eax, dword [ebp - 0x20]
cmp edi, eax
jbe 0x408ff4
mov edi, eax
mov eax, dword [ecx + 0x98]
add ecx, 0xa4
push edi
add eax, ecx
push eax
push dword [ebp - 0xc]
call sub.ntoskrnl.exe_memcpy
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov ecx, dword [ebp - 0x18]
add dword [ebp - 0x14], edi
sub ecx, edi
mov dword [ebp - 0x18], ecx
mov edx, dword [eax + 0x9c]
cmp edi, edx
jae 0x409037
sub edx, edi
add dword [eax + 0x98], edi
mov dword [eax + 0x9c], edx
jmp 0x409067
jne 0x409067
test byte [ebp - 0x28], 0x80
jne 0x4090ef
mov edx, dword [eax]
cmp dword [edx + 4], eax
jne 0x40921b
mov ecx, dword [eax + 4]
cmp dword [ecx], eax
jne 0x40921b
mov dword [ecx], edx
push eax
mov dword [edx + 4], ecx
call fcn.004059ae
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
cmp edi, edx
jae 0x40907b
add dword [ebp - 0xc], edi
sub edx, edi
mov dword [ebp - 8], edx
jmp 0x408fb4
jne 0x408fb4
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4090ef
mov edx, dword [eax + 0x14]
mov dword [ebp - 8], edx
cmp edx, ecx
jbe 0x40909c
mov edx, ecx
mov dword [ebp - 8], ecx
test byte [eax + 6], 5
je 0x4090ad
mov edi, dword [eax + 0xc]
mov dword [ebp - 0xc], edi
jmp 0x408fb4
push 0x20
xor ecx, ecx
push ecx
push ecx
push 1
push ecx
push eax
call dword [sym.imp.ntoskrnl.exe_MmMapLockedPagesSpecifyCache]
mov dword [ebp - 0xc], eax
jmp 0x408fb1
lea eax, [ebx + 0x58]
xor ecx, ecx
mov dword [eax + 4], eax
mov dword [eax], eax
lea eax, [ebx + 0x38]
xchg dword [eax], ecx
xor eax, eax
mov edi, 0xc000020c
cmp eax, dword [ebp - 0x14]
sbb eax, eax
and eax, 0x3ffffe7c
add eax, 0xc0000184
mov dword [ebx + 0x18], eax
jmp 0x409104
lea eax, [ebx + 0x58]
xor ecx, ecx
mov dword [eax + 4], eax
mov dword [eax], eax
lea eax, [ebx + 0x38]
xchg dword [eax], ecx
and dword [ebx + 0x18], 0
xor edi, edi
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x1c], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x1c], 0
jbe 0x409149
mov ebx, dword [ebp + 0xc]
lea ecx, [esi + 0x140]
mov byte [esi + 0xf9], 0
mov dl, byte [ebx]
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov ecx, dword [ebp - 4]
xor dl, dl
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
lea ecx, [esi + 0x140]
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov esi, dword [ebp + 8]
mov byte [ebx], al
jmp 0x409188
lea eax, [esi + 0xec]
add ecx, 0x58
mov edx, dword [eax + 4]
cmp dword [edx], eax
jne 0x40921b
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov dword [edx], ecx
mov dword [eax + 4], ecx
mov ecx, 0x407bb0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
or byte [eax + 3], 1
mov eax, dword [ebp - 4]
add eax, 0x38
xchg dword [eax], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0x103
test edi, edi
js 0x408e15
lea ecx, [esi + 0xe4]
mov eax, dword [ecx]
test eax, eax
je 0x408e15
cmp eax, ecx
je 0x408e15
cmp byte [esi + 0x130], 0
je 0x408e15
cmp dword [eax + 0xc], 0
jl 0x4091c8
cmp dword [eax + 0x9c], 0
jne 0x408e15
mov ecx, dword [eax]
cmp dword [ecx + 4], eax
jne 0x40921b
mov edx, dword [eax + 4]
cmp dword [edx], eax
jne 0x40921b
mov dword [edx], ecx
mov dword [ecx + 4], edx
push eax
jmp 0x408e0b
push ebx
call fcn.004059ae
cmp edi, 0xc0000016
jne 0x408e10
mov eax, dword [ebp - 4]
test eax, eax
je 0x408e10
mov dword [eax + 0x18], 0xc0000184
mov eax, dword [ebp - 4]
push 0
and dword [eax + 0x1c], 0
push dword [ebp - 4]
call fcn.0040290c
jmp 0x408e10
push 3
pop ecx
int 0x29
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov eax, dword [ebx + 0x18]
mov dword [ebp - 8], eax
call fcn.00401baa
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x40935b
test al, al
je 0x409355
push esi
mov ecx, 0x40e338
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov byte [ebp - 2], al
mov eax, dword [edi + 8]
cdq
push edx
push eax
push dword [0x40e344]
call fcn.00405666
mov esi, eax
test esi, esi
je 0x409337
lea eax, [esi + 0x138]
mov ecx, eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov ecx, dword [edi + 0x9c]
sub dword [esi + 0x110], ecx
cmp dword [esi + 0x110], 0x8000
mov byte [ebp - 1], al
jge 0x4092a6
mov byte [esi + 0x10c], 0
mov eax, dword [ebp - 8]
test eax, eax
jns 0x40930c
cmp byte [esi + 0x128], 0
mov byte [esi + 0x114], 1
jne 0x40930c
cmp byte [esi + 0x135], 0
jne 0x40930c
and dword [edi + 0x9c], 0
mov dword [edi + 0xc], eax
lea eax, [esi + 0xd4]
mov byte [esi + 0x128], 1
mov dword [esi + 0x12c], 4
mov ecx, dword [eax + 4]
cmp dword [ecx], eax
je 0x4092f3
push 3
pop ecx
int 0x29
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [ecx], edi
mov dword [eax + 4], edi
push dword [esi + 0x24]
push dword [esi + 0x20]
push 2
call fcn.004038f0
jmp 0x409312
push edi
call fcn.004059ae
lea eax, [esi + 0xfc]
cmp dword [eax], eax
jne 0x409329
push dword [esi + 0x24]
push dword [esi + 0x20]
push 5
call fcn.004038f0
mov dl, byte [ebp - 1]
mov ecx, dword [ebp - 0xc]
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
jmp 0x40933d
push edi
call fcn.004059ae
mov dl, byte [ebp - 2]
mov ecx, 0x40e338
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
push ebx
call dword [sym.imp.ntoskrnl.exe_IoFreeIrp]
pop esi
jmp 0x409362
push edi
call fcn.004059ae
push ebx
call dword [sym.imp.ntoskrnl.exe_IoFreeIrp]
pop edi
mov eax, 0xc0000016
pop ebx
leave
ret 0xc