Function at 0x40aaee
Capabilities:
Complete processing asynchronous io request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x60], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x58], edi
call fcn.00401baa
test al, al
je 0x40ad02
add ebx, 4
je 0x40ab3c
mov eax, dword [ebx + 4]
test eax, eax
je 0x40ab3c
mov eax, dword [eax + 0x14]
test eax, eax
je 0x40ab3c
push 2
add eax, 4
pop ecx
jmp 0x40ab5d
push 0x4b
lea eax, [ebp - 0x50]
push 0
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea eax, [ebp - 0x50]
push 0xe
pop ecx
push 2
mov word [ebp - 0x50], cx
pop ecx
mov word [ebp - 0x4e], cx
add eax, 2
mov dword [ebp - 0x5c], eax
movzx eax, word [eax]
cmp ax, cx
je 0x40ab74
cmp eax, 0x17
jne 0x40ad02
mov ecx, 0x40e338
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov byte [ebp - 0x51], al
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + 0x18]
cdq
push edx
push eax
push dword [0x40e360]
call fcn.00405666
mov dword [ebp - 0x68], eax
test eax, eax
je 0x40acea
push dword [ebp - 0x5c]
lea edi, [eax - 8]
push 2
pop eax
push eax
push edi
call fcn.00405b9c
test al, 1
je 0x40abe0
mov dl, byte [ebp - 0x51]
mov ecx, 0x40e338
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
and dword [esi + 0x1c], 0
mov edi, 0xc00000bc
xor dl, dl
mov dword [esi + 0x18], edi
mov ecx, esi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, edi
jmp 0x40ad13
test al, 2
je 0x40ace7
cmp byte [edi + 0x165], 0
jne 0x40ace7
mov eax, dword [ebx + 4]
test eax, eax
je 0x40ace7
cmp dword [eax], 0
jne 0x40ace7
lea ecx, [edi + 0x3ac]
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov bl, al
lea eax, [edi + 0x190]
push eax
mov dword [ebp - 0x64], eax
call fcn.0040991c
mov dl, bl
mov dword [ebp - 0x5c], eax
lea ebx, [edi + 0x3ac]
mov ecx, ebx
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
test byte [edi + 0x24], 4
jne 0x40ace7
cmp dword [ebp - 0x5c], 5
jge 0x40ace7
mov ecx, ebx
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov dl, al
lea edi, [esi + 0x58]
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 4]
cmp dword [ecx], eax
jne 0x40ad24
mov dword [edi + 4], ecx
mov dword [edi], eax
mov dword [ecx], edi
mov ecx, ebx
mov dword [eax + 4], edi
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov eax, dword [esi + 0x60]
lea ecx, [esi + 0x38]
or byte [eax + 3], 1
mov eax, 0x409b20
xchg dword [ecx], eax
mov dword [ebp - 0x5c], eax
mov eax, 0x103
mov dword [esi + 0x18], eax
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x68]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xb
call fcn.004038f0
test eax, eax
jns 0x40ace7
mov ecx, ebx
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov edx, dword [edi]
cmp dword [edx + 4], edi
jne 0x40ad24
mov ecx, dword [edi + 4]
cmp dword [ecx], edi
jne 0x40ad24
mov dword [ecx], edx
mov dword [edx + 4], ecx
mov dl, al
mov ecx, ebx
mov dword [edi + 4], edi
mov dword [edi], edi
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov eax, dword [ebp - 0x5c]
lea ecx, [esi + 0x38]
xchg dword [ecx], eax
and dword [esi + 0x18], 0
and dword [ebp - 0x60], 0
mov edi, dword [ebp - 0x58]
mov dl, byte [ebp - 0x51]
mov ecx, 0x40e338
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov eax, 0x103
cmp dword [ebp - 0x60], eax
je 0x40ad13
inc byte [esi + 0x23]
mov edx, esi
add dword [esi + 0x60], 0x24
mov ecx, edi
call dword [sym.imp.ntoskrnl.exe_IofCallDriver]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040aeb4
leave
ret 0xc
push 3
pop ecx
int 0x29
int3