I recently had to rewire a friend's guitar that was a tangle of confusing colour wires (it was a BC Rich that he had attempted to install SD Black Winters into). He had no gain, it sounded plinky like a piano even through a Peavey 6534+
I couldn't follow all of the weird grey wires, green wires, blue wires, and whatever else so I took all of the wiring out and rewired everything hot with black wire and everything earth with green wire, following the Seymour Duncan colour scheme. As I was doing it I discovered the cause of the problem: the coil split wires (red and white on a SD, green and white on a BKP) were simply cut and taped off, without being soldered together. Always make sure those are connected, even if not being used with a switch. I stripped the insulation back a little, soldered them together, and then insulated the end with shrink tubing.
Remember to put shrink tubing over the black and bare ground wires so that the bare wire can't short out the hot red wire if it touches the hot terminal on a pot accidentally. I usually put more shrink over all the wires at that join, using different colour shrink (e.g., yellow and blue) to make sure you can tell the bridge from the neck without taking the pickups out. Those little neck and bridge labels on the wires tend to disappear over time. Looking into the cavity of the BC rich now I can see all black and green (besides the pickup wires) and it's really easy to follow what's going on.
Be really careful not to overheat pots and/or desolder a terminal leg. Remember that it is very difficult to solder in cold temperatures, so if it is cold at night do it during the day.
The wires on your switch do look a bit confusing. Most of the diagrams show the open type CRL or Oaks-Grigsby type switch types used on Teles (3-way) and Strats (5-way)
Try to work out what each of your wires is doing before pulling it apart