You are not allowed to pay yourself anything from the new company while on an H1-B.
If one of your co-founders, or investors, is a US citizen you *might* be able to arrange a transfer of the H1-B to the new company. This is difficult and expensive though (at least we found it so). I decided it was more sensible for me to just wait for the Green Card.