HvpFreeMap

VOID __stdcall HvpFreeMap(_HHIVE *Hive, _HMAP_DIRECTORY *Dir, UINT64 Start, UINT64 End){
  unsigned int v4; 
  unsigned int v5; 
  _HMAP_TABLE *v8; 

  if( Dir )
  {
    v4 = 1023;
    v5 = Start;
    if( (unsigned int)End < 0x400 )
      v4 = End;
    while( v5 <= v4 )
    {
      v8 = Dir->Directory[v5];
      if( v8 )
      {
        Hive->Free(v8, 12288u);
        Dir->Directory[v5] = 0i64;
      }
      ++v5;
    }
  }
}

Referenced by:

HvFreeHivePartial
HvHiveCleanup
HvpExpandMap
HvpInitMap
HvpShrinkMap