SmKmStoreReference

UINT64 __fastcall SmKmStoreReference(INT64 a1, UINT64 a2){
  unsigned int v2; 
  struct _EX_RUNDOWN_REF *v3; 
  struct _EX_RUNDOWN_REF *v4; 
  v2 = a2;
  v3 = (struct _EX_RUNDOWN_REF *)SmKmStoreRefFromStoreIndex(a1, a2 & 0x3FF);
  v4 = v3;
  if( v3 && ExAcquireRundownProtection(v3 + 1) )
  {
    if( (v4[4].Count & 0x3F) == v2 >> 10 )
      return v4->Count;
    ExReleaseRundownProtection(v4 + 1);
  }
  return 0i64;
}

Referenced by:

SMKM_STORE_MGR::SmStoreRequest
SMKM_STORE_MGR::SmStoreTerminate
ST_STORE::StWorkItemProcess
SmIssueIo
SmKmStoreReferenceEx
SmProcessListRequestExtended
SmpKeyedStoreReference