I'd say the two wires on the right side are for a limit switch, the other three being for the drive. Put a meter on the yellow and white wires and see if it goes open/short dependant on position when you rotate the spindle.
its a hard one to call, the yellow and white are closer to the motor and above the worm drive where the other 3 are above the driven gear which is where the micro switches are situated for the self parking, test and make sure before you apply voltage as it could burn out the switch.
Any numbers hiding on/near the terminals/under covers? Got an inkling they may only be on the plug making this useless but there are conventions for example 53 for wiper + feed with letter suffixes for the other functions, 53a for parking.
white and yellow are power to the motor and the other 3 are for the self parking, you will need to test with a meter which one goes open circuit on 1 full revolution probably the larger outer track
I would test all connections to make sure the motor doesn't earth to its case and as it has diodes make sure you get + - right way round then as for the other 3 one of them is usually permanently live which then supplies motor + through one of the other wires so the motor can only stop when in the correct position
as you will see from the pic the middle ring supplies power to the outer ring as the motor turns but once it reaches its current position the power stops and the wipers are parked