Function at 0x4e41d
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x4f904]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x28]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x20]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x54], eax
xor eax, eax
lea ecx, [edi + 4]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], ecx
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov dl, al
mov ecx, 0x50180
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
test byte [edi + 0x24], 0x80
je 0x4e73d
mov eax, dword [esi + 0xc]
test al, 2
je 0x4e497
test al, 4
je 0x4e497
cmp byte [edi + 0x38], 0
je 0x4e743
lea eax, [edi + 0x1c]
mov esi, dword [eax]
jmp 0x4e4ac
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4e51c
cmp ecx, dword [ebp + 0xc]
je 0x4e51c
mov esi, dword [esi]
cmp esi, eax
jne 0x4e49e
mov eax, dword [edi + 0xd4]
test eax, eax
mov dword [ebp - 0x44], eax
je 0x4e73d
mov eax, dword [edi + 0xd8]
and dword [ebp - 0x3c], 0
and dword [ebp - 0x38], 0
mov dl, byte [ebp + 0x24]
mov ecx, dword [ebp - 0x30]
inc word [edi + 0x34]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x34], 0x200
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
call fcn.000128ab
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp + 0x1c]
lea ecx, [eax + ebx]
mov eax, dword [ebp - 0x48]
cmp ecx, dword [eax + 8]
mov dword [ebp - 0x30], ebx
jne 0x4e58f
mov eax, dword [eax + 0xc]
add eax, ebx
mov dword [ebp - 0x30], eax
jmp 0x4e5ef
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edi, dword [esi + 8]
and dword [ebp - 0x28], 0
mov dl, byte [ebp + 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x30]
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push dword [ebp - 0x40]
push edi
call fcn.0001667c
push dword [ebp - 0x28]
push 0
push dword [ebp + 0x1c]
push eax
push dword [ebp - 0x48]
call fcn.0004f038
add dword [ebp - 0x24], eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x54]
push dword [esi + 0xc]
call fcn.0001b2af
push dword [ebp - 0x24]
inc dword [0x54920]
push eax
push dword [esi + 0x14]
call dword [esi + 0x10]
push esi
call fcn.00020bc3
jmp 0x4e74f
mov eax, 0x80
lea ecx, [ebx + esi]
cmp ecx, eax
mov dword [ebp - 0x38], eax
jae 0x4e5a1
mov dword [ebp - 0x38], ecx
push 0x72504354
push dword [ebp - 0x38]
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
test eax, eax
mov dword [ebp - 0x3c], eax
je 0x4e5ef
mov esi, dword [ebp - 0x40]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp - 0x48]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x38]
mov esi, dword [edx + 8]
sub ecx, ebx
lea edi, [eax + ebx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x1c]
mov edi, dword [ebp - 0x60]
mov eax, dword [ebp - 0x4c]
inc dword [0x54920]
test byte [eax + 0xc], 2
je 0x4e616
mov cl, byte [eax]
and cl, 0xf0
sub cl, 0xe0
neg cl
sbb ecx, ecx
and ecx, 0xfffffffc
add ecx, 0x208
mov dword [ebp - 0x34], ecx
test byte [edi + 0x25], 0x20
je 0x4e635
lea ecx, [ebp - 0x50]
push ecx
push dword [eax + 4]
push dword [eax]
call fcn.00029cfb
test eax, eax
mov dword [ebp - 0x28], eax
je 0x4e635
or byte [ebp - 0x33], 0x10
cmp dword [ebp - 0x3c], 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
je 0x4e672
push dword [ebp - 0x3c]
push eax
lea eax, [ebx + esi]
push eax
push dword [ebp - 0x38]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x34]
push dword [ebp - 0x28]
push dword [ebp - 0x50]
push eax
push 0x16
push dword [ebp - 0x5c]
call dword [ebp - 0x44]
push 0
push dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x4e695
push dword [ebp - 0x40]
push eax
lea eax, [ebx + esi]
push eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x34]
push dword [ebp - 0x28]
push dword [ebp - 0x50]
push eax
push 0x16
push dword [ebp - 0x5c]
call dword [ebp - 0x44]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x28], 0
je 0x4e6a6
push 0
push dword [ebp - 0x28]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [ebp - 0x44], 0xc0000016
jne 0x4e735
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx + 0x60]
add eax, 4
mov dword [ebp - 0x4c], eax
mov eax, dword [ecx + 4]
and dword [ebp - 0x58], 0
cmp dword [ebp - 0x20], ebx
jae 0x4e6eb
mov edx, dword [ebp - 0x40]
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x58]
push ecx
mov ecx, dword [ebp - 0x20]
sub ebx, ecx
push ebx
add edx, ecx
push edx
push eax
call fcn.0001667c
and dword [ebp - 0x20], 0
jmp 0x4e6f2
sub dword [ebp - 0x20], ebx
and dword [ebp - 0x24], 0
push dword [ebp - 0x58]
sub esi, dword [ebp - 0x20]
push dword [ebp - 0x20]
push esi
push eax
push dword [ebp - 0x48]
call fcn.0004f038
add dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x4c]
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x54]
push dword [eax + 8]
call fcn.0001b2af
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
mov dword [ecx + 0x1c], edx
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x18], eax
mov ecx, dword [ebp - 0x2c]
mov dl, 2
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
push edi
call fcn.00012aa2
jmp 0x4e74f
inc dword [0x54928]
mov dl, byte [ebp + 0x24]
mov ecx, dword [ebp - 0x30]
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00010ef2
leave
ret 0x24