r!sc's petite 2.2/2.1 enlarger v1.3

run enlarge.exe, select a file thats compressed with petite 2.x,
if all goes well, you will see..

hello     db  'unpacked ' <filename>

and if stuff goes wrong, you will see one of these messages instead.

packer_err  db  'program isnt packed with petite v2.x',0
exception   db  'exception occured @ %08xh, exiting',0
no_you_dont db  'hah, as if im going to unpack that!',0

if it works, it will create a file named 'un-packed.exe', OVERWRITING
any previous un-packed.exe's


support may be added for older versions of petite, if i get time.

bug reports to risc@unpacking.org


history..

v1.3
recoded commandline parser (hopefully some NT users can open files now :)


v1.2
added support for the another version of petite 2.2..
(was emailed a program packed with petite 2.2, but it looked very much
 like 2.1, cant quite figure it out. anyway, it unpacks now)

v1.1 
tiny bug fixed in pe rebuilding code..
(somehow one line of code dissapeared from my source and i didnt notice
 until christoph had already released it)

tiny bug fixed in version detection code (changed [eax+12dh] -> [eax+14eh])
(forgot to test petite 2.2 still unpacked, after adding support for v2.1)
 
seems like i have an excuse for everything! eheh..

....................................

tested versions of petite 2.2 ..
PETITE   EXE        48,034  14/12/99
PETGUI   EXE        55,588  15/12/99

and tested version of petite 2.1 ..
PETITE   EXE        46,214  13/05/99

....................................

if you have a different version of 2.1 / 2.2, and enlarge.exe doesnt unpack it,
please get in touch with me, tia!

r!sc