- if (crc_check_59684(r7, r5, 0x46335053) != 0)
- fn_59788(__func__);
-
- fn_59508();
-
- free(r7);
-}
-
-void search_lz_sections(unsigned char *fw, int len)
-{
- int i;
- unsigned char *j;
-
- for(i = 0; i < len - 4; i++) {
- if (*((unsigned int*)(fw+i)) == LZ_MAGIC) {
- j = fw + i - 1;
- if (*j != 0x00)
- continue;
- printf("0x%02x: ", i);
- j--;
- while (j > fw) {
- if (*j == 0x00) {
- if (strncmp("/web", (char*)(j+1), 4))
- break;
- printf("%s", j+1);
- extract_lz_file(fw + i, j+1);
- break;
- }
- j--;
- }
- printf("\n");
- }
+ if ((ret = crc_check_59684(r7, r5, 0x46335053)) != 0) {
+ printf("crc_check return: %d\n", ret);
+ err_exit(__func__);