OK, I will try and help, but could be way off. . lol
Pic .1 , , i think the Red with white wire could be an Aux 12v. Live when the Ignition is turnt on. Lots of bikes have them apprently .
( Put a multimeter on it and turn the ignition on to see if this is true ). Can be used for things like Alarms or other gadgits.
Pic .2 , , The Fail Safe Switch connector.
As you will see by the Pic i hopfully have attached ,You just need to reconnect the wires in the right order. You will need a couple of more connector blocks ( or any type of smallish connector .)
The PO has used a random connector with the wrong color wires, so ya just got to rematch them up.
Looking at your Pic .I can see the Back of the connector nearest the carbs.
I can see a Black with red stripe. Following that through the top connecter it is now Orange with a blue stripe.
This wire connects to the Black with a Red stripe from the LEFT REAR fail safe switch.
The Black wire from the same fail safe switch should connect to the Green with a Orange stripe.
The Yellow with a Red stripe in the top part should have a Black with Lime stripe wire in the bottom half of the connecter. ( the back wire from the connecter that we cant see in your pic nearest the carbs ).
This should connect to the Black with a Red stripe from the LEFT FRONT fail safe switch.
Leaving the Pink looking wire from your top connecter to connect to the last black wire from the LEFT front fail safe switch.
Hope some of that helps ,