If dcc crashes on any function during decompilation it's hard to locate the offending function, and even harder to debug the whole state of decompiled executable.
Task:
create a script that given a FILENAME will:
- run
dcc -a1 FILENAME
- extract all functions from produced
FILENAME.a1
- extract function offsets from their names
proc_001234_1 -> 0x1234
- for each function runs
dcc -E FUNCTION_OFFSET FILENAME
- reports dcc crashes in a FILENAME_CRASHES.txt containing a full command-line to reproduce the crash