General Motors Corp. yesterday reported record sales for the second quarter of 1985, but said it took a beating on earnings largely because of the company's expensive reorganization, diversification and product development programs.

Revenue for the quarter totaled $25.06 billion, a 16 percent increase over $21.58 billion in the previous period.

But profits hit the skids, sliding to $1.16 billion ($3.52 a share), down 28 percent from $1.61 billion ($5.09) earned in the second quarter of 1984.

"We're still feeling the impact of front-loaded future model programs," said GM Chairman Roger B. Smith. Costs related to the recent $2.5 billion acquisition of Dallas-based Electronics Data Systems Corp., a computer services company, and multimillion-dollar investments in other high-technology companies also affected GM's latest second-quarter results, Smith said.

GM's profits for the first half of 1985 totaled $2.23 billion, down 31 percent from the $3.22 billion earned in the year-ago period. First half earnings per share were $6.78 vs. $10.20 a year earlier.

Sales and revenue for the six months through June 30 totaled $49.24 billion, up 11 percent from $44.47 billion in the first half of 1984.