TtmiLogSessionPowerControlStart

VOID __stdcall TtmiLogSessionPowerControlStart(UINT8 On, POWER_MONITOR_REQUEST_REASON RequestReason){
  NTSTATUS ProcessSessionId; 
  UINT8 v5; 
  NTSTATUS v6; 
  POWER_MONITOR_REQUEST_REASON v7; 
  _EVENT_DATA_DESCRIPTOR v8; 
  int *v9; 
  int v10; 
  int v11; 
  UINT8 *v12; 
  int v13; 
  int v14; 
  POWER_MONITOR_REQUEST_REASON *v15; 
  int v16; 
  int v17; 

  if( (unsigned int)dword_140D2C8E8 > 5 )
  {
    if( tlgKeywordOn((__int64)&dword_140D2C8E8, 1i64) )
    {
      ProcessSessionId = PsGetProcessSessionIdEx((INT64)KeGetCurrentThread()->ApcState.Process);
      v11 = 0;
      v14 = 0;
      v17 = 0;
      v6 = ProcessSessionId;
      v10 = 4;
      v9 = &v6;
      v12 = &v5;
      v15 = &v7;
      v16 = 4;
      v5 = On;
      v13 = 1;
      v7 = RequestReason;
      tlgWriteTransfer_EtwWriteTransfer(
        (__int64)&dword_140D2C8E8,
        (unsigned __int8 *)byte_14002A519,
        0i64,
        0i64,
        5u,
        &v8);
    }
  }
}

Referenced by:

TtmpSessionPowerControl