PopDiagTraceCsEnterReason
VOID __fastcall PopDiagTraceCsEnterReason(POWER_MONITOR_REQUEST_REASON MonitorRequestReason){
EVENT_DESCRIPTOR *v1;
POWER_MONITOR_REQUEST_REASON v2;
int v3;
int v4;
int v5;
int v6;
UINT64 v7;
int v8;
int v9;
int v10;
int v11;
POWER_MONITOR_REQUEST_REASON v12;
int v13;
int v14;
int v15;
int v16;
UINT64 v17;
UINT64 v18;
EVENT_DATA_DESCRIPTOR UserData;
int *v20;
__int64 v21;
int *v22;
__int64 v23;
UINT64 *v24;
__int64 v25;
int *v26;
__int64 v27;
int *v28;
__int64 v29;
UINT64 *v30;
__int64 v31;
__int64 v32;
__int64 v33;
struct _EVENT_DATA_DESCRIPTOR v34;
UINT64 *v35;
__int64 v36;
int *v37;
__int64 v38;
int *v39;
__int64 v40;
int *v41;
__int64 v42;
int *v43;
__int64 v44;
int *v45;
__int64 v46;
POWER_MONITOR_REQUEST_REASON v47;
v47 = MonitorRequestReason;
v2 = MonitorRequestReason;
v3 = (unsigned __int8)PopConsoleExternalDisplayConnected;
v4 = (unsigned __int8)PopLidOpened;
v5 = (int)PopCsConsumption;
v6 = dword_140C4FD10;
v17 = PopWnfCsEnterScenarioId;
v10 = (unsigned __int8)PopConsoleExternalDisplayConnected;
v11 = (unsigned __int8)PopLidOpened;
v9 = (int)PopCsConsumption;
v8 = dword_140C4FD10;
if( PopDiagHandleRegistered )
{
v7 = PopDiagHandle;
if( EtwEventEnabled(PopDiagHandle, (EVENT_DESCRIPTOR *)&POP_ETW_EVENT_CS_ENTER_REASON, v1) )
{
*(_QWORD *)&UserData.Size = 4i64;
UserData.Ptr = (unsigned __int64)&v47;
v21 = 4i64;
v20 = &v11;
v23 = 4i64;
v22 = &v10;
v25 = 1i64;
v24 = &v17;
v27 = 4i64;
v26 = &v9;
v28 = &v8;
v30 = &PopWnfCsEnterScenarioId;
v32 = 0xFFFFF780000002C4ui64;
v29 = 4i64;
v31 = 8i64;
v33 = 4i64;
EtwWrite(v7, (EVENT_DESCRIPTOR *)&POP_ETW_EVENT_CS_ENTER_REASON, 0i64, 8ui64, &UserData);
v2 = v47;
v6 = v8;
v5 = v9;
v3 = v10;
v4 = v11;
}
}
if( (unsigned int)dword_140C021E8 > 5 )
{
if( tlgKeywordOn((__int64)&dword_140C021E8, 0x400000000000i64) )
{
v18 = PopWnfCsEnterScenarioId;
v36 = 8i64;
v35 = &v18;
v12 = v2;
v37 = (int *)&v12;
v38 = 4i64;
v39 = &v13;
v41 = &v14;
v43 = &v15;
v45 = &v16;
v13 = v4;
v40 = 4i64;
v14 = v3;
v42 = 4i64;
v15 = v5;
v44 = 4i64;
v16 = v6;
v46 = 4i64;
tlgWriteTransfer_EtwWriteTransfer(
(__int64)&dword_140C021E8,
(unsigned __int8 *)&dword_140027B24,
0i64,
0i64,
8u,
&v34);
}
}
}Referenced by:
PopCaptureSleepStudyStatistics