NEW YORK (Reuters) - Sears Holdings Corp agreed on Tuesday to consider a revised takeover bid from billionaire Chairman Edward Lampert, temporarily staving off a liquidation that would have spelled the end of the 126-year-old U.S. department-store chain.

Lampert’s latest attempt to rescue Sears came after his previous $4.4 billion bid fell short, prompting the retailer to make liquidation preparations ahead of a bankruptcy court hearing in New York on Tuesday.

An attorney for Sears told U.S. Bankruptcy Judge Robert Drain that Lampert is expected to submit a revised offer for the retailer, along with a $120 million deposit, by 4 p.m. ET (2100 GMT) on Wednesday. The attorney, Ray Schrock of Weil, Gotshal & Manges LLP, did not disclose further details of the new offer, which materialized after what he described as several days of round-the-clock negotiations.

Drain said that Sears will weigh Lampert’s offer against a proposed liquidation during a Jan. 14 bankruptcy auction. Should Lampert’s offer falter again, he will forfeit more than $17 million from his deposit to Sears creditors.

Lampert’s bid, which recently envisioned keeping open 425 stores and preserving up to 50,000 jobs, still faces hurdles that could cause it to unravel in the coming days and prompt Sears to shut down for good.

“This is a large company...that affects a lot of people,” Drain said during Tuesday’s hearing. He called the expectation of a revised bid from Lampert a “good development” that could allow Sears to “survive as a going concern, at least in part.”

The latest twist in Sears’ monthslong bankruptcy proceedings offers new hope that the teetering retailer could remain operational, albeit in smaller form, sparing the jobs of many of its 68,000 workers. Were Sears to liquidate its assets, it would become one of the most high-profile victims in the wave of bankruptcies that has swept the retail sector in the last few years, as the explosion in online shopping exacerbates the fierce price competition facing brick-and-mortar stores.

In a stark contrast between e-commerce firms and many physical retailers, Amazon.com Inc became the world’s most valuable company for the first time this week, reaching a market capitalization of close to $800 billion.

Sears’ agreement to reconsider Lampert’s offer tables for now controversies that pushed the retailer to the brink.

As part of his bid, Lampert requested a legal release that would clear him from exposure to litigation over transactions he engaged in with Sears before it filed for bankruptcy protection.

As of Monday night, unsecured creditors were unwilling to give him the release, as they remained intent on investigating some of the past deals, said a person familiar with the discussions. The deals, which Lampert maintains were proper, helped make him the company’s largest creditor, in addition to its biggest shareholder.

Lampert’s offer also included a proposal to forgive $1.3 billion of debt he holds in exchange for ownership of the reconstituted Sears, a bankruptcy maneuver known as a credit bid that has also drawn objections from creditors. The controversy will remain unresolved heading into the Jan. 14 auction, and faces scrutiny from Drain should Lampert prevail with his bid.

Unsecured creditors, which include Sears landlords and bondholders, have pushed for the retailer to liquidate, partially because they contend they will realize a better financial recovery if it does.

Abid Qureshi, an attorney representing those creditors, said there are concerns about Lampert’s takeover bid, including “significant, viable claims” against Lampert regarding pre-bankruptcy transactions.

PREVIOUS NEGOTIATIONS

Another point of contention in previous negotiations between Lampert and Sears centered on whether Lampert’s bid fully addressed the bankruptcy costs that Sears has racked up, according to people familiar with the matter.

The costs, which include bills from lawyers and financial advisers, are expected to exceed $200 million, those sources said.

FILE PHOTO: An empty jewelry display case is seen inside a Sears department store which was being closed as part of multiple store closures by Sears Holdings Corp in the United States in Nanuet, New York, U.S., December 21, 2018. REUTERS/Mike Segar/File Photo

Sears’ bankruptcy, which includes discount chain Kmart, followed a decade of revenue declines, hundreds of store closures, and years of deals by Lampert to turn around the company he put together in 2005 through an $11 billion deal.

Sears, known for its mail-order catalogs, dates back to 1893. Merchandise from toys, medicine, gramophones, automobiles, kit houses and tombstones made it the Amazon of its time.

The iconic retailer gradually lost its shine, however, as consumers turned to e-commerce and brick-and-mortar rivals such as Walmart Inc and Target Corp.

Lampert had pledged to restore Sears to its glory days, when it owned the tallest building in the world as well as a radio station and Allstate insurance.

But critics say Lampert let the stores deteriorate, even as he bought the company’s stock and lent it money.

The largest U.S. toy retailer, Toys ‘R’ Us, tried to emerge from its 2017 bankruptcy filing but was also forced to liquidate six months later, after creditors lost confidence in its turnaround plan.