NEW YORK (AP) — Stronger profits from Microsoft, McDonald’s and other major U.S. corporations pushed stocks higher Friday. Optimism from Europe helped brighten the mood.

The Dow Jones industrial average was up 112 points to 13,076 at noon in New York.

“There’s been a wrestling match all week long between strong earnings and weak economic data,” said Lawrence Creatura, a portfolio manager at Federated Investors, the money-management firm. “At the moment, earnings are winning.”

Before the market opened, McDonald’s said that profits in the first quarter rose 5 percent, buoyed by warm weather and sales of new menu items like Chicken McBites and oatmeal.

Sales picked up even in Europe, McDonald’s’ biggest market, despite economic turmoil and severe weather. Stock in the world’s biggest hamburger chain gained 2.3 percent.

The tech giant Microsoft posted quarterly earnings and revenue late Thursday that beat analysts’ projections. One highlight was a 4 percent increase in sales from in its Windows division, even though sales of personal computers running Windows have been weak over the past year. Microsoft rose 5.5 percent, making it the leading stock in the Dow.

Earnings at General Electric also beat estimates. The industrial conglomerate posted more than $3 billion in quarterly profits. Orders for locomotives, aircraft engines and other equipment jumped. GE’s stock rose 1.7 percent.

In other trading, the Standard & Poor’s 500 index added nine points to 1,386. The Nasdaq composite index rose 20 points to 3,028.

All three indexes appeared headed for weekly gains. The Dow is up 1.8 percent for the week.

U.S. Treasury prices fell for just the second time this week with no worrying news out of Europe. The price of the 10-year Treasury dropped 15.6 cents, nudging its yield to 1.99 percent from 1.97 percent late Thursday.

In Europe, Germany’s DAX was up 1.2 percent, and other major stock indexes were slightly higher. A closely watched survey in Germany, the continent’s economic powerhouse, showed business optimism rising for the sixth straight month. Most economists expected the index to decline. A gauge of optimism six months ahead was also positive.

Among stocks making big moves in the United States:

— Oil services giant Schlumberger Ltd. rose 4.5 percent. The company’s quarterly profits jumped almost 38 percent as strong drilling activity in the Gulf of Mexico and the Middle East offset a slowdown in North America’s natural gas fields. Schlumberger said that world oil demand appears to have “stabilized” and that the risk of a double-dip recession has declined.

— E-Trade Financial Corp. jumped 6.9 percent, the largest gain in the S&P 500. The online broker reported a 40 percent jump in first-quarter profit after the close of trading Thursday, beating Wall Street estimates with the help of a big tax benefit.

— SanDisk Corp. plummeted 14 percent, the S&P’s biggest loser. The flash memory maker said late Thursday that weak demand and low prices cut its quarterly profit by nearly half. SanDisk warned that it expects the trend to continue.