Even if you managed to reterminate the cable succesfully as a passive HDMI cable, it wouldn't work well, if at all. According to your link, your cable is 28 AWG. The best 28 AWG passive HDMI cables are certified category 2 (high speed) up to about 15', and category 1 (standard) up to about 25'. At 40', it is unlikely your cable would successfully transmit 720p or 1080i, let alone higher resolutions.
Swapping ends while theoretically possible is probaby unfeasible. It would involve unsoldering 19 tiny connections on each end without damaging connectors, chips, and wire, and then resoldering with the same concerns. And even then, there is the problem that the chips are programmed for the specific cable as built, which you will not have when you get done.
If the cable is not tightly fastened to the structure, you might be able to cut the ends off and use it to pull a Category 6 cable and use a HDBaseT-based extender. It is worth a try. Your current cable is useless as it is.