There isn’t really a standard for wire colors in headphone wires. While many manufacturers use similar coloring, you should still test each wire individually to see what it’s connected to. As for the 5th wire, it could be a mic cable, or just an extra that leads nowhere. In any case you shouldn’t lose functionality as long as the other 4 match and the pinout on the new jack is the same.