Embattled singer-songwriter Kesha released her first new single in four years Thursday. It's a defiant and celebratory tune called “Praying,” and is accompanied by an artsy music video and will be on an album called “Rainbow,” set for an Aug. 11 release.

It took some standout backup work from attorneys Dan Petrocelli and Bo Pearl, partners at O'Melveny & Myers, to clear the way for the track's release. And it may do the same for the career of Kesha, who has sold more than 60 million records worldwide, but has been largely off the radar since an ongoing legal battle with her former producer Dr. Luke exploded in 2013.

The two exchanged charges in a series of lawsuits, with Kesha (real name Kesha Sebert) alleging that Dr. Luke (Lukasz Gottwald) drugged and sexually abused her, and Dr. Luke claiming breach of their multi-release contract and defamation.