+struct file_entry {
+ char *name;
+ unsigned char *start;
+ int length;
+ unsigned char unknown;
+};
+
+struct file_entry* get_next_file(unsigned char *fw, int len);
void extract_files(unsigned char *fw, int len);
void write_file(char *fname, unsigned char *buf, int len);