Starting on the side nearest the PCB edge:
P3:
Pin 1 - GND
Pin 2 - Not connected
Pin 3 - Reset
Pin 4 - OSD
Pin 5 - User
P4:
Pin 1 - VCC
Pin 2 - GND
Pin 3 - Not connected
Pin 4 - LED User
Pin 5 - LED Disk
Pin 6 - LED Power
LEDs are GND controlled, so you connect all + pins to pin 1 and each - pin to the respective LED pin.