HalpAllocateEarlyPages

VOID *__stdcall HalpAllocateEarlyPages(
        _LOADER_PARAMETER_BLOCK *LoaderBlock,
        UINT64 PageCount,
        UINT64 *PhysicalAddress,
        UINT64 Protection){
  int v5; 
  _MEMORY_CACHING_TYPE v6; 
  UINT64 v7; 
  UINT64 v8; 
  VOID *result; 
  UINT64 Protectiona; 

  v5 = Protection;
  v6 = (int)PageCount;
  v7 = HalpAllocPhysicalMemory(LoaderBlock, 0i64, (unsigned int)PageCount, 0i64);
  v8 = v7;
  if( !v7 )
    return 0i64;
  LODWORD(Protectiona) = v5;
  result = (VOID *)HalpMap((_LARGE_INTEGER)v7, v6, MmCached, 0, Protectiona);
  if( !result )
    return 0i64;
  *PhysicalAddress = v8;
  return result;
}

Referenced by:

No references.