Functional renormalization-group study of the pairing symmetry and pairing mechanism of the FeAs-based high-temperature superconductor