MiAllocatePool

NTSTATUS __fastcall MiAllocatePool(struct _SLIST_ENTRY *a1){
  UINT64 v1; 
  unsigned int v2; 
  int v3; 
  UINT64 v4; 
  unsigned int v5; 
  int v6; 
  INT64 v8; 
  char v9[4]; 
  POOL_TYPE PoolType[5]; 
  BYTE v11; 
  v3 = 0;
  v4 = v1;
  PoolType[0] = NonPagedPool;
  v5 = v2;
  v9[0] = 0;
  v11 = 0;
  v6 = *(unsigned __int16 *)(*((_QWORD *)KeGetCurrentPrcb() + 24) + 146i64);
  if( (int)ExpPoolFlagsToPoolType((INT64)a1, 1i64, (INT64 *)PoolType, (BYTE *)v9, &v11) < 0 )
    return 0;
  if( v11 )
    v3 = 1;
  if( v9[0] )
    return(unsigned int)ExAllocatePoolWithQuotaTag(PoolType[0], v4, v5);
  LODWORD(v8) = v3;
  return(unsigned int)ExpAllocatePoolWithTagFromNode((unsigned int)PoolType[0], v4, v5, v6 | 0x80000000, v8);
}

Referenced by:

MiAddPrivateFixupEntryForSystemImage
MiAddRangeToPartitionTree
MiAgeWorkingSet
MiAllocateAweInfo
MiAllocateCalibrationResultsMemory
MiAllocateChildVads
MiAllocateCombineProto
MiAllocateCrcList
MiAllocateEnclaveVad
MiAllocateEntireImageFileExtents
MiAllocateFileExtents
MiAllocateFixupVad
MiAllocateHotPatchRecord
MiAllocateImportList
MiAllocateInPageSupportBlock
MiAllocateModWriterEntry
MiAllocateNewSubAllocatedRegion
MiAllocatePerSessionProtos
MiAllocatePfnRepurposeLogDispatch
MiAllocateSecureImageActivePatch
MiAllocateSlabEntry
MiAllocateTempLoaderEntry
MiAllocateVad
MiAllocateWorkingSetSwapSupport
MiAllocateZeroPageDecisionTraceBuffer
MiApplyDriverHotPatch
MiBuildImageControlArea
MiBuildImportsForBootDrivers
MiBuildMappedCluster
MiBuildNewCloneDescriptor
MiCaptureImageCfgContext
MiCaptureRetpolineImportInfo
MiCaptureRetpolineRelocationTables
MiCloneCaptureVadCommit
MiCloneVads
MiCombineWorkingSet
MiCompressRelocations
MiComputeIdealFirstSubsection
MiComputeRunTimeZeroComparisons
MiConfigureMemoryInsertion
MiConfigureMemoryRemoval
MiConstructLoaderEntry
MiConstructNonRetpolineImageLoadRecord
MiConvertInitialMemoryBlock
MiConvertRunsToPages
MiCopyPagesIntoEnclave
MiCopyToCfgBitMap
MiCreateAweInfoBitMap
MiCreateBootSlabEntries
MiCreateCloneChain
MiCreateColorAnchors
MiCreateDataFileMap
MiCreateEnclaveRegions
MiCreateFixupRecord
MiCreateKernelStackNode
MiCreateLargePageVad
MiCreateMdl
MiCreateMemoryEventSD
MiCreateNodeLists
MiCreatePageFileSpaceBitmaps
MiCreatePagingFile
MiCreatePagingFileMap
MiCreatePatchTableProtos
MiCreatePlaceholderStorage
MiCreatePrototypePtes
MiCreateRetpolineRelocationInformation
MiCreateRotateView
MiCreateTopLevelUltraMappings
MiCreateUserPhysicalView
MiCreateVadEventBitmap
MiCreateZeroThreadContext
MiDeletePartialVad
MiDriverLoadSucceeded
MiExpandFlushMdl
MiExpandPartitionIds
MiExpandSystemCache
MiExtendSection
MiFindLargePageMemory
MiFlushControlArea
MiFlushSectionInternal
MiFormFullImageName
MiGenerateSystemImageNames
MiGetCcAccessLog
MiGetFileOnlyRanges
MiGetHotPatchEntry
MiGetHugePageToZero
MiGetPhysicalMemoryRanges
MiGetProcessHotPatchContext
MiGetUltraMdlContext
MiGetWorkingSetInfo
MiGetWorkingSetInfoList
MiIdentifyPatchImageWritablePages
MiInSwapStore
MiInitNucleus
MiInitializeCacheFlushing
MiInitializeDpcGang
MiInitializeDriverImages
MiInitializeDriverPtes
MiInitializeEnclaveMetadataPage
MiInitializeHugePfnDatabase
MiInitializeLockedPagesTracking
MiInitializeMirroring
MiInitializeRelocations
MiInitializeScrubPacket
MiInitializeSessionIds
MiInitializeSharedUserData
MiInitializeUltraSpace
MiInitializeWorkingSetManagerParameters
MiInsertInSystemSpace
MiInsertPteTracker
MiLoadDataIntoVsmEnclave
MiLoadHotPatchForUserSid
MiLoadSectionIntoVsmEnclave
MiLogStrongCodeDriverLoadFailure
MiMakePartitionMemoryBlock
MiMapLockedPagesInUserSpace
MiMapViewOfDataSection
MiMapViewOfImageSection
MiMapViewOfPhysicalSection
MiObtainMdlCharges
MiPerformImageHotPatch
MiPfIssueCoalescedSupport
MiPfPrepareReadList
MiPfPrepareSequentialReadList
MiPrepareDriverPatchState
MiPrepareToHotPatchImage
MiPreserveBootDecisions
MiProcessCrcList
MiQueryLoadedPatches
MiQueryMemoryPhysicalContiguity
MiQueryProcessActivePatches
MiReferenceIoPages
MiReleaseOutSwappedProcessCommit
MiRelocateImage
MiRememberUnloadedDriver
MiReplenishTransitionPageHeatList
MiReserveBootDriverPtes
MiReserveDriverPtes
MiResolveImageReferences
MiReturnMdlExcess
MiRevertRelocatedImagePfn
MiScrubProcessLargePages
MiSectionInitialization
MiSessionCreate
MiSessionCreateInternal
MiSessionInsertImage
MiSessionObjectCreate
MiSharePages
MiShutdownSystem
MiSnapThunk
MiStoreWriteModifiedPages
MiSwapStackPage
MiTimeSingleLargePageZero
MiUnapplyDriverHotPatch
MiValidateSectionCreate
MiViewMayContainPage
MiWriteComplete
MiZeroAllPageFiles
MiZeroBootLargePages
MiZeroNodePages
MmAllocateMappingAddressEx
MmAllocateSecureKernelPages
MmCallDllInitialize
MmCopyVirtualMemory
MmCreateMdl
MmEnumerateAddressSpaceAndReferenceImages
MmEnumerateBadPages
MmFreeLoaderBlock
MmGetChannelInformation
MmGetEnclaveModuleList
MmGetFileNameForAddress
MmGetFileNameForSection
MmGetNodeChannelRanges
MmInitializeHandBuiltProcess
MmInitializeMemoryLimits
MmInitializeProcessAddressSpace
MmInitializeProcessor
MmLinkJobProcess
MmLogSystemShareablePfnInfo
MmManageFaultRange
MmManagePartitionInitialAddMemory
MmManagePartitionNodeInformation
MmOutSwapWorkingSet
MmPostHotPatchDbgModuleMessages
MmPrefetchPagesEx
MmProbeAndLockSelectedPages
MmRemoveImportOptimizationForDriverVerifier
MmRotatePhysicalView
MmScrubMemory
MmSetPermanentCacheAttribute
MmStoreRegister
NtCreateEnclave
NtGetWriteWatch
NtInitializeEnclave
NtLoadEnclaveData
NtLockVirtualMemory
NtMapUserPhysicalPages
NtMapUserPhysicalPagesScatter
NtSetInformationVirtualMemory