Whats inside a microwave is a very high voltage transformer, a high voltage capacitor (hold the charge & the charge remains after it has been turned off)
also the magnetron, and you dont want to be messing with that, certainly not powering it up.
The problem may well be with it overheating, because something has a fault on it, causing it to cut out. Very likely the transformer or diode pack or the magnetron.
However, what is your level of competence in repairing electrical equipment?
because you cannot fix it just by looking at it, you need a multimeter, soldering iron & knowledge of how it works, especially the safety circuitry.
And is our wife (assuming you have one) happy to let you repair it and then use it?
I ask that because I can repair microwaves, but my wife is such a namby pamby she wont let me, she worries too much, so instead of me effecting a free repair she has gone out & spent £40 on a new one
So I have spares in the back yard lol.
(this so sounds like what the RGI's tell me about boilers lol)