See what medicine is on this prescription. What is the main treatment (written in standard words)?

Prescription: Radix Astragali 50, Herba et Gemma Agrimoniae 40, Rhizoma Curculiginis 10, Herba Epimedii 10, Fructus Gardeniae 15, Douchi 12, Radix Panacis Quinquefolii 15, Radix Polygalae 25 and Radix Curcumae/kloc-0. Decoct in water for four times.

The function of the prescription: soothing the liver and relieving depression, strengthening the waist and tonifying the kidney, calming the heart and removing annoyance. Make sure every word is correct! Amitabha!

Although the prescription is scrawled, the doctor's hard pen calligraphy has a certain foundation and writing rules to follow, so the prescription font is not difficult to identify. Roasted grass, honey roasted licorice. The so-called "Cao Ling" mistook one for another!