You have an interesting, dangerous and possibly deadly situation that requires careful consideration, calculation and evaluation by a group of experts in various fields (engineering, safety, operations, maintenance, qualified workers or contractors, etc). We can give you some limited assitance based on decades (or lifetimes) of experience but each situation is different and needs to be fully and exhaustively described in all facets. Only your on-the-ground team knows all the issues and actual conditions.
One thing not mentioned is that legs lose strength quickly if they are not straight and vertical. Leaning legs are much weaker than straight ones. Lean creates bending moments and a column with combined bending and axial loads has (sometimes vastly) reduced capacity.
Also, steel floating roofs have been known to spiral down, tearing up the tank bottom and killing anyone under them. Your roof has legs already broken, unexpected loads from flooding, unknown corrosion and potentially dangerous hydrocarbons floating on top of water all over the floating roof including possibly hidden or inaccessible places.
Stabilizing the roof needs to be done but you can't weld until the hydrocarbons are removed or covered. You might consider floating fire-fighting foam on the product to suppress the LELs, then weld lugs to the tank shell and FR for chainfalls to make it a safe platform for vacuum hoses and cleanup personnel, also to keep the FR from rotating and giving you a method to support and lower it. Foam is mostly water (adding weight) so this may not be a great idea, and it does not last long.
Much more needs to be known about your situation, your resources, timeline, budget, future expectations for this tank and FR, etc. For sure you need to have at least 2 or 3 experienced engineers on site to measure, document and calculate that can backup any plans with conservative calculations that pass the red-face test and potentially legal scrutiny...