Wow. initially, when I looked at it, I thought, "That's a spinning / floating flange, it's supposed to look like that."
Nope. You nailed it. That's a terrible welding job!
Now the problem is, it's full of corrosion, so welding it now will be a huge challenge.