
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

Version_dependency_list *
script_add_vers_depend
          (void *closurev,Version_dependency_list *all_deps,char *depend_to_add,int deplen)

{
  basic_string<char,_std::char_traits<char>,_std::allocator<char>_> local_34;
  
  if (all_deps == (Version_dependency_list *)0x0) {
    all_deps = gold::Version_script_info::allocate_dependency_list
                         (*(Version_script_info **)((int)closurev + 0x24));
  }
  local_34._M_dataplus._M_p = (pointer)&local_34.field_2;
  std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::
  _M_construct<char_const*>(&local_34,depend_to_add,depend_to_add + deplen,0);
                    /* try { // try from 0016c19c to 0016c1a0 has its CatchHandler @ 0016c1e0 */
  std::
  vector<std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>,_std::allocator<std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_>_>
  ::emplace_back<std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_>
            (&all_deps->dependencies,&local_34);
  if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9
       *)local_34._M_dataplus._M_p != &local_34.field_2) {
    operator_delete(local_34._M_dataplus._M_p);
  }
  return all_deps;
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

int FUN_0016c160(int param_1,int param_2,int param_3,int param_4)

{
  undefined1 *local_34 [2];
  undefined1 local_2c [28];
  
  if (param_2 == 0) {
    param_2 = FUN_0016b9b0(*(undefined4 *)(param_1 + 0x24));
  }
  local_34[0] = local_2c;
  FUN_00050e40(local_34,param_3,param_4 + param_3,0);
                    /* try { // try from 0016c19c to 0016c1a0 has its CatchHandler @ 0016c1e0 */
  FUN_0005bbb0(param_2,local_34);
  if (local_34[0] != local_2c) {
    FUN_001e6db0(local_34[0]);
  }
  return param_2;
}


