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

bfd_elf_version_deps * lang_add_vers_depend(bfd_elf_version_deps *list,char *name)

{
  bfd_elf_version_tree *pbVar1;
  bfd_elf_version_deps *pbVar2;
  int iVar3;
  char *fmt;
  
  pbVar2 = (bfd_elf_version_deps *)xmalloc(8);
  pbVar2->next = list;
  pbVar1 = link_info.version_info;
  while( true ) {
    if (pbVar1 == (bfd_elf_version_tree *)0x0) {
      fmt = (char *)dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5);
      einfo(fmt,name);
      pbVar2->version_needed = (bfd_elf_version_tree *)0x0;
      return pbVar2;
    }
    iVar3 = strcmp(pbVar1->name,name);
    if (iVar3 == 0) break;
    pbVar1 = pbVar1->next;
  }
  pbVar2->version_needed = pbVar1;
  return pbVar2;
}



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

undefined4 * FUN_00029f20(undefined4 param_1,char *param_2)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  int iVar3;
  undefined4 uVar4;
  
  puVar2 = (undefined4 *)xmalloc(8);
  *puVar2 = param_1;
  puVar1 = DAT_00094e84;
  while( true ) {
    if (puVar1 == (undefined4 *)0x0) {
      uVar4 = dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5);
      FUN_000316f0(uVar4,param_2);
      puVar2[1] = 0;
      return puVar2;
    }
    iVar3 = strcmp((char *)puVar1[1],param_2);
    if (iVar3 == 0) break;
    puVar1 = (undefined4 *)*puVar1;
  }
  puVar2[1] = puVar1;
  return puVar2;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00015a10
