Honestly, I would replace the whole thing. Otherwise, replace the top portion that screws onto the p- trap and goes into the wall, being certain to cut that pipe long enough to reach the new drain. Much simpler that rearranging the drain.
Alternatively, there is a flex adapter that will allow for awkward installs and give the added length needed to reach the tailpiece.
UPDATE: I’ve literally just changed out the plumbing in my pedestal sink in the fashion I’ve suggested. The wall adapter was installed at an awkward angle and was an eyesore. Without cutting into the wall or re-installing the pedestal sink, I replaced the standard p-trap with a flexible one.
[Photo upload has failed. Will try to post after contacting site staff.]