CmGetKCBCacheSecurity

__int64 __fastcall CmGetKCBCacheSecurity(__int64 a1, __int64 a2, INT64 a3){
  __int64 v3; 
  LIST_ENTRY *v6; 
  __int64 v7; 
  __int64 v8; 
  LIST_ENTRY *ListIterator; 

  v3 = *(_QWORD *)(a1 + 88);
  if( a2 )
  {
    ListIterator = 0i64;
    v6 = (LIST_ENTRY *)(a1 + 208);
    while( 1 )
    {
      LODWORD(v7) = CmListGetPrevElement(v6, &ListIterator, a3);
      v8 = v7;
      if( !v7 )
        break;
      if( CmEqualTrans(*(_QWORD *)(v7 + 56), a2) && *(_DWORD *)(v8 + 68) == 9 )
        return *(_QWORD *)(v8 + 88);
    }
  }
  return v3;
}

Referenced by:

CmpGetSecurityCacheEntryForKcbStack
CmpSetSecurityDescriptorInfo