
/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */
/* WARNING: Unknown calling convention */

void ar_addlib_doer(bfd *abfd,bfd *prev)

{
  bfd *pbVar1;
  
  if (prev != (bfd *)0x0) {
    prev->archive_next = abfd->archive_next;
  }
  pbVar1 = obfd;
  abfd->archive_next = obfd->archive_head;
  pbVar1->archive_head = abfd;
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

void FUN_00016760(int param_1,int param_2)

{
  int iVar1;
  
  if (param_2 != 0) {
    *(undefined4 *)(param_2 + 0x90) = *(undefined4 *)(param_1 + 0x90);
  }
  iVar1 = DAT_000212e4;
  *(undefined4 *)(param_1 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);
  *(int *)(iVar1 + 0x94) = param_1;
  return;
}


CALL 0x0001747d
ADD ECX,0xa89b
PUSH EBX
MOV EDX,dword ptr [ESP + 0xc]
MOV EAX,dword ptr [ESP + 0x8]
TEST EDX,EDX
JZ 0x00016784
MOV EBX,dword ptr [EAX + 0x90]
MOV dword ptr [EDX + 0x90],EBX
MOV EDX,dword ptr [ECX + 0x2e4]
MOV ECX,dword ptr [EDX + 0x94]
MOV dword ptr [EAX + 0x90],ECX
MOV dword ptr [EDX + 0x94],EAX
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n\nvoid FUN_00016760(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (param_2 != 0) {\n    *(undefined4 *)(param_2 + 0x90) = *(undefined4 *)(param_1 + 0x90);\n  }\n  iVar1 = DAT_000212e4;\n  *(undefined4 *)(param_1 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n  *(int *)(iVar1 + 0x94) = param_1;\n  return;\n}\n\n" comment (function_definition "void FUN_00016760(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (param_2 != 0) {\n    *(undefined4 *)(param_2 + 0x90) = *(undefined4 *)(param_1 + 0x90);\n  }\n  iVar1 = DAT_000212e4;\n  *(undefined4 *)(param_1 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n  *(int *)(iVar1 + 0x94) = param_1;\n  return;\n}" primitive_type (function_declarator "FUN_00016760(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_2 != 0) {\n    *(undefined4 *)(param_2 + 0x90) = *(undefined4 *)(param_1 + 0x90);\n  }\n  iVar1 = DAT_000212e4;\n  *(undefined4 *)(param_1 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n  *(int *)(iVar1 + 0x94) = param_1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_2 != 0) {\n    *(undefined4 *)(param_2 + 0x90) = *(undefined4 *)(param_1 + 0x90);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_2 + 0x90) = *(undefined4 *)(param_1 + 0x90);\n  }" { (expression_statement "*(undefined4 *)(param_2 + 0x90) = *(undefined4 *)(param_1 + 0x90);" (assignment_expression "*(undefined4 *)(param_2 + 0x90) = *(undefined4 *)(param_1 + 0x90)" (pointer_expression "*(undefined4 *)(param_2 + 0x90)" * (cast_expression "(undefined4 *)(param_2 + 0x90)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x90)" ( (binary_expression "param_2 + 0x90" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x90)" * (cast_expression "(undefined4 *)(param_1 + 0x90)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x90)" ( (binary_expression "param_1 + 0x90" identifier + number_literal) ))))) ;) })) (expression_statement "iVar1 = DAT_000212e4;" (assignment_expression "iVar1 = DAT_000212e4" identifier = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);" (assignment_expression "*(undefined4 *)(param_1 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94)" (pointer_expression "*(undefined4 *)(param_1 + 0x90)" * (cast_expression "(undefined4 *)(param_1 + 0x90)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x90)" ( (binary_expression "param_1 + 0x90" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(DAT_000212e4 + 0x94)" * (cast_expression "(undefined4 *)(DAT_000212e4 + 0x94)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000212e4 + 0x94)" ( (binary_expression "DAT_000212e4 + 0x94" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar1 + 0x94) = param_1;" (assignment_expression "*(int *)(iVar1 + 0x94) = param_1" (pointer_expression "*(int *)(iVar1 + 0x94)" * (cast_expression "(int *)(iVar1 + 0x94)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x94)" ( (binary_expression "iVar1 + 0x94" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n/* WARNING: Unknown calling convention */\n\nvoid ar_addlib_doer(bfd *abfd,bfd *prev)\n\n{\n  bfd *pbVar1;\n  \n  if (prev != (bfd *)0x0) {\n    prev->archive_next = abfd->archive_next;\n  }\n  pbVar1 = obfd;\n  abfd->archive_next = obfd->archive_head;\n  pbVar1->archive_head = abfd;\n  return;\n}\n\n" comment comment (function_definition "void ar_addlib_doer(bfd *abfd,bfd *prev)\n\n{\n  bfd *pbVar1;\n  \n  if (prev != (bfd *)0x0) {\n    prev->archive_next = abfd->archive_next;\n  }\n  pbVar1 = obfd;\n  abfd->archive_next = obfd->archive_head;\n  pbVar1->archive_head = abfd;\n  return;\n}" primitive_type (function_declarator "ar_addlib_doer(bfd *abfd,bfd *prev)" identifier (parameter_list "(bfd *abfd,bfd *prev)" ( (parameter_declaration "bfd *abfd" type_identifier (pointer_declarator "*abfd" * identifier)) , (parameter_declaration "bfd *prev" type_identifier (pointer_declarator "*prev" * identifier)) ))) (compound_statement "{\n  bfd *pbVar1;\n  \n  if (prev != (bfd *)0x0) {\n    prev->archive_next = abfd->archive_next;\n  }\n  pbVar1 = obfd;\n  abfd->archive_next = obfd->archive_head;\n  pbVar1->archive_head = abfd;\n  return;\n}" { (declaration "bfd *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (if_statement "if (prev != (bfd *)0x0) {\n    prev->archive_next = abfd->archive_next;\n  }" if (parenthesized_expression "(prev != (bfd *)0x0)" ( (binary_expression "prev != (bfd *)0x0" identifier != (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    prev->archive_next = abfd->archive_next;\n  }" { (expression_statement "prev->archive_next = abfd->archive_next;" (assignment_expression "prev->archive_next = abfd->archive_next" (field_expression "prev->archive_next" identifier -> field_identifier) = (field_expression "abfd->archive_next" identifier -> field_identifier)) ;) })) (expression_statement "pbVar1 = obfd;" (assignment_expression "pbVar1 = obfd" identifier = identifier) ;) (expression_statement "abfd->archive_next = obfd->archive_head;" (assignment_expression "abfd->archive_next = obfd->archive_head" (field_expression "abfd->archive_next" identifier -> field_identifier) = (field_expression "obfd->archive_head" identifier -> field_identifier)) ;) (expression_statement "pbVar1->archive_head = abfd;" (assignment_expression "pbVar1->archive_head = abfd" (field_expression "pbVar1->archive_head" identifier -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00016760(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (param_2 != 0) {\n    *(undefined4 *)(param_2 + 0x90) = *(undefined4 *)(param_1 + 0x90);\n  }\n  iVar1 = DAT_000212e4;\n  *(undefined4 *)(param_1 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n  *(int *)(iVar1 + 0x94) = param_1;\n  return;\n}\n\n" (function_definition "void FUN_00016760(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (param_2 != 0) {\n    *(undefined4 *)(param_2 + 0x90) = *(undefined4 *)(param_1 + 0x90);\n  }\n  iVar1 = DAT_000212e4;\n  *(undefined4 *)(param_1 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n  *(int *)(iVar1 + 0x94) = param_1;\n  return;\n}" primitive_type (function_declarator "FUN_00016760(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_2 != 0) {\n    *(undefined4 *)(param_2 + 0x90) = *(undefined4 *)(param_1 + 0x90);\n  }\n  iVar1 = DAT_000212e4;\n  *(undefined4 *)(param_1 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n  *(int *)(iVar1 + 0x94) = param_1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_2 != 0) {\n    *(undefined4 *)(param_2 + 0x90) = *(undefined4 *)(param_1 + 0x90);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_2 + 0x90) = *(undefined4 *)(param_1 + 0x90);\n  }" { (expression_statement "*(undefined4 *)(param_2 + 0x90) = *(undefined4 *)(param_1 + 0x90);" (assignment_expression "*(undefined4 *)(param_2 + 0x90) = *(undefined4 *)(param_1 + 0x90)" (pointer_expression "*(undefined4 *)(param_2 + 0x90)" * (cast_expression "(undefined4 *)(param_2 + 0x90)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x90)" ( (binary_expression "param_2 + 0x90" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x90)" * (cast_expression "(undefined4 *)(param_1 + 0x90)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x90)" ( (binary_expression "param_1 + 0x90" identifier + number_literal) ))))) ;) })) (expression_statement "iVar1 = DAT_000212e4;" (assignment_expression "iVar1 = DAT_000212e4" identifier = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);" (assignment_expression "*(undefined4 *)(param_1 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94)" (pointer_expression "*(undefined4 *)(param_1 + 0x90)" * (cast_expression "(undefined4 *)(param_1 + 0x90)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x90)" ( (binary_expression "param_1 + 0x90" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(DAT_000212e4 + 0x94)" * (cast_expression "(undefined4 *)(DAT_000212e4 + 0x94)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000212e4 + 0x94)" ( (binary_expression "DAT_000212e4 + 0x94" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar1 + 0x94) = param_1;" (assignment_expression "*(int *)(iVar1 + 0x94) = param_1" (pointer_expression "*(int *)(iVar1 + 0x94)" * (cast_expression "(int *)(iVar1 + 0x94)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x94)" ( (binary_expression "iVar1 + 0x94" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_00016760(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (param_2 != 0) {\n    *(undefined4 *)(param_2 + 0x90) = *(undefined4 *)(param_1 + 0x90);\n  }\n  iVar1 = DAT_000212e4;\n  *(undefined4 *)(param_1 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n  *(int *)(iVar1 + 0x94) = param_1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00016760(int param_1,int param_2)" (identifier "FUN_00016760") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (param_2 != 0) {\n    *(undefined4 *)(param_2 + 0x90) = *(undefined4 *)(param_1 + 0x90);\n  }\n  iVar1 = DAT_000212e4;\n  *(undefined4 *)(param_1 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);\n  *(int *)(iVar1 + 0x94) = param_1;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (param_2 != 0) {\n    *(undefined4 *)(param_2 + 0x90) = *(undefined4 *)(param_1 + 0x90);\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined4 *)(param_2 + 0x90) = *(undefined4 *)(param_1 + 0x90);\n  }" ({ "{") (expression_statement "*(undefined4 *)(param_2 + 0x90) = *(undefined4 *)(param_1 + 0x90);" (assignment_expression "*(undefined4 *)(param_2 + 0x90) = *(undefined4 *)(param_1 + 0x90)" (pointer_expression "*(undefined4 *)(param_2 + 0x90)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x90)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x90)" (( "(") (binary_expression "param_2 + 0x90" (identifier "param_2") (+ "+") (number_literal "0x90")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x90)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x90)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x90)" (( "(") (binary_expression "param_1 + 0x90" (identifier "param_1") (+ "+") (number_literal "0x90")) () ")"))))) (; ";")) (} "}"))) (expression_statement "iVar1 = DAT_000212e4;" (assignment_expression "iVar1 = DAT_000212e4" (identifier "iVar1") (= "=") (identifier "DAT_000212e4")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);" (assignment_expression "*(undefined4 *)(param_1 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94)" (pointer_expression "*(undefined4 *)(param_1 + 0x90)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x90)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x90)" (( "(") (binary_expression "param_1 + 0x90" (identifier "param_1") (+ "+") (number_literal "0x90")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(DAT_000212e4 + 0x94)" (* "*") (cast_expression "(undefined4 *)(DAT_000212e4 + 0x94)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_000212e4 + 0x94)" (( "(") (binary_expression "DAT_000212e4 + 0x94" (identifier "DAT_000212e4") (+ "+") (number_literal "0x94")) () ")"))))) (; ";")) (expression_statement "*(int *)(iVar1 + 0x94) = param_1;" (assignment_expression "*(int *)(iVar1 + 0x94) = param_1" (pointer_expression "*(int *)(iVar1 + 0x94)" (* "*") (cast_expression "(int *)(iVar1 + 0x94)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x94)" (( "(") (binary_expression "iVar1 + 0x94" (identifier "iVar1") (+ "+") (number_literal "0x94")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */
/* WARNING: Unknown calling convention */

void function_1(type_1 *abfd,type_1 *var_1)

{
  type_1 *pbVar1;
  
  if (var_1 != (type_1 *)0x0) {
    var_1->archive_next = abfd->archive_next;
  }
  pbVar1 = obfd;
  abfd->archive_next = obfd->archive_head;
  pbVar1->archive_head = abfd;
  return;
}


(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)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (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))))) right: (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: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (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))))) right: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

void MASKED(int param_1,int param_2)

{
  int iVar1;
  
  if (param_2 != 0) {
    *(undefined4 *)(param_2 + 0x90) = *(undefined4 *)(param_1 + 0x90);
  }
  iVar1 = DAT_000212e4;
  *(undefined4 *)(param_1 + 0x90) = *(undefined4 *)(DAT_000212e4 + 0x94);
  *(int *)(iVar1 + 0x94) = param_1;
  return;
}

