PopUserPresencePredictionModeCallback

NTSTATUS __stdcall PopUserPresencePredictionModeCallback(
        const _GUID *SettingGuid,
        UINT64 *NewValue,
        UINT64 ValueLength,
        PVOID Context){
  __int64 v5; 
  NTSTATUS v6; 
  int Src[22]; 

  v5 = *(_QWORD *)&GUID_USER_PRESENCE_PREDICTION.Data1 - *(_QWORD *)&SettingGuid->Data1;
  if( *(_QWORD *)&GUID_USER_PRESENCE_PREDICTION.Data1 == *(_QWORD *)&SettingGuid->Data1 )
    v5 = *(_QWORD *)GUID_USER_PRESENCE_PREDICTION.Data4 - *(_QWORD *)SettingGuid->Data4;
  v6 = 0;
  if( v5 || (_DWORD)ValueLength != 4 || !NewValue )
    return -1073741811;
  PopAcquirePolicyLock();
  if( *(_DWORD *)NewValue )
  {
    if( *(_DWORD *)NewValue != 1 )
      goto LABEL_9;
    *(&stru_140C23628 + 462) = 1;
    memset(Src, 0i64, 0x48u);
    Src[2] = 3;
  }
  else
  {
    *(&stru_140C23628 + 462) = 0;
    memset(Src, 0i64, 0x48u);
    Src[2] = 2;
  }
  Src[0] = 12;
  PopUmpoSendPowerMessage(Src, 0x48u, 0);
LABEL_9:
  PopReleasePolicyLock();
  return v6;
}

Referenced by:

No references.