Firm behavior in capital markets with frictions