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

bfd_boolean sym_id_arc_is_present(Sym_Table *sym_tab,Sym *from,Sym *to)

{
  Arc *pAVar1;
  Sym *parent;
  
  parent = sym_tab->base;
  if (parent < sym_tab->limit) {
    do {
      if (((parent->addr <= from->addr) && (from->addr <= parent->end_addr)) &&
         (pAVar1 = arc_lookup(parent,to), pAVar1 != (Arc *)0x0)) {
        return 1;
      }
      parent = parent + 1;
    } while (parent < sym_tab->limit);
  }
  return 0;
}



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

undefined4 FUN_0001d460(int param_1,uint *param_2,undefined4 param_3)

{
  int iVar1;
  uint *puVar2;
  
  puVar2 = *(uint **)(param_1 + 4);
  if (puVar2 < *(uint **)(param_1 + 8)) {
    do {
      if (((*puVar2 <= *param_2) && (*param_2 <= puVar2[1])) &&
         (iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0)) {
        return 1;
      }
      puVar2 = puVar2 + 0x32;
    } while (puVar2 < *(uint **)(param_1 + 8));
  }
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00013030
ADD EBX,0xeb97
SUB ESP,0xc
MOV EDI,dword ptr [ESP + 0x20]
MOV EBP,dword ptr [ESP + 0x24]
MOV ESI,dword ptr [EDI + 0x4]
CMP ESI,dword ptr [EDI + 0x8]
JC 0x0001d493
JMP 0x0001d4c0
ADD ESI,0xc8
CMP dword ptr [EDI + 0x8],ESI
JBE 0x0001d4c0
MOV EAX,dword ptr [EBP]
CMP EAX,dword ptr [ESI]
JC 0x0001d488
CMP EAX,dword ptr [ESI + 0x4]
JA 0x0001d488
SUB ESP,0x8
PUSH dword ptr [ESP + 0x30]
PUSH ESI
CALL 0x00014670
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001d488
ADD ESP,0xc
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD ESP,0xc
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_0001d460(int param_1,uint *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  uint *puVar2;\n  \n  puVar2 = *(uint **)(param_1 + 4);\n  if (puVar2 < *(uint **)(param_1 + 8)) {\n    do {\n      if (((*puVar2 <= *param_2) && (*param_2 <= puVar2[1])) &&\n         (iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0)) {\n        return 1;\n      }\n      puVar2 = puVar2 + 0x32;\n    } while (puVar2 < *(uint **)(param_1 + 8));\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 FUN_0001d460(int param_1,uint *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  uint *puVar2;\n  \n  puVar2 = *(uint **)(param_1 + 4);\n  if (puVar2 < *(uint **)(param_1 + 8)) {\n    do {\n      if (((*puVar2 <= *param_2) && (*param_2 <= puVar2[1])) &&\n         (iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0)) {\n        return 1;\n      }\n      puVar2 = puVar2 + 0x32;\n    } while (puVar2 < *(uint **)(param_1 + 8));\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0001d460(int param_1,uint *param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,uint *param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint *puVar2;\n  \n  puVar2 = *(uint **)(param_1 + 4);\n  if (puVar2 < *(uint **)(param_1 + 8)) {\n    do {\n      if (((*puVar2 <= *param_2) && (*param_2 <= puVar2[1])) &&\n         (iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0)) {\n        return 1;\n      }\n      puVar2 = puVar2 + 0x32;\n    } while (puVar2 < *(uint **)(param_1 + 8));\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "puVar2 = *(uint **)(param_1 + 4);" (assignment_expression "puVar2 = *(uint **)(param_1 + 4)" identifier = (pointer_expression "*(uint **)(param_1 + 4)" * (cast_expression "(uint **)(param_1 + 4)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (puVar2 < *(uint **)(param_1 + 8)) {\n    do {\n      if (((*puVar2 <= *param_2) && (*param_2 <= puVar2[1])) &&\n         (iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0)) {\n        return 1;\n      }\n      puVar2 = puVar2 + 0x32;\n    } while (puVar2 < *(uint **)(param_1 + 8));\n  }" if (parenthesized_expression "(puVar2 < *(uint **)(param_1 + 8))" ( (binary_expression "puVar2 < *(uint **)(param_1 + 8)" identifier < (pointer_expression "*(uint **)(param_1 + 8)" * (cast_expression "(uint **)(param_1 + 8)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n    do {\n      if (((*puVar2 <= *param_2) && (*param_2 <= puVar2[1])) &&\n         (iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0)) {\n        return 1;\n      }\n      puVar2 = puVar2 + 0x32;\n    } while (puVar2 < *(uint **)(param_1 + 8));\n  }" { (do_statement "do {\n      if (((*puVar2 <= *param_2) && (*param_2 <= puVar2[1])) &&\n         (iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0)) {\n        return 1;\n      }\n      puVar2 = puVar2 + 0x32;\n    } while (puVar2 < *(uint **)(param_1 + 8));" do (compound_statement "{\n      if (((*puVar2 <= *param_2) && (*param_2 <= puVar2[1])) &&\n         (iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0)) {\n        return 1;\n      }\n      puVar2 = puVar2 + 0x32;\n    }" { (if_statement "if (((*puVar2 <= *param_2) && (*param_2 <= puVar2[1])) &&\n         (iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0)) {\n        return 1;\n      }" if (parenthesized_expression "(((*puVar2 <= *param_2) && (*param_2 <= puVar2[1])) &&\n         (iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0))" ( (binary_expression "((*puVar2 <= *param_2) && (*param_2 <= puVar2[1])) &&\n         (iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0)" (parenthesized_expression "((*puVar2 <= *param_2) && (*param_2 <= puVar2[1]))" ( (binary_expression "(*puVar2 <= *param_2) && (*param_2 <= puVar2[1])" (parenthesized_expression "(*puVar2 <= *param_2)" ( (binary_expression "*puVar2 <= *param_2" (pointer_expression "*puVar2" * identifier) <= (pointer_expression "*param_2" * identifier)) )) && (parenthesized_expression "(*param_2 <= puVar2[1])" ( (binary_expression "*param_2 <= puVar2[1]" (pointer_expression "*param_2" * identifier) <= (subscript_expression "puVar2[1]" identifier [ number_literal ])) ))) )) && (parenthesized_expression "(iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0" (assignment_expression "iVar1 = FUN_00014670(puVar2,param_3)" identifier = (call_expression "FUN_00014670(puVar2,param_3)" identifier (argument_list "(puVar2,param_3)" ( identifier , identifier )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n        return 1;\n      }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "puVar2 = puVar2 + 0x32;" (assignment_expression "puVar2 = puVar2 + 0x32" identifier = (binary_expression "puVar2 + 0x32" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar2 < *(uint **)(param_1 + 8))" ( (binary_expression "puVar2 < *(uint **)(param_1 + 8)" identifier < (pointer_expression "*(uint **)(param_1 + 8)" * (cast_expression "(uint **)(param_1 + 8)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) )) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nbfd_boolean sym_id_arc_is_present(Sym_Table *sym_tab,Sym *from,Sym *to)\n\n{\n  Arc *pAVar1;\n  Sym *parent;\n  \n  parent = sym_tab->base;\n  if (parent < sym_tab->limit) {\n    do {\n      if (((parent->addr <= from->addr) && (from->addr <= parent->end_addr)) &&\n         (pAVar1 = arc_lookup(parent,to), pAVar1 != (Arc *)0x0)) {\n        return 1;\n      }\n      parent = parent + 1;\n    } while (parent < sym_tab->limit);\n  }\n  return 0;\n}\n\n" comment comment (function_definition "bfd_boolean sym_id_arc_is_present(Sym_Table *sym_tab,Sym *from,Sym *to)\n\n{\n  Arc *pAVar1;\n  Sym *parent;\n  \n  parent = sym_tab->base;\n  if (parent < sym_tab->limit) {\n    do {\n      if (((parent->addr <= from->addr) && (from->addr <= parent->end_addr)) &&\n         (pAVar1 = arc_lookup(parent,to), pAVar1 != (Arc *)0x0)) {\n        return 1;\n      }\n      parent = parent + 1;\n    } while (parent < sym_tab->limit);\n  }\n  return 0;\n}" type_identifier (function_declarator "sym_id_arc_is_present(Sym_Table *sym_tab,Sym *from,Sym *to)" identifier (parameter_list "(Sym_Table *sym_tab,Sym *from,Sym *to)" ( (parameter_declaration "Sym_Table *sym_tab" type_identifier (pointer_declarator "*sym_tab" * identifier)) , (parameter_declaration "Sym *from" type_identifier (pointer_declarator "*from" * identifier)) , (parameter_declaration "Sym *to" type_identifier (pointer_declarator "*to" * identifier)) ))) (compound_statement "{\n  Arc *pAVar1;\n  Sym *parent;\n  \n  parent = sym_tab->base;\n  if (parent < sym_tab->limit) {\n    do {\n      if (((parent->addr <= from->addr) && (from->addr <= parent->end_addr)) &&\n         (pAVar1 = arc_lookup(parent,to), pAVar1 != (Arc *)0x0)) {\n        return 1;\n      }\n      parent = parent + 1;\n    } while (parent < sym_tab->limit);\n  }\n  return 0;\n}" { (declaration "Arc *pAVar1;" type_identifier (pointer_declarator "*pAVar1" * identifier) ;) (declaration "Sym *parent;" type_identifier (pointer_declarator "*parent" * identifier) ;) (expression_statement "parent = sym_tab->base;" (assignment_expression "parent = sym_tab->base" identifier = (field_expression "sym_tab->base" identifier -> field_identifier)) ;) (if_statement "if (parent < sym_tab->limit) {\n    do {\n      if (((parent->addr <= from->addr) && (from->addr <= parent->end_addr)) &&\n         (pAVar1 = arc_lookup(parent,to), pAVar1 != (Arc *)0x0)) {\n        return 1;\n      }\n      parent = parent + 1;\n    } while (parent < sym_tab->limit);\n  }" if (parenthesized_expression "(parent < sym_tab->limit)" ( (binary_expression "parent < sym_tab->limit" identifier < (field_expression "sym_tab->limit" identifier -> field_identifier)) )) (compound_statement "{\n    do {\n      if (((parent->addr <= from->addr) && (from->addr <= parent->end_addr)) &&\n         (pAVar1 = arc_lookup(parent,to), pAVar1 != (Arc *)0x0)) {\n        return 1;\n      }\n      parent = parent + 1;\n    } while (parent < sym_tab->limit);\n  }" { (do_statement "do {\n      if (((parent->addr <= from->addr) && (from->addr <= parent->end_addr)) &&\n         (pAVar1 = arc_lookup(parent,to), pAVar1 != (Arc *)0x0)) {\n        return 1;\n      }\n      parent = parent + 1;\n    } while (parent < sym_tab->limit);" do (compound_statement "{\n      if (((parent->addr <= from->addr) && (from->addr <= parent->end_addr)) &&\n         (pAVar1 = arc_lookup(parent,to), pAVar1 != (Arc *)0x0)) {\n        return 1;\n      }\n      parent = parent + 1;\n    }" { (if_statement "if (((parent->addr <= from->addr) && (from->addr <= parent->end_addr)) &&\n         (pAVar1 = arc_lookup(parent,to), pAVar1 != (Arc *)0x0)) {\n        return 1;\n      }" if (parenthesized_expression "(((parent->addr <= from->addr) && (from->addr <= parent->end_addr)) &&\n         (pAVar1 = arc_lookup(parent,to), pAVar1 != (Arc *)0x0))" ( (binary_expression "((parent->addr <= from->addr) && (from->addr <= parent->end_addr)) &&\n         (pAVar1 = arc_lookup(parent,to), pAVar1 != (Arc *)0x0)" (parenthesized_expression "((parent->addr <= from->addr) && (from->addr <= parent->end_addr))" ( (binary_expression "(parent->addr <= from->addr) && (from->addr <= parent->end_addr)" (parenthesized_expression "(parent->addr <= from->addr)" ( (binary_expression "parent->addr <= from->addr" (field_expression "parent->addr" identifier -> field_identifier) <= (field_expression "from->addr" identifier -> field_identifier)) )) && (parenthesized_expression "(from->addr <= parent->end_addr)" ( (binary_expression "from->addr <= parent->end_addr" (field_expression "from->addr" identifier -> field_identifier) <= (field_expression "parent->end_addr" identifier -> field_identifier)) ))) )) && (parenthesized_expression "(pAVar1 = arc_lookup(parent,to), pAVar1 != (Arc *)0x0)" ( (comma_expression "pAVar1 = arc_lookup(parent,to), pAVar1 != (Arc *)0x0" (assignment_expression "pAVar1 = arc_lookup(parent,to)" identifier = (call_expression "arc_lookup(parent,to)" identifier (argument_list "(parent,to)" ( identifier , identifier )))) , (binary_expression "pAVar1 != (Arc *)0x0" identifier != (cast_expression "(Arc *)0x0" ( (type_descriptor "Arc *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n        return 1;\n      }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "parent = parent + 1;" (assignment_expression "parent = parent + 1" identifier = (binary_expression "parent + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(parent < sym_tab->limit)" ( (binary_expression "parent < sym_tab->limit" identifier < (field_expression "sym_tab->limit" identifier -> field_identifier)) )) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_0001d460(int param_1,uint *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  uint *puVar2;\n  \n  puVar2 = *(uint **)(param_1 + 4);\n  if (puVar2 < *(uint **)(param_1 + 8)) {\n    do {\n      if (((*puVar2 <= *param_2) && (*param_2 <= puVar2[1])) &&\n         (iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0)) {\n        return 1;\n      }\n      puVar2 = puVar2 + 0x32;\n    } while (puVar2 < *(uint **)(param_1 + 8));\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0001d460(int param_1,uint *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  uint *puVar2;\n  \n  puVar2 = *(uint **)(param_1 + 4);\n  if (puVar2 < *(uint **)(param_1 + 8)) {\n    do {\n      if (((*puVar2 <= *param_2) && (*param_2 <= puVar2[1])) &&\n         (iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0)) {\n        return 1;\n      }\n      puVar2 = puVar2 + 0x32;\n    } while (puVar2 < *(uint **)(param_1 + 8));\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0001d460(int param_1,uint *param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,uint *param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint *puVar2;\n  \n  puVar2 = *(uint **)(param_1 + 4);\n  if (puVar2 < *(uint **)(param_1 + 8)) {\n    do {\n      if (((*puVar2 <= *param_2) && (*param_2 <= puVar2[1])) &&\n         (iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0)) {\n        return 1;\n      }\n      puVar2 = puVar2 + 0x32;\n    } while (puVar2 < *(uint **)(param_1 + 8));\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "puVar2 = *(uint **)(param_1 + 4);" (assignment_expression "puVar2 = *(uint **)(param_1 + 4)" identifier = (pointer_expression "*(uint **)(param_1 + 4)" * (cast_expression "(uint **)(param_1 + 4)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (puVar2 < *(uint **)(param_1 + 8)) {\n    do {\n      if (((*puVar2 <= *param_2) && (*param_2 <= puVar2[1])) &&\n         (iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0)) {\n        return 1;\n      }\n      puVar2 = puVar2 + 0x32;\n    } while (puVar2 < *(uint **)(param_1 + 8));\n  }" if (parenthesized_expression "(puVar2 < *(uint **)(param_1 + 8))" ( (binary_expression "puVar2 < *(uint **)(param_1 + 8)" identifier < (pointer_expression "*(uint **)(param_1 + 8)" * (cast_expression "(uint **)(param_1 + 8)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n    do {\n      if (((*puVar2 <= *param_2) && (*param_2 <= puVar2[1])) &&\n         (iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0)) {\n        return 1;\n      }\n      puVar2 = puVar2 + 0x32;\n    } while (puVar2 < *(uint **)(param_1 + 8));\n  }" { (do_statement "do {\n      if (((*puVar2 <= *param_2) && (*param_2 <= puVar2[1])) &&\n         (iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0)) {\n        return 1;\n      }\n      puVar2 = puVar2 + 0x32;\n    } while (puVar2 < *(uint **)(param_1 + 8));" do (compound_statement "{\n      if (((*puVar2 <= *param_2) && (*param_2 <= puVar2[1])) &&\n         (iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0)) {\n        return 1;\n      }\n      puVar2 = puVar2 + 0x32;\n    }" { (if_statement "if (((*puVar2 <= *param_2) && (*param_2 <= puVar2[1])) &&\n         (iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0)) {\n        return 1;\n      }" if (parenthesized_expression "(((*puVar2 <= *param_2) && (*param_2 <= puVar2[1])) &&\n         (iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0))" ( (binary_expression "((*puVar2 <= *param_2) && (*param_2 <= puVar2[1])) &&\n         (iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0)" (parenthesized_expression "((*puVar2 <= *param_2) && (*param_2 <= puVar2[1]))" ( (binary_expression "(*puVar2 <= *param_2) && (*param_2 <= puVar2[1])" (parenthesized_expression "(*puVar2 <= *param_2)" ( (binary_expression "*puVar2 <= *param_2" (pointer_expression "*puVar2" * identifier) <= (pointer_expression "*param_2" * identifier)) )) && (parenthesized_expression "(*param_2 <= puVar2[1])" ( (binary_expression "*param_2 <= puVar2[1]" (pointer_expression "*param_2" * identifier) <= (subscript_expression "puVar2[1]" identifier [ number_literal ])) ))) )) && (parenthesized_expression "(iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0" (assignment_expression "iVar1 = FUN_00014670(puVar2,param_3)" identifier = (call_expression "FUN_00014670(puVar2,param_3)" identifier (argument_list "(puVar2,param_3)" ( identifier , identifier )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n        return 1;\n      }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "puVar2 = puVar2 + 0x32;" (assignment_expression "puVar2 = puVar2 + 0x32" identifier = (binary_expression "puVar2 + 0x32" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar2 < *(uint **)(param_1 + 8))" ( (binary_expression "puVar2 < *(uint **)(param_1 + 8)" identifier < (pointer_expression "*(uint **)(param_1 + 8)" * (cast_expression "(uint **)(param_1 + 8)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) )) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) <= (pointer_expression * IDENT)) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) <= (subscript_expression IDENT [ LIT ])) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0001d460(int param_1,uint *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  uint *puVar2;\n  \n  puVar2 = *(uint **)(param_1 + 4);\n  if (puVar2 < *(uint **)(param_1 + 8)) {\n    do {\n      if (((*puVar2 <= *param_2) && (*param_2 <= puVar2[1])) &&\n         (iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0)) {\n        return 1;\n      }\n      puVar2 = puVar2 + 0x32;\n    } while (puVar2 < *(uint **)(param_1 + 8));\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_0001d460(int param_1,uint *param_2,undefined4 param_3)" (identifier "FUN_0001d460") (parameter_list "(int param_1,uint *param_2,undefined4 param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint *param_2" (type_identifier "uint") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  uint *puVar2;\n  \n  puVar2 = *(uint **)(param_1 + 4);\n  if (puVar2 < *(uint **)(param_1 + 8)) {\n    do {\n      if (((*puVar2 <= *param_2) && (*param_2 <= puVar2[1])) &&\n         (iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0)) {\n        return 1;\n      }\n      puVar2 = puVar2 + 0x32;\n    } while (puVar2 < *(uint **)(param_1 + 8));\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint *puVar2;" (type_identifier "uint") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (expression_statement "puVar2 = *(uint **)(param_1 + 4);" (assignment_expression "puVar2 = *(uint **)(param_1 + 4)" (identifier "puVar2") (= "=") (pointer_expression "*(uint **)(param_1 + 4)" (* "*") (cast_expression "(uint **)(param_1 + 4)" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (puVar2 < *(uint **)(param_1 + 8)) {\n    do {\n      if (((*puVar2 <= *param_2) && (*param_2 <= puVar2[1])) &&\n         (iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0)) {\n        return 1;\n      }\n      puVar2 = puVar2 + 0x32;\n    } while (puVar2 < *(uint **)(param_1 + 8));\n  }" (if "if") (parenthesized_expression "(puVar2 < *(uint **)(param_1 + 8))" (( "(") (binary_expression "puVar2 < *(uint **)(param_1 + 8)" (identifier "puVar2") (< "<") (pointer_expression "*(uint **)(param_1 + 8)" (* "*") (cast_expression "(uint **)(param_1 + 8)" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) () ")")) (compound_statement "{\n    do {\n      if (((*puVar2 <= *param_2) && (*param_2 <= puVar2[1])) &&\n         (iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0)) {\n        return 1;\n      }\n      puVar2 = puVar2 + 0x32;\n    } while (puVar2 < *(uint **)(param_1 + 8));\n  }" ({ "{") (do_statement "do {\n      if (((*puVar2 <= *param_2) && (*param_2 <= puVar2[1])) &&\n         (iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0)) {\n        return 1;\n      }\n      puVar2 = puVar2 + 0x32;\n    } while (puVar2 < *(uint **)(param_1 + 8));" (do "do") (compound_statement "{\n      if (((*puVar2 <= *param_2) && (*param_2 <= puVar2[1])) &&\n         (iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0)) {\n        return 1;\n      }\n      puVar2 = puVar2 + 0x32;\n    }" ({ "{") (if_statement "if (((*puVar2 <= *param_2) && (*param_2 <= puVar2[1])) &&\n         (iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0)) {\n        return 1;\n      }" (if "if") (parenthesized_expression "(((*puVar2 <= *param_2) && (*param_2 <= puVar2[1])) &&\n         (iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0))" (( "(") (binary_expression "((*puVar2 <= *param_2) && (*param_2 <= puVar2[1])) &&\n         (iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0)" (parenthesized_expression "((*puVar2 <= *param_2) && (*param_2 <= puVar2[1]))" (( "(") (binary_expression "(*puVar2 <= *param_2) && (*param_2 <= puVar2[1])" (parenthesized_expression "(*puVar2 <= *param_2)" (( "(") (binary_expression "*puVar2 <= *param_2" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (<= "<=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) () ")")) (&& "&&") (parenthesized_expression "(*param_2 <= puVar2[1])" (( "(") (binary_expression "*param_2 <= puVar2[1]" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (<= "<=") (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0)" (( "(") (comma_expression "iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0" (assignment_expression "iVar1 = FUN_00014670(puVar2,param_3)" (identifier "iVar1") (= "=") (call_expression "FUN_00014670(puVar2,param_3)" (identifier "FUN_00014670") (argument_list "(puVar2,param_3)" (( "(") (identifier "puVar2") (, ",") (identifier "param_3") () ")")))) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n        return 1;\n      }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "puVar2 = puVar2 + 0x32;" (assignment_expression "puVar2 = puVar2 + 0x32" (identifier "puVar2") (= "=") (binary_expression "puVar2 + 0x32" (identifier "puVar2") (+ "+") (number_literal "0x32"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar2 < *(uint **)(param_1 + 8))" (( "(") (binary_expression "puVar2 < *(uint **)(param_1 + 8)" (identifier "puVar2") (< "<") (pointer_expression "*(uint **)(param_1 + 8)" (* "*") (cast_expression "(uint **)(param_1 + 8)" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) () ")")) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

type_1 function_1(type_2 *sym_tab,type_3 *from,type_3 *to)

{
  type_4 *var_3;
  type_3 *var_1;
  
  var_1 = sym_tab->base;
  if (var_1 < sym_tab->limit) {
    do {
      if (((var_1->addr <= from->addr) && (from->addr <= var_1->end_addr)) &&
         (var_3 = var_2(var_1,to), var_3 != (type_4 *)0x0)) {
        return 1;
      }
      var_1 = var_1 + 1;
    } while (var_1 < sym_tab->limit);
  }
  return 0;
}


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

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

undefined4 MASKED(int param_1,uint *param_2,undefined4 param_3)

{
  int iVar1;
  uint *puVar2;
  
  puVar2 = *(uint **)(param_1 + 4);
  if (puVar2 < *(uint **)(param_1 + 8)) {
    do {
      if (((*puVar2 <= *param_2) && (*param_2 <= puVar2[1])) &&
         (iVar1 = FUN_00014670(puVar2,param_3), iVar1 != 0)) {
        return 1;
      }
      puVar2 = puVar2 + 0x32;
    } while (puVar2 < *(uint **)(param_1 + 8));
  }
  return 0;
}

