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

void lang_append_dynamic_list(bfd_elf_version_expr *dynamic)

{
  bfd_elf_version_expr *pbVar1;
  bfd_elf_dynamic_list *pbVar2;
  bfd_elf_version_expr *pbVar3;
  
  pbVar2 = link_info.dynamic_list;
  pbVar1 = dynamic;
  if (link_info.dynamic_list == (bfd_elf_dynamic_list *)0x0) {
    link_info.dynamic_list = (bfd_elf_dynamic_list *)xcalloc(1,0x14);
    ((link_info.dynamic_list)->head).list = dynamic;
    (link_info.dynamic_list)->match = lang_vers_match;
    return;
  }
  do {
    pbVar3 = pbVar1;
    pbVar1 = pbVar3->next;
  } while (pbVar1 != (bfd_elf_version_expr *)0x0);
  pbVar3->next = ((link_info.dynamic_list)->head).list;
  (pbVar2->head).list = dynamic;
  return;
}



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

void FUN_0002cea0(int *param_1)

{
  int *piVar1;
  int *piVar2;
  int *piVar3;
  
  piVar2 = DAT_001d1474;
  piVar1 = param_1;
  if (DAT_001d1474 == (int *)0x0) {
    DAT_001d1474 = (int *)xcalloc(1,0x14);
    *DAT_001d1474 = (int)param_1;
    DAT_001d1474[4] = (int)FUN_00020e40;
    return;
  }
  do {
    piVar3 = piVar1;
    piVar1 = (int *)*piVar3;
  } while (piVar1 != (int *)0x0);
  *piVar3 = *DAT_001d1474;
  *piVar2 = (int)param_1;
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x10]
CALL 0x00017b80
ADD EBX,0x1a2154
LEA EDI,[EBX + 0x23e0]
MOV ECX,dword ptr [EDI + 0x94]
TEST ECX,ECX
JZ 0x0002cee8
MOV EDX,ESI
JMP 0x0002ced2
MOV EDX,EAX
MOV EAX,dword ptr [EDX]
TEST EAX,EAX
JNZ 0x0002ced0
MOV EAX,dword ptr [ECX]
MOV dword ptr [EDX],EAX
MOV dword ptr [ECX],ESI
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0x8
PUSH 0x14
PUSH 0x1
CALL 0x00016d30
ADD ESP,0x10
LEA EDX,[EBX + 0xffe51e40]
MOV dword ptr [EAX],ESI
MOV dword ptr [EAX + 0x10],EDX
POP EBX
MOV dword ptr [EDI + 0x94],EAX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0002cea0(int *param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  \n  piVar2 = DAT_001d1474;\n  piVar1 = param_1;\n  if (DAT_001d1474 == (int *)0x0) {\n    DAT_001d1474 = (int *)xcalloc(1,0x14);\n    *DAT_001d1474 = (int)param_1;\n    DAT_001d1474[4] = (int)FUN_00020e40;\n    return;\n  }\n  do {\n    piVar3 = piVar1;\n    piVar1 = (int *)*piVar3;\n  } while (piVar1 != (int *)0x0);\n  *piVar3 = *DAT_001d1474;\n  *piVar2 = (int)param_1;\n  return;\n}\n\n" comment (function_definition "void FUN_0002cea0(int *param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  \n  piVar2 = DAT_001d1474;\n  piVar1 = param_1;\n  if (DAT_001d1474 == (int *)0x0) {\n    DAT_001d1474 = (int *)xcalloc(1,0x14);\n    *DAT_001d1474 = (int)param_1;\n    DAT_001d1474[4] = (int)FUN_00020e40;\n    return;\n  }\n  do {\n    piVar3 = piVar1;\n    piVar1 = (int *)*piVar3;\n  } while (piVar1 != (int *)0x0);\n  *piVar3 = *DAT_001d1474;\n  *piVar2 = (int)param_1;\n  return;\n}" primitive_type (function_declarator "FUN_0002cea0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  \n  piVar2 = DAT_001d1474;\n  piVar1 = param_1;\n  if (DAT_001d1474 == (int *)0x0) {\n    DAT_001d1474 = (int *)xcalloc(1,0x14);\n    *DAT_001d1474 = (int)param_1;\n    DAT_001d1474[4] = (int)FUN_00020e40;\n    return;\n  }\n  do {\n    piVar3 = piVar1;\n    piVar1 = (int *)*piVar3;\n  } while (piVar1 != (int *)0x0);\n  *piVar3 = *DAT_001d1474;\n  *piVar2 = (int)param_1;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "piVar2 = DAT_001d1474;" (assignment_expression "piVar2 = DAT_001d1474" identifier = identifier) ;) (expression_statement "piVar1 = param_1;" (assignment_expression "piVar1 = param_1" identifier = identifier) ;) (if_statement "if (DAT_001d1474 == (int *)0x0) {\n    DAT_001d1474 = (int *)xcalloc(1,0x14);\n    *DAT_001d1474 = (int)param_1;\n    DAT_001d1474[4] = (int)FUN_00020e40;\n    return;\n  }" if (parenthesized_expression "(DAT_001d1474 == (int *)0x0)" ( (binary_expression "DAT_001d1474 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    DAT_001d1474 = (int *)xcalloc(1,0x14);\n    *DAT_001d1474 = (int)param_1;\n    DAT_001d1474[4] = (int)FUN_00020e40;\n    return;\n  }" { (expression_statement "DAT_001d1474 = (int *)xcalloc(1,0x14);" (assignment_expression "DAT_001d1474 = (int *)xcalloc(1,0x14)" identifier = (cast_expression "(int *)xcalloc(1,0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xcalloc(1,0x14)" identifier (argument_list "(1,0x14)" ( number_literal , number_literal ))))) ;) (expression_statement "*DAT_001d1474 = (int)param_1;" (assignment_expression "*DAT_001d1474 = (int)param_1" (pointer_expression "*DAT_001d1474" * identifier) = (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "DAT_001d1474[4] = (int)FUN_00020e40;" (assignment_expression "DAT_001d1474[4] = (int)FUN_00020e40" (subscript_expression "DAT_001d1474[4]" identifier [ number_literal ]) = (cast_expression "(int)FUN_00020e40" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (return_statement "return;" return ;) })) (do_statement "do {\n    piVar3 = piVar1;\n    piVar1 = (int *)*piVar3;\n  } while (piVar1 != (int *)0x0);" do (compound_statement "{\n    piVar3 = piVar1;\n    piVar1 = (int *)*piVar3;\n  }" { (expression_statement "piVar3 = piVar1;" (assignment_expression "piVar3 = piVar1" identifier = identifier) ;) (expression_statement "piVar1 = (int *)*piVar3;" (assignment_expression "piVar1 = (int *)*piVar3" identifier = (cast_expression "(int *)*piVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier))) ;) }) while (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "*piVar3 = *DAT_001d1474;" (assignment_expression "*piVar3 = *DAT_001d1474" (pointer_expression "*piVar3" * identifier) = (pointer_expression "*DAT_001d1474" * identifier)) ;) (expression_statement "*piVar2 = (int)param_1;" (assignment_expression "*piVar2 = (int)param_1" (pointer_expression "*piVar2" * identifier) = (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid lang_append_dynamic_list(bfd_elf_version_expr *dynamic)\n\n{\n  bfd_elf_version_expr *pbVar1;\n  bfd_elf_dynamic_list *pbVar2;\n  bfd_elf_version_expr *pbVar3;\n  \n  pbVar2 = link_info.dynamic_list;\n  pbVar1 = dynamic;\n  if (link_info.dynamic_list == (bfd_elf_dynamic_list *)0x0) {\n    link_info.dynamic_list = (bfd_elf_dynamic_list *)xcalloc(1,0x14);\n    ((link_info.dynamic_list)->head).list = dynamic;\n    (link_info.dynamic_list)->match = lang_vers_match;\n    return;\n  }\n  do {\n    pbVar3 = pbVar1;\n    pbVar1 = pbVar3->next;\n  } while (pbVar1 != (bfd_elf_version_expr *)0x0);\n  pbVar3->next = ((link_info.dynamic_list)->head).list;\n  (pbVar2->head).list = dynamic;\n  return;\n}\n\n" comment (function_definition "void lang_append_dynamic_list(bfd_elf_version_expr *dynamic)\n\n{\n  bfd_elf_version_expr *pbVar1;\n  bfd_elf_dynamic_list *pbVar2;\n  bfd_elf_version_expr *pbVar3;\n  \n  pbVar2 = link_info.dynamic_list;\n  pbVar1 = dynamic;\n  if (link_info.dynamic_list == (bfd_elf_dynamic_list *)0x0) {\n    link_info.dynamic_list = (bfd_elf_dynamic_list *)xcalloc(1,0x14);\n    ((link_info.dynamic_list)->head).list = dynamic;\n    (link_info.dynamic_list)->match = lang_vers_match;\n    return;\n  }\n  do {\n    pbVar3 = pbVar1;\n    pbVar1 = pbVar3->next;\n  } while (pbVar1 != (bfd_elf_version_expr *)0x0);\n  pbVar3->next = ((link_info.dynamic_list)->head).list;\n  (pbVar2->head).list = dynamic;\n  return;\n}" primitive_type (function_declarator "lang_append_dynamic_list(bfd_elf_version_expr *dynamic)" identifier (parameter_list "(bfd_elf_version_expr *dynamic)" ( (parameter_declaration "bfd_elf_version_expr *dynamic" type_identifier (pointer_declarator "*dynamic" * identifier)) ))) (compound_statement "{\n  bfd_elf_version_expr *pbVar1;\n  bfd_elf_dynamic_list *pbVar2;\n  bfd_elf_version_expr *pbVar3;\n  \n  pbVar2 = link_info.dynamic_list;\n  pbVar1 = dynamic;\n  if (link_info.dynamic_list == (bfd_elf_dynamic_list *)0x0) {\n    link_info.dynamic_list = (bfd_elf_dynamic_list *)xcalloc(1,0x14);\n    ((link_info.dynamic_list)->head).list = dynamic;\n    (link_info.dynamic_list)->match = lang_vers_match;\n    return;\n  }\n  do {\n    pbVar3 = pbVar1;\n    pbVar1 = pbVar3->next;\n  } while (pbVar1 != (bfd_elf_version_expr *)0x0);\n  pbVar3->next = ((link_info.dynamic_list)->head).list;\n  (pbVar2->head).list = dynamic;\n  return;\n}" { (declaration "bfd_elf_version_expr *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "bfd_elf_dynamic_list *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "bfd_elf_version_expr *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (expression_statement "pbVar2 = link_info.dynamic_list;" (assignment_expression "pbVar2 = link_info.dynamic_list" identifier = (field_expression "link_info.dynamic_list" identifier . field_identifier)) ;) (expression_statement "pbVar1 = dynamic;" (assignment_expression "pbVar1 = dynamic" identifier = identifier) ;) (if_statement "if (link_info.dynamic_list == (bfd_elf_dynamic_list *)0x0) {\n    link_info.dynamic_list = (bfd_elf_dynamic_list *)xcalloc(1,0x14);\n    ((link_info.dynamic_list)->head).list = dynamic;\n    (link_info.dynamic_list)->match = lang_vers_match;\n    return;\n  }" if (parenthesized_expression "(link_info.dynamic_list == (bfd_elf_dynamic_list *)0x0)" ( (binary_expression "link_info.dynamic_list == (bfd_elf_dynamic_list *)0x0" (field_expression "link_info.dynamic_list" identifier . field_identifier) == (cast_expression "(bfd_elf_dynamic_list *)0x0" ( (type_descriptor "bfd_elf_dynamic_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    link_info.dynamic_list = (bfd_elf_dynamic_list *)xcalloc(1,0x14);\n    ((link_info.dynamic_list)->head).list = dynamic;\n    (link_info.dynamic_list)->match = lang_vers_match;\n    return;\n  }" { (expression_statement "link_info.dynamic_list = (bfd_elf_dynamic_list *)xcalloc(1,0x14);" (assignment_expression "link_info.dynamic_list = (bfd_elf_dynamic_list *)xcalloc(1,0x14)" (field_expression "link_info.dynamic_list" identifier . field_identifier) = (cast_expression "(bfd_elf_dynamic_list *)xcalloc(1,0x14)" ( (type_descriptor "bfd_elf_dynamic_list *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xcalloc(1,0x14)" identifier (argument_list "(1,0x14)" ( number_literal , number_literal ))))) ;) (expression_statement "((link_info.dynamic_list)->head).list = dynamic;" (assignment_expression "((link_info.dynamic_list)->head).list = dynamic" (field_expression "((link_info.dynamic_list)->head).list" (parenthesized_expression "((link_info.dynamic_list)->head)" ( (field_expression "(link_info.dynamic_list)->head" (parenthesized_expression "(link_info.dynamic_list)" ( (field_expression "link_info.dynamic_list" identifier . field_identifier) )) -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "(link_info.dynamic_list)->match = lang_vers_match;" (assignment_expression "(link_info.dynamic_list)->match = lang_vers_match" (field_expression "(link_info.dynamic_list)->match" (parenthesized_expression "(link_info.dynamic_list)" ( (field_expression "link_info.dynamic_list" identifier . field_identifier) )) -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })) (do_statement "do {\n    pbVar3 = pbVar1;\n    pbVar1 = pbVar3->next;\n  } while (pbVar1 != (bfd_elf_version_expr *)0x0);" do (compound_statement "{\n    pbVar3 = pbVar1;\n    pbVar1 = pbVar3->next;\n  }" { (expression_statement "pbVar3 = pbVar1;" (assignment_expression "pbVar3 = pbVar1" identifier = identifier) ;) (expression_statement "pbVar1 = pbVar3->next;" (assignment_expression "pbVar1 = pbVar3->next" identifier = (field_expression "pbVar3->next" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(pbVar1 != (bfd_elf_version_expr *)0x0)" ( (binary_expression "pbVar1 != (bfd_elf_version_expr *)0x0" identifier != (cast_expression "(bfd_elf_version_expr *)0x0" ( (type_descriptor "bfd_elf_version_expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "pbVar3->next = ((link_info.dynamic_list)->head).list;" (assignment_expression "pbVar3->next = ((link_info.dynamic_list)->head).list" (field_expression "pbVar3->next" identifier -> field_identifier) = (field_expression "((link_info.dynamic_list)->head).list" (parenthesized_expression "((link_info.dynamic_list)->head)" ( (field_expression "(link_info.dynamic_list)->head" (parenthesized_expression "(link_info.dynamic_list)" ( (field_expression "link_info.dynamic_list" identifier . field_identifier) )) -> field_identifier) )) . field_identifier)) ;) (expression_statement "(pbVar2->head).list = dynamic;" (assignment_expression "(pbVar2->head).list = dynamic" (field_expression "(pbVar2->head).list" (parenthesized_expression "(pbVar2->head)" ( (field_expression "pbVar2->head" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0002cea0(int *param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  \n  piVar2 = DAT_001d1474;\n  piVar1 = param_1;\n  if (DAT_001d1474 == (int *)0x0) {\n    DAT_001d1474 = (int *)xcalloc(1,0x14);\n    *DAT_001d1474 = (int)param_1;\n    DAT_001d1474[4] = (int)FUN_00020e40;\n    return;\n  }\n  do {\n    piVar3 = piVar1;\n    piVar1 = (int *)*piVar3;\n  } while (piVar1 != (int *)0x0);\n  *piVar3 = *DAT_001d1474;\n  *piVar2 = (int)param_1;\n  return;\n}\n\n" (function_definition "void FUN_0002cea0(int *param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  \n  piVar2 = DAT_001d1474;\n  piVar1 = param_1;\n  if (DAT_001d1474 == (int *)0x0) {\n    DAT_001d1474 = (int *)xcalloc(1,0x14);\n    *DAT_001d1474 = (int)param_1;\n    DAT_001d1474[4] = (int)FUN_00020e40;\n    return;\n  }\n  do {\n    piVar3 = piVar1;\n    piVar1 = (int *)*piVar3;\n  } while (piVar1 != (int *)0x0);\n  *piVar3 = *DAT_001d1474;\n  *piVar2 = (int)param_1;\n  return;\n}" primitive_type (function_declarator "FUN_0002cea0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  \n  piVar2 = DAT_001d1474;\n  piVar1 = param_1;\n  if (DAT_001d1474 == (int *)0x0) {\n    DAT_001d1474 = (int *)xcalloc(1,0x14);\n    *DAT_001d1474 = (int)param_1;\n    DAT_001d1474[4] = (int)FUN_00020e40;\n    return;\n  }\n  do {\n    piVar3 = piVar1;\n    piVar1 = (int *)*piVar3;\n  } while (piVar1 != (int *)0x0);\n  *piVar3 = *DAT_001d1474;\n  *piVar2 = (int)param_1;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "piVar2 = DAT_001d1474;" (assignment_expression "piVar2 = DAT_001d1474" identifier = identifier) ;) (expression_statement "piVar1 = param_1;" (assignment_expression "piVar1 = param_1" identifier = identifier) ;) (if_statement "if (DAT_001d1474 == (int *)0x0) {\n    DAT_001d1474 = (int *)xcalloc(1,0x14);\n    *DAT_001d1474 = (int)param_1;\n    DAT_001d1474[4] = (int)FUN_00020e40;\n    return;\n  }" if (parenthesized_expression "(DAT_001d1474 == (int *)0x0)" ( (binary_expression "DAT_001d1474 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    DAT_001d1474 = (int *)xcalloc(1,0x14);\n    *DAT_001d1474 = (int)param_1;\n    DAT_001d1474[4] = (int)FUN_00020e40;\n    return;\n  }" { (expression_statement "DAT_001d1474 = (int *)xcalloc(1,0x14);" (assignment_expression "DAT_001d1474 = (int *)xcalloc(1,0x14)" identifier = (cast_expression "(int *)xcalloc(1,0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xcalloc(1,0x14)" identifier (argument_list "(1,0x14)" ( number_literal , number_literal ))))) ;) (expression_statement "*DAT_001d1474 = (int)param_1;" (assignment_expression "*DAT_001d1474 = (int)param_1" (pointer_expression "*DAT_001d1474" * identifier) = (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "DAT_001d1474[4] = (int)FUN_00020e40;" (assignment_expression "DAT_001d1474[4] = (int)FUN_00020e40" (subscript_expression "DAT_001d1474[4]" identifier [ number_literal ]) = (cast_expression "(int)FUN_00020e40" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (return_statement "return;" return ;) })) (do_statement "do {\n    piVar3 = piVar1;\n    piVar1 = (int *)*piVar3;\n  } while (piVar1 != (int *)0x0);" do (compound_statement "{\n    piVar3 = piVar1;\n    piVar1 = (int *)*piVar3;\n  }" { (expression_statement "piVar3 = piVar1;" (assignment_expression "piVar3 = piVar1" identifier = identifier) ;) (expression_statement "piVar1 = (int *)*piVar3;" (assignment_expression "piVar1 = (int *)*piVar3" identifier = (cast_expression "(int *)*piVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier))) ;) }) while (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "*piVar3 = *DAT_001d1474;" (assignment_expression "*piVar3 = *DAT_001d1474" (pointer_expression "*piVar3" * identifier) = (pointer_expression "*DAT_001d1474" * identifier)) ;) (expression_statement "*piVar2 = (int)param_1;" (assignment_expression "*piVar2 = (int)param_1" (pointer_expression "*piVar2" * identifier) = (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (return_statement return ;) })) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (return_statement return ;) })))
(function_definition "void FUN_0002cea0(int *param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  \n  piVar2 = DAT_001d1474;\n  piVar1 = param_1;\n  if (DAT_001d1474 == (int *)0x0) {\n    DAT_001d1474 = (int *)xcalloc(1,0x14);\n    *DAT_001d1474 = (int)param_1;\n    DAT_001d1474[4] = (int)FUN_00020e40;\n    return;\n  }\n  do {\n    piVar3 = piVar1;\n    piVar1 = (int *)*piVar3;\n  } while (piVar1 != (int *)0x0);\n  *piVar3 = *DAT_001d1474;\n  *piVar2 = (int)param_1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0002cea0(int *param_1)" (identifier "FUN_0002cea0") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  \n  piVar2 = DAT_001d1474;\n  piVar1 = param_1;\n  if (DAT_001d1474 == (int *)0x0) {\n    DAT_001d1474 = (int *)xcalloc(1,0x14);\n    *DAT_001d1474 = (int)param_1;\n    DAT_001d1474[4] = (int)FUN_00020e40;\n    return;\n  }\n  do {\n    piVar3 = piVar1;\n    piVar1 = (int *)*piVar3;\n  } while (piVar1 != (int *)0x0);\n  *piVar3 = *DAT_001d1474;\n  *piVar2 = (int)param_1;\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (expression_statement "piVar2 = DAT_001d1474;" (assignment_expression "piVar2 = DAT_001d1474" (identifier "piVar2") (= "=") (identifier "DAT_001d1474")) (; ";")) (expression_statement "piVar1 = param_1;" (assignment_expression "piVar1 = param_1" (identifier "piVar1") (= "=") (identifier "param_1")) (; ";")) (if_statement "if (DAT_001d1474 == (int *)0x0) {\n    DAT_001d1474 = (int *)xcalloc(1,0x14);\n    *DAT_001d1474 = (int)param_1;\n    DAT_001d1474[4] = (int)FUN_00020e40;\n    return;\n  }" (if "if") (parenthesized_expression "(DAT_001d1474 == (int *)0x0)" (( "(") (binary_expression "DAT_001d1474 == (int *)0x0" (identifier "DAT_001d1474") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    DAT_001d1474 = (int *)xcalloc(1,0x14);\n    *DAT_001d1474 = (int)param_1;\n    DAT_001d1474[4] = (int)FUN_00020e40;\n    return;\n  }" ({ "{") (expression_statement "DAT_001d1474 = (int *)xcalloc(1,0x14);" (assignment_expression "DAT_001d1474 = (int *)xcalloc(1,0x14)" (identifier "DAT_001d1474") (= "=") (cast_expression "(int *)xcalloc(1,0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xcalloc(1,0x14)" (identifier "xcalloc") (argument_list "(1,0x14)" (( "(") (number_literal "1") (, ",") (number_literal "0x14") () ")"))))) (; ";")) (expression_statement "*DAT_001d1474 = (int)param_1;" (assignment_expression "*DAT_001d1474 = (int)param_1" (pointer_expression "*DAT_001d1474" (* "*") (identifier "DAT_001d1474")) (= "=") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) (; ";")) (expression_statement "DAT_001d1474[4] = (int)FUN_00020e40;" (assignment_expression "DAT_001d1474[4] = (int)FUN_00020e40" (subscript_expression "DAT_001d1474[4]" (identifier "DAT_001d1474") ([ "[") (number_literal "4") (] "]")) (= "=") (cast_expression "(int)FUN_00020e40" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "FUN_00020e40"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (do_statement "do {\n    piVar3 = piVar1;\n    piVar1 = (int *)*piVar3;\n  } while (piVar1 != (int *)0x0);" (do "do") (compound_statement "{\n    piVar3 = piVar1;\n    piVar1 = (int *)*piVar3;\n  }" ({ "{") (expression_statement "piVar3 = piVar1;" (assignment_expression "piVar3 = piVar1" (identifier "piVar3") (= "=") (identifier "piVar1")) (; ";")) (expression_statement "piVar1 = (int *)*piVar3;" (assignment_expression "piVar1 = (int *)*piVar3" (identifier "piVar1") (= "=") (cast_expression "(int *)*piVar3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar3" (* "*") (identifier "piVar3")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar1 != (int *)0x0)" (( "(") (binary_expression "piVar1 != (int *)0x0" (identifier "piVar1") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (expression_statement "*piVar3 = *DAT_001d1474;" (assignment_expression "*piVar3 = *DAT_001d1474" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (pointer_expression "*DAT_001d1474" (* "*") (identifier "DAT_001d1474"))) (; ";")) (expression_statement "*piVar2 = (int)param_1;" (assignment_expression "*piVar2 = (int)param_1" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *dynamic)

{
  type_1 *var_2;
  type_2 *pbVar2;
  type_1 *pbVar3;
  
  pbVar2 = link_info.dynamic_list;
  var_2 = dynamic;
  if (link_info.dynamic_list == (type_2 *)0x0) {
    link_info.dynamic_list = (type_2 *)var_1(1,0x14);
    ((link_info.dynamic_list)->head).list = dynamic;
    (link_info.dynamic_list)->match = lang_vers_match;
    return;
  }
  do {
    pbVar3 = var_2;
    var_2 = pbVar3->next;
  } while (var_2 != (type_1 *)0x0);
  pbVar3->next = ((link_info.dynamic_list)->head).list;
  (pbVar2->head).list = dynamic;
  return;
}


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

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

void MASKED(int *param_1)

{
  int *piVar1;
  int *piVar2;
  int *piVar3;
  
  piVar2 = DAT_001d1474;
  piVar1 = param_1;
  if (DAT_001d1474 == (int *)0x0) {
    DAT_001d1474 = (int *)xcalloc(1,0x14);
    *DAT_001d1474 = (int)param_1;
    DAT_001d1474[4] = (int)FUN_00020e40;
    return;
  }
  do {
    piVar3 = piVar1;
    piVar1 = (int *)*piVar3;
  } while (piVar1 != (int *)0x0);
  *piVar3 = *DAT_001d1474;
  *piVar2 = (int)param_1;
  return;
}

