PfSnCheckScenario

NTSTATUS __stdcall PfSnCheckScenario(PF_SCENARIO_TYPE ScenarioType, PF_ENABLE_STATUS *EnableStatus){
  PF_ENABLE_STATUS v2; 
  NTSTATUS v3; 

  v2 = *((_DWORD *)&WaitTimeMax + ScenarioType + 1);
  v3 = 0;
  if( v2 == PfSvDefaultDisabled )
    return -1073741399;
  if( (dword_140C50290 & 1) != 0 && (dword_140C4FFF0 & 1) == 0 )
    return -1073741725;
  if( dword_140C501E4 == 1 )
    return -1073741296;
  if( !qword_140C50138 )
    return -1073741127;
  *EnableStatus = v2;
  return v3;
}

Referenced by:

PfSnBeginAppLaunch
PfSnOperationProcess