Except in cases where a different punishment is prescribed by law, an accessory to a felony is punishable as follows:
1. If the underlying offense is a felony punishable by imprisonment in the penitentiary for four (4) years or more, the person guilty of being an accessory shall be subject to imprisonment in the penitentiary for a term not exceeding one-half (1/2) of the longest term prescribed upon a conviction for the underlying offense;
2. If the underlying offense is a felony punishable by imprisonment in the penitentiary for any time less than four (4) years, the person guilty of being an accessory shall be subject to imprisonment in a county jail for not more than one (1) year;
3. If the underlying offense be punishable by a fine only, the person guilty of being an accessory shall be subject to a fine not exceeding one-half (1/2) of the largest amount of money which may be imposed as a fine upon a conviction of the underlying offense;
4. If the underlying offense be punishable by both imprisonment and a fine, the offender convicted of being an accessory shall be subject to both imprisonment and fine, not exceeding one-half (1/2) of the longest term of imprisonment and one-half (1/2) of the largest fine which may be imposed upon a conviction of the underlying offense; and 5. If the underlying offense be murder in the first degree, the accessory thereto shall be guilty of a Class A2 felony offense and shall be punished by imprisonment for not less than five (5) years nor more than forty-five (45) years. If the underlying offense be murder in the second degree, the accessory thereto shall be guilty of a Class B1 felony offense and shall be punished by imprisonment for not less than five (5) years nor more than twenty-five (25) years.