MiSectionControlArea

_CONTROL_AREA *__stdcall MiSectionControlArea(_SECTION *Section){
  __int64 v1; 
  _CONTROL_AREA *result; 
  v1 = *((_QWORD *)Section + 5);
  result = (_CONTROL_AREA *)(v1 & 0xFFFFFFFFFFFFFFFCui64);
  if( (v1 & 1) != 0 )
    return *(_CONTROL_AREA **)(*((_QWORD *)result + 5) + 16i64);
  if( (v1 & 2) != 0 )
    return(_CONTROL_AREA *)**((_QWORD **)result + 5);
  return result;
}

Referenced by:

DbgkCreateThread
MiAllocateUserPhysicalPages
MiApplyDriverHotPatch
MiApplyHotPatchToLoadedDriver
MiCfgMarkValidEntries
MiChargeSystemImageCommitment
MiCompactServiceTable
MiComputeProcessUserVa
MiConstructLoaderEntry
MiCountSystemImageCommitment
MiCreateSectionCommon
MiDriverLoadSucceeded
MiFreeInitializationCode
MiFreeRetpolineImportInfo
MiGetSystemAddressForImage
MiIdentifyPatchImageWritablePages
MiInitializeCfg
MiInsertInSystemSpace
MiIsImageFullyRetpolined
MiLoadHotPatch
MiLogSectionObjectEvent
MiMapExParametersInitialize
MiMapImageForEnclaveUse
MiMapParametersInitialize
MiMapSystemImage
MiMapSystemImageWithLargePage
MiMapViewInSystemSpace
MiMapViewOfSection
MiObtainSectionForDriver
MiOpenHotPatchFile
MiReferenceAweHandle
MiResolveImageImports
MiReturnSystemImageCommitment
MiSectionClose
MiSectionDelete
MiSectionOpen
MiSetSystemCodeProtection
MiUnloadSystemImage
MiUpdateCfgSystemWideBitmapWorker
MiWriteProtectSystemImages
MmChangeImageProtection
MmCheckImageMapping
MmExtendSection
MmGetFileNameForSection
MmGetFileObjectForSection
MmGetImageSectionBasedAddress
MmGetSectionInformation
MmGetSectionStrongImageReference
MmLoadSystemImageEx
MmMapViewInSystemCache
MmRemoveImportOptimizationForDriverVerifier
MmSectionToSectionObjectPointers
MmUnmapViewInSystemCache
PsQuerySectionSignatureInformation
PsReferenceProcessFilePointer
PspGetProcessProtectionRequirementsFromImage
PspInitializeFullProcessImageName
VfDriverLoadImage