Well, I know what the dealer invoice was for mine...and what the MSRP was; there was about $4k difference.
There is something called "dealer holdback" which is 3% for GM, this is all profit for the dealer, and comes in form of a rebate later from the mfgr to the dealer.
Additionally, there are other incentives to the dealer that are useful, like additional allocations based on the number of units sold, etc.
If they sell you any accessories, they probably make profit on those too.
Net, I would say if the customer paid MSRP, of $80K, the dealer stands to profit in the $5-8K range.
Any additional profit items like service contracts, pinstripes, protective coatings, bank/credit union loan kickbacks, etc would add to that profit, and probably come with a much higher margin than the vehicle itself.
I honestly don't think the dealers make a ton of profit on warranty service, unless the concern is pretty straightforward. (example: I saw a couple TSB's offering 0.3hrs of labor for a reprogram of a module. 0.3hr = 18 minutes. Hard to imagine a tech being able to go get your vehicle from the lot, pull it in, do the diagnostic, set up the equipment, perform and verify the job, and go put it back in the lot in 18 minutes...)
If they can retain you w/ normal maintenance visits, and long term service at retail, they probably do OK on that too.