MiEnablePagingOfDriver

VOID __stdcall MiEnablePagingOfDriver(PVOID ImageHandle){
  unsigned __int64 v1; 
  unsigned int v3; 
  char *v4; 
  char *v5; 
  v1 = *((_QWORD *)ImageHandle + 6);
  v5 = 0i64;
  v4 = 0i64;
  if( MiImagePagable((__int64)ImageHandle, v1) )
  {
    v3 = 0;
    do
    {
      v3 = MiSnapDriverRange((__int64)ImageHandle, v3, 1, 0i64, &v4, &v5);
      if( v4 )
        MiSetPagingOfDriver((__int64)ImageHandle, (unsigned __int64)v4, (unsigned __int64)v5);
    }
    while( v3 );
  }
}

Referenced by:

MiEnablePagingTheExecutive