'=============================================================================
'
' unZix.exe 1.2 -- FREE and OPEN SOURCE -- by:  jimdunn (at) usa.net
'
' Compiled with PowerBasic Console Compiler 4.03 -- http://PowerBASIC.Com/
' I have no affiliation with PowerBASIC, except for being a satisfied customer.
'
' As I'm sure you already know, the WINZIX program is just a spyware scam, it
' doesn't even compress your files, it just concatenates them together with a
' few bytes at the top and a data region at the bottom of the new "zix" file.
'
' You should ONLY use the WinZix program if you WANT spyware on your computer.
' I have no affiliation with WinZix, except for writing unZix to unZix their Zix.
'
'=============================================================================

ZIX File Format:

The WinZix file format is fairly simple, and very similar to the way that
information is stored in .torrent files.  11 bytes at the beginning of the
"zix" file tell you where the data region of the "zix" file is located, which
is at the end of the "zix" file.

The data region is made up of small sections for each file inside of the "zix"
file.  Each section starts with a "d" and ends with an "e" and finally finishes with an "ee".

Example ZIX Data Section:

d8:announce21:http://www.winzix.com5:filesld9:attributei0e6:finishi364080803e4:name31:Heroes.S01E23.HDTV.XviD-LOL.avi4:sizei364080792e5:starti11eed9:attributei0e6:finishi364091129e4:name9:codec.exe4:sizei10326e5:starti364080803eed9:attributei0e6:finishi364181973e4:name30:Problems viewing the .AVI.html4:sizei1498e5:starti364180475eee7:foldersld9:attributei16e5:filesld9:attributei0e6:finishi364175867e4:name7:001.JPG4:sizei84738e5:starti364091129eed9:attributei0e6:finishi364180475e4:name9:Thumbs.db4:sizei4608e5:starti364175867eee4:name3:dat4:sizei0eeee

d
	8:announce
	21:http://www.winzix.com
	5:files
	l
		d
			9:attribute	i0e
			6:finish		i364080803e
			4:name		31:Heroes.S01E23.HDTV.XviD-LOL.avi
			4:size		i364080792e
			5:start		i11e
		e
		d
			9:attribute	i0e
			6:finish		i364091129e
			4:name		9:codec.exe
			4:size		i10326e
			5:start		i364080803e
		e
		d
			9:attribute	i0e
			6:finish		i364181973e
			4:name		30:Problems viewing the .AVI.html
			4:size		i1498e
			5:start		i364180475e
		e
	e
	7:folders
	l
		d
			9:attribute	i16e
			5:files
			l
				d
					9:attribute	i0e
					6:finish		i364175867e
					4:name		7:001.JPG
					4:size		i84738e
					5:start		i364091129e
				e
				d
					9:attribute	i0e
					6:finish		i364180475e
					4:name		9:Thumbs.db
					4:size		i4608e
					5:start		i364175867e
				e
			e
			4:name	3:dat
			4:size	i0e
		e
	e
e

EOF