ExpSaBinaryArrayRemove

VOID __stdcall ExpSaBinaryArrayRemove(_EX_SA_BINARY_ARRAY *Array, UINT64 Index){
  _EX_SA_BINARY_ARRAY *v2; 
  int v3; 
  _QWORD *v4; 

  v2 = Array;
  _BitScanReverse((unsigned int *)&Array, Index);
  v4 = *(_QWORD **)&v2[2 * (v3 - 2)];
  v4[((unsigned int)Index ^ (unsigned __int64)(unsigned int)(1 << v3)) + 1] = 0i64;
  if( (*v4)-- == 1i64 )
  {
    *(_QWORD *)&v2[2 * ((_DWORD)Array - 2)] = 0i64;
    ExFreeHeapPool(v4);
  }
}

Referenced by:

ExpSaPageGroupDescriptorAllocate
ExpSaPageGroupDescriptorFree