You may apply for an H-1B transfer to another company. For this you need valid employment in the U.S. Also you have to prove that you have recent pay stubs (less than 60 days old) and last year W2 forms (if applicable). If you do not have recent pay slips, then you may need to explain the reasons to USCIS. (Unpaid vacation or long sick leave approval letters from your current employer may be considered.) As per law, the petitions that were filed after the last date of employment are not eligible for change of status or change of employment because the applicant becomes out of status when the applicant loses his or her job. The laid off H-1B worker will be considered out of status even though he has valid H-1B visa in his passport or valid
As per the law, you should get paid from day one of your U.S. employment. You cannot live in the U.S. without a salary unless you are on unpaid vacation or sick leave. Your status is legal and valid, but if you are not able to find another employment quickly, it is advisable to leave the U.S. If your employer refused to pay your salary, you can complain to the nearest USCIS office or Department of labor (DOL).