from sys import argv from struct import unpack as U big_endian = False if len(argv) > 2: big_endian = argv[2] == "big" with open(argv[1], "rb") as f: f.seek(0xA) if big_endian: count = U(">h", f.read(2))[0] else: count = U("iii", f.read(3 * 4)) else: entryID, paramAddr, infoAddr = U("