private byte[] Decompress(BinaryReader reader, uint compressedSize, uint uncompressedSize, Header header)
{
bool chunked = (header.Version >= FileVersion.VerChunkedCompress);
byte[] compressed = reader.ReadBytes((int)compressedSize);
return BinUtils.Decompress(compressed, (int)uncompressedSize, header.CompressionFlags, chunked);
}