I've seen worse looking engines get rebuilt.
It needs to come apart and be inspected. Things might be stuck together so don't break anything important taking it apart. If in doubt, let a shop do it.
The crank, block and heads can be rebuilt IF no fatal cracks and enough material available to...