I think your H1-B for company A is expired.There is no any doubts that you can continue to work in company A with your EAD