CmpReferenceKeyControlBlock

void __fastcall CmpReferenceKeyControlBlock(PVOID BugCheckParameter2){
  if( (*((_DWORD *)BugCheckParameter2 + 2) & 0x80000) != 0 )
    KeBugCheckEx(0x51u, (PVOID)0x20, BugCheckParameter2, 0i64, 0i64);
  if( !_InterlockedIncrement64((volatile signed __int64 *)BugCheckParameter2) )
    KeBugCheckEx(0x51u, (PVOID)0x24, BugCheckParameter2, 0i64, 0i64);
  if( (*((_BYTE *)BugCheckParameter2 + 64) & 2) != 0 )
    CmpRemoveFromDelayedClose((__int64)BugCheckParameter2);
}

Referenced by:

CmRenameKey
CmpCommitRenameKeyUoW
CmpEnumerateAllHigherLayerKcbs
CmpFindSubKeyByNumberEx
CmpFindSubkeyInHashByChildCell
CmpGetVirtualStoreRoot
CmpLightWeightPrepareRenameKeyUoW
CmpPrepareDiscardReplacePost
CmpReferenceKeyControlBlockLockNotHeld
CmpResolveHiveLoadConflict