Just cut off the old cable and housing. Your local bike shop should be able to sell you a new cable and housing for about $7.
Keep the old housing so you can cut the new housing to the same length.
The tire looks like it has a season left in it, as does that sharktooth chainring.
So, spend $7, DO IT YOURSELF, and ride the thing.