http://falloutmods.wikia.com/wiki/MAP_File_Format is somewhat helpful.
Sorry if my notation is confusing. As an example, the number of local variables is stored as a 32-bit integer, occupying bytes 0x20, 21, 22, and 23. Only the last byte is non-zero, but the actual value starts at 0x20, not...