EtwpCCSwapInitializeProcessor

NTSTATUS __stdcall EtwpCCSwapInitializeProcessor(_ETW_TRACING_BLOCK *TracingBlock){
  _ETW_TRACING_BLOCK *v1; 
  unsigned __int64 v2; 
  VOID **PoolWithTag; 

  v1 = TracingBlock + 74;
  v2 = 0i64;
  while( 1 )
  {
    if( CCSwapNumLoggersPerClockType[v2] )
    {
      if( !*(_QWORD *)v1 )
      {
        PoolWithTag = ExAllocatePoolWithTag(0x200ui64, 0x400ui64, 2004042563i64);
        *(_QWORD *)v1 = PoolWithTag;
        if( !PoolWithTag )
          break;
      }
    }
    ++v2;
    v1 += 2;
    if( v2 >= 5 )
      return 0;
  }
  return -1073741801;
}

Referenced by:

EtwInitializeProcessor