Like technician said, since it's not printed on the board which pins are which, easiest way is to probably just follow the wires on the current case to see whats what, then connect the new header accordingly. It might take some trial and error to get them right.