PopPepShouldActivityWait

CHAR __fastcall PopPepShouldActivityWait(INT64 a1, INT64 a2, INT64 a3, INT64 a4, CHAR a5){
  int v5; 
  __int64 *v6; 
  __int64 *v7; 
  CHAR v8; 
  _DWORD **v9; 
  _DWORD *i; 
  v5 = a4;
  v6 = qword_140002988;
  if( !a5 )
    v6 = qword_140002970;
  v7 = &v6[17 * (int)a2];
  if( (int)a3 > v5 )
    return 0;
  v8 = 1;
  v9 = (_DWORD **)(a1 + 8i64 * (int)a3);
  for( i = (_DWORD *)v7 + (int)a3; !*i || (*i & **v9) == 0; ++i )
  {
    LODWORD(a3) = a3 + 1;
    ++v9;
    if( (int)a3 > v5 )
      return 0;
  }
  return v8;
}

Referenced by:

PopPepAttemptAcitivityPromotion