VfFillAllocatePagesForMdl
VOID __stdcall VfFillAllocatePagesForMdl(PMDL Mdl, _MEMORY_CACHING_TYPE CacheType, UINT64 Flags){
unsigned int ByteCount;
void *MappedSystemVa;
unsigned int v6;
VOID *v7;
VOID *v8;
UINT64 v9;
UINT64 v10;
if( (Flags & 1) != 0 && CacheType == MmCached )
{
ByteCount = Mdl->ByteCount;
MappedSystemVa = Mdl->MappedSystemVa;
v6 = 4096;
LODWORD(v10) = 1073741840;
LODWORD(v9) = 0;
Mdl->ByteCount = 4096;
v7 = MmMapLockedPagesSpecifyCache(Mdl, 0, MmCached, 0i64, v9, v10);
v8 = v7;
if( v7 )
{
if( ByteCount < 0x1000 )
v6 = ByteCount;
VfFillAllocatedMemory(v7, v6);
MmUnmapLockedPages(v8, Mdl);
Mdl->MappedSystemVa = MappedSystemVa;
}
Mdl->ByteCount = ByteCount;
}
}Referenced by:
VerifierMmAllocateNodePagesForMdlEx
VerifierMmAllocatePagesForMdlEx