You might check locally to see if you have a window repair that could replace the glass and straighten the frame first. If not I suspect the only option is replacing the whole unit. Even with the frame straightened will it operate correctly? Replacing it might just be the best alternative.
Can't really comment on the wall though.