CmpSwapValueInList

INT64 __fastcall CmpSwapValueInList(_HHIVE *Hive, UINT64 ValueCell, UINT64 Index, _CHILD_LIST *ChildList){
  unsigned int v4; 
  __int64 List; 
  __int64 v7; 
  _CELL_DATA *v8; 
  unsigned int v9; 
  int v11; 
  int v12; 

  v11 = -1;
  v4 = ValueCell;
  List = ChildList->List;
  v12 = 0;
  v7 = (unsigned int)Index;
  v8 = Hive->GetCellRoutine(Hive, List, &v11);
  v9 = 0;
  if( v8 )
  {
    v8->u.KeyList[v7] = v4;
    Hive->ReleaseCellRoutine(Hive, (_HV_GET_CELL_CONTEXT *)&v11);
  }
  else
  {
    return(unsigned int)-1073741670;
  }
  return v9;
}

Referenced by:

CmSetValueKey
CmpLightWeightPrepareSetValueKeyUoW