Ok, going with the motto "if it's worth doing, it's worth doing yourself"

Attached a .rc writer with test program that reads an executable and extracts the resources (icons, cursors, bitmaps...) into a debug subdirectory as well as writes an .rc script.
In other words, a resource decompiler.
Note it's not finished yet, but I'm looking forward to test results/suggestions/criticism.
This resource writer module can be used to extend fpcres so it gains .rc output functionality, but I'm currently going to use it to test the upcoming .rc=>fpcres resource reader unit.
One thing I'm struggling with is constants. A lot of them, e.g. VOS_NT_WINDOWS32 are defined in fpcres etc but of course one way: if I want to write out constant names to the .rc file when I get numeric values from fpcres I'll probably need some translation table.
I suppose there's no other way to do this?