PRE-MERGER LOAN AND FUNDING AGREEMENT