From what I understand, you publish your app normally then once per quarter you send Epic information about the # of sales you made and a payment for the 5% royalty.
Release game on App Store.
Contact Epic with information about your app.
Within 45 days of the quarter ending, send Epic an email with information about your sales for that quarter along with royalty payment.