You would first need the pin out diagram from the manufacturer. This would explain which pins did what and you could then determine the correct way to attach to the new connector.