EtwpCovSampStackHashTableAlloc

INT64 __fastcall EtwpCovSampStackHashTableAlloc(VOID **a1, INT64 a2){
  unsigned int v3; 
  void *v4; 
  int v5; 
  _DWORD *PoolWithTag; 
  _DWORD *v7; 
  v3 = 0;
  v4 = *a1;
  v5 = a2;
  if( v4 )
  {
    ExFreePoolWithTag(v4, 0x56777445u);
    *a1 = 0i64;
  }
  PoolWithTag = ExAllocatePoolWithTag(PagedPool, (unsigned int)(4 * v5 + 8), 0x56777445ui64);
  v7 = PoolWithTag;
  if( PoolWithTag )
  {
    memset((INT64)PoolWithTag, 0i64);
    v7[1] = v5;
    *a1 = v7;
  }
  else
  {
    return(unsigned int)-1073741670;
  }
  return v3;
}

Referenced by:

EtwpCovSampCaptureContextStart