CmpValueToData

_CELL_DATA *__fastcall CmpValueToData(
        _HHIVE *Hive,
        INT64 ValueIndex,
        _CM_KEY_VALUE *Value,
        UINT *realsize,
        _HV_GET_CELL_CONTEXT *CellContext){
  char v8[8]; 
  void *P[2]; 

  P[0] = 0i64;
  v8[0] = 0;
  if( !CmpGetValueData(Hive, ValueIndex, Value, realsize, P, (unsigned __int8 *)v8, CellContext) )
    return 0i64;
  if( v8[0] == 1 )
  {
    ExFreePoolWithTag(P[0], 0);
    KeBugCheckEx(0x51u, (PVOID)8, 0i64, Hive, Value);
  }
  return(_CELL_DATA *)P[0];
}

Referenced by:

CmSelectQualifiedInstallLanguage
CmpAddDriverToList
CmpFindControlSet
CmpFindTagIndex
CmpGetStateSepKeysRedirectionPathValue
CmpIsLoadType
CmpSortDriverList