MiInsertDemotedPages

VOID __stdcall MiInsertDemotedPages(INT64 a1, INT64 a2, UINT64 a3, INT64 a4, INT64 a5){
  int v5; 
  int v8; 
  int v9; 
  INT64 v10; 

  if( (_DWORD)a3 != (_DWORD)a4 )
  {
    v5 = a4;
    v8 = 0;
    do
    {
      v9 = a3 + 1;
      if( (_DWORD)a3 + 1 == v5 )
        v8 = 1;
      LODWORD(v10) = v8;
      MiInsertLargePageChain(a1, a2, a5, (unsigned int)a3, v10);
      LODWORD(a3) = v9;
    }
    while( v9 != v5 );
  }
}

Referenced by:

MiDemoteLargeFreePage
MiDemoteLocalLargePage
MiGetLargePage