That code seems interesting. Could you update here if it was working as you wanted?
I used in a built-in import reconstructor for an unpacker the method I explained before. So, I would like to know if your code is performing fine the task required in your first post.
Thanks and cheers!
Nacho_dj