If you are not more than 59 1/2, 20% tax will be deducted by the holding compnay before any distribution is made to you. However when you file your USA income tax return (1040 OR 1040 NR or applicable in your situation-NR stands for Non resident) you can offset this income against your standard deductions & personnel exemptions. As long as you withdraw the right amount to offset against this exemption & deductions, you will get entire amount (that was withheld less penalty) back. However if you are under the age of 59 1/2, you will have to pay 10% withdrawal penalty.
There’s a 10% penalty on anything you withdraw before you’re age 59-1/2. Taxes would depend on your bracket for the year, so taking it out over time would make sense.
The others hit it right on the 59 1/2 age thing but also since you will be out of the country the mandatory withholding goes up to 30%. Yes, by minimizing the distribution amount you can lower your tax but you’ll still need to file US returns to get that extra money back. If you don’t live in the states you won’t have any state tax.