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

void sysv_internal_sizer(bfd *file,sec_ptr sec,void *ignore)

{
  bfd_size_type bVar1;
  size_t sVar2;
  
  if (((sec != (sec_ptr)(PTR__bfd_std_section_00018fec + 0x150)) && ((sec->flags & 0x1000) == 0)) &&
     (sec != (sec_ptr)(PTR__bfd_std_section_00018fec + 0xa8))) {
    bVar1 = sec->size;
    sVar2 = strlen(sec->name);
    if (svi_namelen < (int)sVar2) {
      svi_namelen = sVar2;
    }
    svi_total = svi_total + bVar1;
    if (svi_maxvma < sec->vma) {
      svi_maxvma = sec->vma;
    }
  }
  return;
}



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

void FUN_00011ad0(undefined4 param_1,undefined4 *param_2)

{
  int iVar1;
  size_t sVar2;
  
  if (((param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0x150)) &&
      ((*(byte *)((int)param_2 + 0x15) & 0x10) == 0)) &&
     (param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0xa8))) {
    iVar1 = param_2[9];
    sVar2 = strlen((char *)*param_2);
    if ((int)DAT_000191f0 < (int)sVar2) {
      DAT_000191f0 = sVar2;
    }
    DAT_000191f8 = DAT_000191f8 + iVar1;
    if (DAT_000191f4 < (uint)param_2[7]) {
      DAT_000191f4 = param_2[7];
    }
  }
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x14]
CALL 0x00011870
ADD EBX,0x7524
MOV EAX,dword ptr [EBX + 0xffffffec]
LEA EDX,[EAX + 0x150]
CMP ESI,EDX
JZ 0x00011b36
TEST byte ptr [ESI + 0x15],0x10
JNZ 0x00011b36
ADD EAX,0xa8
CMP ESI,EAX
JZ 0x00011b36
SUB ESP,0xc
MOV EDI,dword ptr [ESI + 0x24]
PUSH dword ptr [ESI]
CALL 0x000112a0
ADD ESP,0x10
CMP dword ptr [EBX + 0x1f0],EAX
JGE 0x00011b1f
MOV dword ptr [EBX + 0x1f0],EAX
ADD dword ptr [EBX + 0x1f8],EDI
MOV EAX,dword ptr [ESI + 0x1c]
CMP EAX,dword ptr [EBX + 0x1f4]
JBE 0x00011b36
MOV dword ptr [EBX + 0x1f4],EAX
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00011ad0(undefined4 param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  size_t sVar2;\n  \n  if (((param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0x150)) &&\n      ((*(byte *)((int)param_2 + 0x15) & 0x10) == 0)) &&\n     (param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0xa8))) {\n    iVar1 = param_2[9];\n    sVar2 = strlen((char *)*param_2);\n    if ((int)DAT_000191f0 < (int)sVar2) {\n      DAT_000191f0 = sVar2;\n    }\n    DAT_000191f8 = DAT_000191f8 + iVar1;\n    if (DAT_000191f4 < (uint)param_2[7]) {\n      DAT_000191f4 = param_2[7];\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00011ad0(undefined4 param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  size_t sVar2;\n  \n  if (((param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0x150)) &&\n      ((*(byte *)((int)param_2 + 0x15) & 0x10) == 0)) &&\n     (param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0xa8))) {\n    iVar1 = param_2[9];\n    sVar2 = strlen((char *)*param_2);\n    if ((int)DAT_000191f0 < (int)sVar2) {\n      DAT_000191f0 = sVar2;\n    }\n    DAT_000191f8 = DAT_000191f8 + iVar1;\n    if (DAT_000191f4 < (uint)param_2[7]) {\n      DAT_000191f4 = param_2[7];\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00011ad0(undefined4 param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  \n  if (((param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0x150)) &&\n      ((*(byte *)((int)param_2 + 0x15) & 0x10) == 0)) &&\n     (param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0xa8))) {\n    iVar1 = param_2[9];\n    sVar2 = strlen((char *)*param_2);\n    if ((int)DAT_000191f0 < (int)sVar2) {\n      DAT_000191f0 = sVar2;\n    }\n    DAT_000191f8 = DAT_000191f8 + iVar1;\n    if (DAT_000191f4 < (uint)param_2[7]) {\n      DAT_000191f4 = param_2[7];\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (if_statement "if (((param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0x150)) &&\n      ((*(byte *)((int)param_2 + 0x15) & 0x10) == 0)) &&\n     (param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0xa8))) {\n    iVar1 = param_2[9];\n    sVar2 = strlen((char *)*param_2);\n    if ((int)DAT_000191f0 < (int)sVar2) {\n      DAT_000191f0 = sVar2;\n    }\n    DAT_000191f8 = DAT_000191f8 + iVar1;\n    if (DAT_000191f4 < (uint)param_2[7]) {\n      DAT_000191f4 = param_2[7];\n    }\n  }" if (parenthesized_expression "(((param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0x150)) &&\n      ((*(byte *)((int)param_2 + 0x15) & 0x10) == 0)) &&\n     (param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0xa8)))" ( (binary_expression "((param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0x150)) &&\n      ((*(byte *)((int)param_2 + 0x15) & 0x10) == 0)) &&\n     (param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0xa8))" (parenthesized_expression "((param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0x150)) &&\n      ((*(byte *)((int)param_2 + 0x15) & 0x10) == 0))" ( (binary_expression "(param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0x150)) &&\n      ((*(byte *)((int)param_2 + 0x15) & 0x10) == 0)" (parenthesized_expression "(param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0x150))" ( (binary_expression "param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0x150)" identifier != (cast_expression "(undefined4 *)(PTR__bfd_std_section_00018fec + 0x150)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR__bfd_std_section_00018fec + 0x150)" ( (binary_expression "PTR__bfd_std_section_00018fec + 0x150" identifier + number_literal) )))) )) && (parenthesized_expression "((*(byte *)((int)param_2 + 0x15) & 0x10) == 0)" ( (binary_expression "(*(byte *)((int)param_2 + 0x15) & 0x10) == 0" (parenthesized_expression "(*(byte *)((int)param_2 + 0x15) & 0x10)" ( (binary_expression "*(byte *)((int)param_2 + 0x15) & 0x10" (pointer_expression "*(byte *)((int)param_2 + 0x15)" * (cast_expression "(byte *)((int)param_2 + 0x15)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 0x15)" ( (binary_expression "(int)param_2 + 0x15" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal) )) == number_literal) ))) )) && (parenthesized_expression "(param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0xa8))" ( (binary_expression "param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0xa8)" identifier != (cast_expression "(undefined4 *)(PTR__bfd_std_section_00018fec + 0xa8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR__bfd_std_section_00018fec + 0xa8)" ( (binary_expression "PTR__bfd_std_section_00018fec + 0xa8" identifier + number_literal) )))) ))) )) (compound_statement "{\n    iVar1 = param_2[9];\n    sVar2 = strlen((char *)*param_2);\n    if ((int)DAT_000191f0 < (int)sVar2) {\n      DAT_000191f0 = sVar2;\n    }\n    DAT_000191f8 = DAT_000191f8 + iVar1;\n    if (DAT_000191f4 < (uint)param_2[7]) {\n      DAT_000191f4 = param_2[7];\n    }\n  }" { (expression_statement "iVar1 = param_2[9];" (assignment_expression "iVar1 = param_2[9]" identifier = (subscript_expression "param_2[9]" identifier [ number_literal ])) ;) (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)DAT_000191f0 < (int)sVar2) {\n      DAT_000191f0 = sVar2;\n    }" if (parenthesized_expression "((int)DAT_000191f0 < (int)sVar2)" ( (binary_expression "(int)DAT_000191f0 < (int)sVar2" (cast_expression "(int)DAT_000191f0" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      DAT_000191f0 = sVar2;\n    }" { (expression_statement "DAT_000191f0 = sVar2;" (assignment_expression "DAT_000191f0 = sVar2" identifier = identifier) ;) })) (expression_statement "DAT_000191f8 = DAT_000191f8 + iVar1;" (assignment_expression "DAT_000191f8 = DAT_000191f8 + iVar1" identifier = (binary_expression "DAT_000191f8 + iVar1" identifier + identifier)) ;) (if_statement "if (DAT_000191f4 < (uint)param_2[7]) {\n      DAT_000191f4 = param_2[7];\n    }" if (parenthesized_expression "(DAT_000191f4 < (uint)param_2[7])" ( (binary_expression "DAT_000191f4 < (uint)param_2[7]" identifier < (cast_expression "(uint)param_2[7]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[7]" identifier [ number_literal ]))) )) (compound_statement "{\n      DAT_000191f4 = param_2[7];\n    }" { (expression_statement "DAT_000191f4 = param_2[7];" (assignment_expression "DAT_000191f4 = param_2[7]" identifier = (subscript_expression "param_2[7]" identifier [ number_literal ])) ;) })) })) (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 sysv_internal_sizer(bfd *file,sec_ptr sec,void *ignore)\n\n{\n  bfd_size_type bVar1;\n  size_t sVar2;\n  \n  if (((sec != (sec_ptr)(PTR__bfd_std_section_00018fec + 0x150)) && ((sec->flags & 0x1000) == 0)) &&\n     (sec != (sec_ptr)(PTR__bfd_std_section_00018fec + 0xa8))) {\n    bVar1 = sec->size;\n    sVar2 = strlen(sec->name);\n    if (svi_namelen < (int)sVar2) {\n      svi_namelen = sVar2;\n    }\n    svi_total = svi_total + bVar1;\n    if (svi_maxvma < sec->vma) {\n      svi_maxvma = sec->vma;\n    }\n  }\n  return;\n}\n\n" comment comment (function_definition "void sysv_internal_sizer(bfd *file,sec_ptr sec,void *ignore)\n\n{\n  bfd_size_type bVar1;\n  size_t sVar2;\n  \n  if (((sec != (sec_ptr)(PTR__bfd_std_section_00018fec + 0x150)) && ((sec->flags & 0x1000) == 0)) &&\n     (sec != (sec_ptr)(PTR__bfd_std_section_00018fec + 0xa8))) {\n    bVar1 = sec->size;\n    sVar2 = strlen(sec->name);\n    if (svi_namelen < (int)sVar2) {\n      svi_namelen = sVar2;\n    }\n    svi_total = svi_total + bVar1;\n    if (svi_maxvma < sec->vma) {\n      svi_maxvma = sec->vma;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "sysv_internal_sizer(bfd *file,sec_ptr sec,void *ignore)" identifier (parameter_list "(bfd *file,sec_ptr sec,void *ignore)" ( (parameter_declaration "bfd *file" type_identifier (pointer_declarator "*file" * identifier)) , (parameter_declaration "sec_ptr sec" type_identifier identifier) , (parameter_declaration "void *ignore" primitive_type (pointer_declarator "*ignore" * identifier)) ))) (compound_statement "{\n  bfd_size_type bVar1;\n  size_t sVar2;\n  \n  if (((sec != (sec_ptr)(PTR__bfd_std_section_00018fec + 0x150)) && ((sec->flags & 0x1000) == 0)) &&\n     (sec != (sec_ptr)(PTR__bfd_std_section_00018fec + 0xa8))) {\n    bVar1 = sec->size;\n    sVar2 = strlen(sec->name);\n    if (svi_namelen < (int)sVar2) {\n      svi_namelen = sVar2;\n    }\n    svi_total = svi_total + bVar1;\n    if (svi_maxvma < sec->vma) {\n      svi_maxvma = sec->vma;\n    }\n  }\n  return;\n}" { (declaration "bfd_size_type bVar1;" type_identifier identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (if_statement "if (((sec != (sec_ptr)(PTR__bfd_std_section_00018fec + 0x150)) && ((sec->flags & 0x1000) == 0)) &&\n     (sec != (sec_ptr)(PTR__bfd_std_section_00018fec + 0xa8))) {\n    bVar1 = sec->size;\n    sVar2 = strlen(sec->name);\n    if (svi_namelen < (int)sVar2) {\n      svi_namelen = sVar2;\n    }\n    svi_total = svi_total + bVar1;\n    if (svi_maxvma < sec->vma) {\n      svi_maxvma = sec->vma;\n    }\n  }" if (parenthesized_expression "(((sec != (sec_ptr)(PTR__bfd_std_section_00018fec + 0x150)) && ((sec->flags & 0x1000) == 0)) &&\n     (sec != (sec_ptr)(PTR__bfd_std_section_00018fec + 0xa8)))" ( (binary_expression "((sec != (sec_ptr)(PTR__bfd_std_section_00018fec + 0x150)) && ((sec->flags & 0x1000) == 0)) &&\n     (sec != (sec_ptr)(PTR__bfd_std_section_00018fec + 0xa8))" (parenthesized_expression "((sec != (sec_ptr)(PTR__bfd_std_section_00018fec + 0x150)) && ((sec->flags & 0x1000) == 0))" ( (binary_expression "(sec != (sec_ptr)(PTR__bfd_std_section_00018fec + 0x150)) && ((sec->flags & 0x1000) == 0)" (parenthesized_expression "(sec != (sec_ptr)(PTR__bfd_std_section_00018fec + 0x150))" ( (binary_expression "sec != (sec_ptr)(PTR__bfd_std_section_00018fec + 0x150)" identifier != (call_expression "(sec_ptr)(PTR__bfd_std_section_00018fec + 0x150)" (parenthesized_expression "(sec_ptr)" ( identifier )) (argument_list "(PTR__bfd_std_section_00018fec + 0x150)" ( (binary_expression "PTR__bfd_std_section_00018fec + 0x150" identifier + number_literal) )))) )) && (parenthesized_expression "((sec->flags & 0x1000) == 0)" ( (binary_expression "(sec->flags & 0x1000) == 0" (parenthesized_expression "(sec->flags & 0x1000)" ( (binary_expression "sec->flags & 0x1000" (field_expression "sec->flags" identifier -> field_identifier) & number_literal) )) == number_literal) ))) )) && (parenthesized_expression "(sec != (sec_ptr)(PTR__bfd_std_section_00018fec + 0xa8))" ( (binary_expression "sec != (sec_ptr)(PTR__bfd_std_section_00018fec + 0xa8)" identifier != (call_expression "(sec_ptr)(PTR__bfd_std_section_00018fec + 0xa8)" (parenthesized_expression "(sec_ptr)" ( identifier )) (argument_list "(PTR__bfd_std_section_00018fec + 0xa8)" ( (binary_expression "PTR__bfd_std_section_00018fec + 0xa8" identifier + number_literal) )))) ))) )) (compound_statement "{\n    bVar1 = sec->size;\n    sVar2 = strlen(sec->name);\n    if (svi_namelen < (int)sVar2) {\n      svi_namelen = sVar2;\n    }\n    svi_total = svi_total + bVar1;\n    if (svi_maxvma < sec->vma) {\n      svi_maxvma = sec->vma;\n    }\n  }" { (expression_statement "bVar1 = sec->size;" (assignment_expression "bVar1 = sec->size" identifier = (field_expression "sec->size" identifier -> field_identifier)) ;) (expression_statement "sVar2 = strlen(sec->name);" (assignment_expression "sVar2 = strlen(sec->name)" identifier = (call_expression "strlen(sec->name)" identifier (argument_list "(sec->name)" ( (field_expression "sec->name" identifier -> field_identifier) )))) ;) (if_statement "if (svi_namelen < (int)sVar2) {\n      svi_namelen = sVar2;\n    }" if (parenthesized_expression "(svi_namelen < (int)sVar2)" ( (binary_expression "svi_namelen < (int)sVar2" identifier < (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      svi_namelen = sVar2;\n    }" { (expression_statement "svi_namelen = sVar2;" (assignment_expression "svi_namelen = sVar2" identifier = identifier) ;) })) (expression_statement "svi_total = svi_total + bVar1;" (assignment_expression "svi_total = svi_total + bVar1" identifier = (binary_expression "svi_total + bVar1" identifier + identifier)) ;) (if_statement "if (svi_maxvma < sec->vma) {\n      svi_maxvma = sec->vma;\n    }" if (parenthesized_expression "(svi_maxvma < sec->vma)" ( (binary_expression "svi_maxvma < sec->vma" identifier < (field_expression "sec->vma" identifier -> field_identifier)) )) (compound_statement "{\n      svi_maxvma = sec->vma;\n    }" { (expression_statement "svi_maxvma = sec->vma;" (assignment_expression "svi_maxvma = sec->vma" identifier = (field_expression "sec->vma" identifier -> field_identifier)) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00011ad0(undefined4 param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  size_t sVar2;\n  \n  if (((param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0x150)) &&\n      ((*(byte *)((int)param_2 + 0x15) & 0x10) == 0)) &&\n     (param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0xa8))) {\n    iVar1 = param_2[9];\n    sVar2 = strlen((char *)*param_2);\n    if ((int)DAT_000191f0 < (int)sVar2) {\n      DAT_000191f0 = sVar2;\n    }\n    DAT_000191f8 = DAT_000191f8 + iVar1;\n    if (DAT_000191f4 < (uint)param_2[7]) {\n      DAT_000191f4 = param_2[7];\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_00011ad0(undefined4 param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  size_t sVar2;\n  \n  if (((param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0x150)) &&\n      ((*(byte *)((int)param_2 + 0x15) & 0x10) == 0)) &&\n     (param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0xa8))) {\n    iVar1 = param_2[9];\n    sVar2 = strlen((char *)*param_2);\n    if ((int)DAT_000191f0 < (int)sVar2) {\n      DAT_000191f0 = sVar2;\n    }\n    DAT_000191f8 = DAT_000191f8 + iVar1;\n    if (DAT_000191f4 < (uint)param_2[7]) {\n      DAT_000191f4 = param_2[7];\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00011ad0(undefined4 param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  \n  if (((param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0x150)) &&\n      ((*(byte *)((int)param_2 + 0x15) & 0x10) == 0)) &&\n     (param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0xa8))) {\n    iVar1 = param_2[9];\n    sVar2 = strlen((char *)*param_2);\n    if ((int)DAT_000191f0 < (int)sVar2) {\n      DAT_000191f0 = sVar2;\n    }\n    DAT_000191f8 = DAT_000191f8 + iVar1;\n    if (DAT_000191f4 < (uint)param_2[7]) {\n      DAT_000191f4 = param_2[7];\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (if_statement "if (((param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0x150)) &&\n      ((*(byte *)((int)param_2 + 0x15) & 0x10) == 0)) &&\n     (param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0xa8))) {\n    iVar1 = param_2[9];\n    sVar2 = strlen((char *)*param_2);\n    if ((int)DAT_000191f0 < (int)sVar2) {\n      DAT_000191f0 = sVar2;\n    }\n    DAT_000191f8 = DAT_000191f8 + iVar1;\n    if (DAT_000191f4 < (uint)param_2[7]) {\n      DAT_000191f4 = param_2[7];\n    }\n  }" if (parenthesized_expression "(((param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0x150)) &&\n      ((*(byte *)((int)param_2 + 0x15) & 0x10) == 0)) &&\n     (param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0xa8)))" ( (binary_expression "((param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0x150)) &&\n      ((*(byte *)((int)param_2 + 0x15) & 0x10) == 0)) &&\n     (param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0xa8))" (parenthesized_expression "((param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0x150)) &&\n      ((*(byte *)((int)param_2 + 0x15) & 0x10) == 0))" ( (binary_expression "(param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0x150)) &&\n      ((*(byte *)((int)param_2 + 0x15) & 0x10) == 0)" (parenthesized_expression "(param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0x150))" ( (binary_expression "param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0x150)" identifier != (cast_expression "(undefined4 *)(PTR__bfd_std_section_00018fec + 0x150)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR__bfd_std_section_00018fec + 0x150)" ( (binary_expression "PTR__bfd_std_section_00018fec + 0x150" identifier + number_literal) )))) )) && (parenthesized_expression "((*(byte *)((int)param_2 + 0x15) & 0x10) == 0)" ( (binary_expression "(*(byte *)((int)param_2 + 0x15) & 0x10) == 0" (parenthesized_expression "(*(byte *)((int)param_2 + 0x15) & 0x10)" ( (binary_expression "*(byte *)((int)param_2 + 0x15) & 0x10" (pointer_expression "*(byte *)((int)param_2 + 0x15)" * (cast_expression "(byte *)((int)param_2 + 0x15)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 0x15)" ( (binary_expression "(int)param_2 + 0x15" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal) )) == number_literal) ))) )) && (parenthesized_expression "(param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0xa8))" ( (binary_expression "param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0xa8)" identifier != (cast_expression "(undefined4 *)(PTR__bfd_std_section_00018fec + 0xa8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR__bfd_std_section_00018fec + 0xa8)" ( (binary_expression "PTR__bfd_std_section_00018fec + 0xa8" identifier + number_literal) )))) ))) )) (compound_statement "{\n    iVar1 = param_2[9];\n    sVar2 = strlen((char *)*param_2);\n    if ((int)DAT_000191f0 < (int)sVar2) {\n      DAT_000191f0 = sVar2;\n    }\n    DAT_000191f8 = DAT_000191f8 + iVar1;\n    if (DAT_000191f4 < (uint)param_2[7]) {\n      DAT_000191f4 = param_2[7];\n    }\n  }" { (expression_statement "iVar1 = param_2[9];" (assignment_expression "iVar1 = param_2[9]" identifier = (subscript_expression "param_2[9]" identifier [ number_literal ])) ;) (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)DAT_000191f0 < (int)sVar2) {\n      DAT_000191f0 = sVar2;\n    }" if (parenthesized_expression "((int)DAT_000191f0 < (int)sVar2)" ( (binary_expression "(int)DAT_000191f0 < (int)sVar2" (cast_expression "(int)DAT_000191f0" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      DAT_000191f0 = sVar2;\n    }" { (expression_statement "DAT_000191f0 = sVar2;" (assignment_expression "DAT_000191f0 = sVar2" identifier = identifier) ;) })) (expression_statement "DAT_000191f8 = DAT_000191f8 + iVar1;" (assignment_expression "DAT_000191f8 = DAT_000191f8 + iVar1" identifier = (binary_expression "DAT_000191f8 + iVar1" identifier + identifier)) ;) (if_statement "if (DAT_000191f4 < (uint)param_2[7]) {\n      DAT_000191f4 = param_2[7];\n    }" if (parenthesized_expression "(DAT_000191f4 < (uint)param_2[7])" ( (binary_expression "DAT_000191f4 < (uint)param_2[7]" identifier < (cast_expression "(uint)param_2[7]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[7]" identifier [ number_literal ]))) )) (compound_statement "{\n      DAT_000191f4 = param_2[7];\n    }" { (expression_statement "DAT_000191f4 = param_2[7];" (assignment_expression "DAT_000191f4 = param_2[7]" identifier = (subscript_expression "param_2[7]" identifier [ number_literal ])) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE 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 (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) && (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) ))) )) && (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (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) ) IDENT) < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) })) (return_statement return ;) })))
(function_definition "void FUN_00011ad0(undefined4 param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  size_t sVar2;\n  \n  if (((param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0x150)) &&\n      ((*(byte *)((int)param_2 + 0x15) & 0x10) == 0)) &&\n     (param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0xa8))) {\n    iVar1 = param_2[9];\n    sVar2 = strlen((char *)*param_2);\n    if ((int)DAT_000191f0 < (int)sVar2) {\n      DAT_000191f0 = sVar2;\n    }\n    DAT_000191f8 = DAT_000191f8 + iVar1;\n    if (DAT_000191f4 < (uint)param_2[7]) {\n      DAT_000191f4 = param_2[7];\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00011ad0(undefined4 param_1,undefined4 *param_2)" (identifier "FUN_00011ad0") (parameter_list "(undefined4 param_1,undefined4 *param_2)" (( "(") (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"))) () ")"))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  \n  if (((param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0x150)) &&\n      ((*(byte *)((int)param_2 + 0x15) & 0x10) == 0)) &&\n     (param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0xa8))) {\n    iVar1 = param_2[9];\n    sVar2 = strlen((char *)*param_2);\n    if ((int)DAT_000191f0 < (int)sVar2) {\n      DAT_000191f0 = sVar2;\n    }\n    DAT_000191f8 = DAT_000191f8 + iVar1;\n    if (DAT_000191f4 < (uint)param_2[7]) {\n      DAT_000191f4 = param_2[7];\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 (((param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0x150)) &&\n      ((*(byte *)((int)param_2 + 0x15) & 0x10) == 0)) &&\n     (param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0xa8))) {\n    iVar1 = param_2[9];\n    sVar2 = strlen((char *)*param_2);\n    if ((int)DAT_000191f0 < (int)sVar2) {\n      DAT_000191f0 = sVar2;\n    }\n    DAT_000191f8 = DAT_000191f8 + iVar1;\n    if (DAT_000191f4 < (uint)param_2[7]) {\n      DAT_000191f4 = param_2[7];\n    }\n  }" (if "if") (parenthesized_expression "(((param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0x150)) &&\n      ((*(byte *)((int)param_2 + 0x15) & 0x10) == 0)) &&\n     (param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0xa8)))" (( "(") (binary_expression "((param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0x150)) &&\n      ((*(byte *)((int)param_2 + 0x15) & 0x10) == 0)) &&\n     (param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0xa8))" (parenthesized_expression "((param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0x150)) &&\n      ((*(byte *)((int)param_2 + 0x15) & 0x10) == 0))" (( "(") (binary_expression "(param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0x150)) &&\n      ((*(byte *)((int)param_2 + 0x15) & 0x10) == 0)" (parenthesized_expression "(param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0x150))" (( "(") (binary_expression "param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0x150)" (identifier "param_2") (!= "!=") (cast_expression "(undefined4 *)(PTR__bfd_std_section_00018fec + 0x150)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR__bfd_std_section_00018fec + 0x150)" (( "(") (binary_expression "PTR__bfd_std_section_00018fec + 0x150" (identifier "PTR__bfd_std_section_00018fec") (+ "+") (number_literal "0x150")) () ")")))) () ")")) (&& "&&") (parenthesized_expression "((*(byte *)((int)param_2 + 0x15) & 0x10) == 0)" (( "(") (binary_expression "(*(byte *)((int)param_2 + 0x15) & 0x10) == 0" (parenthesized_expression "(*(byte *)((int)param_2 + 0x15) & 0x10)" (( "(") (binary_expression "*(byte *)((int)param_2 + 0x15) & 0x10" (pointer_expression "*(byte *)((int)param_2 + 0x15)" (* "*") (cast_expression "(byte *)((int)param_2 + 0x15)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + 0x15)" (( "(") (binary_expression "(int)param_2 + 0x15" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (number_literal "0x15")) () ")")))) (& "&") (number_literal "0x10")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0xa8))" (( "(") (binary_expression "param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0xa8)" (identifier "param_2") (!= "!=") (cast_expression "(undefined4 *)(PTR__bfd_std_section_00018fec + 0xa8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR__bfd_std_section_00018fec + 0xa8)" (( "(") (binary_expression "PTR__bfd_std_section_00018fec + 0xa8" (identifier "PTR__bfd_std_section_00018fec") (+ "+") (number_literal "0xa8")) () ")")))) () ")"))) () ")")) (compound_statement "{\n    iVar1 = param_2[9];\n    sVar2 = strlen((char *)*param_2);\n    if ((int)DAT_000191f0 < (int)sVar2) {\n      DAT_000191f0 = sVar2;\n    }\n    DAT_000191f8 = DAT_000191f8 + iVar1;\n    if (DAT_000191f4 < (uint)param_2[7]) {\n      DAT_000191f4 = param_2[7];\n    }\n  }" ({ "{") (expression_statement "iVar1 = param_2[9];" (assignment_expression "iVar1 = param_2[9]" (identifier "iVar1") (= "=") (subscript_expression "param_2[9]" (identifier "param_2") ([ "[") (number_literal "9") (] "]"))) (; ";")) (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)DAT_000191f0 < (int)sVar2) {\n      DAT_000191f0 = sVar2;\n    }" (if "if") (parenthesized_expression "((int)DAT_000191f0 < (int)sVar2)" (( "(") (binary_expression "(int)DAT_000191f0 < (int)sVar2" (cast_expression "(int)DAT_000191f0" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "DAT_000191f0")) (< "<") (cast_expression "(int)sVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "sVar2"))) () ")")) (compound_statement "{\n      DAT_000191f0 = sVar2;\n    }" ({ "{") (expression_statement "DAT_000191f0 = sVar2;" (assignment_expression "DAT_000191f0 = sVar2" (identifier "DAT_000191f0") (= "=") (identifier "sVar2")) (; ";")) (} "}"))) (expression_statement "DAT_000191f8 = DAT_000191f8 + iVar1;" (assignment_expression "DAT_000191f8 = DAT_000191f8 + iVar1" (identifier "DAT_000191f8") (= "=") (binary_expression "DAT_000191f8 + iVar1" (identifier "DAT_000191f8") (+ "+") (identifier "iVar1"))) (; ";")) (if_statement "if (DAT_000191f4 < (uint)param_2[7]) {\n      DAT_000191f4 = param_2[7];\n    }" (if "if") (parenthesized_expression "(DAT_000191f4 < (uint)param_2[7])" (( "(") (binary_expression "DAT_000191f4 < (uint)param_2[7]" (identifier "DAT_000191f4") (< "<") (cast_expression "(uint)param_2[7]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_2[7]" (identifier "param_2") ([ "[") (number_literal "7") (] "]")))) () ")")) (compound_statement "{\n      DAT_000191f4 = param_2[7];\n    }" ({ "{") (expression_statement "DAT_000191f4 = param_2[7];" (assignment_expression "DAT_000191f4 = param_2[7]" (identifier "DAT_000191f4") (= "=") (subscript_expression "param_2[7]" (identifier "param_2") ([ "[") (number_literal "7") (] "]"))) (; ";")) (} "}"))) (} "}"))) (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 *file,type_2 var_1,void *ignore)

{
  type_3 var_6;
  size_t sVar2;
  
  if (((var_1 != (type_2)(var_2 + 0x150)) && ((var_1->flags & 0x1000) == 0)) &&
     (var_1 != (type_2)(var_2 + 0xa8))) {
    var_6 = var_1->size;
    sVar2 = var_3(var_1->name);
    if (var_4 < (int)sVar2) {
      var_4 = sVar2;
    }
    var_5 = var_5 + var_6;
    if (var_7 < var_1->vma) {
      var_7 = var_1->vma;
    }
  }
  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))))) 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: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (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))))) right: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (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: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))))))) (return_statement))))

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

void MASKED(undefined4 param_1,undefined4 *param_2)

{
  int iVar1;
  size_t sVar2;
  
  if (((param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0x150)) &&
      ((*(byte *)((int)param_2 + 0x15) & 0x10) == 0)) &&
     (param_2 != (undefined4 *)(PTR__bfd_std_section_00018fec + 0xa8))) {
    iVar1 = param_2[9];
    sVar2 = strlen((char *)*param_2);
    if ((int)DAT_000191f0 < (int)sVar2) {
      DAT_000191f0 = sVar2;
    }
    DAT_000191f8 = DAT_000191f8 + iVar1;
    if (DAT_000191f4 < (uint)param_2[7]) {
      DAT_000191f4 = param_2[7];
    }
  }
  return;
}

