After selling the property in Shanghai, work with the banker on how to move the money out of China. All the banker need is the authorisation code issued by the government department. Once the code is issued, there is a limited window to get the money out.
It may be abit troublesome. But it is simply an administrative process - need to be there a few rounds. Ask you friend to check it out quickly.
I did that when I sold my Shanghai villa.