EtwpUpdateTagFilter

__int64 __fastcall EtwpUpdateTagFilter(_DWORD *a1, unsigned __int16 a2, __int64 a3){
  __int64 result; 
  int v4; 
  _DWORD *v5; 
  result = a2;
  v4 = 0;
  if( (_WORD)result )
  {
    v5 = (_DWORD *)(a3 + 4);
    while( *(_BYTE *)a1 != 42 && *a1 != 1061109567 )
    {
      *v5++ = *a1++;
      if( ++v4 >= (unsigned int)result )
        goto LABEL_3;
    }
  }
  *(_DWORD *)(a3 + 4) = 42;
  result = 1i64;
LABEL_3:
  *(_WORD *)a3 = result;
  return result;
}

Referenced by:

EtwSetPerformanceTraceInformation
EtwpCheckForPoolTagFilterExtension