(CNN) -- Sears reached an 11th-hour deal Tuesday to remain open -- at least for now.
Attorneys for Sears said they had reached an acceptable agreement with a hedge fund controlled by Eddie Lampert, the chairman and former CEO of Sears, after a series of last-minute negotiations. Without an agreement, Sears faced the possibility of liquidation.
The deal, a revised version of a $4.4 billion bid Lampert submitted in December, would keep 425 of the stores open if certain conditions are met.
Under the new terms, Lampert must come up with a $120 million cash payment by Wednesday afternoon, as a down payment.
By deeming Lampert's revised bid acceptable, Sears started the clock on an auction period that ends on January 14.
Lampert's is the only bid designed to keep Sears open. But it is still possible that those wishing to shut down the company will bid more for the assets than Lampert is offering, which would set the company on the path of shutdown once again rather than remaining in business.
It could take days or even weeks after the end of the auction to determine who is the winning bidder.
The final deal also requires approval from US Bankruptcy Court Judge Robert Drain. But at Tuesday's hearing, he called this preliminary agreement "a good development."
It gives Sears a chance to survive, which appeared to be slipping way heading into the hearing.
Lampert submitted a bid on December 28 and Sears had until Friday to accept it, but the company didn't comment before Tuesday's hearing. That's because attorneys were working feverishly to improve the terms of the offer.
The revised deal was reached after days of "virtually round-the-clock negotiations," Sears attorney Ray Schrock told the court.
The talks continued into Tuesday. A hearing planned for 10 a.m. didn't actually get underway until after 1 p.m. because attorneys were huddled to discuss details of the bid.
Schrock started the much-delayed hearing by announcing "We have what we believe is some very good news for Sears and its stakeholders."
Sears filed for bankruptcy in October, but said it hoped to be able to use the process to stay in business. But many retailers end up going bust after filing, despite plans to stay in business. In recent years, Toys "R" Us, RadioShack and Sports Authority have followed that path to the graveyard.
Lampert said he plans to offer jobs to 50,000 Sears and Kmart employees.
But it wasn't immediately clear just how much additional cash Lampert will pay for the assets. It is known he expects the new Sears to borrow $1.3 billion from three leading banks.
In his original bid, he also offered to forgive the more than $1 billion in debt he is owed by Sears from earlier loans he made to the company. It was not immediately clear Tuesday how much, if any, debt forgiveness will be included in this revised offer, since final details of the bid are not yet known. If it depends on Lampert forgiving past debt, it could again scuttle the deal and kill the final chance the company has to stay in business.
An attorney representing businesses and people who are owed money by Sears told the court Tuesday they will still challenge the bid if it turns out that Lampert intends to use forgiveness of any of the debt as part of the offer. The attorney does not represent Lampert.
The creditors have argued that forgiveness of his debt should not be accepted as part of the bid, because Lampert loaned Sears the money when he was CEO. The creditors' attorneys question whether the terms of those loans unduly benefited Lampert and his hedge fund rather than Sears.
Lampert and his hedge fund argue the loans were proper and made to keep Sears alive.
The creditors also have been arguing for months that shutting down Sears was the best course for repaying the greatest amount of the money it owed. In bankruptcy court filings it called Sears previous plans to stay in business "nothing more than wishful thinking " and "an unjustified and foolhardy gamble with other people's money."