McTemplateK0z_EtwWriteTransfer

NTSTATUS __fastcall McTemplateK0z_EtwWriteTransfer(
        __int64 a1,
        const _EVENT_DESCRIPTOR *a2,
        __int64 a3,
        const wchar_t *a4){
  __int64 v4; 
  int v5; 
  _EVENT_DATA_DESCRIPTOR v7; 
  const wchar_t *v8; 
  int v9; 
  int v10; 

  if( a4 )
  {
    v4 = -1i64;
    do
      ++v4;
    while( a4[v4] );
    v5 = 2 * v4 + 2;
  }
  else
  {
    v5 = 10;
  }
  v9 = v5;
  v10 = 0;
  if( !a4 )
    a4 = L"NULL";
  v8 = a4;
  return McGenEventWrite_EtwWriteTransfer((REGHANDLE *)&stru_140C00F40 + 588, a2, 0i64, 2u, &v7);
}

Referenced by:

PiCMQueryRemove
PiUEventSendDeviceInstallNotification
PipProcessDevNodeTree
PnpInsertEventInQueue
PnpLogActionQueueEvent
PnpProcessTargetDeviceEvent