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(
          (INT64)Hive,
          ValueIndex,
          (INT64)Value,
          (UINT64 *)realsize,
          (INT64)P,
          (INT64)v8,
          (INT64)CellContext) )
    return 0i64;
  if( v8[0] == 1 )
  {
    ExFreePoolWithTag(P[0], 0);
    KeBugCheckEx(0x51u, 8ui64, 0i64, (ULONG_PTR)Hive, (ULONG_PTR)Value);
  }
  return(_CELL_DATA *)P[0];
}

Referenced by:

CmSelectQualifiedInstallLanguage
CmpAddDriverToList
CmpFindControlSet
CmpFindTagIndex
CmpGetStateSepKeysRedirectionPathValue
CmpIsLoadType
CmpSortDriverList