Why even bother. I have a 2009 F800gs with 90,000km on it. Runs great. Uses no oil and has no issues.
You say that the bike you are looking at "needs a new engine". What does that mean.
For the effort in replacing it, you could just as easy fix the one in it.