1. A person who is in, on or under a structure or vehicle and who maliciously or wantonly discharges or maliciously or wantonly causes to be discharged a firearm within or from the structure or vehicle:
(a) If the structure or vehicle is not within an area designated by city or county ordinance as a populated area for the purpose of prohibiting the discharge of weapons, is guilty of a misdemeanor.
(b) If the structure or vehicle is within an area designated by city or county ordinance as a populated area for the purpose of prohibiting the discharge of weapons, is guilty of a category B felony and shall be punished by imprisonment in the state prison for a minimum term of not less than 2 years and a maximum term of not more than 15 years, or by a fine of not more than $5,000, or by both fine and imprisonment.
2. If a firearm is discharged within or out of any vehicle that is in motion or at rest and it cannot with reasonable certainty be ascertained in what county the crime was committed, the offender may be arrested and tried in any county through which the vehicle may have run on the trip during which the firearm was discharged