Functional renormalization group for two-body scattering