th05/main: Split off segments 3 and 4 into a separate file

Getting rid of all the hash space hacks.