CmpLoadManufacturingProfileServicesNode

UINT8 __fastcall CmpLoadManufacturingProfileServicesNode(
        _HHIVE *Hive,
        UINT64 ControlSet,
        const WCHAR *ProfileName,
        _CM_KEY_NODE **ServicesNode,
        _HV_GET_CELL_CONTEXT *ServicesNodeContext){
  unsigned int SubKeyByName; 
  _CELL_DATA *v8; 
  UINT8 result; 
  int v10[2]; 
  _CM_KEY_NODE *Parent; 
  Parent = 0i64;
  v10[0] = -1;
  v10[1] = 0;
  result = 0;
  if( CmpLoadManufacturingProfileNode((INT64)Hive, ControlSet, ProfileName, (INT64 *)&Parent, (INT64)v10) )
  {
    SubKeyByName = CmpFindSubKeyByName(Hive, Parent, (_UNICODE_STRING *)&CmpServicesString);
    Hive->ReleaseCellRoutine(Hive, (_HV_GET_CELL_CONTEXT *)v10);
    if( SubKeyByName != -1 )
    {
      v8 = Hive->GetCellRoutine(Hive, SubKeyByName, ServicesNodeContext);
      *ServicesNode = &v8->u.KeyNode;
      if( v8 )
        return 1;
    }
  }
  return result;
}

Referenced by:

CmpFindDrivers