Function at 0x4e49d
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x4f984]
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, 0x50200
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
test byte [edi + 0x24], 0x80
je 0x4e7bd
mov eax, dword [esi + 0xc]
test al, 2
je 0x4e517
test al, 4
je 0x4e517
cmp byte [edi + 0x38], 0
je 0x4e7c3
lea eax, [edi + 0x1c]
mov esi, dword [eax]
jmp 0x4e52c
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4e59c
cmp ecx, dword [ebp + 0xc]
je 0x4e59c
mov esi, dword [esi]
cmp esi, eax
jne 0x4e51e
mov eax, dword [edi + 0xd4]
test eax, eax
mov dword [ebp - 0x44], eax
je 0x4e7bd
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 0x4e60f
mov eax, dword [eax + 0xc]
add eax, ebx
mov dword [ebp - 0x30], eax
jmp 0x4e66f
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.0004f0b8
add dword [ebp - 0x24], eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x54]
push dword [esi + 0xc]
call fcn.0001af4e
push dword [ebp - 0x24]
inc dword [0x549a0]
push eax
push dword [esi + 0x14]
call dword [esi + 0x10]
push esi
call fcn.00020bcd
jmp 0x4e7cf
mov eax, 0x80
lea ecx, [ebx + esi]
cmp ecx, eax
mov dword [ebp - 0x38], eax
jae 0x4e621
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 0x4e66f
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 [0x549a0]
test byte [eax + 0xc], 2
je 0x4e696
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 0x4e6b5
lea ecx, [ebp - 0x50]
push ecx
push dword [eax + 4]
push dword [eax]
call fcn.00029cbb
test eax, eax
mov dword [ebp - 0x28], eax
je 0x4e6b5
or byte [ebp - 0x33], 0x10
cmp dword [ebp - 0x3c], 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
je 0x4e6f2
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 0x4e715
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 0x4e726
push 0
push dword [ebp - 0x28]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [ebp - 0x44], 0xc0000016
jne 0x4e7b5
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 0x4e76b
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 0x4e772
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.0004f0b8
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.0001af4e
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 0x4e7cf
inc dword [0x549a8]
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.00010eee
leave
ret 0x24