MiProcessLoadConfigForDriver

NTSTATUS __stdcall MiProcessLoadConfigForDriver(_KLDR_DATA_TABLE_ENTRY *DataTableEntry, _SUBSECTION *Subsection){
  NTSTATUS result; 
  UINT64 v4; 

  result = MiProcessKernelCfgImageLoadConfig(DataTableEntry, (INT64)Subsection);
  if( result >= 0 )
  {
    ExGenRandom(ExGenRandomDomainKernel);
    ExGenRandom(ExGenRandomDomainKernel);
    LdrInitSecurityCookie(DataTableEntry->DllBase, DataTableEntry->SizeOfImage, v4);
    return 0;
  }
  return result;
}

Referenced by:

MiReloadBootLoadedDrivers
MmLoadSystemImageEx