Partial rewrite to decouple the UI from the disassembly management.