Pantaliano is a dirty cop who uses Leonard to make money by killing drug dealers and the like and taking their money. Decent enough character motivation and the character seems sleazy enough for it to be believable. Pretty much all complaints about the plot of that movie are the result of people not paying attention.