CmpLockRegistryExclusive

INT64 __stdcall CmpLockRegistryExclusive(){
  _ETHREAD *CurrentThread; 
  INT64 v1; 
  INT64 result; 

  PsBoostThreadIo((_ETHREAD *)KeGetCurrentThread(), 0);
  CurrentThread = (_ETHREAD *)KeGetCurrentThread();
  --CurrentThread->Tcb.KernelApcDisable;
  LOBYTE(result) = ExAcquireResourceExclusiveLite((UINT64)&CmpRegistryLock, 1, v1);
  return result;
}

Referenced by:

CmCompleteRegistryInitialization
CmDeleteLayeredKey
CmEnumerateKey
CmEtwRunDown
CmFreezeRegistry
CmGetSystemDriverList
CmInitSystem1
CmRenameKey
CmShutdownSystem
CmThawRegistry
CmpCleanupLightWeightTransaction
CmpCloneHwProfile
CmpCommitLightWeightTransaction
CmpDoParseKey
CmpEnumerateLayeredKey
CmpFinishSystemHivesLoad
CmpLoadHiveThread
CmpLoadHiveVolatile
CmpLockRegistryFreezeAware
CmpMarkCurrentProfileDirty
CmpMountPreloadedHives
CmpRefreshHive
CmpSaveBootControlSet
CmpSetKeySecurity
CmpTransMgrCommitUoW
CmpTransMgrFreeVolatileData
NtCompactKeys
NtCompressKey
NtQueryOpenSubKeys
NtQueryOpenSubKeysEx