http://sidneys77crlfslcr7zmj3msmxchgnxhrxlp3p3kbaswo7twchjnicid.onion/reverse-engineering/2023/02/23/reverse-engineering-a-win95-game-I.html
Note that each entry doesn’t need to store the length of the file - this is calculated from the offset of the next file
in the list or (in the case of the last entry) the end of the PAK file itself. Armed with this knowledge, let’s write a simple program to “extract” PAK files, which we’ll call pakrat .