Financial Winners & Losers: Goldman Sachs

(Updated with final closing prices throughout)

Financial stocks ended mixed Tuesday even after Goldman Sachs ( GS) handily beat expectations with its second-quarter earnings report.

Goldman Sachs said it earned $3.44 billion, or $4.93 a share, in the second quarter, rising from $2.05 billion, or $4.58 a share, in the year-ago period. Results included a charge of 78 cents a share related to the bank's paying back Troubled Asset Relief Program funds. Excluding that, earnings were $5.71 a share. Revenue jumped 46% from a year ago to $13.76 billion, the bank said.

Analysts polled by Thomson Reuters expected Goldman Sachs to report second-quarter earnings of $3.54 a share on revenue of $10.7 billion. Goldman shares eked out a gain after a very choppy trading session, tacking on 22 cents, or 0.2%, to finish at $149.66.

Other bank stocks didn't fare as well as Goldman. Bank of America ( BAC) and JPMorgan Chase ( JPM), which report earnings later this week, were down 0.6% and 0.1%, respectively. Morgan Stanley ( MS) was off 0.1%, and Wells Fargo ( WFC) slumped 1.6%.

Several regional banks also finished lower. KeyCorp ( KEY) gave back 3.4%, Fifth Third Bancorp ( FITB) shed 1.4%, BB&T ( BBT) finished down 1%.

On the winning side, Citigroup ( C), which also reports quarterly results on Friday, climbed 5% to $2.92. UBS ( UBS) finished up 0.9% to $12.51 and Barclays ( BCS) added 0.7% to $19.60.

CIT Group ( CIT) shares were also among Tuesday's winners after reports the company and federal regulators were in " advanced talks" about a government aid package late Monday. One possible source of aid for the troubled commercial lender is participating in the Federal Deposit Insurance Corp.'s Temporary Liquidity Guarantee Program, The Wall Street Journal reported.

CIT Group shares jumped 19.3% to finish at $1.61, but are still down more than 50% over the last month.

Corus Bankshares ( CORS) were also rallying after the Journal reported that private-equity firm Starwood Capital Group is bidding on assets of the struggling bank.

Barry Sternlicht, who controls Starwood Capital, wouldn't name the bank in a conference call Monday but said his firm was bidding on a bank that is heavily concentrated in real-estate lending and has more than 110 construction loans. People with knowledge of the matter identified the bank as Corus, the Journal reported.

Corus had a June deadline to raise capital or find a buyer, according to the report, and Corus last month tapped a crisis management firm that specializes in restructuring distressed, midsize companies. Corus shares surged 55.4% to end the day at 32 cents.