A group of investors on Thursday said that it had reached a $500 million agreement to buy the Weinstein Co., reviving a deal that just days before seemed to be dead, despite the high-profile intervention of New York state Attorney General Eric Schneiderman.

The group, led by Maria Contreras-Sweet, agreed to purchase more than 90 percent of the embattled film studio’s assets, including its television business and catalog of films, according to The Wall Street Journal. The buyers would pick up $225 million in Weinstein Co. debt and  invest about $275 million to launch a new company, the paper reported Thursday night.