
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

char * get_archive_member_name_at(archive_info *arch,ulong offset,archive_info *nested_arch)

{
  int iVar1;
  size_t sVar2;
  char *pcVar3;
  char *pcVar4;
  
  iVar1 = fseek((FILE *)arch->file,offset,0);
  if (iVar1 == 0) {
    sVar2 = fread(&arch->arhdr,1,0x3c,(FILE *)arch->file);
    if (sVar2 == 0x3c) {
      if (*(short *)(arch->arhdr).ar_fmag == 0xa60) {
        pcVar3 = get_archive_member_name(arch,nested_arch);
        return pcVar3;
      }
      pcVar4 = arch->file_name;
      pcVar3 = "%s: did not find a valid archive header\n";
    }
    else {
      pcVar4 = arch->file_name;
      pcVar3 = "%s: failed to read archive header\n";
    }
  }
  else {
    pcVar4 = arch->file_name;
    pcVar3 = "%s: failed to seek to next file name\n";
  }
  pcVar3 = (char *)dcgettext(0,pcVar3,5);
  error(pcVar3,pcVar4);
  return (char *)0x0;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 FUN_00049680(undefined4 *param_1,long param_2)

{
  int iVar1;
  size_t sVar2;
  undefined4 uVar3;
  char *pcVar4;
  undefined4 uVar5;
  
  iVar1 = fseek((FILE *)param_1[1],param_2,0);
  if (iVar1 == 0) {
    sVar2 = fread(param_1 + 0xd,1,0x3c,(FILE *)param_1[1]);
    if (sVar2 == 0x3c) {
      if (*(short *)((int)param_1 + 0x6e) == 0xa60) {
        uVar3 = FUN_00049730();
        return uVar3;
      }
      uVar3 = *param_1;
      pcVar4 = "%s: did not find a valid archive header\n";
    }
    else {
      uVar3 = *param_1;
      pcVar4 = "%s: failed to read archive header\n";
    }
  }
  else {
    uVar3 = *param_1;
    pcVar4 = "%s: failed to seek to next file name\n";
  }
  uVar5 = dcgettext(0,pcVar4,5);
  error(uVar5,uVar3);
  return 0;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x10]
CALL 0x000153d0
ADD EBX,0x29974
MOV EDI,dword ptr [ESP + 0x18]
SUB ESP,0x4
PUSH 0x0
PUSH dword ptr [ESP + 0x1c]
PUSH dword ptr [ESI + 0x4]
CALL 0x00014250
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x000496e0
LEA EAX,[ESI + 0x34]
PUSH dword ptr [ESI + 0x4]
PUSH 0x3c
PUSH 0x1
PUSH EAX
CALL 0x00014310
ADD ESP,0x10
CMP EAX,0x3c
JNZ 0x00049710
CMP word ptr [ESI + 0x6e],0xa60
JNZ 0x00049720
MOV dword ptr [ESP + 0x14],EDI
MOV dword ptr [ESP + 0x10],ESI
POP EBX
POP ESI
POP EDI
JMP 0x00049730
SUB ESP,0x4
MOV ESI,dword ptr [ESI]
LEA EAX,[EBX + 0xfffe68a8]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000141f0
POP EDX
POP ECX
PUSH ESI
PUSH EAX
CALL 0x00048830
ADD ESP,0x10
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0x4
MOV ESI,dword ptr [ESI]
LEA EAX,[EBX + 0xfffe67bc]
PUSH 0x5
JMP 0x000496ed
SUB ESP,0x4
MOV ESI,dword ptr [ESI]
LEA EAX,[EBX + 0xfffe68d0]
PUSH 0x5
JMP 0x000496ed
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_00049680(undefined4 *param_1,long param_2)\n\n{\n  int iVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  \n  iVar1 = fseek((FILE *)param_1[1],param_2,0);\n  if (iVar1 == 0) {\n    sVar2 = fread(param_1 + 0xd,1,0x3c,(FILE *)param_1[1]);\n    if (sVar2 == 0x3c) {\n      if (*(short *)((int)param_1 + 0x6e) == 0xa60) {\n        uVar3 = FUN_00049730();\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar4 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      uVar3 = *param_1;\n      pcVar4 = "%s: failed to read archive header\n";\n    }\n  }\n  else {\n    uVar3 = *param_1;\n    pcVar4 = "%s: failed to seek to next file name\n";\n  }\n  uVar5 = dcgettext(0,pcVar4,5);\n  error(uVar5,uVar3);\n  return 0;\n}\n\n" comment (function_definition "undefined4 FUN_00049680(undefined4 *param_1,long param_2)\n\n{\n  int iVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  \n  iVar1 = fseek((FILE *)param_1[1],param_2,0);\n  if (iVar1 == 0) {\n    sVar2 = fread(param_1 + 0xd,1,0x3c,(FILE *)param_1[1]);\n    if (sVar2 == 0x3c) {\n      if (*(short *)((int)param_1 + 0x6e) == 0xa60) {\n        uVar3 = FUN_00049730();\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar4 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      uVar3 = *param_1;\n      pcVar4 = "%s: failed to read archive header\n";\n    }\n  }\n  else {\n    uVar3 = *param_1;\n    pcVar4 = "%s: failed to seek to next file name\n";\n  }\n  uVar5 = dcgettext(0,pcVar4,5);\n  error(uVar5,uVar3);\n  return 0;\n}" type_identifier (function_declarator "FUN_00049680(undefined4 *param_1,long param_2)" identifier (parameter_list "(undefined4 *param_1,long param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  \n  iVar1 = fseek((FILE *)param_1[1],param_2,0);\n  if (iVar1 == 0) {\n    sVar2 = fread(param_1 + 0xd,1,0x3c,(FILE *)param_1[1]);\n    if (sVar2 == 0x3c) {\n      if (*(short *)((int)param_1 + 0x6e) == 0xa60) {\n        uVar3 = FUN_00049730();\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar4 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      uVar3 = *param_1;\n      pcVar4 = "%s: failed to read archive header\n";\n    }\n  }\n  else {\n    uVar3 = *param_1;\n    pcVar4 = "%s: failed to seek to next file name\n";\n  }\n  uVar5 = dcgettext(0,pcVar4,5);\n  error(uVar5,uVar3);\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (expression_statement "iVar1 = fseek((FILE *)param_1[1],param_2,0);" (assignment_expression "iVar1 = fseek((FILE *)param_1[1],param_2,0)" identifier = (call_expression "fseek((FILE *)param_1[1],param_2,0)" identifier (argument_list "((FILE *)param_1[1],param_2,0)" ( (cast_expression "(FILE *)param_1[1]" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) , identifier , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n    sVar2 = fread(param_1 + 0xd,1,0x3c,(FILE *)param_1[1]);\n    if (sVar2 == 0x3c) {\n      if (*(short *)((int)param_1 + 0x6e) == 0xa60) {\n        uVar3 = FUN_00049730();\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar4 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      uVar3 = *param_1;\n      pcVar4 = "%s: failed to read archive header\n";\n    }\n  }\n  else {\n    uVar3 = *param_1;\n    pcVar4 = "%s: failed to seek to next file name\n";\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    sVar2 = fread(param_1 + 0xd,1,0x3c,(FILE *)param_1[1]);\n    if (sVar2 == 0x3c) {\n      if (*(short *)((int)param_1 + 0x6e) == 0xa60) {\n        uVar3 = FUN_00049730();\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar4 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      uVar3 = *param_1;\n      pcVar4 = "%s: failed to read archive header\n";\n    }\n  }" { (expression_statement "sVar2 = fread(param_1 + 0xd,1,0x3c,(FILE *)param_1[1]);" (assignment_expression "sVar2 = fread(param_1 + 0xd,1,0x3c,(FILE *)param_1[1])" identifier = (call_expression "fread(param_1 + 0xd,1,0x3c,(FILE *)param_1[1])" identifier (argument_list "(param_1 + 0xd,1,0x3c,(FILE *)param_1[1])" ( (binary_expression "param_1 + 0xd" identifier + number_literal) , number_literal , number_literal , (cast_expression "(FILE *)param_1[1]" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) )))) ;) (if_statement "if (sVar2 == 0x3c) {\n      if (*(short *)((int)param_1 + 0x6e) == 0xa60) {\n        uVar3 = FUN_00049730();\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar4 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      uVar3 = *param_1;\n      pcVar4 = "%s: failed to read archive header\n";\n    }" if (parenthesized_expression "(sVar2 == 0x3c)" ( (binary_expression "sVar2 == 0x3c" identifier == number_literal) )) (compound_statement "{\n      if (*(short *)((int)param_1 + 0x6e) == 0xa60) {\n        uVar3 = FUN_00049730();\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar4 = "%s: did not find a valid archive header\n";\n    }" { (if_statement "if (*(short *)((int)param_1 + 0x6e) == 0xa60) {\n        uVar3 = FUN_00049730();\n        return uVar3;\n      }" if (parenthesized_expression "(*(short *)((int)param_1 + 0x6e) == 0xa60)" ( (binary_expression "*(short *)((int)param_1 + 0x6e) == 0xa60" (pointer_expression "*(short *)((int)param_1 + 0x6e)" * (cast_expression "(short *)((int)param_1 + 0x6e)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x6e)" ( (binary_expression "(int)param_1 + 0x6e" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n        uVar3 = FUN_00049730();\n        return uVar3;\n      }" { (expression_statement "uVar3 = FUN_00049730();" (assignment_expression "uVar3 = FUN_00049730()" identifier = (call_expression "FUN_00049730()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar3;" return identifier ;) })) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pcVar4 = "%s: did not find a valid archive header\n";" (assignment_expression "pcVar4 = "%s: did not find a valid archive header\n"" identifier = (string_literal ""%s: did not find a valid archive header\n"" " string_content escape_sequence ")) ;) }) (else_clause "else {\n      uVar3 = *param_1;\n      pcVar4 = "%s: failed to read archive header\n";\n    }" else (compound_statement "{\n      uVar3 = *param_1;\n      pcVar4 = "%s: failed to read archive header\n";\n    }" { (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pcVar4 = "%s: failed to read archive header\n";" (assignment_expression "pcVar4 = "%s: failed to read archive header\n"" identifier = (string_literal ""%s: failed to read archive header\n"" " string_content escape_sequence ")) ;) }))) }) (else_clause "else {\n    uVar3 = *param_1;\n    pcVar4 = "%s: failed to seek to next file name\n";\n  }" else (compound_statement "{\n    uVar3 = *param_1;\n    pcVar4 = "%s: failed to seek to next file name\n";\n  }" { (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pcVar4 = "%s: failed to seek to next file name\n";" (assignment_expression "pcVar4 = "%s: failed to seek to next file name\n"" identifier = (string_literal ""%s: failed to seek to next file name\n"" " string_content escape_sequence ")) ;) }))) (expression_statement "uVar5 = dcgettext(0,pcVar4,5);" (assignment_expression "uVar5 = dcgettext(0,pcVar4,5)" identifier = (call_expression "dcgettext(0,pcVar4,5)" identifier (argument_list "(0,pcVar4,5)" ( number_literal , identifier , number_literal )))) ;) (expression_statement "error(uVar5,uVar3);" (call_expression "error(uVar5,uVar3)" identifier (argument_list "(uVar5,uVar3)" ( identifier , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * get_archive_member_name_at(archive_info *arch,ulong offset,archive_info *nested_arch)\n\n{\n  int iVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *pcVar4;\n  \n  iVar1 = fseek((FILE *)arch->file,offset,0);\n  if (iVar1 == 0) {\n    sVar2 = fread(&arch->arhdr,1,0x3c,(FILE *)arch->file);\n    if (sVar2 == 0x3c) {\n      if (*(short *)(arch->arhdr).ar_fmag == 0xa60) {\n        pcVar3 = get_archive_member_name(arch,nested_arch);\n        return pcVar3;\n      }\n      pcVar4 = arch->file_name;\n      pcVar3 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      pcVar4 = arch->file_name;\n      pcVar3 = "%s: failed to read archive header\n";\n    }\n  }\n  else {\n    pcVar4 = arch->file_name;\n    pcVar3 = "%s: failed to seek to next file name\n";\n  }\n  pcVar3 = (char *)dcgettext(0,pcVar3,5);\n  error(pcVar3,pcVar4);\n  return (char *)0x0;\n}\n\n" comment (function_definition "char * get_archive_member_name_at(archive_info *arch,ulong offset,archive_info *nested_arch)\n\n{\n  int iVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *pcVar4;\n  \n  iVar1 = fseek((FILE *)arch->file,offset,0);\n  if (iVar1 == 0) {\n    sVar2 = fread(&arch->arhdr,1,0x3c,(FILE *)arch->file);\n    if (sVar2 == 0x3c) {\n      if (*(short *)(arch->arhdr).ar_fmag == 0xa60) {\n        pcVar3 = get_archive_member_name(arch,nested_arch);\n        return pcVar3;\n      }\n      pcVar4 = arch->file_name;\n      pcVar3 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      pcVar4 = arch->file_name;\n      pcVar3 = "%s: failed to read archive header\n";\n    }\n  }\n  else {\n    pcVar4 = arch->file_name;\n    pcVar3 = "%s: failed to seek to next file name\n";\n  }\n  pcVar3 = (char *)dcgettext(0,pcVar3,5);\n  error(pcVar3,pcVar4);\n  return (char *)0x0;\n}" primitive_type (pointer_declarator "* get_archive_member_name_at(archive_info *arch,ulong offset,archive_info *nested_arch)" * (function_declarator "get_archive_member_name_at(archive_info *arch,ulong offset,archive_info *nested_arch)" identifier (parameter_list "(archive_info *arch,ulong offset,archive_info *nested_arch)" ( (parameter_declaration "archive_info *arch" type_identifier (pointer_declarator "*arch" * identifier)) , (parameter_declaration "ulong offset" type_identifier identifier) , (parameter_declaration "archive_info *nested_arch" type_identifier (pointer_declarator "*nested_arch" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  char *pcVar3;\n  char *pcVar4;\n  \n  iVar1 = fseek((FILE *)arch->file,offset,0);\n  if (iVar1 == 0) {\n    sVar2 = fread(&arch->arhdr,1,0x3c,(FILE *)arch->file);\n    if (sVar2 == 0x3c) {\n      if (*(short *)(arch->arhdr).ar_fmag == 0xa60) {\n        pcVar3 = get_archive_member_name(arch,nested_arch);\n        return pcVar3;\n      }\n      pcVar4 = arch->file_name;\n      pcVar3 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      pcVar4 = arch->file_name;\n      pcVar3 = "%s: failed to read archive header\n";\n    }\n  }\n  else {\n    pcVar4 = arch->file_name;\n    pcVar3 = "%s: failed to seek to next file name\n";\n  }\n  pcVar3 = (char *)dcgettext(0,pcVar3,5);\n  error(pcVar3,pcVar4);\n  return (char *)0x0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (expression_statement "iVar1 = fseek((FILE *)arch->file,offset,0);" (assignment_expression "iVar1 = fseek((FILE *)arch->file,offset,0)" identifier = (call_expression "fseek((FILE *)arch->file,offset,0)" identifier (argument_list "((FILE *)arch->file,offset,0)" ( (cast_expression "(FILE *)arch->file" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "arch->file" identifier -> field_identifier)) , identifier , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n    sVar2 = fread(&arch->arhdr,1,0x3c,(FILE *)arch->file);\n    if (sVar2 == 0x3c) {\n      if (*(short *)(arch->arhdr).ar_fmag == 0xa60) {\n        pcVar3 = get_archive_member_name(arch,nested_arch);\n        return pcVar3;\n      }\n      pcVar4 = arch->file_name;\n      pcVar3 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      pcVar4 = arch->file_name;\n      pcVar3 = "%s: failed to read archive header\n";\n    }\n  }\n  else {\n    pcVar4 = arch->file_name;\n    pcVar3 = "%s: failed to seek to next file name\n";\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    sVar2 = fread(&arch->arhdr,1,0x3c,(FILE *)arch->file);\n    if (sVar2 == 0x3c) {\n      if (*(short *)(arch->arhdr).ar_fmag == 0xa60) {\n        pcVar3 = get_archive_member_name(arch,nested_arch);\n        return pcVar3;\n      }\n      pcVar4 = arch->file_name;\n      pcVar3 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      pcVar4 = arch->file_name;\n      pcVar3 = "%s: failed to read archive header\n";\n    }\n  }" { (expression_statement "sVar2 = fread(&arch->arhdr,1,0x3c,(FILE *)arch->file);" (assignment_expression "sVar2 = fread(&arch->arhdr,1,0x3c,(FILE *)arch->file)" identifier = (call_expression "fread(&arch->arhdr,1,0x3c,(FILE *)arch->file)" identifier (argument_list "(&arch->arhdr,1,0x3c,(FILE *)arch->file)" ( (pointer_expression "&arch->arhdr" & (field_expression "arch->arhdr" identifier -> field_identifier)) , number_literal , number_literal , (cast_expression "(FILE *)arch->file" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "arch->file" identifier -> field_identifier)) )))) ;) (if_statement "if (sVar2 == 0x3c) {\n      if (*(short *)(arch->arhdr).ar_fmag == 0xa60) {\n        pcVar3 = get_archive_member_name(arch,nested_arch);\n        return pcVar3;\n      }\n      pcVar4 = arch->file_name;\n      pcVar3 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      pcVar4 = arch->file_name;\n      pcVar3 = "%s: failed to read archive header\n";\n    }" if (parenthesized_expression "(sVar2 == 0x3c)" ( (binary_expression "sVar2 == 0x3c" identifier == number_literal) )) (compound_statement "{\n      if (*(short *)(arch->arhdr).ar_fmag == 0xa60) {\n        pcVar3 = get_archive_member_name(arch,nested_arch);\n        return pcVar3;\n      }\n      pcVar4 = arch->file_name;\n      pcVar3 = "%s: did not find a valid archive header\n";\n    }" { (if_statement "if (*(short *)(arch->arhdr).ar_fmag == 0xa60) {\n        pcVar3 = get_archive_member_name(arch,nested_arch);\n        return pcVar3;\n      }" if (parenthesized_expression "(*(short *)(arch->arhdr).ar_fmag == 0xa60)" ( (binary_expression "*(short *)(arch->arhdr).ar_fmag == 0xa60" (pointer_expression "*(short *)(arch->arhdr).ar_fmag" * (cast_expression "(short *)(arch->arhdr).ar_fmag" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (field_expression "(arch->arhdr).ar_fmag" (parenthesized_expression "(arch->arhdr)" ( (field_expression "arch->arhdr" identifier -> field_identifier) )) . field_identifier))) == number_literal) )) (compound_statement "{\n        pcVar3 = get_archive_member_name(arch,nested_arch);\n        return pcVar3;\n      }" { (expression_statement "pcVar3 = get_archive_member_name(arch,nested_arch);" (assignment_expression "pcVar3 = get_archive_member_name(arch,nested_arch)" identifier = (call_expression "get_archive_member_name(arch,nested_arch)" identifier (argument_list "(arch,nested_arch)" ( identifier , identifier )))) ;) (return_statement "return pcVar3;" return identifier ;) })) (expression_statement "pcVar4 = arch->file_name;" (assignment_expression "pcVar4 = arch->file_name" identifier = (field_expression "arch->file_name" identifier -> field_identifier)) ;) (expression_statement "pcVar3 = "%s: did not find a valid archive header\n";" (assignment_expression "pcVar3 = "%s: did not find a valid archive header\n"" identifier = (string_literal ""%s: did not find a valid archive header\n"" " string_content escape_sequence ")) ;) }) (else_clause "else {\n      pcVar4 = arch->file_name;\n      pcVar3 = "%s: failed to read archive header\n";\n    }" else (compound_statement "{\n      pcVar4 = arch->file_name;\n      pcVar3 = "%s: failed to read archive header\n";\n    }" { (expression_statement "pcVar4 = arch->file_name;" (assignment_expression "pcVar4 = arch->file_name" identifier = (field_expression "arch->file_name" identifier -> field_identifier)) ;) (expression_statement "pcVar3 = "%s: failed to read archive header\n";" (assignment_expression "pcVar3 = "%s: failed to read archive header\n"" identifier = (string_literal ""%s: failed to read archive header\n"" " string_content escape_sequence ")) ;) }))) }) (else_clause "else {\n    pcVar4 = arch->file_name;\n    pcVar3 = "%s: failed to seek to next file name\n";\n  }" else (compound_statement "{\n    pcVar4 = arch->file_name;\n    pcVar3 = "%s: failed to seek to next file name\n";\n  }" { (expression_statement "pcVar4 = arch->file_name;" (assignment_expression "pcVar4 = arch->file_name" identifier = (field_expression "arch->file_name" identifier -> field_identifier)) ;) (expression_statement "pcVar3 = "%s: failed to seek to next file name\n";" (assignment_expression "pcVar3 = "%s: failed to seek to next file name\n"" identifier = (string_literal ""%s: failed to seek to next file name\n"" " string_content escape_sequence ")) ;) }))) (expression_statement "pcVar3 = (char *)dcgettext(0,pcVar3,5);" (assignment_expression "pcVar3 = (char *)dcgettext(0,pcVar3,5)" identifier = (cast_expression "(char *)dcgettext(0,pcVar3,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,pcVar3,5)" identifier (argument_list "(0,pcVar3,5)" ( number_literal , identifier , number_literal ))))) ;) (expression_statement "error(pcVar3,pcVar4);" (call_expression "error(pcVar3,pcVar4)" identifier (argument_list "(pcVar3,pcVar4)" ( identifier , identifier ))) ;) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "undefined4 FUN_00049680(undefined4 *param_1,long param_2)\n\n{\n  int iVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  \n  iVar1 = fseek((FILE *)param_1[1],param_2,0);\n  if (iVar1 == 0) {\n    sVar2 = fread(param_1 + 0xd,1,0x3c,(FILE *)param_1[1]);\n    if (sVar2 == 0x3c) {\n      if (*(short *)((int)param_1 + 0x6e) == 0xa60) {\n        uVar3 = FUN_00049730();\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar4 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      uVar3 = *param_1;\n      pcVar4 = "%s: failed to read archive header\n";\n    }\n  }\n  else {\n    uVar3 = *param_1;\n    pcVar4 = "%s: failed to seek to next file name\n";\n  }\n  uVar5 = dcgettext(0,pcVar4,5);\n  error(uVar5,uVar3);\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00049680(undefined4 *param_1,long param_2)\n\n{\n  int iVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  \n  iVar1 = fseek((FILE *)param_1[1],param_2,0);\n  if (iVar1 == 0) {\n    sVar2 = fread(param_1 + 0xd,1,0x3c,(FILE *)param_1[1]);\n    if (sVar2 == 0x3c) {\n      if (*(short *)((int)param_1 + 0x6e) == 0xa60) {\n        uVar3 = FUN_00049730();\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar4 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      uVar3 = *param_1;\n      pcVar4 = "%s: failed to read archive header\n";\n    }\n  }\n  else {\n    uVar3 = *param_1;\n    pcVar4 = "%s: failed to seek to next file name\n";\n  }\n  uVar5 = dcgettext(0,pcVar4,5);\n  error(uVar5,uVar3);\n  return 0;\n}" type_identifier (function_declarator "FUN_00049680(undefined4 *param_1,long param_2)" identifier (parameter_list "(undefined4 *param_1,long param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  \n  iVar1 = fseek((FILE *)param_1[1],param_2,0);\n  if (iVar1 == 0) {\n    sVar2 = fread(param_1 + 0xd,1,0x3c,(FILE *)param_1[1]);\n    if (sVar2 == 0x3c) {\n      if (*(short *)((int)param_1 + 0x6e) == 0xa60) {\n        uVar3 = FUN_00049730();\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar4 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      uVar3 = *param_1;\n      pcVar4 = "%s: failed to read archive header\n";\n    }\n  }\n  else {\n    uVar3 = *param_1;\n    pcVar4 = "%s: failed to seek to next file name\n";\n  }\n  uVar5 = dcgettext(0,pcVar4,5);\n  error(uVar5,uVar3);\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (expression_statement "iVar1 = fseek((FILE *)param_1[1],param_2,0);" (assignment_expression "iVar1 = fseek((FILE *)param_1[1],param_2,0)" identifier = (call_expression "fseek((FILE *)param_1[1],param_2,0)" identifier (argument_list "((FILE *)param_1[1],param_2,0)" ( (cast_expression "(FILE *)param_1[1]" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) , identifier , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n    sVar2 = fread(param_1 + 0xd,1,0x3c,(FILE *)param_1[1]);\n    if (sVar2 == 0x3c) {\n      if (*(short *)((int)param_1 + 0x6e) == 0xa60) {\n        uVar3 = FUN_00049730();\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar4 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      uVar3 = *param_1;\n      pcVar4 = "%s: failed to read archive header\n";\n    }\n  }\n  else {\n    uVar3 = *param_1;\n    pcVar4 = "%s: failed to seek to next file name\n";\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    sVar2 = fread(param_1 + 0xd,1,0x3c,(FILE *)param_1[1]);\n    if (sVar2 == 0x3c) {\n      if (*(short *)((int)param_1 + 0x6e) == 0xa60) {\n        uVar3 = FUN_00049730();\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar4 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      uVar3 = *param_1;\n      pcVar4 = "%s: failed to read archive header\n";\n    }\n  }" { (expression_statement "sVar2 = fread(param_1 + 0xd,1,0x3c,(FILE *)param_1[1]);" (assignment_expression "sVar2 = fread(param_1 + 0xd,1,0x3c,(FILE *)param_1[1])" identifier = (call_expression "fread(param_1 + 0xd,1,0x3c,(FILE *)param_1[1])" identifier (argument_list "(param_1 + 0xd,1,0x3c,(FILE *)param_1[1])" ( (binary_expression "param_1 + 0xd" identifier + number_literal) , number_literal , number_literal , (cast_expression "(FILE *)param_1[1]" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) )))) ;) (if_statement "if (sVar2 == 0x3c) {\n      if (*(short *)((int)param_1 + 0x6e) == 0xa60) {\n        uVar3 = FUN_00049730();\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar4 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      uVar3 = *param_1;\n      pcVar4 = "%s: failed to read archive header\n";\n    }" if (parenthesized_expression "(sVar2 == 0x3c)" ( (binary_expression "sVar2 == 0x3c" identifier == number_literal) )) (compound_statement "{\n      if (*(short *)((int)param_1 + 0x6e) == 0xa60) {\n        uVar3 = FUN_00049730();\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar4 = "%s: did not find a valid archive header\n";\n    }" { (if_statement "if (*(short *)((int)param_1 + 0x6e) == 0xa60) {\n        uVar3 = FUN_00049730();\n        return uVar3;\n      }" if (parenthesized_expression "(*(short *)((int)param_1 + 0x6e) == 0xa60)" ( (binary_expression "*(short *)((int)param_1 + 0x6e) == 0xa60" (pointer_expression "*(short *)((int)param_1 + 0x6e)" * (cast_expression "(short *)((int)param_1 + 0x6e)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x6e)" ( (binary_expression "(int)param_1 + 0x6e" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n        uVar3 = FUN_00049730();\n        return uVar3;\n      }" { (expression_statement "uVar3 = FUN_00049730();" (assignment_expression "uVar3 = FUN_00049730()" identifier = (call_expression "FUN_00049730()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar3;" return identifier ;) })) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pcVar4 = "%s: did not find a valid archive header\n";" (assignment_expression "pcVar4 = "%s: did not find a valid archive header\n"" identifier = (string_literal ""%s: did not find a valid archive header\n"" " string_content escape_sequence ")) ;) }) (else_clause "else {\n      uVar3 = *param_1;\n      pcVar4 = "%s: failed to read archive header\n";\n    }" else (compound_statement "{\n      uVar3 = *param_1;\n      pcVar4 = "%s: failed to read archive header\n";\n    }" { (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pcVar4 = "%s: failed to read archive header\n";" (assignment_expression "pcVar4 = "%s: failed to read archive header\n"" identifier = (string_literal ""%s: failed to read archive header\n"" " string_content escape_sequence ")) ;) }))) }) (else_clause "else {\n    uVar3 = *param_1;\n    pcVar4 = "%s: failed to seek to next file name\n";\n  }" else (compound_statement "{\n    uVar3 = *param_1;\n    pcVar4 = "%s: failed to seek to next file name\n";\n  }" { (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pcVar4 = "%s: failed to seek to next file name\n";" (assignment_expression "pcVar4 = "%s: failed to seek to next file name\n"" identifier = (string_literal ""%s: failed to seek to next file name\n"" " string_content escape_sequence ")) ;) }))) (expression_statement "uVar5 = dcgettext(0,pcVar4,5);" (assignment_expression "uVar5 = dcgettext(0,pcVar4,5)" identifier = (call_expression "dcgettext(0,pcVar4,5)" identifier (argument_list "(0,pcVar4,5)" ( number_literal , identifier , number_literal )))) ;) (expression_statement "error(uVar5,uVar3);" (call_expression "error(uVar5,uVar3)" identifier (argument_list "(uVar5,uVar3)" ( identifier , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , LIT , LIT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content escape_sequence ")) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content escape_sequence ")) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content escape_sequence ")) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00049680(undefined4 *param_1,long param_2)\n\n{\n  int iVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  \n  iVar1 = fseek((FILE *)param_1[1],param_2,0);\n  if (iVar1 == 0) {\n    sVar2 = fread(param_1 + 0xd,1,0x3c,(FILE *)param_1[1]);\n    if (sVar2 == 0x3c) {\n      if (*(short *)((int)param_1 + 0x6e) == 0xa60) {\n        uVar3 = FUN_00049730();\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar4 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      uVar3 = *param_1;\n      pcVar4 = "%s: failed to read archive header\n";\n    }\n  }\n  else {\n    uVar3 = *param_1;\n    pcVar4 = "%s: failed to seek to next file name\n";\n  }\n  uVar5 = dcgettext(0,pcVar4,5);\n  error(uVar5,uVar3);\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_00049680(undefined4 *param_1,long param_2)" (identifier "FUN_00049680") (parameter_list "(undefined4 *param_1,long param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  \n  iVar1 = fseek((FILE *)param_1[1],param_2,0);\n  if (iVar1 == 0) {\n    sVar2 = fread(param_1 + 0xd,1,0x3c,(FILE *)param_1[1]);\n    if (sVar2 == 0x3c) {\n      if (*(short *)((int)param_1 + 0x6e) == 0xa60) {\n        uVar3 = FUN_00049730();\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar4 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      uVar3 = *param_1;\n      pcVar4 = "%s: failed to read archive header\n";\n    }\n  }\n  else {\n    uVar3 = *param_1;\n    pcVar4 = "%s: failed to seek to next file name\n";\n  }\n  uVar5 = dcgettext(0,pcVar4,5);\n  error(uVar5,uVar3);\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (expression_statement "iVar1 = fseek((FILE *)param_1[1],param_2,0);" (assignment_expression "iVar1 = fseek((FILE *)param_1[1],param_2,0)" (identifier "iVar1") (= "=") (call_expression "fseek((FILE *)param_1[1],param_2,0)" (identifier "fseek") (argument_list "((FILE *)param_1[1],param_2,0)" (( "(") (cast_expression "(FILE *)param_1[1]" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (, ",") (identifier "param_2") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    sVar2 = fread(param_1 + 0xd,1,0x3c,(FILE *)param_1[1]);\n    if (sVar2 == 0x3c) {\n      if (*(short *)((int)param_1 + 0x6e) == 0xa60) {\n        uVar3 = FUN_00049730();\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar4 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      uVar3 = *param_1;\n      pcVar4 = "%s: failed to read archive header\n";\n    }\n  }\n  else {\n    uVar3 = *param_1;\n    pcVar4 = "%s: failed to seek to next file name\n";\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    sVar2 = fread(param_1 + 0xd,1,0x3c,(FILE *)param_1[1]);\n    if (sVar2 == 0x3c) {\n      if (*(short *)((int)param_1 + 0x6e) == 0xa60) {\n        uVar3 = FUN_00049730();\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar4 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      uVar3 = *param_1;\n      pcVar4 = "%s: failed to read archive header\n";\n    }\n  }" ({ "{") (expression_statement "sVar2 = fread(param_1 + 0xd,1,0x3c,(FILE *)param_1[1]);" (assignment_expression "sVar2 = fread(param_1 + 0xd,1,0x3c,(FILE *)param_1[1])" (identifier "sVar2") (= "=") (call_expression "fread(param_1 + 0xd,1,0x3c,(FILE *)param_1[1])" (identifier "fread") (argument_list "(param_1 + 0xd,1,0x3c,(FILE *)param_1[1])" (( "(") (binary_expression "param_1 + 0xd" (identifier "param_1") (+ "+") (number_literal "0xd")) (, ",") (number_literal "1") (, ",") (number_literal "0x3c") (, ",") (cast_expression "(FILE *)param_1[1]" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) () ")")))) (; ";")) (if_statement "if (sVar2 == 0x3c) {\n      if (*(short *)((int)param_1 + 0x6e) == 0xa60) {\n        uVar3 = FUN_00049730();\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar4 = "%s: did not find a valid archive header\n";\n    }\n    else {\n      uVar3 = *param_1;\n      pcVar4 = "%s: failed to read archive header\n";\n    }" (if "if") (parenthesized_expression "(sVar2 == 0x3c)" (( "(") (binary_expression "sVar2 == 0x3c" (identifier "sVar2") (== "==") (number_literal "0x3c")) () ")")) (compound_statement "{\n      if (*(short *)((int)param_1 + 0x6e) == 0xa60) {\n        uVar3 = FUN_00049730();\n        return uVar3;\n      }\n      uVar3 = *param_1;\n      pcVar4 = "%s: did not find a valid archive header\n";\n    }" ({ "{") (if_statement "if (*(short *)((int)param_1 + 0x6e) == 0xa60) {\n        uVar3 = FUN_00049730();\n        return uVar3;\n      }" (if "if") (parenthesized_expression "(*(short *)((int)param_1 + 0x6e) == 0xa60)" (( "(") (binary_expression "*(short *)((int)param_1 + 0x6e) == 0xa60" (pointer_expression "*(short *)((int)param_1 + 0x6e)" (* "*") (cast_expression "(short *)((int)param_1 + 0x6e)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x6e)" (( "(") (binary_expression "(int)param_1 + 0x6e" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x6e")) () ")")))) (== "==") (number_literal "0xa60")) () ")")) (compound_statement "{\n        uVar3 = FUN_00049730();\n        return uVar3;\n      }" ({ "{") (expression_statement "uVar3 = FUN_00049730();" (assignment_expression "uVar3 = FUN_00049730()" (identifier "uVar3") (= "=") (call_expression "FUN_00049730()" (identifier "FUN_00049730") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" (identifier "uVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "pcVar4 = "%s: did not find a valid archive header\n";" (assignment_expression "pcVar4 = "%s: did not find a valid archive header\n"" (identifier "pcVar4") (= "=") (string_literal ""%s: did not find a valid archive header\n"" (" """) (string_content "%s: did not find a valid archive header") (escape_sequence "\n") (" """))) (; ";")) (} "}")) (else_clause "else {\n      uVar3 = *param_1;\n      pcVar4 = "%s: failed to read archive header\n";\n    }" (else "else") (compound_statement "{\n      uVar3 = *param_1;\n      pcVar4 = "%s: failed to read archive header\n";\n    }" ({ "{") (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" (identifier "uVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "pcVar4 = "%s: failed to read archive header\n";" (assignment_expression "pcVar4 = "%s: failed to read archive header\n"" (identifier "pcVar4") (= "=") (string_literal ""%s: failed to read archive header\n"" (" """) (string_content "%s: failed to read archive header") (escape_sequence "\n") (" """))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n    uVar3 = *param_1;\n    pcVar4 = "%s: failed to seek to next file name\n";\n  }" (else "else") (compound_statement "{\n    uVar3 = *param_1;\n    pcVar4 = "%s: failed to seek to next file name\n";\n  }" ({ "{") (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" (identifier "uVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "pcVar4 = "%s: failed to seek to next file name\n";" (assignment_expression "pcVar4 = "%s: failed to seek to next file name\n"" (identifier "pcVar4") (= "=") (string_literal ""%s: failed to seek to next file name\n"" (" """) (string_content "%s: failed to seek to next file name") (escape_sequence "\n") (" """))) (; ";")) (} "}")))) (expression_statement "uVar5 = dcgettext(0,pcVar4,5);" (assignment_expression "uVar5 = dcgettext(0,pcVar4,5)" (identifier "uVar5") (= "=") (call_expression "dcgettext(0,pcVar4,5)" (identifier "dcgettext") (argument_list "(0,pcVar4,5)" (( "(") (number_literal "0") (, ",") (identifier "pcVar4") (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "error(uVar5,uVar3);" (call_expression "error(uVar5,uVar3)" (identifier "error") (argument_list "(uVar5,uVar3)" (( "(") (identifier "uVar5") (, ",") (identifier "uVar3") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

char * function_1(type_1 *arch,type_2 offset,type_1 *nested_arch)

{
  int var_2;
  size_t var_4;
  char *pcVar3;
  char *pcVar4;
  
  var_2 = var_1((type_3 *)arch->file,offset,0);
  if (var_2 == 0) {
    var_4 = var_3(&arch->arhdr,1,0x3c,(type_3 *)arch->file);
    if (var_4 == 0x3c) {
      if (*(short *)(arch->arhdr).ar_fmag == 0xa60) {
        pcVar3 = var_5(arch,nested_arch);
        return pcVar3;
      }
      pcVar4 = arch->file_name;
      pcVar3 = "%s: did not find a valid archive header\n";
    }
    else {
      pcVar4 = arch->file_name;
      pcVar3 = "%s: failed to read archive header\n";
    }
  }
  else {
    pcVar4 = arch->file_name;
    pcVar3 = "%s: failed to seek to next file name\n";
  }
  pcVar3 = (char *)var_6(0,pcVar3,5);
  var_7(pcVar3,pcVar4);
  return (char *)0x0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (sized_type_specifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (number_literal) (number_literal) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content) (escape_sequence))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content) (escape_sequence)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content) (escape_sequence))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (return_statement (number_literal)))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 MASKED(undefined4 *param_1,long param_2)

{
  int iVar1;
  size_t sVar2;
  undefined4 uVar3;
  char *pcVar4;
  undefined4 uVar5;
  
  iVar1 = fseek((FILE *)param_1[1],param_2,0);
  if (iVar1 == 0) {
    sVar2 = fread(param_1 + 0xd,1,0x3c,(FILE *)param_1[1]);
    if (sVar2 == 0x3c) {
      if (*(short *)((int)param_1 + 0x6e) == 0xa60) {
        uVar3 = FUN_00049730();
        return uVar3;
      }
      uVar3 = *param_1;
      pcVar4 = "%s: did not find a valid archive header\n";
    }
    else {
      uVar3 = *param_1;
      pcVar4 = "%s: failed to read archive header\n";
    }
  }
  else {
    uVar3 = *param_1;
    pcVar4 = "%s: failed to seek to next file name\n";
  }
  uVar5 = dcgettext(0,pcVar4,5);
  error(uVar5,uVar3);
  return 0;
}

