A generalized model of rent-seeking behavior