A person who annoyingly tries too hard to impress with their cleverness; a clever dick.
Someone who quibbles over trivia, and raises petty, annoying objections and sophistry.
An unscrupulous or unethical lawyer, especially one of lesser skill.