Function at 0x244ed
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 0x60]
mov eax, dword [eax + 0x18]
push esi
mov esi, dword [eax + 0xc]
test esi, esi
push edi
mov edi, 0xc0000001
je 0x2455f
cmp dword [esi + 0x1c], 7
jne 0x2455f
mov edi, dword [sym.imp.HAL.dll_KfAcquireSpinLock]
lea ecx, [esi + 0x7c]
mov dword [ebp - 0xc], ecx
call edi
mov dl, al
mov eax, dword [esi + 8]
cmp eax, 0x316e6f43
mov byte [ebp - 1], dl
je 0x24537
cmp eax, 0x326e6f43
jne 0x24551
mov eax, dword [esi + 0x10]
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x2456f
mov ecx, dword [ebp - 0xc]
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov edi, 0xc000013c
jmp 0x2455f
mov ecx, dword [ebp - 0xc]
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov edi, 0xc0000008
push 0
push edi
push ebx
call fcn.00010a5a
mov eax, edi
jmp 0x2483e
lea ecx, [eax + 0x5c]
mov dword [ebp - 0x14], ecx
call edi
mov byte [ebp + 0xf], al
mov eax, dword [ebp - 0x18]
cmp word [eax + 0x1c], 3
je 0x245f5
mov eax, dword [esi + 0x74]
push dword [ebp + 8]
add esi, 0x70
lea edi, [ebx + 0x58]
mov dword [edi], esi
mov dword [edi + 4], eax
push 0x29428
mov dword [eax], edi
push ebx
mov dword [esi + 4], edi
call fcn.00011d92
mov ecx, dword [ebp - 0x14]
mov dl, byte [ebp + 0xf]
mov esi, eax
test esi, esi
jge 0x245db
mov eax, dword [edi]
mov edi, dword [edi + 4]
mov dword [edi], eax
mov dword [eax + 4], edi
mov edi, dword [sym.imp.HAL.dll_KfReleaseSpinLock]
call edi
mov dl, byte [ebp - 1]
mov ecx, dword [ebp - 0xc]
call edi
push 0
push esi
push ebx
call fcn.00010a5a
mov eax, esi
jmp 0x2483e
mov esi, dword [sym.imp.HAL.dll_KfReleaseSpinLock]
call esi
mov dl, byte [ebp - 1]
mov ecx, dword [ebp - 0xc]
call esi
mov eax, 0x103
jmp 0x2483e
mov eax, dword [ebx + 0x60]
and byte [eax + 3], 0xfe
mov edi, dword [ebx + 0x60]
sub edi, 0x24
lea ecx, [eax + 4]
mov dword [edi + 0x1c], fcn.00011379
mov eax, dword [esi + 0x10]
mov dword [edi + 0x20], eax
mov byte [edi + 2], 0
mov byte [edi + 3], 0xe0
mov byte [edi], 0xf
mov byte [edi + 1], 8
mov eax, dword [esi + 0x10]
push dword [eax + 0x30]
mov dword [ebp + 8], ecx
call dword [sym.imp.ntoskrnl.exe_IoGetRelatedDeviceObject]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x30]
mov dword [edi + 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x18]
xor edx, edx
lea ecx, [eax + 0xc]
inc edx
lock xadd dword [ecx], edx
mov ecx, dword [esi + 0x60]
mov edx, dword [ebp + 8]
sub ecx, dword [esi + 0x54]
mov edx, dword [edx]
cmp edx, ecx
jbe 0x24666
mov dword [edi + 4], ecx
jmp 0x24669
mov dword [edi + 4], edx
mov ecx, dword [edi + 4]
mov edx, dword [esi + 0x58]
test edx, edx
mov dword [ebp - 0x10], ecx
mov dword [esi + 0x48], ecx
je 0x24683
cmp dword [ebx + 4], 0
mov byte [ebp + 0xb], 0
jne 0x24687
mov byte [ebp + 0xb], 1
cmp edx, ecx
jbe 0x24692
sub edx, ecx
mov dword [esi + 0x58], edx
jmp 0x24696
and dword [esi + 0x58], 0
mov edx, dword [eax + 0x54]
test edx, edx
jne 0x246eb
cmp byte [ebp + 0xb], dl
jne 0x246eb
mov edx, dword [esi + 0x50]
cmp edx, ecx
jae 0x246c6
xor ecx, ecx
mov dword [esi + 0x50], ecx
mov word [eax + 0x1c], 2
mov dword [eax + 0x50], 0x2a198
mov dword [eax + 0x58], ecx
mov edx, dword [ebx + 4]
mov dword [esi + 0x40], edx
jmp 0x246e0
sub edx, ecx
xor ecx, ecx
cmp dword [esi + 0x58], ecx
mov dword [esi + 0x50], edx
jne 0x246e0
mov word [eax + 0x1c], cx
mov dword [eax + 0x50], 0x2a198
mov dword [eax + 0x58], ecx
mov edx, dword [ebx + 4]
mov dword [eax + 0x2c], edx
jmp 0x247f0
cmp ecx, edx
mov dword [ebp + 8], edx
ja 0x246f5
mov dword [ebp + 8], ecx
mov edx, dword [ebx + 4]
test edx, edx
je 0x2471f
mov eax, dword [eax + 0x28]
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [eax + 0x18]
add ecx, dword [eax + 0x10]
push 0
push edx
push dword [ebp + 8]
push 0
push ecx
call sub.TDI.SYS_TdiCopyBufferToMdl
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
jmp 0x24723
and dword [ebp - 8], 0
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 8]
je 0x24730
mov ecx, edx
mov dword [ebp - 0x10], ecx
movzx edx, word [ebp - 8]
sub dword [eax + 0x54], edx
cmp dword [ebp - 8], ecx
mov edx, dword [eax + 0x54]
jne 0x2478d
test edx, edx
je 0x2474f
push dword [ebp - 8]
push eax
call fcn.0002a352
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
and dword [ebx + 0x18], 0
dec byte [ebx + 0x23]
add dword [ebx + 0x60], 0xffffffdc
mov dl, byte [ebp + 0xf]
mov dword [ebx + 0x1c], eax
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x48], ecx
mov ecx, dword [ebp - 0x14]
mov esi, dword [sym.imp.HAL.dll_KfReleaseSpinLock]
call esi
mov dl, byte [ebp - 1]
mov ecx, dword [ebp - 0xc]
call esi
mov dl, 2
mov ecx, ebx
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
xor eax, eax
jmp 0x2483e
and dword [eax + 0x54], 0
sub ecx, dword [ebp - 8]
mov edx, dword [esi + 0x50]
cmp edx, ecx
jae 0x247a1
and dword [esi + 0x50], 0
jmp 0x247a6
sub edx, ecx
mov dword [esi + 0x50], edx
mov edx, dword [ebp - 8]
add dword [esi + 0x54], edx
mov dword [edi + 4], ecx
mov word [eax + 0x1c], 2
mov dword [eax + 0x50], 0x2a198
xor ecx, ecx
mov dword [eax + 0x58], ecx
mov edx, dword [ebx + 4]
mov dword [eax + 0x2c], edx
mov eax, dword [ebx + 4]
mov dword [esi + 0x40], eax
mov eax, dword [ebx + 4]
test byte [eax + 6], 5
jne 0x247e4
push 0x20
push ecx
push ecx
push 1
push ecx
push eax
call dword [sym.imp.ntoskrnl.exe_MmMapLockedPagesSpecifyCache]
push dword [ebp - 8]
push ebx
push esi
call fcn.0001de9f
xor ecx, ecx
mov eax, dword [edi + 4]
mov dword [esi + 0x4c], eax
mov eax, dword [ebx + 4]
test byte [eax + 6], 5
jne 0x2480f
push 0x20
push ecx
push ecx
push 1
push ecx
push eax
call dword [sym.imp.ntoskrnl.exe_MmMapLockedPagesSpecifyCache]
xor ecx, ecx
mov dl, byte [ebp + 0xf]
mov dword [esi + 0x3c], ecx
mov ecx, dword [ebp - 0x14]
mov esi, dword [sym.imp.HAL.dll_KfReleaseSpinLock]
call esi
mov dl, byte [ebp - 1]
mov ecx, dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 0x18]
push dword [eax + 0x30]
call dword [sym.imp.ntoskrnl.exe_IoGetRelatedDeviceObject]
mov edx, ebx
mov ecx, eax
call dword [sym.imp.ntoskrnl.exe_IofCallDriver]
pop edi
pop esi
pop ebx
leave
ret 8