This article is from the FAQ, by with numerous contributions by others.
According to INS, if the successor company undertakes all rights,
liabilities, assets and privileges of the previous employer - the H
visas are valid even after the takeover. In simple English, get an
opinion from a lawyer in writing. Otherwise, all H visa holders
could be out of status.