Intermediary Asset Pricing with Heterogeneous Intermediaries and State-Dependent Restrictions