FIFTH AMENDED AND RESTATED MASTER REPURCHASE AND SECURITIES CONTRACT among