So the back-story, a couple of months ago I was reversing down a slipway to launch a boat, due to some 'unforeseen complications' (a rope I'd stupidly put somewhere holding the boat on the trailer and forgotten about!) I ended up taking the car for a bit of a 'paddle' in the sea. It didn't like it. After emptying the boot of water, and leaving the carpets out to dry, unfortunately the damage was more than just the smell, the electrics were royally screwed. We're talking hazard lights on when they fancy, rear windows not working, the car would lock or unlock as and when it wanted, the roof wouldn't open, all kinds of warning lights on the dash, and so the list went on.
Anyway, after working with my mechanic friend, we found the source of the issue. Under the passenger seat carpet there are two junction boxes, sat nicely in a sort of 'tray.' This tray was still full of salt water, and had done an excellent job of corroding all the connections. Here's how it looked:

So I stripped out the junction boxes and connected the wires using solder & heat shrink, however there are 2 wires left over. The connections so far have solved the majority of the issues including rear lights, locking devices and so on. But the rear windows and the roof opening system are not solved. Clearly these two wires are important and should be connected to other wires somehow, but I have no idea which!
I recently purchased Dialogys, however I'm having issues with it connecting to the world vehicle database / registering the VIN, and even if / when I get into it I expect it to be very challenging to locate what I'm looking for in the sea of information it holds.
I'm really hoping someone can help me out here, maybe it's a wiring diagram I'm looking for, for this single junction box, or some expert knowledge. Any help is much appreciated!
Many Thanks,
Alec