HvAllocateCell

UINT64 __stdcall HvAllocateCell(
        ULONG_PTR Hive,
        UINT64 NewSize,
        _HSTORAGE_TYPE Type,
        VOID **CellAddress,
        _HV_GET_CELL_CONTEXT *CellAddressContext){
  int v5; 
  UINT64 v6; 
  unsigned int v7; 
  int v8; 

  v5 = NewSize + 11;
  v6 = 0x4000i64;
  v7 = v5 & 0xFFFFFFF8;
  v8 = 0;
  while( v7 > (unsigned int)v6 )
  {
    v6 = (unsigned int)(2 * v6);
    ++v8;
  }
  if( !v8 )
    v6 = v7;
  if( (unsigned int)v6 > 0x100000 )
    return 0xFFFFFFFFi64;
  else
    return HvpDoAllocateCell(Hive, v6, Type, CellAddress, CellAddressContext);
}

Referenced by:

CmRenameKey
CmpAddSubKeyEx
CmpAddValueKeyNew
CmpAddValueKeyTombstone
CmpAddValueToListEx
CmpCommitRenameKeyUoW
CmpConcatenateValueLists
CmpCopyCell
CmpCopyMergeOfLayeredKeyNode
CmpCreateChild
CmpCreateHiveRootCell
CmpCreateRootNode
CmpCreateTombstone
CmpGetSecurityDescriptorNode
CmpLightWeightPrepareAddKeyUoW
CmpLightWeightPrepareRenameKeyUoW
CmpSetSecurityDescriptorInfo
CmpSetValueDataExisting
CmpSetValueDataNew
CmpSetValueKeyExisting
CmpSplitLeaf
HvDuplicateCell