PspHashKeyValue

UINT64 __stdcall PspHashKeyValue(VOID *Key, UINT64 Len){
  UINT64 result; 
  unsigned int v5; 
  __int64 v6; 

  result = 0i64;
  if( Key )
  {
    v5 = 0;
    if( Len )
    {
      v6 = 0i64;
      do
      {
        ++v5;
        LOBYTE(result) = *((_BYTE *)Key + v6) + result;
        v6 = v5;
      }
      while( v5 < Len );
    }
    return result & 0x1F;
  }
  return result;
}

Referenced by:

PspLookupProcessQuotaBlock
PspRemoveQuotaBlock