Caution: If you're out of status on your H1B and are accruing time for unlawful presence, adjustment of status won't erase the consequences of overstay. That is, if you have accrued unlawful presence you may be turned back at the border, and if you've overstayed to the point that you have a period of ineligibility that period can be enforced.

In terms of forms, read this.