You should consult an immigration attorney, and soon. When you left your employ at the company X without transferring your H1B visa to another employer, you lost your H1B visa. Your re-entry into the U.S. on H1B visa sponsored by Company X even though you were coming to work for Company Y, will most likely be considered by USCIS as visa fraud. And, even if your status were completely legitimate, you should have applied for a renewal of your employment authorization, at least, 2 months ago. In sum, the situation is a mess, and the sooner you ask a specialist to try sorting it out, the better.
Answered on Jan 10th, 2014 at 9:46 AM