Kleenex! The table I wanted to find before (which has all the routines of the setbyte effect that you found) is at 48F88. It loads the routine from that list depending on the byte you have. So that's where Wrap, Knock-Off, Petal Dance, Recharge etc. etc. are. That's probably the best place to do your stat reversals for Contrary for that effect chooser.