An East Bay office complex that had sunk into a financial quagmire has been bought at a steep price discount.