ADD EBX,0x6a0d7
SUB ESP,0x18
MOV EDI,dword ptr [ESP + 0x30]
PUSH 0x8
CALL 0x00014c58
MOV EBP,EAX
MOV EAX,dword ptr [ESP + 0x30]
ADD ESP,0x10
MOV dword ptr [EBP],EAX
LEA EAX,[EBX + 0xe00]
MOV ESI,dword ptr [EAX + 0x84]
TEST ESI,ESI
JNZ 0x00029f66
JMP 0x00029f90
MOV ESI,dword ptr [ESI]
TEST ESI,ESI
JZ 0x00029f90
SUB ESP,0x8
PUSH EDI
PUSH dword ptr [ESI + 0x4]
CALL 0x000140c0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00029f60
MOV dword ptr [EBP + 0x4],ESI
ADD ESP,0xc
MOV EAX,EBP
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xfffbc014]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000142e0
POP EDX
POP ECX
PUSH EDI
PUSH EAX
CALL 0x000316f0
ADD ESP,0x10
MOV dword ptr [EBP + 0x4],0x0
MOV EAX,EBP
ADD ESP,0xc
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_00029f20(undefined4 param_1,char *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  puVar2 = (undefined4 *)xmalloc(8);\n  *puVar2 = param_1;\n  puVar1 = DAT_00094e84;\n  while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      uVar4 = dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5);\n      FUN_000316f0(uVar4,param_2);\n      puVar2[1] = 0;\n      return puVar2;\n    }\n    iVar3 = strcmp((char *)puVar1[1],param_2);\n    if (iVar3 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }\n  puVar2[1] = puVar1;\n  return puVar2;\n}\n\n" comment (function_definition "undefined4 * FUN_00029f20(undefined4 param_1,char *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  puVar2 = (undefined4 *)xmalloc(8);\n  *puVar2 = param_1;\n  puVar1 = DAT_00094e84;\n  while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      uVar4 = dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5);\n      FUN_000316f0(uVar4,param_2);\n      puVar2[1] = 0;\n      return puVar2;\n    }\n    iVar3 = strcmp((char *)puVar1[1],param_2);\n    if (iVar3 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }\n  puVar2[1] = puVar1;\n  return puVar2;\n}" type_identifier (pointer_declarator "* FUN_00029f20(undefined4 param_1,char *param_2)" * (function_declarator "FUN_00029f20(undefined4 param_1,char *param_2)" identifier (parameter_list "(undefined4 param_1,char *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  puVar2 = (undefined4 *)xmalloc(8);\n  *puVar2 = param_1;\n  puVar1 = DAT_00094e84;\n  while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      uVar4 = dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5);\n      FUN_000316f0(uVar4,param_2);\n      puVar2[1] = 0;\n      return puVar2;\n    }\n    iVar3 = strcmp((char *)puVar1[1],param_2);\n    if (iVar3 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }\n  puVar2[1] = puVar1;\n  return puVar2;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "puVar2 = (undefined4 *)xmalloc(8);" (assignment_expression "puVar2 = (undefined4 *)xmalloc(8)" identifier = (cast_expression "(undefined4 *)xmalloc(8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "*puVar2 = param_1;" (assignment_expression "*puVar2 = param_1" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "puVar1 = DAT_00094e84;" (assignment_expression "puVar1 = DAT_00094e84" identifier = identifier) ;) (while_statement "while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      uVar4 = dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5);\n      FUN_000316f0(uVar4,param_2);\n      puVar2[1] = 0;\n      return puVar2;\n    }\n    iVar3 = strcmp((char *)puVar1[1],param_2);\n    if (iVar3 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (puVar1 == (undefined4 *)0x0) {\n      uVar4 = dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5);\n      FUN_000316f0(uVar4,param_2);\n      puVar2[1] = 0;\n      return puVar2;\n    }\n    iVar3 = strcmp((char *)puVar1[1],param_2);\n    if (iVar3 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }" { (if_statement "if (puVar1 == (undefined4 *)0x0) {\n      uVar4 = dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5);\n      FUN_000316f0(uVar4,param_2);\n      puVar2[1] = 0;\n      return puVar2;\n    }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar4 = dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5);\n      FUN_000316f0(uVar4,param_2);\n      puVar2[1] = 0;\n      return puVar2;\n    }" { (expression_statement "uVar4 = dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5);" (assignment_expression "uVar4 = dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5)" identifier = (call_expression "dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5)" identifier (argument_list "(0,"%X%P: unable to find version dependency `%s\'\n",5)" ( number_literal , (string_literal ""%X%P: unable to find version dependency `%s\'\n"" " string_content escape_sequence escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_000316f0(uVar4,param_2);" (call_expression "FUN_000316f0(uVar4,param_2)" identifier (argument_list "(uVar4,param_2)" ( identifier , identifier ))) ;) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return puVar2;" return identifier ;) })) (expression_statement "iVar3 = strcmp((char *)puVar1[1],param_2);" (assignment_expression "iVar3 = strcmp((char *)puVar1[1],param_2)" identifier = (call_expression "strcmp((char *)puVar1[1],param_2)" identifier (argument_list "((char *)puVar1[1],param_2)" ( (cast_expression "(char *)puVar1[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[1]" identifier [ number_literal ])) , identifier )))) ;) (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "puVar1 = (undefined4 *)*puVar1;" (assignment_expression "puVar1 = (undefined4 *)*puVar1" identifier = (cast_expression "(undefined4 *)*puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) })) (expression_statement "puVar2[1] = puVar1;" (assignment_expression "puVar2[1] = puVar1" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nbfd_elf_version_deps * lang_add_vers_depend(bfd_elf_version_deps *list,char *name)\n\n{\n  bfd_elf_version_tree *pbVar1;\n  bfd_elf_version_deps *pbVar2;\n  int iVar3;\n  char *fmt;\n  \n  pbVar2 = (bfd_elf_version_deps *)xmalloc(8);\n  pbVar2->next = list;\n  pbVar1 = link_info.version_info;\n  while( true ) {\n    if (pbVar1 == (bfd_elf_version_tree *)0x0) {\n      fmt = (char *)dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5);\n      einfo(fmt,name);\n      pbVar2->version_needed = (bfd_elf_version_tree *)0x0;\n      return pbVar2;\n    }\n    iVar3 = strcmp(pbVar1->name,name);\n    if (iVar3 == 0) break;\n    pbVar1 = pbVar1->next;\n  }\n  pbVar2->version_needed = pbVar1;\n  return pbVar2;\n}\n\n" comment comment (function_definition "bfd_elf_version_deps * lang_add_vers_depend(bfd_elf_version_deps *list,char *name)\n\n{\n  bfd_elf_version_tree *pbVar1;\n  bfd_elf_version_deps *pbVar2;\n  int iVar3;\n  char *fmt;\n  \n  pbVar2 = (bfd_elf_version_deps *)xmalloc(8);\n  pbVar2->next = list;\n  pbVar1 = link_info.version_info;\n  while( true ) {\n    if (pbVar1 == (bfd_elf_version_tree *)0x0) {\n      fmt = (char *)dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5);\n      einfo(fmt,name);\n      pbVar2->version_needed = (bfd_elf_version_tree *)0x0;\n      return pbVar2;\n    }\n    iVar3 = strcmp(pbVar1->name,name);\n    if (iVar3 == 0) break;\n    pbVar1 = pbVar1->next;\n  }\n  pbVar2->version_needed = pbVar1;\n  return pbVar2;\n}" type_identifier (pointer_declarator "* lang_add_vers_depend(bfd_elf_version_deps *list,char *name)" * (function_declarator "lang_add_vers_depend(bfd_elf_version_deps *list,char *name)" identifier (parameter_list "(bfd_elf_version_deps *list,char *name)" ( (parameter_declaration "bfd_elf_version_deps *list" type_identifier (pointer_declarator "*list" * identifier)) , (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) )))) (compound_statement "{\n  bfd_elf_version_tree *pbVar1;\n  bfd_elf_version_deps *pbVar2;\n  int iVar3;\n  char *fmt;\n  \n  pbVar2 = (bfd_elf_version_deps *)xmalloc(8);\n  pbVar2->next = list;\n  pbVar1 = link_info.version_info;\n  while( true ) {\n    if (pbVar1 == (bfd_elf_version_tree *)0x0) {\n      fmt = (char *)dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5);\n      einfo(fmt,name);\n      pbVar2->version_needed = (bfd_elf_version_tree *)0x0;\n      return pbVar2;\n    }\n    iVar3 = strcmp(pbVar1->name,name);\n    if (iVar3 == 0) break;\n    pbVar1 = pbVar1->next;\n  }\n  pbVar2->version_needed = pbVar1;\n  return pbVar2;\n}" { (declaration "bfd_elf_version_tree *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "bfd_elf_version_deps *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *fmt;" primitive_type (pointer_declarator "*fmt" * identifier) ;) (expression_statement "pbVar2 = (bfd_elf_version_deps *)xmalloc(8);" (assignment_expression "pbVar2 = (bfd_elf_version_deps *)xmalloc(8)" identifier = (cast_expression "(bfd_elf_version_deps *)xmalloc(8)" ( (type_descriptor "bfd_elf_version_deps *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "pbVar2->next = list;" (assignment_expression "pbVar2->next = list" (field_expression "pbVar2->next" identifier -> field_identifier) = identifier) ;) (expression_statement "pbVar1 = link_info.version_info;" (assignment_expression "pbVar1 = link_info.version_info" identifier = (field_expression "link_info.version_info" identifier . field_identifier)) ;) (while_statement "while( true ) {\n    if (pbVar1 == (bfd_elf_version_tree *)0x0) {\n      fmt = (char *)dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5);\n      einfo(fmt,name);\n      pbVar2->version_needed = (bfd_elf_version_tree *)0x0;\n      return pbVar2;\n    }\n    iVar3 = strcmp(pbVar1->name,name);\n    if (iVar3 == 0) break;\n    pbVar1 = pbVar1->next;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (pbVar1 == (bfd_elf_version_tree *)0x0) {\n      fmt = (char *)dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5);\n      einfo(fmt,name);\n      pbVar2->version_needed = (bfd_elf_version_tree *)0x0;\n      return pbVar2;\n    }\n    iVar3 = strcmp(pbVar1->name,name);\n    if (iVar3 == 0) break;\n    pbVar1 = pbVar1->next;\n  }" { (if_statement "if (pbVar1 == (bfd_elf_version_tree *)0x0) {\n      fmt = (char *)dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5);\n      einfo(fmt,name);\n      pbVar2->version_needed = (bfd_elf_version_tree *)0x0;\n      return pbVar2;\n    }" if (parenthesized_expression "(pbVar1 == (bfd_elf_version_tree *)0x0)" ( (binary_expression "pbVar1 == (bfd_elf_version_tree *)0x0" identifier == (cast_expression "(bfd_elf_version_tree *)0x0" ( (type_descriptor "bfd_elf_version_tree *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      fmt = (char *)dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5);\n      einfo(fmt,name);\n      pbVar2->version_needed = (bfd_elf_version_tree *)0x0;\n      return pbVar2;\n    }" { (expression_statement "fmt = (char *)dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5);" (assignment_expression "fmt = (char *)dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5)" identifier (argument_list "(0,"%X%P: unable to find version dependency `%s\'\n",5)" ( number_literal , (string_literal ""%X%P: unable to find version dependency `%s\'\n"" " string_content escape_sequence escape_sequence ") , number_literal ))))) ;) (expression_statement "einfo(fmt,name);" (call_expression "einfo(fmt,name)" identifier (argument_list "(fmt,name)" ( identifier , identifier ))) ;) (expression_statement "pbVar2->version_needed = (bfd_elf_version_tree *)0x0;" (assignment_expression "pbVar2->version_needed = (bfd_elf_version_tree *)0x0" (field_expression "pbVar2->version_needed" identifier -> field_identifier) = (cast_expression "(bfd_elf_version_tree *)0x0" ( (type_descriptor "bfd_elf_version_tree *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return pbVar2;" return identifier ;) })) (expression_statement "iVar3 = strcmp(pbVar1->name,name);" (assignment_expression "iVar3 = strcmp(pbVar1->name,name)" identifier = (call_expression "strcmp(pbVar1->name,name)" identifier (argument_list "(pbVar1->name,name)" ( (field_expression "pbVar1->name" identifier -> field_identifier) , identifier )))) ;) (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "pbVar1 = pbVar1->next;" (assignment_expression "pbVar1 = pbVar1->next" identifier = (field_expression "pbVar1->next" identifier -> field_identifier)) ;) })) (expression_statement "pbVar2->version_needed = pbVar1;" (assignment_expression "pbVar2->version_needed = pbVar1" (field_expression "pbVar2->version_needed" identifier -> field_identifier) = identifier) ;) (return_statement "return pbVar2;" return identifier ;) })))
(translation_unit "undefined4 * FUN_00029f20(undefined4 param_1,char *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  puVar2 = (undefined4 *)xmalloc(8);\n  *puVar2 = param_1;\n  puVar1 = DAT_00094e84;\n  while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      uVar4 = dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5);\n      FUN_000316f0(uVar4,param_2);\n      puVar2[1] = 0;\n      return puVar2;\n    }\n    iVar3 = strcmp((char *)puVar1[1],param_2);\n    if (iVar3 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }\n  puVar2[1] = puVar1;\n  return puVar2;\n}\n\n" (function_definition "undefined4 * FUN_00029f20(undefined4 param_1,char *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  puVar2 = (undefined4 *)xmalloc(8);\n  *puVar2 = param_1;\n  puVar1 = DAT_00094e84;\n  while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      uVar4 = dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5);\n      FUN_000316f0(uVar4,param_2);\n      puVar2[1] = 0;\n      return puVar2;\n    }\n    iVar3 = strcmp((char *)puVar1[1],param_2);\n    if (iVar3 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }\n  puVar2[1] = puVar1;\n  return puVar2;\n}" type_identifier (pointer_declarator "* FUN_00029f20(undefined4 param_1,char *param_2)" * (function_declarator "FUN_00029f20(undefined4 param_1,char *param_2)" identifier (parameter_list "(undefined4 param_1,char *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  puVar2 = (undefined4 *)xmalloc(8);\n  *puVar2 = param_1;\n  puVar1 = DAT_00094e84;\n  while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      uVar4 = dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5);\n      FUN_000316f0(uVar4,param_2);\n      puVar2[1] = 0;\n      return puVar2;\n    }\n    iVar3 = strcmp((char *)puVar1[1],param_2);\n    if (iVar3 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }\n  puVar2[1] = puVar1;\n  return puVar2;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "puVar2 = (undefined4 *)xmalloc(8);" (assignment_expression "puVar2 = (undefined4 *)xmalloc(8)" identifier = (cast_expression "(undefined4 *)xmalloc(8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "*puVar2 = param_1;" (assignment_expression "*puVar2 = param_1" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "puVar1 = DAT_00094e84;" (assignment_expression "puVar1 = DAT_00094e84" identifier = identifier) ;) (while_statement "while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      uVar4 = dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5);\n      FUN_000316f0(uVar4,param_2);\n      puVar2[1] = 0;\n      return puVar2;\n    }\n    iVar3 = strcmp((char *)puVar1[1],param_2);\n    if (iVar3 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (puVar1 == (undefined4 *)0x0) {\n      uVar4 = dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5);\n      FUN_000316f0(uVar4,param_2);\n      puVar2[1] = 0;\n      return puVar2;\n    }\n    iVar3 = strcmp((char *)puVar1[1],param_2);\n    if (iVar3 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }" { (if_statement "if (puVar1 == (undefined4 *)0x0) {\n      uVar4 = dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5);\n      FUN_000316f0(uVar4,param_2);\n      puVar2[1] = 0;\n      return puVar2;\n    }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar4 = dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5);\n      FUN_000316f0(uVar4,param_2);\n      puVar2[1] = 0;\n      return puVar2;\n    }" { (expression_statement "uVar4 = dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5);" (assignment_expression "uVar4 = dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5)" identifier = (call_expression "dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5)" identifier (argument_list "(0,"%X%P: unable to find version dependency `%s\'\n",5)" ( number_literal , (string_literal ""%X%P: unable to find version dependency `%s\'\n"" " string_content escape_sequence escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_000316f0(uVar4,param_2);" (call_expression "FUN_000316f0(uVar4,param_2)" identifier (argument_list "(uVar4,param_2)" ( identifier , identifier ))) ;) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return puVar2;" return identifier ;) })) (expression_statement "iVar3 = strcmp((char *)puVar1[1],param_2);" (assignment_expression "iVar3 = strcmp((char *)puVar1[1],param_2)" identifier = (call_expression "strcmp((char *)puVar1[1],param_2)" identifier (argument_list "((char *)puVar1[1],param_2)" ( (cast_expression "(char *)puVar1[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[1]" identifier [ number_literal ])) , identifier )))) ;) (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "puVar1 = (undefined4 *)*puVar1;" (assignment_expression "puVar1 = (undefined4 *)*puVar1" identifier = (cast_expression "(undefined4 *)*puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) })) (expression_statement "puVar2[1] = puVar1;" (assignment_expression "puVar2[1] = puVar1" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 * FUN_00029f20(undefined4 param_1,char *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  puVar2 = (undefined4 *)xmalloc(8);\n  *puVar2 = param_1;\n  puVar1 = DAT_00094e84;\n  while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      uVar4 = dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5);\n      FUN_000316f0(uVar4,param_2);\n      puVar2[1] = 0;\n      return puVar2;\n    }\n    iVar3 = strcmp((char *)puVar1[1],param_2);\n    if (iVar3 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }\n  puVar2[1] = puVar1;\n  return puVar2;\n}" (type_identifier "undefined4") (pointer_declarator "* FUN_00029f20(undefined4 param_1,char *param_2)" (* "*") (function_declarator "FUN_00029f20(undefined4 param_1,char *param_2)" (identifier "FUN_00029f20") (parameter_list "(undefined4 param_1,char *param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")")))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  puVar2 = (undefined4 *)xmalloc(8);\n  *puVar2 = param_1;\n  puVar1 = DAT_00094e84;\n  while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      uVar4 = dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5);\n      FUN_000316f0(uVar4,param_2);\n      puVar2[1] = 0;\n      return puVar2;\n    }\n    iVar3 = strcmp((char *)puVar1[1],param_2);\n    if (iVar3 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }\n  puVar2[1] = puVar1;\n  return puVar2;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (expression_statement "puVar2 = (undefined4 *)xmalloc(8);" (assignment_expression "puVar2 = (undefined4 *)xmalloc(8)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)xmalloc(8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(8)" (identifier "xmalloc") (argument_list "(8)" (( "(") (number_literal "8") () ")"))))) (; ";")) (expression_statement "*puVar2 = param_1;" (assignment_expression "*puVar2 = param_1" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "puVar1 = DAT_00094e84;" (assignment_expression "puVar1 = DAT_00094e84" (identifier "puVar1") (= "=") (identifier "DAT_00094e84")) (; ";")) (while_statement "while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      uVar4 = dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5);\n      FUN_000316f0(uVar4,param_2);\n      puVar2[1] = 0;\n      return puVar2;\n    }\n    iVar3 = strcmp((char *)puVar1[1],param_2);\n    if (iVar3 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    if (puVar1 == (undefined4 *)0x0) {\n      uVar4 = dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5);\n      FUN_000316f0(uVar4,param_2);\n      puVar2[1] = 0;\n      return puVar2;\n    }\n    iVar3 = strcmp((char *)puVar1[1],param_2);\n    if (iVar3 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }" ({ "{") (if_statement "if (puVar1 == (undefined4 *)0x0) {\n      uVar4 = dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5);\n      FUN_000316f0(uVar4,param_2);\n      puVar2[1] = 0;\n      return puVar2;\n    }" (if "if") (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar1 == (undefined4 *)0x0" (identifier "puVar1") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      uVar4 = dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5);\n      FUN_000316f0(uVar4,param_2);\n      puVar2[1] = 0;\n      return puVar2;\n    }" ({ "{") (expression_statement "uVar4 = dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5);" (assignment_expression "uVar4 = dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5)" (identifier "dcgettext") (argument_list "(0,"%X%P: unable to find version dependency `%s\'\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""%X%P: unable to find version dependency `%s\'\n"" (" """) (string_content "%X%P: unable to find version dependency `%s") (escape_sequence "\'") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_000316f0(uVar4,param_2);" (call_expression "FUN_000316f0(uVar4,param_2)" (identifier "FUN_000316f0") (argument_list "(uVar4,param_2)" (( "(") (identifier "uVar4") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}"))) (expression_statement "iVar3 = strcmp((char *)puVar1[1],param_2);" (assignment_expression "iVar3 = strcmp((char *)puVar1[1],param_2)" (identifier "iVar3") (= "=") (call_expression "strcmp((char *)puVar1[1],param_2)" (identifier "strcmp") (argument_list "((char *)puVar1[1],param_2)" (( "(") (cast_expression "(char *)puVar1[1]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]"))) (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) break;" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "puVar1 = (undefined4 *)*puVar1;" (assignment_expression "puVar1 = (undefined4 *)*puVar1" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)*puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) (; ";")) (} "}"))) (expression_statement "puVar2[1] = puVar1;" (assignment_expression "puVar2[1] = puVar1" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "puVar1")) (; ";")) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}")))

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

type_1 * function_1(type_1 *list,char *name)

{
  type_2 *var_2;
  type_1 *pbVar2;
  int var_6;
  char *fmt;
  
  pbVar2 = (type_1 *)var_1(8);
  pbVar2->next = list;
  var_2 = link_info.version_info;
  while( true ) {
    if (var_2 == (type_2 *)0x0) {
      fmt = (char *)var_3(0,"%X%P: unable to find version dependency `%s\'\n",5);
      var_4(fmt,name);
      pbVar2->version_needed = (type_2 *)0x0;
      return pbVar2;
    }
    var_6 = var_5(var_2->name,name);
    if (var_6 == 0) break;
    var_2 = var_2->next;
  }
  pbVar2->version_needed = var_2;
  return pbVar2;
}


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

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

undefined4 * MASKED(undefined4 param_1,char *param_2)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  int iVar3;
  undefined4 uVar4;
  
  puVar2 = (undefined4 *)xmalloc(8);
  *puVar2 = param_1;
  puVar1 = DAT_00094e84;
  while( true ) {
    if (puVar1 == (undefined4 *)0x0) {
      uVar4 = dcgettext(0,"%X%P: unable to find version dependency `%s\'\n",5);
      FUN_000316f0(uVar4,param_2);
      puVar2[1] = 0;
      return puVar2;
    }
    iVar3 = strcmp((char *)puVar1[1],param_2);
    if (iVar3 == 0) break;
    puVar1 = (undefined4 *)*puVar1;
  }
  puVar2[1] = puVar1;
  return puVar2;
}

