PpmEventLegacyProcessorPerfStateChange

NTSTATUS __stdcall PpmEventLegacyProcessorPerfStateChange(INT64 a1){
  _DWORD *v1; 
  __int64 v2; 
  int v4; 
  int v5; 
  NTSTATUS result; 
  unsigned int v7; 
  unsigned int v8; 
  bool v9; 
  int v10; 
  int DataPtr; 
  __int64 v12; 
  int v13; 
  int v14; 
  __int128 v15; 
  __int64 v16; 
  __int128 *v17; 
  int v18; 
  int v19; 

  v1 = *(_DWORD **)(a1 + 33136);
  v2 = *(_QWORD *)(a1 + 33128);
  v15 = 0i64;
  v16 = 0i64;
  v4 = v1[16];
  v5 = v1[19];
  if( (xmmword_140CFB490 & 0x8000) != 0 )
  {
    HIDWORD(v15) = 0;
    v7 = *(_DWORD *)(v2 + 368);
    v8 = v1[18];
    v18 = 24;
    if( v8 >= v7 )
      v8 = v7;
    v9 = v8 < *(_DWORD *)(v2 + 324);
    DWORD1(v15) = v5;
    v19 = 0;
    LODWORD(v15) = v9 + 1;
    DWORD2(v15) = v1[27];
    v16 = *(_QWORD *)(a1 + 200);
    v17 = &v15;
    EtwTraceKernelEvent((__int64)&v17, 1u, 0x80008000, 0x1233u, 0x401802u);
  }
  result = dword_140CED0D0;
  if( dword_140CED0D0 )
  {
    v10 = *(_DWORD *)(a1 + 36);
    v12 = 0i64;
    v14 = v10;
    DataPtr = v4;
    v13 = v5;
    return PpmFireWmiEvent((VOID *)(a1 + 32992), (_GUID *)&PPM_PERFSTATE_CHANGE_GUID, 0x14ui64, &DataPtr);
  }
  return result;
}

Referenced by:

PpmPerfApplyProcessorState