Neat post by @2130706433 and @m0n0sapiens on scripting the Hex-Rays decompiler: https://www.fireeye.com/blog/threat-research/2018/04/solving-ad-hoc-problems-with-hex-rays-api.html

@williballenthin