MiSectionControlArea

_CONTROL_AREA *__stdcall MiSectionControlArea(_SECTION *Section){
  union {_CONTROL_AREA *ControlArea;_FILE_OBJECT *FileObject;$00A1D302B2FF13A5D590EA2BB44B21E6 __s2;} v1; 
  _CONTROL_AREA *result; 

  v1.ControlArea = (_CONTROL_AREA *)Section->u1;
  result = (_CONTROL_AREA *)((unsigned __int64)v1.ControlArea & 0xFFFFFFFFFFFFFFFCui64);
  if( ((__int64)v1.ControlArea & 1) != 0 )
    return *(_CONTROL_AREA **)(result->NumberOfMappedViews + 16);
  if( ((__int64)v1.ControlArea & 2) != 0 )
    return *(_CONTROL_AREA **)result->NumberOfMappedViews;
  return result;
}

Referenced by:

DbgkCreateThread
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
MiUpdateCfgSystemWideBitmapWorker
MiWriteProtectSystemImages
MmChangeImageProtection
MmCheckImageMapping
MmExtendSection
MmGetFileNameForSection
MmGetFileObjectForSection
MmGetImageSectionBasedAddress
MmGetSectionInformation
MmGetSectionStrongImageReference
MmLoadSystemImageEx
MmMapViewInSystemCache
MmRemoveImportOptimizationForDriverVerifier
MmSectionToSectionObjectPointers
MmUnmapViewInSystemCache
NtFreeUserPhysicalPages
PsQuerySectionSignatureInformation
PsReferenceProcessFilePointer
PspGetProcessProtectionRequirementsFromImage
PspInitializeFullProcessImageName
VfDriverLoadImage