CALL 0x000559e6
ADD EAX,0x222e9b
PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x3c
MOV ESI,dword ptr [EBP + 0xc]
MOV EDX,dword ptr [EBP + 0x10]
MOV dword ptr [EBP + -0x3c],EAX
TEST ESI,ESI
JZ 0x0016c1c8
MOV EAX,dword ptr [EBP + 0x14]
LEA EBX,[EBP + -0x30]
PUSH 0x0
LEA EDI,[EBP + -0x28]
MOV dword ptr [EBP + -0x30],EDI
ADD EAX,EDX
PUSH EAX
PUSH EDX
PUSH EBX
CALL 0x00050e40
POP EAX
POP EDX
PUSH EBX
PUSH ESI
CALL 0x0005bbb0
MOV EAX,dword ptr [EBP + -0x30]
ADD ESP,0x10
CMP EAX,EDI
JZ 0x0016c1ba
SUB ESP,0xc
MOV EBX,dword ptr [EBP + -0x3c]
PUSH EAX
CALL 0x001e6db0
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [EBP + 0x8]
SUB ESP,0xc
PUSH dword ptr [EAX + 0x24]
CALL 0x0016b9b0
ADD ESP,0x10
MOV EDX,dword ptr [EBP + 0x10]
MOV ESI,EAX
JMP 0x0016c180
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nint FUN_0016c160(int param_1,int param_2,int param_3,int param_4)\n\n{\n  undefined1 *local_34 [2];\n  undefined1 local_2c [28];\n  \n  if (param_2 == 0) {\n    param_2 = FUN_0016b9b0(*(undefined4 *)(param_1 + 0x24));\n  }\n  local_34[0] = local_2c;\n  FUN_00050e40(local_34,param_3,param_4 + param_3,0);\n                    /* try { // try from 0016c19c to 0016c1a0 has its CatchHandler @ 0016c1e0 */\n  FUN_0005bbb0(param_2,local_34);\n  if (local_34[0] != local_2c) {\n    FUN_001e6db0(local_34[0]);\n  }\n  return param_2;\n}\n\n" comment (function_definition "int FUN_0016c160(int param_1,int param_2,int param_3,int param_4)\n\n{\n  undefined1 *local_34 [2];\n  undefined1 local_2c [28];\n  \n  if (param_2 == 0) {\n    param_2 = FUN_0016b9b0(*(undefined4 *)(param_1 + 0x24));\n  }\n  local_34[0] = local_2c;\n  FUN_00050e40(local_34,param_3,param_4 + param_3,0);\n                    /* try { // try from 0016c19c to 0016c1a0 has its CatchHandler @ 0016c1e0 */\n  FUN_0005bbb0(param_2,local_34);\n  if (local_34[0] != local_2c) {\n    FUN_001e6db0(local_34[0]);\n  }\n  return param_2;\n}" primitive_type (function_declarator "FUN_0016c160(int param_1,int param_2,int param_3,int param_4)" identifier (parameter_list "(int param_1,int param_2,int param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  undefined1 *local_34 [2];\n  undefined1 local_2c [28];\n  \n  if (param_2 == 0) {\n    param_2 = FUN_0016b9b0(*(undefined4 *)(param_1 + 0x24));\n  }\n  local_34[0] = local_2c;\n  FUN_00050e40(local_34,param_3,param_4 + param_3,0);\n                    /* try { // try from 0016c19c to 0016c1a0 has its CatchHandler @ 0016c1e0 */\n  FUN_0005bbb0(param_2,local_34);\n  if (local_34[0] != local_2c) {\n    FUN_001e6db0(local_34[0]);\n  }\n  return param_2;\n}" { (declaration "undefined1 *local_34 [2];" type_identifier (pointer_declarator "*local_34 [2]" * (array_declarator "local_34 [2]" identifier [ number_literal ])) ;) (declaration "undefined1 local_2c [28];" type_identifier (array_declarator "local_2c [28]" identifier [ number_literal ]) ;) (if_statement "if (param_2 == 0) {\n    param_2 = FUN_0016b9b0(*(undefined4 *)(param_1 + 0x24));\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    param_2 = FUN_0016b9b0(*(undefined4 *)(param_1 + 0x24));\n  }" { (expression_statement "param_2 = FUN_0016b9b0(*(undefined4 *)(param_1 + 0x24));" (assignment_expression "param_2 = FUN_0016b9b0(*(undefined4 *)(param_1 + 0x24))" identifier = (call_expression "FUN_0016b9b0(*(undefined4 *)(param_1 + 0x24))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x24))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x24)" * (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) )))) ;) })) (expression_statement "local_34[0] = local_2c;" (assignment_expression "local_34[0] = local_2c" (subscript_expression "local_34[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_00050e40(local_34,param_3,param_4 + param_3,0);" (call_expression "FUN_00050e40(local_34,param_3,param_4 + param_3,0)" identifier (argument_list "(local_34,param_3,param_4 + param_3,0)" ( identifier , identifier , (binary_expression "param_4 + param_3" identifier + identifier) , number_literal ))) ;) comment (expression_statement "FUN_0005bbb0(param_2,local_34);" (call_expression "FUN_0005bbb0(param_2,local_34)" identifier (argument_list "(param_2,local_34)" ( identifier , identifier ))) ;) (if_statement "if (local_34[0] != local_2c) {\n    FUN_001e6db0(local_34[0]);\n  }" if (parenthesized_expression "(local_34[0] != local_2c)" ( (binary_expression "local_34[0] != local_2c" (subscript_expression "local_34[0]" identifier [ number_literal ]) != identifier) )) (compound_statement "{\n    FUN_001e6db0(local_34[0]);\n  }" { (expression_statement "FUN_001e6db0(local_34[0]);" (call_expression "FUN_001e6db0(local_34[0])" identifier (argument_list "(local_34[0])" ( (subscript_expression "local_34[0]" identifier [ number_literal ]) ))) ;) })) (return_statement "return param_2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nVersion_dependency_list *\nscript_add_vers_depend\n          (void *closurev,Version_dependency_list *all_deps,char *depend_to_add,int deplen)\n\n{\n  basic_string<char,_std::char_traits<char>,_std::allocator<char>_> local_34;\n  \n  if (all_deps == (Version_dependency_list *)0x0) {\n    all_deps = gold::Version_script_info::allocate_dependency_list\n                         (*(Version_script_info **)((int)closurev + 0x24));\n  }\n  local_34._M_dataplus._M_p = (pointer)&local_34.field_2;\n  std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n  _M_construct<char_const*>(&local_34,depend_to_add,depend_to_add + deplen,0);\n                    /* try { // try from 0016c19c to 0016c1a0 has its CatchHandler @ 0016c1e0 */\n  std::\n  vector<std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>,_std::allocator<std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_>_>\n  ::emplace_back<std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_>\n            (&all_deps->dependencies,&local_34);\n  if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n       *)local_34._M_dataplus._M_p != &local_34.field_2) {\n    operator_delete(local_34._M_dataplus._M_p);\n  }\n  return all_deps;\n}\n\n" comment (function_definition "Version_dependency_list *\nscript_add_vers_depend\n          (void *closurev,Version_dependency_list *all_deps,char *depend_to_add,int deplen)\n\n{\n  basic_string<char,_std::char_traits<char>,_std::allocator<char>_> local_34;\n  \n  if (all_deps == (Version_dependency_list *)0x0) {\n    all_deps = gold::Version_script_info::allocate_dependency_list\n                         (*(Version_script_info **)((int)closurev + 0x24));\n  }\n  local_34._M_dataplus._M_p = (pointer)&local_34.field_2;\n  std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n  _M_construct<char_const*>(&local_34,depend_to_add,depend_to_add + deplen,0);\n                    /* try { // try from 0016c19c to 0016c1a0 has its CatchHandler @ 0016c1e0 */\n  std::\n  vector<std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>,_std::allocator<std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_>_>\n  ::emplace_back<std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_>\n            (&all_deps->dependencies,&local_34);\n  if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n       *)local_34._M_dataplus._M_p != &local_34.field_2) {\n    operator_delete(local_34._M_dataplus._M_p);\n  }\n  return all_deps;\n}" type_identifier (pointer_declarator "*\nscript_add_vers_depend\n          (void *closurev,Version_dependency_list *all_deps,char *depend_to_add,int deplen)" * (function_declarator "script_add_vers_depend\n          (void *closurev,Version_dependency_list *all_deps,char *depend_to_add,int deplen)" identifier (parameter_list "(void *closurev,Version_dependency_list *all_deps,char *depend_to_add,int deplen)" ( (parameter_declaration "void *closurev" primitive_type (pointer_declarator "*closurev" * identifier)) , (parameter_declaration "Version_dependency_list *all_deps" type_identifier (pointer_declarator "*all_deps" * identifier)) , (parameter_declaration "char *depend_to_add" primitive_type (pointer_declarator "*depend_to_add" * identifier)) , (parameter_declaration "int deplen" primitive_type identifier) )))) (compound_statement "{\n  basic_string<char,_std::char_traits<char>,_std::allocator<char>_> local_34;\n  \n  if (all_deps == (Version_dependency_list *)0x0) {\n    all_deps = gold::Version_script_info::allocate_dependency_list\n                         (*(Version_script_info **)((int)closurev + 0x24));\n  }\n  local_34._M_dataplus._M_p = (pointer)&local_34.field_2;\n  std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n  _M_construct<char_const*>(&local_34,depend_to_add,depend_to_add + deplen,0);\n                    /* try { // try from 0016c19c to 0016c1a0 has its CatchHandler @ 0016c1e0 */\n  std::\n  vector<std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>,_std::allocator<std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_>_>\n  ::emplace_back<std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_>\n            (&all_deps->dependencies,&local_34);\n  if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n       *)local_34._M_dataplus._M_p != &local_34.field_2) {\n    operator_delete(local_34._M_dataplus._M_p);\n  }\n  return all_deps;\n}" { (ERROR "basic_string<char,_std::char_traits<char>,_std::" (comma_expression "basic_string<char,_std" (binary_expression "basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char>,_std" (binary_expression "char_traits<char" identifier < identifier) > (ERROR "," ,) identifier) : :) (expression_statement "allocator<char>_> local_34;" (binary_expression "allocator<char>_> local_34" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > identifier) ;) (if_statement "if (all_deps == (Version_dependency_list *)0x0) {\n    all_deps = gold::Version_script_info::allocate_dependency_list\n                         (*(Version_script_info **)((int)closurev + 0x24));\n  }" if (parenthesized_expression "(all_deps == (Version_dependency_list *)0x0)" ( (binary_expression "all_deps == (Version_dependency_list *)0x0" identifier == (cast_expression "(Version_dependency_list *)0x0" ( (type_descriptor "Version_dependency_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    all_deps = gold::Version_script_info::allocate_dependency_list\n                         (*(Version_script_info **)((int)closurev + 0x24));\n  }" { (ERROR "all_deps = gold::" (assignment_expression "all_deps = gold" identifier = identifier) : :) (labeled_statement "Version_script_info::allocate_dependency_list\n                         (*(Version_script_info **)((int)closurev + 0x24));" statement_identifier : (ERROR ":" :) (expression_statement "allocate_dependency_list\n                         (*(Version_script_info **)((int)closurev + 0x24));" (call_expression "allocate_dependency_list\n                         (*(Version_script_info **)((int)closurev + 0x24))" identifier (argument_list "(*(Version_script_info **)((int)closurev + 0x24))" ( (pointer_expression "*(Version_script_info **)((int)closurev + 0x24)" * (cast_expression "(Version_script_info **)((int)closurev + 0x24)" ( (type_descriptor "Version_script_info **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)closurev + 0x24)" ( (binary_expression "(int)closurev + 0x24" (cast_expression "(int)closurev" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;)) })) (expression_statement "local_34._M_dataplus._M_p = (pointer)&local_34.field_2;" (assignment_expression "local_34._M_dataplus._M_p = (pointer)&local_34.field_2" (field_expression "local_34._M_dataplus._M_p" (field_expression "local_34._M_dataplus" identifier . field_identifier) . field_identifier) = (binary_expression "(pointer)&local_34.field_2" (parenthesized_expression "(pointer)" ( identifier )) & (field_expression "local_34.field_2" identifier . field_identifier))) ;) (labeled_statement "std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n  _M_construct<char_const*>(&local_34,depend_to_add,depend_to_add + deplen,0);" statement_identifier (ERROR "::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>:" : : (comma_expression "__cxx11::basic_string<char,_std::char_traits<char>,_std" identifier (ERROR "::basic_string<char,_std::char_traits<char>" : : (comma_expression "basic_string<char,_std" (binary_expression "basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char" identifier < identifier) >) , identifier) : : (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > :) : (expression_statement "_M_construct<char_const*>(&local_34,depend_to_add,depend_to_add + deplen,0);" (binary_expression "_M_construct<char_const*>(&local_34,depend_to_add,depend_to_add + deplen,0)" (binary_expression "_M_construct<char_const" identifier < identifier) (ERROR "*" *) > (parenthesized_expression "(&local_34,depend_to_add,depend_to_add + deplen,0)" ( (comma_expression "&local_34,depend_to_add,depend_to_add + deplen,0" (pointer_expression "&local_34" & identifier) , (comma_expression "depend_to_add,depend_to_add + deplen,0" identifier , (comma_expression "depend_to_add + deplen,0" (binary_expression "depend_to_add + deplen" identifier + identifier) , number_literal))) ))) ;)) comment (ERROR "std::\n  vector<std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>,_std::allocator<std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_>_>\n  ::emplace_back<std::__cxx11::basic_string<char,_std::char_traits<char>,_std::" (comma_expression "std::\n  vector<std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>,_std" identifier (ERROR "::\n  vector<std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>" : : (binary_expression "vector<std" identifier < identifier) : : (comma_expression "__cxx11::basic_string<char,_std::char_traits<char>,_std" identifier (ERROR "::basic_string<char,_std::char_traits<char>" : : (comma_expression "basic_string<char,_std" (binary_expression "basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char" identifier < identifier) >) , identifier) : : (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) >) , identifier) : : (binary_expression "allocator<std" identifier < identifier) : : (comma_expression "__cxx11::basic_string<char,_std::char_traits<char>,_std" identifier (ERROR "::basic_string<char,_std::char_traits<char>" : : (comma_expression "basic_string<char,_std" (binary_expression "basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char" identifier < identifier) >) , identifier) : : (binary_expression "allocator<char>_>_>_>\n  ::emplace_back<std" (binary_expression "allocator<char>_>_>_>\n  ::emplace_back" (binary_expression "allocator<char>_>_>_" (binary_expression "allocator<char>_>_" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > identifier) > identifier) > (ERROR "::" : :) identifier) < identifier) : : (comma_expression "__cxx11::basic_string<char,_std::char_traits<char>,_std" identifier (ERROR "::basic_string<char,_std::char_traits<char>" : : (comma_expression "basic_string<char,_std" (binary_expression "basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char" identifier < identifier) >) , identifier) : :) (expression_statement "allocator<char>_>_>\n            (&all_deps->dependencies,&local_34);" (binary_expression "allocator<char>_>_>\n            (&all_deps->dependencies,&local_34)" (binary_expression "allocator<char>_>_" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > identifier) > (parenthesized_expression "(&all_deps->dependencies,&local_34)" ( (comma_expression "&all_deps->dependencies,&local_34" (pointer_expression "&all_deps->dependencies" & (field_expression "all_deps->dependencies" identifier -> field_identifier)) , (pointer_expression "&local_34" & identifier)) ))) ;) (if_statement "if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n       *)local_34._M_dataplus._M_p != &local_34.field_2) {\n    operator_delete(local_34._M_dataplus._M_p);\n  }" if (parenthesized_expression "((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n       *)local_34._M_dataplus._M_p != &local_34.field_2)" ( (parenthesized_expression "(anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n       *)local_34._M_dataplus._M_p != &local_34.field_2)" ( (ERROR "anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::" (comma_expression "anon_union_16_2_edb7204a_for_basic_string<char,_std" (binary_expression "anon_union_16_2_edb7204a_for_basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char>,_std" (binary_expression "char_traits<char" identifier < identifier) > (ERROR "," ,) identifier) : :) (binary_expression "allocator<char>_>_9\n       *)local_34._M_dataplus._M_p != &local_34.field_2" (binary_expression "allocator<char>_>_9\n       *)local_34._M_dataplus._M_p" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > (binary_expression "_9\n       *)local_34._M_dataplus._M_p" identifier * (ERROR ")" )) (field_expression "local_34._M_dataplus._M_p" (field_expression "local_34._M_dataplus" identifier . field_identifier) . field_identifier))) != (pointer_expression "&local_34.field_2" & (field_expression "local_34.field_2" identifier . field_identifier))) )) )) (compound_statement "{\n    operator_delete(local_34._M_dataplus._M_p);\n  }" { (expression_statement "operator_delete(local_34._M_dataplus._M_p);" (call_expression "operator_delete(local_34._M_dataplus._M_p)" identifier (argument_list "(local_34._M_dataplus._M_p)" ( (field_expression "local_34._M_dataplus._M_p" (field_expression "local_34._M_dataplus" identifier . field_identifier) . field_identifier) ))) ;) })) (return_statement "return all_deps;" return identifier ;) })))
(translation_unit "int FUN_0016c160(int param_1,int param_2,int param_3,int param_4)\n\n{\n  undefined1 *local_34 [2];\n  undefined1 local_2c [28];\n  \n  if (param_2 == 0) {\n    param_2 = FUN_0016b9b0(*(undefined4 *)(param_1 + 0x24));\n  }\n  local_34[0] = local_2c;\n  FUN_00050e40(local_34,param_3,param_4 + param_3,0);\n                    \n  FUN_0005bbb0(param_2,local_34);\n  if (local_34[0] != local_2c) {\n    FUN_001e6db0(local_34[0]);\n  }\n  return param_2;\n}\n\n" (function_definition "int FUN_0016c160(int param_1,int param_2,int param_3,int param_4)\n\n{\n  undefined1 *local_34 [2];\n  undefined1 local_2c [28];\n  \n  if (param_2 == 0) {\n    param_2 = FUN_0016b9b0(*(undefined4 *)(param_1 + 0x24));\n  }\n  local_34[0] = local_2c;\n  FUN_00050e40(local_34,param_3,param_4 + param_3,0);\n                    \n  FUN_0005bbb0(param_2,local_34);\n  if (local_34[0] != local_2c) {\n    FUN_001e6db0(local_34[0]);\n  }\n  return param_2;\n}" primitive_type (function_declarator "FUN_0016c160(int param_1,int param_2,int param_3,int param_4)" identifier (parameter_list "(int param_1,int param_2,int param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  undefined1 *local_34 [2];\n  undefined1 local_2c [28];\n  \n  if (param_2 == 0) {\n    param_2 = FUN_0016b9b0(*(undefined4 *)(param_1 + 0x24));\n  }\n  local_34[0] = local_2c;\n  FUN_00050e40(local_34,param_3,param_4 + param_3,0);\n                    \n  FUN_0005bbb0(param_2,local_34);\n  if (local_34[0] != local_2c) {\n    FUN_001e6db0(local_34[0]);\n  }\n  return param_2;\n}" { (declaration "undefined1 *local_34 [2];" type_identifier (pointer_declarator "*local_34 [2]" * (array_declarator "local_34 [2]" identifier [ number_literal ])) ;) (declaration "undefined1 local_2c [28];" type_identifier (array_declarator "local_2c [28]" identifier [ number_literal ]) ;) (if_statement "if (param_2 == 0) {\n    param_2 = FUN_0016b9b0(*(undefined4 *)(param_1 + 0x24));\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    param_2 = FUN_0016b9b0(*(undefined4 *)(param_1 + 0x24));\n  }" { (expression_statement "param_2 = FUN_0016b9b0(*(undefined4 *)(param_1 + 0x24));" (assignment_expression "param_2 = FUN_0016b9b0(*(undefined4 *)(param_1 + 0x24))" identifier = (call_expression "FUN_0016b9b0(*(undefined4 *)(param_1 + 0x24))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x24))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x24)" * (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) )))) ;) })) (expression_statement "local_34[0] = local_2c;" (assignment_expression "local_34[0] = local_2c" (subscript_expression "local_34[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_00050e40(local_34,param_3,param_4 + param_3,0);" (call_expression "FUN_00050e40(local_34,param_3,param_4 + param_3,0)" identifier (argument_list "(local_34,param_3,param_4 + param_3,0)" ( identifier , identifier , (binary_expression "param_4 + param_3" identifier + identifier) , number_literal ))) ;) (expression_statement "FUN_0005bbb0(param_2,local_34);" (call_expression "FUN_0005bbb0(param_2,local_34)" identifier (argument_list "(param_2,local_34)" ( identifier , identifier ))) ;) (if_statement "if (local_34[0] != local_2c) {\n    FUN_001e6db0(local_34[0]);\n  }" if (parenthesized_expression "(local_34[0] != local_2c)" ( (binary_expression "local_34[0] != local_2c" (subscript_expression "local_34[0]" identifier [ number_literal ]) != identifier) )) (compound_statement "{\n    FUN_001e6db0(local_34[0]);\n  }" { (expression_statement "FUN_001e6db0(local_34[0]);" (call_expression "FUN_001e6db0(local_34[0])" identifier (argument_list "(local_34[0])" ( (subscript_expression "local_34[0]" identifier [ number_literal ]) ))) ;) })) (return_statement "return param_2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * (array_declarator IDENT [ LIT ])) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression IDENT + IDENT) , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_0016c160(int param_1,int param_2,int param_3,int param_4)\n\n{\n  undefined1 *local_34 [2];\n  undefined1 local_2c [28];\n  \n  if (param_2 == 0) {\n    param_2 = FUN_0016b9b0(*(undefined4 *)(param_1 + 0x24));\n  }\n  local_34[0] = local_2c;\n  FUN_00050e40(local_34,param_3,param_4 + param_3,0);\n                    \n  FUN_0005bbb0(param_2,local_34);\n  if (local_34[0] != local_2c) {\n    FUN_001e6db0(local_34[0]);\n  }\n  return param_2;\n}" (primitive_type "int") (function_declarator "FUN_0016c160(int param_1,int param_2,int param_3,int param_4)" (identifier "FUN_0016c160") (parameter_list "(int param_1,int param_2,int param_3,int param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined1 *local_34 [2];\n  undefined1 local_2c [28];\n  \n  if (param_2 == 0) {\n    param_2 = FUN_0016b9b0(*(undefined4 *)(param_1 + 0x24));\n  }\n  local_34[0] = local_2c;\n  FUN_00050e40(local_34,param_3,param_4 + param_3,0);\n                    \n  FUN_0005bbb0(param_2,local_34);\n  if (local_34[0] != local_2c) {\n    FUN_001e6db0(local_34[0]);\n  }\n  return param_2;\n}" ({ "{") (declaration "undefined1 *local_34 [2];" (type_identifier "undefined1") (pointer_declarator "*local_34 [2]" (* "*") (array_declarator "local_34 [2]" (identifier "local_34") ([ "[") (number_literal "2") (] "]"))) (; ";")) (declaration "undefined1 local_2c [28];" (type_identifier "undefined1") (array_declarator "local_2c [28]" (identifier "local_2c") ([ "[") (number_literal "28") (] "]")) (; ";")) (if_statement "if (param_2 == 0) {\n    param_2 = FUN_0016b9b0(*(undefined4 *)(param_1 + 0x24));\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    param_2 = FUN_0016b9b0(*(undefined4 *)(param_1 + 0x24));\n  }" ({ "{") (expression_statement "param_2 = FUN_0016b9b0(*(undefined4 *)(param_1 + 0x24));" (assignment_expression "param_2 = FUN_0016b9b0(*(undefined4 *)(param_1 + 0x24))" (identifier "param_2") (= "=") (call_expression "FUN_0016b9b0(*(undefined4 *)(param_1 + 0x24))" (identifier "FUN_0016b9b0") (argument_list "(*(undefined4 *)(param_1 + 0x24))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x24)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) () ")")))) (; ";")) (} "}"))) (expression_statement "local_34[0] = local_2c;" (assignment_expression "local_34[0] = local_2c" (subscript_expression "local_34[0]" (identifier "local_34") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "local_2c")) (; ";")) (expression_statement "FUN_00050e40(local_34,param_3,param_4 + param_3,0);" (call_expression "FUN_00050e40(local_34,param_3,param_4 + param_3,0)" (identifier "FUN_00050e40") (argument_list "(local_34,param_3,param_4 + param_3,0)" (( "(") (identifier "local_34") (, ",") (identifier "param_3") (, ",") (binary_expression "param_4 + param_3" (identifier "param_4") (+ "+") (identifier "param_3")) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "FUN_0005bbb0(param_2,local_34);" (call_expression "FUN_0005bbb0(param_2,local_34)" (identifier "FUN_0005bbb0") (argument_list "(param_2,local_34)" (( "(") (identifier "param_2") (, ",") (identifier "local_34") () ")"))) (; ";")) (if_statement "if (local_34[0] != local_2c) {\n    FUN_001e6db0(local_34[0]);\n  }" (if "if") (parenthesized_expression "(local_34[0] != local_2c)" (( "(") (binary_expression "local_34[0] != local_2c" (subscript_expression "local_34[0]" (identifier "local_34") ([ "[") (number_literal "0") (] "]")) (!= "!=") (identifier "local_2c")) () ")")) (compound_statement "{\n    FUN_001e6db0(local_34[0]);\n  }" ({ "{") (expression_statement "FUN_001e6db0(local_34[0]);" (call_expression "FUN_001e6db0(local_34[0])" (identifier "FUN_001e6db0") (argument_list "(local_34[0])" (( "(") (subscript_expression "local_34[0]" (identifier "local_34") ([ "[") (number_literal "0") (] "]")) () ")"))) (; ";")) (} "}"))) (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

type_1 *
function_1
          (void *closurev,type_1 *var_5,char *var_9,int var_10)

{
  basic_string<var_2,_std::char_traits<var_2>,_std::var_1<var_2>var_3> var_4;
  
  if (var_5 == (type_1 *)0x0) {
    var_5 = gold::Version_script_info::var_6
                         (*(type_2 **)((int)closurev + 0x24));
  }
  var_4._M_dataplus._M_p = (pointer)&var_4.field_2;
  std::__cxx11::basic_string<var_2,_std::char_traits<var_2>,_std::var_1<var_2>var_3>::
  var_7<var_8*>(&var_4,var_9,var_9 + var_10,0);
                    /* try { // try from 0016c19c to 0016c1a0 has its CatchHandler @ 0016c1e0 */
  std::
  vector<std::__cxx11::basic_string<var_2,_std::char_traits<var_2>,_std::var_1<var_2>var_3>,_std::var_1<std::__cxx11::basic_string<var_2,_std::char_traits<var_2>,_std::var_1<var_2>var_3>var_3>var_3>
  ::emplace_back<std::__cxx11::basic_string<var_2,_std::char_traits<var_2>,_std::var_1<var_2>var_3>var_3>
            (&var_5->dependencies,&var_4);
  if ((anon_union_16_2_edb7204a_for_basic_string<var_2,_std::char_traits<var_2>,_std::var_1<var_2>var_3>var_11
       *)var_4._M_dataplus._M_p != &var_4.field_2) {
    var_12(var_4._M_dataplus._M_p);
  }
  return var_5;
}


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

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

int MASKED(int param_1,int param_2,int param_3,int param_4)

{
  undefined1 *local_34 [2];
  undefined1 local_2c [28];
  
  if (param_2 == 0) {
    param_2 = FUN_0016b9b0(*(undefined4 *)(param_1 + 0x24));
  }
  local_34[0] = local_2c;
  FUN_00050e40(local_34,param_3,param_4 + param_3,0);
                    /* try { // try from 0016c19c to 0016c1a0 has its CatchHandler @ 0016c1e0 */
  FUN_0005bbb0(param_2,local_34);
  if (local_34[0] != local_2c) {
    FUN_001e6db0(local_34[0]);
  }
  return param_2;
}

