HalpGetProfileDescriptor

__int64 __fastcall HalpGetProfileDescriptor(int a1, _QWORD **a2, _QWORD *a3){
  _QWORD **i; 

  for( i = (_QWORD **)*a2; i != a2; i = (_QWORD **)*i )
  {
    if( *((_DWORD *)i - 2) == a1 )
    {
      *a3 = i - 1;
      return 0i64;
    }
  }
  return 3221225659i64;
}

Referenced by:

Amd64EnableMonitoring
Amd64QueryInformation
Amd64SetInterval
EmonEnableMonitoring
EmonQueryInformation
EmonSetInterval
HalpRemoveProfileSourceFromList