CmpReferenceKeyControlBlock

VOID __fastcall CmpReferenceKeyControlBlock(UINT64 P2){
  if( (*(_DWORD *)(P2 + 8) & 0x80000) != 0 )
    KeBugCheckEx(0x51u, 0x20ui64, P2, 0i64, 0i64);
  if( !_InterlockedIncrement64((volatile signed __int64 *)P2) )
    KeBugCheckEx(0x51u, 0x24ui64, P2, 0i64, 0i64);
  if( (*(_BYTE *)(P2 + 64) & 2) != 0 )
    CmpRemoveFromDelayedClose(P2);
}

Referenced by:

CmRenameKey
CmpCommitRenameKeyUoW
CmpEnumerateAllHigherLayerKcbs
CmpFindSubKeyByNumberEx
CmpFindSubkeyInHashByChildCell
CmpGetVirtualStoreRoot
CmpLightWeightPrepareRenameKeyUoW
CmpPrepareDiscardReplacePost
CmpReferenceKeyControlBlockLockNotHeld
CmpResolveHiveLoadConflict