PopWnfAudioCallback

__int64 __fastcall PopWnfAudioCallback(__int64 a1){
  int v1; 
  CHAR v2; 
  unsigned int v4; 
  int v5; 
  char v6[8]; 
  v4 = 8;
  v1 = ExQueryWnfStateData(a1, &v5, v6, &v4);
  if( v1 >= 0 )
  {
    if( v4 < 8 )
    {
      return 0;
    }
    else
    {
      PopAcquirePolicyLock();
      if( (v6[0] & 2) != 0 )
      {
        byte_140C23D4D = 1;
        qword_140C4FC98 = *(_QWORD *)&KUSER_SHARED_DATA.InterruptTime.LowPart;
        if( (unsigned int)PopGetDozeTimerSource() == 2 )
          PopUpdateSmartUserPresencePredictions(0i64, 5i64);
      }
      else
      {
        byte_140C23D4D = 0;
        PopAudioAccountingCallback(0);
      }
      v2 = byte_140C23D4D;
      PopAcquirePowerRequestPushLock(1);
      BYTE2(PopExecutionRequiredContext) = v2;
      PopStatsScenarioStateChange(0i64, v2);
      PopHandleExecutionRequiredEnablementUpdate();
      PopReleaseRwLock((UINT64)&PopPowerRequestLock);
      PopReleasePolicyLock();
    }
  }
  return(unsigned int)v1;
}

Referenced by:

No references.