Ask company B to file a H-1b for you, once they submit it, you could start to work for them. Use your current H-1 non-cup to apply.