TtmiLogProximityBlockedRequest

VOID __stdcall TtmiLogProximityBlockedRequest(UINT8 On, POWER_MONITOR_REQUEST_REASON Reason, UINT64 PathTag){
  int ProcessSessionId; 
  UINT8 v6; 
  int v7; 
  POWER_MONITOR_REQUEST_REASON v8; 
  struct _EVENT_DATA_DESCRIPTOR v9; 
  int *v10; 
  int v11; 
  int v12; 
  UINT8 *v13; 
  int v14; 
  int v15; 
  POWER_MONITOR_REQUEST_REASON *v16; 
  int v17; 
  int v18; 
  int *v19; 
  int v20; 
  int v21; 
  int *v22; 
  int v23[2]; 
  int v24; 
  v24 = PathTag;
  if( (unsigned int)dword_140D2C8E8 > 5 )
  {
    if( tlgKeywordOn((__int64)&dword_140D2C8E8, 1i64) )
    {
      ProcessSessionId = PsGetProcessSessionIdEx(*((_QWORD *)KeGetCurrentThread() + 23));
      v12 = 0;
      v15 = 0;
      v18 = 0;
      v21 = 0;
      v23[1] = 0;
      v7 = ProcessSessionId;
      v10 = &v7;
      v13 = &v6;
      v16 = &v8;
      v19 = v23;
      v22 = &v24;
      v11 = 4;
      v17 = 4;
      v23[0] = 4;
      v6 = On;
      v14 = 1;
      v8 = Reason;
      v20 = 2;
      tlgWriteTransfer_EtwWriteTransfer(
        (__int64)&dword_140D2C8E8,
        (unsigned __int8 *)word_14002AB6A,
        0i64,
        0i64,
        7u,
        &v9);
    }
  }
}

Referenced by:

TtmiSetPendingOnOffRequest