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

void find_longest_section_name(bfd *abfd,asection *section,void *data)

{
  bfd_boolean bVar1;
  size_t sVar2;
  
  if ((section->flags & 0x100000) == 0) {
    bVar1 = process_section_p(section);
    if (bVar1 != 0) {
      sVar2 = strlen(section->name);
                    /* WARNING: Load size is inaccurate */
      if (*data < (int)sVar2) {
        *(size_t *)data = sVar2;
        return;
      }
    }
  }
  return;
}



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

void FUN_00018410(undefined4 param_1,undefined4 *param_2,size_t *param_3)

{
  int iVar1;
  size_t sVar2;
  
  if ((*(byte *)((int)param_2 + 0x16) & 0x10) == 0) {
    iVar1 = FUN_000175a0(0x18417);
    if (iVar1 != 0) {
      sVar2 = strlen((char *)*param_2);
      if ((int)*param_3 < (int)sVar2) {
        *param_3 = sVar2;
        return;
      }
    }
  }
  return;
}


PUSH ESI
PUSH EBX
CALL 0x000153d0
ADD EBX,0x5abe9
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x14]
TEST byte ptr [ESI + 0x16],0x10
JZ 0x00018430
ADD ESP,0x4
POP EBX
POP ESI
RET
MOV EAX,ESI
CALL 0x000175a0
TEST EAX,EAX
JZ 0x0001842a
SUB ESP,0xc
PUSH dword ptr [ESI]
CALL 0x00014480
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x18]
CMP EAX,dword ptr [EDX]
JLE 0x0001842a
MOV dword ptr [EDX],EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00018410(undefined4 param_1,undefined4 *param_2,size_t *param_3)\n\n{\n  int iVar1;\n  size_t sVar2;\n  \n  if ((*(byte *)((int)param_2 + 0x16) & 0x10) == 0) {\n    iVar1 = FUN_000175a0(0x18417);\n    if (iVar1 != 0) {\n      sVar2 = strlen((char *)*param_2);\n      if ((int)*param_3 < (int)sVar2) {\n        *param_3 = sVar2;\n        return;\n      }\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00018410(undefined4 param_1,undefined4 *param_2,size_t *param_3)\n\n{\n  int iVar1;\n  size_t sVar2;\n  \n  if ((*(byte *)((int)param_2 + 0x16) & 0x10) == 0) {\n    iVar1 = FUN_000175a0(0x18417);\n    if (iVar1 != 0) {\n      sVar2 = strlen((char *)*param_2);\n      if ((int)*param_3 < (int)sVar2) {\n        *param_3 = sVar2;\n        return;\n      }\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00018410(undefined4 param_1,undefined4 *param_2,size_t *param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2,size_t *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "size_t *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  \n  if ((*(byte *)((int)param_2 + 0x16) & 0x10) == 0) {\n    iVar1 = FUN_000175a0(0x18417);\n    if (iVar1 != 0) {\n      sVar2 = strlen((char *)*param_2);\n      if ((int)*param_3 < (int)sVar2) {\n        *param_3 = sVar2;\n        return;\n      }\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (if_statement "if ((*(byte *)((int)param_2 + 0x16) & 0x10) == 0) {\n    iVar1 = FUN_000175a0(0x18417);\n    if (iVar1 != 0) {\n      sVar2 = strlen((char *)*param_2);\n      if ((int)*param_3 < (int)sVar2) {\n        *param_3 = sVar2;\n        return;\n      }\n    }\n  }" if (parenthesized_expression "((*(byte *)((int)param_2 + 0x16) & 0x10) == 0)" ( (binary_expression "(*(byte *)((int)param_2 + 0x16) & 0x10) == 0" (parenthesized_expression "(*(byte *)((int)param_2 + 0x16) & 0x10)" ( (binary_expression "*(byte *)((int)param_2 + 0x16) & 0x10" (pointer_expression "*(byte *)((int)param_2 + 0x16)" * (cast_expression "(byte *)((int)param_2 + 0x16)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 0x16)" ( (binary_expression "(int)param_2 + 0x16" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    iVar1 = FUN_000175a0(0x18417);\n    if (iVar1 != 0) {\n      sVar2 = strlen((char *)*param_2);\n      if ((int)*param_3 < (int)sVar2) {\n        *param_3 = sVar2;\n        return;\n      }\n    }\n  }" { (expression_statement "iVar1 = FUN_000175a0(0x18417);" (assignment_expression "iVar1 = FUN_000175a0(0x18417)" identifier = (call_expression "FUN_000175a0(0x18417)" identifier (argument_list "(0x18417)" ( number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n      sVar2 = strlen((char *)*param_2);\n      if ((int)*param_3 < (int)sVar2) {\n        *param_3 = sVar2;\n        return;\n      }\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      sVar2 = strlen((char *)*param_2);\n      if ((int)*param_3 < (int)sVar2) {\n        *param_3 = sVar2;\n        return;\n      }\n    }" { (expression_statement "sVar2 = strlen((char *)*param_2);" (assignment_expression "sVar2 = strlen((char *)*param_2)" identifier = (call_expression "strlen((char *)*param_2)" identifier (argument_list "((char *)*param_2)" ( (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) )))) ;) (if_statement "if ((int)*param_3 < (int)sVar2) {\n        *param_3 = sVar2;\n        return;\n      }" if (parenthesized_expression "((int)*param_3 < (int)sVar2)" ( (binary_expression "(int)*param_3 < (int)sVar2" (cast_expression "(int)*param_3" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*param_3" * identifier)) < (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        *param_3 = sVar2;\n        return;\n      }" { (expression_statement "*param_3 = sVar2;" (assignment_expression "*param_3 = sVar2" (pointer_expression "*param_3" * identifier) = identifier) ;) (return_statement "return;" return ;) })) })) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid find_longest_section_name(bfd *abfd,asection *section,void *data)\n\n{\n  bfd_boolean bVar1;\n  size_t sVar2;\n  \n  if ((section->flags & 0x100000) == 0) {\n    bVar1 = process_section_p(section);\n    if (bVar1 != 0) {\n      sVar2 = strlen(section->name);\n                    /* WARNING: Load size is inaccurate */\n      if (*data < (int)sVar2) {\n        *(size_t *)data = sVar2;\n        return;\n      }\n    }\n  }\n  return;\n}\n\n" comment comment (function_definition "void find_longest_section_name(bfd *abfd,asection *section,void *data)\n\n{\n  bfd_boolean bVar1;\n  size_t sVar2;\n  \n  if ((section->flags & 0x100000) == 0) {\n    bVar1 = process_section_p(section);\n    if (bVar1 != 0) {\n      sVar2 = strlen(section->name);\n                    /* WARNING: Load size is inaccurate */\n      if (*data < (int)sVar2) {\n        *(size_t *)data = sVar2;\n        return;\n      }\n    }\n  }\n  return;\n}" primitive_type (function_declarator "find_longest_section_name(bfd *abfd,asection *section,void *data)" identifier (parameter_list "(bfd *abfd,asection *section,void *data)" ( (parameter_declaration "bfd *abfd" type_identifier (pointer_declarator "*abfd" * identifier)) , (parameter_declaration "asection *section" type_identifier (pointer_declarator "*section" * identifier)) , (parameter_declaration "void *data" primitive_type (pointer_declarator "*data" * identifier)) ))) (compound_statement "{\n  bfd_boolean bVar1;\n  size_t sVar2;\n  \n  if ((section->flags & 0x100000) == 0) {\n    bVar1 = process_section_p(section);\n    if (bVar1 != 0) {\n      sVar2 = strlen(section->name);\n                    /* WARNING: Load size is inaccurate */\n      if (*data < (int)sVar2) {\n        *(size_t *)data = sVar2;\n        return;\n      }\n    }\n  }\n  return;\n}" { (declaration "bfd_boolean bVar1;" type_identifier identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (if_statement "if ((section->flags & 0x100000) == 0) {\n    bVar1 = process_section_p(section);\n    if (bVar1 != 0) {\n      sVar2 = strlen(section->name);\n                    /* WARNING: Load size is inaccurate */\n      if (*data < (int)sVar2) {\n        *(size_t *)data = sVar2;\n        return;\n      }\n    }\n  }" if (parenthesized_expression "((section->flags & 0x100000) == 0)" ( (binary_expression "(section->flags & 0x100000) == 0" (parenthesized_expression "(section->flags & 0x100000)" ( (binary_expression "section->flags & 0x100000" (field_expression "section->flags" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    bVar1 = process_section_p(section);\n    if (bVar1 != 0) {\n      sVar2 = strlen(section->name);\n                    /* WARNING: Load size is inaccurate */\n      if (*data < (int)sVar2) {\n        *(size_t *)data = sVar2;\n        return;\n      }\n    }\n  }" { (expression_statement "bVar1 = process_section_p(section);" (assignment_expression "bVar1 = process_section_p(section)" identifier = (call_expression "process_section_p(section)" identifier (argument_list "(section)" ( identifier )))) ;) (if_statement "if (bVar1 != 0) {\n      sVar2 = strlen(section->name);\n                    /* WARNING: Load size is inaccurate */\n      if (*data < (int)sVar2) {\n        *(size_t *)data = sVar2;\n        return;\n      }\n    }" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      sVar2 = strlen(section->name);\n                    /* WARNING: Load size is inaccurate */\n      if (*data < (int)sVar2) {\n        *(size_t *)data = sVar2;\n        return;\n      }\n    }" { (expression_statement "sVar2 = strlen(section->name);" (assignment_expression "sVar2 = strlen(section->name)" identifier = (call_expression "strlen(section->name)" identifier (argument_list "(section->name)" ( (field_expression "section->name" identifier -> field_identifier) )))) ;) comment (if_statement "if (*data < (int)sVar2) {\n        *(size_t *)data = sVar2;\n        return;\n      }" if (parenthesized_expression "(*data < (int)sVar2)" ( (binary_expression "*data < (int)sVar2" (pointer_expression "*data" * identifier) < (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        *(size_t *)data = sVar2;\n        return;\n      }" { (expression_statement "*(size_t *)data = sVar2;" (assignment_expression "*(size_t *)data = sVar2" (pointer_expression "*(size_t *)data" * (cast_expression "(size_t *)data" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (return_statement "return;" return ;) })) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00018410(undefined4 param_1,undefined4 *param_2,size_t *param_3)\n\n{\n  int iVar1;\n  size_t sVar2;\n  \n  if ((*(byte *)((int)param_2 + 0x16) & 0x10) == 0) {\n    iVar1 = FUN_000175a0(0x18417);\n    if (iVar1 != 0) {\n      sVar2 = strlen((char *)*param_2);\n      if ((int)*param_3 < (int)sVar2) {\n        *param_3 = sVar2;\n        return;\n      }\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_00018410(undefined4 param_1,undefined4 *param_2,size_t *param_3)\n\n{\n  int iVar1;\n  size_t sVar2;\n  \n  if ((*(byte *)((int)param_2 + 0x16) & 0x10) == 0) {\n    iVar1 = FUN_000175a0(0x18417);\n    if (iVar1 != 0) {\n      sVar2 = strlen((char *)*param_2);\n      if ((int)*param_3 < (int)sVar2) {\n        *param_3 = sVar2;\n        return;\n      }\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00018410(undefined4 param_1,undefined4 *param_2,size_t *param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2,size_t *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "size_t *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  \n  if ((*(byte *)((int)param_2 + 0x16) & 0x10) == 0) {\n    iVar1 = FUN_000175a0(0x18417);\n    if (iVar1 != 0) {\n      sVar2 = strlen((char *)*param_2);\n      if ((int)*param_3 < (int)sVar2) {\n        *param_3 = sVar2;\n        return;\n      }\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (if_statement "if ((*(byte *)((int)param_2 + 0x16) & 0x10) == 0) {\n    iVar1 = FUN_000175a0(0x18417);\n    if (iVar1 != 0) {\n      sVar2 = strlen((char *)*param_2);\n      if ((int)*param_3 < (int)sVar2) {\n        *param_3 = sVar2;\n        return;\n      }\n    }\n  }" if (parenthesized_expression "((*(byte *)((int)param_2 + 0x16) & 0x10) == 0)" ( (binary_expression "(*(byte *)((int)param_2 + 0x16) & 0x10) == 0" (parenthesized_expression "(*(byte *)((int)param_2 + 0x16) & 0x10)" ( (binary_expression "*(byte *)((int)param_2 + 0x16) & 0x10" (pointer_expression "*(byte *)((int)param_2 + 0x16)" * (cast_expression "(byte *)((int)param_2 + 0x16)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 0x16)" ( (binary_expression "(int)param_2 + 0x16" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    iVar1 = FUN_000175a0(0x18417);\n    if (iVar1 != 0) {\n      sVar2 = strlen((char *)*param_2);\n      if ((int)*param_3 < (int)sVar2) {\n        *param_3 = sVar2;\n        return;\n      }\n    }\n  }" { (expression_statement "iVar1 = FUN_000175a0(0x18417);" (assignment_expression "iVar1 = FUN_000175a0(0x18417)" identifier = (call_expression "FUN_000175a0(0x18417)" identifier (argument_list "(0x18417)" ( number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n      sVar2 = strlen((char *)*param_2);\n      if ((int)*param_3 < (int)sVar2) {\n        *param_3 = sVar2;\n        return;\n      }\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      sVar2 = strlen((char *)*param_2);\n      if ((int)*param_3 < (int)sVar2) {\n        *param_3 = sVar2;\n        return;\n      }\n    }" { (expression_statement "sVar2 = strlen((char *)*param_2);" (assignment_expression "sVar2 = strlen((char *)*param_2)" identifier = (call_expression "strlen((char *)*param_2)" identifier (argument_list "((char *)*param_2)" ( (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) )))) ;) (if_statement "if ((int)*param_3 < (int)sVar2) {\n        *param_3 = sVar2;\n        return;\n      }" if (parenthesized_expression "((int)*param_3 < (int)sVar2)" ( (binary_expression "(int)*param_3 < (int)sVar2" (cast_expression "(int)*param_3" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*param_3" * identifier)) < (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        *param_3 = sVar2;\n        return;\n      }" { (expression_statement "*param_3 = sVar2;" (assignment_expression "*param_3 = sVar2" (pointer_expression "*param_3" * identifier) = identifier) ;) (return_statement "return;" return ;) })) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT)) < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return ;) })) })) })) (return_statement return ;) })))
(function_definition "void FUN_00018410(undefined4 param_1,undefined4 *param_2,size_t *param_3)\n\n{\n  int iVar1;\n  size_t sVar2;\n  \n  if ((*(byte *)((int)param_2 + 0x16) & 0x10) == 0) {\n    iVar1 = FUN_000175a0(0x18417);\n    if (iVar1 != 0) {\n      sVar2 = strlen((char *)*param_2);\n      if ((int)*param_3 < (int)sVar2) {\n        *param_3 = sVar2;\n        return;\n      }\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00018410(undefined4 param_1,undefined4 *param_2,size_t *param_3)" (identifier "FUN_00018410") (parameter_list "(undefined4 param_1,undefined4 *param_2,size_t *param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "size_t *param_3" (primitive_type "size_t") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  \n  if ((*(byte *)((int)param_2 + 0x16) & 0x10) == 0) {\n    iVar1 = FUN_000175a0(0x18417);\n    if (iVar1 != 0) {\n      sVar2 = strlen((char *)*param_2);\n      if ((int)*param_3 < (int)sVar2) {\n        *param_3 = sVar2;\n        return;\n      }\n    }\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (if_statement "if ((*(byte *)((int)param_2 + 0x16) & 0x10) == 0) {\n    iVar1 = FUN_000175a0(0x18417);\n    if (iVar1 != 0) {\n      sVar2 = strlen((char *)*param_2);\n      if ((int)*param_3 < (int)sVar2) {\n        *param_3 = sVar2;\n        return;\n      }\n    }\n  }" (if "if") (parenthesized_expression "((*(byte *)((int)param_2 + 0x16) & 0x10) == 0)" (( "(") (binary_expression "(*(byte *)((int)param_2 + 0x16) & 0x10) == 0" (parenthesized_expression "(*(byte *)((int)param_2 + 0x16) & 0x10)" (( "(") (binary_expression "*(byte *)((int)param_2 + 0x16) & 0x10" (pointer_expression "*(byte *)((int)param_2 + 0x16)" (* "*") (cast_expression "(byte *)((int)param_2 + 0x16)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + 0x16)" (( "(") (binary_expression "(int)param_2 + 0x16" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (number_literal "0x16")) () ")")))) (& "&") (number_literal "0x10")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = FUN_000175a0(0x18417);\n    if (iVar1 != 0) {\n      sVar2 = strlen((char *)*param_2);\n      if ((int)*param_3 < (int)sVar2) {\n        *param_3 = sVar2;\n        return;\n      }\n    }\n  }" ({ "{") (expression_statement "iVar1 = FUN_000175a0(0x18417);" (assignment_expression "iVar1 = FUN_000175a0(0x18417)" (identifier "iVar1") (= "=") (call_expression "FUN_000175a0(0x18417)" (identifier "FUN_000175a0") (argument_list "(0x18417)" (( "(") (number_literal "0x18417") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      sVar2 = strlen((char *)*param_2);\n      if ((int)*param_3 < (int)sVar2) {\n        *param_3 = sVar2;\n        return;\n      }\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      sVar2 = strlen((char *)*param_2);\n      if ((int)*param_3 < (int)sVar2) {\n        *param_3 = sVar2;\n        return;\n      }\n    }" ({ "{") (expression_statement "sVar2 = strlen((char *)*param_2);" (assignment_expression "sVar2 = strlen((char *)*param_2)" (identifier "sVar2") (= "=") (call_expression "strlen((char *)*param_2)" (identifier "strlen") (argument_list "((char *)*param_2)" (( "(") (cast_expression "(char *)*param_2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) () ")")))) (; ";")) (if_statement "if ((int)*param_3 < (int)sVar2) {\n        *param_3 = sVar2;\n        return;\n      }" (if "if") (parenthesized_expression "((int)*param_3 < (int)sVar2)" (( "(") (binary_expression "(int)*param_3 < (int)sVar2" (cast_expression "(int)*param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (< "<") (cast_expression "(int)sVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "sVar2"))) () ")")) (compound_statement "{\n        *param_3 = sVar2;\n        return;\n      }" ({ "{") (expression_statement "*param_3 = sVar2;" (assignment_expression "*param_3 = sVar2" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "sVar2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *abfd,type_2 *section,void *data)

{
  type_3 var_2;
  size_t sVar2;
  
  if ((section->flags & 0x100000) == 0) {
    var_2 = var_1(section);
    if (var_2 != 0) {
      sVar2 = var_3(section->name);
                    /* WARNING: Load size is inaccurate */
      if (*data < (int)sVar2) {
        *(size_t *)data = sVar2;
        return;
      }
    }
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) 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))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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 (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (identifier))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement))))))) (return_statement))))

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

void MASKED(undefined4 param_1,undefined4 *param_2,size_t *param_3)

{
  int iVar1;
  size_t sVar2;
  
  if ((*(byte *)((int)param_2 + 0x16) & 0x10) == 0) {
    iVar1 = FUN_000175a0(0x18417);
    if (iVar1 != 0) {
      sVar2 = strlen((char *)*param_2);
      if ((int)*param_3 < (int)sVar2) {
        *param_3 = sVar2;
        return;
      }
    }
  }
  return;
}

