MiSessionLookupImage

RTL_BALANCED_NODE *__fastcall MiSessionLookupImage(UINT64 a1){
  RTL_BALANCED_NODE *v1; 
  v1 = *(RTL_BALANCED_NODE **)(*(_QWORD *)(*((_QWORD *)KeGetCurrentThread() + 23) + 1368i64) + 88i64);
  while( v1 )
  {
    if( (_RTL_BALANCED_NODE *)a1 > v1[2].Children[0] )
    {
      v1 = v1->Children[1];
    }
    else
    {
      if( a1 >= (v1[1].ParentValue & 0xFFFFFFFFFFFFFFFCui64) )
        return v1;
      v1 = v1->Children[0];
    }
  }
  return 0i64;
}

Referenced by:

MiMakeDriverPagesPrivate
MiResolveImageReferences
MiSessionApplyNonPagedImageCharges
MiSessionReferenceImage
MiSessionRemoveImage
MiSessionUnloadAllImages
MiSessionUpdateImageCharges
MiSharedVaToPartition
MiUnloadApproved
MmEnumerateSystemImages
MmIsDriverLoadedCurrentSession
MmIsSessionExecutionValid