2004 polaris 700 engine noise

I just picked up a 2004 700 4×4 for a song.
the problem is it has an engine noise and I’m not sure what it is. it is a pretty loud knock and when riding it it is quite loud.
the history on this bike was that the last owner that had if said that the float would stick or something and it would flood out badly. it done this over and over and he kept using it.
after a while he got a Ranger and quit using this 700. he sent it to a shop to have it fixed and now it runs fine but when he got it back it has this knock.
I can’t tell if it’s something like a rod knock or of it would be something else.
with it flooding out so bad over and over could that have caused lower end damage to a connecting rod bearing? or could it be something else?
or am I better off taking it to a dealer to have it checked out?

looking for some ideas on what to do with it. I only have about $600 in this bike and it runs great other than the knock