That's a standard mess we see and yeah it needs rewired to avoid fire hazards, I see a bunch of sketchy connections. Most Mariner guys will run the wiring in conduit up to the center console. Us side console guys have all the mess inside the starboard gunnel hanging down in a rats nest.