SmEtwEnableCallback

VOID __stdcall SmEtwEnableCallback(
        GUID *SourceId,
        UINT64 ControlCode,
        UINT8 Level,
        UINT64 MatchAnyKeyword,
        UINT64 MatchAllKeyword,
        EVENT_FILTER_DESCRIPTOR *FilterData,
        PVOID CallbackContext){
  unsigned int i; 
  __int64 v8; 
  if( (unsigned int)ControlCode <= 1 && (dword_140D234FC = MatchAnyKeyword | 0x40, (_DWORD)ControlCode == 1)
    || (_DWORD)ControlCode == 2 )
  {
    SmKmEtwLogStoreRundown(&EtwRegHandle, (INT64)&SmGlobals);
    if( SmEtwEnabled(3i64) )
    {
      for( i = 0; i < 0x400; ++i )
      {
        v8 = SmKmStoreReferenceEx((INT64)&SmGlobals, i);
        if( v8 )
          SMKM_STORE_MGR::SmStoreContentsRundown((__int64)&SmGlobals, v8);
      }
    }
  }
}

Referenced by:

No references.