I'm working on an IDAPython script to dump an IDA database into valid, ready-to-reassemble MASM. I've run into trouble just with the beginning task of outputting IDA's disassembly. generate_disassembly almost does the job, but also includes the virtual address prefixes. generate_disasm only gives a small part of disassembly for an address, omitting not only superfluous comments but also important information such as names and proc declarations. gen_disasm_text sounds like what I want, though (despite being in the Python SDK) is not idaexport and appears uncallable from Python, as it requires a text_t argument.
I'll stick with modifying the output of generate_disassembly for now, and the final version will likely do a fair amount of manually generating the text from the instruction information, but I'm wondering what the right way to do this is.







