
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void parse_version(General_options * this, char * opt, char * param_2,
   Command_line * param_3) */

void __thiscall
gold::General_options::parse_version
          (General_options *this,char *opt,char *param_3,Command_line *param_4)

{
  if ((*opt == '-') && (opt[1] == 'v')) {
    print_version(true);
    this->printed_version_ = true;
    return;
  }
  print_version(false);
  this->printed_version_ = true;
                    /* WARNING: Subroutine does not return */
  exit(0);
}



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

void FUN_000dcb10(int param_1,char *param_2)

{
  if ((*param_2 == '-') && (param_2[1] == 'v')) {
    FUN_00190180(1);
    *(undefined1 *)(param_1 + 0x592c) = 1;
    return;
  }
  FUN_00190180(0);
  *(undefined1 *)(param_1 + 0x592c) = 1;
                    /* WARNING: Subroutine does not return */
  exit(0);
}


PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x2b24e9
SUB ESP,0x4
MOV EAX,dword ptr [ESP + 0x14]
MOV ESI,dword ptr [ESP + 0x10]
CMP byte ptr [EAX],0x2d
JZ 0x000dcb50
SUB ESP,0xc
PUSH 0x0
CALL 0x00190180
MOV byte ptr [ESI + 0x592c],0x1
MOV dword ptr [ESP],0x0
CALL 0x00029b30
CMP byte ptr [EAX + 0x1],0x76
JNZ 0x000dcb2d
SUB ESP,0xc
PUSH 0x1
CALL 0x00190180
MOV byte ptr [ESI + 0x592c],0x1
ADD ESP,0x14
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000dcb10(int param_1,char *param_2)\n\n{\n  if ((*param_2 == '-') && (param_2[1] == 'v')) {\n    FUN_00190180(1);\n    *(undefined1 *)(param_1 + 0x592c) = 1;\n    return;\n  }\n  FUN_00190180(0);\n  *(undefined1 *)(param_1 + 0x592c) = 1;\n                    /* WARNING: Subroutine does not return */\n  exit(0);\n}\n\n" comment (function_definition "void FUN_000dcb10(int param_1,char *param_2)\n\n{\n  if ((*param_2 == '-') && (param_2[1] == 'v')) {\n    FUN_00190180(1);\n    *(undefined1 *)(param_1 + 0x592c) = 1;\n    return;\n  }\n  FUN_00190180(0);\n  *(undefined1 *)(param_1 + 0x592c) = 1;\n                    /* WARNING: Subroutine does not return */\n  exit(0);\n}" primitive_type (function_declarator "FUN_000dcb10(int param_1,char *param_2)" identifier (parameter_list "(int param_1,char *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  if ((*param_2 == '-') && (param_2[1] == 'v')) {\n    FUN_00190180(1);\n    *(undefined1 *)(param_1 + 0x592c) = 1;\n    return;\n  }\n  FUN_00190180(0);\n  *(undefined1 *)(param_1 + 0x592c) = 1;\n                    /* WARNING: Subroutine does not return */\n  exit(0);\n}" { (if_statement "if ((*param_2 == '-') && (param_2[1] == 'v')) {\n    FUN_00190180(1);\n    *(undefined1 *)(param_1 + 0x592c) = 1;\n    return;\n  }" if (parenthesized_expression "((*param_2 == '-') && (param_2[1] == 'v'))" ( (binary_expression "(*param_2 == '-') && (param_2[1] == 'v')" (parenthesized_expression "(*param_2 == '-')" ( (binary_expression "*param_2 == '-'" (pointer_expression "*param_2" * identifier) == (char_literal "'-'" ' character ')) )) && (parenthesized_expression "(param_2[1] == 'v')" ( (binary_expression "param_2[1] == 'v'" (subscript_expression "param_2[1]" identifier [ number_literal ]) == (char_literal "'v'" ' character ')) ))) )) (compound_statement "{\n    FUN_00190180(1);\n    *(undefined1 *)(param_1 + 0x592c) = 1;\n    return;\n  }" { (expression_statement "FUN_00190180(1);" (call_expression "FUN_00190180(1)" identifier (argument_list "(1)" ( number_literal ))) ;) (expression_statement "*(undefined1 *)(param_1 + 0x592c) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x592c) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x592c)" * (cast_expression "(undefined1 *)(param_1 + 0x592c)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x592c)" ( (binary_expression "param_1 + 0x592c" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00190180(0);" (call_expression "FUN_00190180(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "*(undefined1 *)(param_1 + 0x592c) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x592c) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x592c)" * (cast_expression "(undefined1 *)(param_1 + 0x592c)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x592c)" ( (binary_expression "param_1 + 0x592c" identifier + number_literal) )))) = number_literal) ;) comment (expression_statement "exit(0);" (call_expression "exit(0)" identifier (argument_list "(0)" ( number_literal ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* DWARF original prototype: void parse_version(General_options * this, char * opt, char * param_2,\n   Command_line * param_3) */\n\nvoid __thiscall\ngold::General_options::parse_version\n          (General_options *this,char *opt,char *param_3,Command_line *param_4)\n\n{\n  if ((*opt == '-') && (opt[1] == 'v')) {\n    print_version(true);\n    this->printed_version_ = true;\n    return;\n  }\n  print_version(false);\n  this->printed_version_ = true;\n                    /* WARNING: Subroutine does not return */\n  exit(0);\n}\n\n" comment comment comment (function_definition "void __thiscall\ngold::General_options::parse_version\n          (General_options *this,char *opt,char *param_3,Command_line *param_4)\n\n{\n  if ((*opt == '-') && (opt[1] == 'v')) {\n    print_version(true);\n    this->printed_version_ = true;\n    return;\n  }\n  print_version(false);\n  this->printed_version_ = true;\n                    /* WARNING: Subroutine does not return */\n  exit(0);\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::General_options::" identifier : : identifier : :) (function_declarator "parse_version\n          (General_options *this,char *opt,char *param_3,Command_line *param_4)" identifier (parameter_list "(General_options *this,char *opt,char *param_3,Command_line *param_4)" ( (parameter_declaration "General_options *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *opt" primitive_type (pointer_declarator "*opt" * identifier)) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "Command_line *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  if ((*opt == '-') && (opt[1] == 'v')) {\n    print_version(true);\n    this->printed_version_ = true;\n    return;\n  }\n  print_version(false);\n  this->printed_version_ = true;\n                    /* WARNING: Subroutine does not return */\n  exit(0);\n}" { (if_statement "if ((*opt == '-') && (opt[1] == 'v')) {\n    print_version(true);\n    this->printed_version_ = true;\n    return;\n  }" if (parenthesized_expression "((*opt == '-') && (opt[1] == 'v'))" ( (binary_expression "(*opt == '-') && (opt[1] == 'v')" (parenthesized_expression "(*opt == '-')" ( (binary_expression "*opt == '-'" (pointer_expression "*opt" * identifier) == (char_literal "'-'" ' character ')) )) && (parenthesized_expression "(opt[1] == 'v')" ( (binary_expression "opt[1] == 'v'" (subscript_expression "opt[1]" identifier [ number_literal ]) == (char_literal "'v'" ' character ')) ))) )) (compound_statement "{\n    print_version(true);\n    this->printed_version_ = true;\n    return;\n  }" { (expression_statement "print_version(true);" (call_expression "print_version(true)" identifier (argument_list "(true)" ( true ))) ;) (expression_statement "this->printed_version_ = true;" (assignment_expression "this->printed_version_ = true" (field_expression "this->printed_version_" identifier -> field_identifier) = true) ;) (return_statement "return;" return ;) })) (expression_statement "print_version(false);" (call_expression "print_version(false)" identifier (argument_list "(false)" ( false ))) ;) (expression_statement "this->printed_version_ = true;" (assignment_expression "this->printed_version_ = true" (field_expression "this->printed_version_" identifier -> field_identifier) = true) ;) comment (expression_statement "exit(0);" (call_expression "exit(0)" identifier (argument_list "(0)" ( number_literal ))) ;) })))
(translation_unit "void FUN_000dcb10(int param_1,char *param_2)\n\n{\n  if ((*param_2 == '-') && (param_2[1] == 'v')) {\n    FUN_00190180(1);\n    *(undefined1 *)(param_1 + 0x592c) = 1;\n    return;\n  }\n  FUN_00190180(0);\n  *(undefined1 *)(param_1 + 0x592c) = 1;\n                    \n  exit(0);\n}\n\n" (function_definition "void FUN_000dcb10(int param_1,char *param_2)\n\n{\n  if ((*param_2 == '-') && (param_2[1] == 'v')) {\n    FUN_00190180(1);\n    *(undefined1 *)(param_1 + 0x592c) = 1;\n    return;\n  }\n  FUN_00190180(0);\n  *(undefined1 *)(param_1 + 0x592c) = 1;\n                    \n  exit(0);\n}" primitive_type (function_declarator "FUN_000dcb10(int param_1,char *param_2)" identifier (parameter_list "(int param_1,char *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  if ((*param_2 == '-') && (param_2[1] == 'v')) {\n    FUN_00190180(1);\n    *(undefined1 *)(param_1 + 0x592c) = 1;\n    return;\n  }\n  FUN_00190180(0);\n  *(undefined1 *)(param_1 + 0x592c) = 1;\n                    \n  exit(0);\n}" { (if_statement "if ((*param_2 == '-') && (param_2[1] == 'v')) {\n    FUN_00190180(1);\n    *(undefined1 *)(param_1 + 0x592c) = 1;\n    return;\n  }" if (parenthesized_expression "((*param_2 == '-') && (param_2[1] == 'v'))" ( (binary_expression "(*param_2 == '-') && (param_2[1] == 'v')" (parenthesized_expression "(*param_2 == '-')" ( (binary_expression "*param_2 == '-'" (pointer_expression "*param_2" * identifier) == (char_literal "'-'" ' character ')) )) && (parenthesized_expression "(param_2[1] == 'v')" ( (binary_expression "param_2[1] == 'v'" (subscript_expression "param_2[1]" identifier [ number_literal ]) == (char_literal "'v'" ' character ')) ))) )) (compound_statement "{\n    FUN_00190180(1);\n    *(undefined1 *)(param_1 + 0x592c) = 1;\n    return;\n  }" { (expression_statement "FUN_00190180(1);" (call_expression "FUN_00190180(1)" identifier (argument_list "(1)" ( number_literal ))) ;) (expression_statement "*(undefined1 *)(param_1 + 0x592c) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x592c) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x592c)" * (cast_expression "(undefined1 *)(param_1 + 0x592c)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x592c)" ( (binary_expression "param_1 + 0x592c" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00190180(0);" (call_expression "FUN_00190180(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "*(undefined1 *)(param_1 + 0x592c) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x592c) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x592c)" * (cast_expression "(undefined1 *)(param_1 + 0x592c)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x592c)" ( (binary_expression "param_1 + 0x592c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "exit(0);" (call_expression "exit(0)" identifier (argument_list "(0)" ( number_literal ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' character ')) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })))
(function_definition "void FUN_000dcb10(int param_1,char *param_2)\n\n{\n  if ((*param_2 == '-') && (param_2[1] == 'v')) {\n    FUN_00190180(1);\n    *(undefined1 *)(param_1 + 0x592c) = 1;\n    return;\n  }\n  FUN_00190180(0);\n  *(undefined1 *)(param_1 + 0x592c) = 1;\n                    \n  exit(0);\n}" (primitive_type "void") (function_declarator "FUN_000dcb10(int param_1,char *param_2)" (identifier "FUN_000dcb10") (parameter_list "(int param_1,char *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  if ((*param_2 == '-') && (param_2[1] == 'v')) {\n    FUN_00190180(1);\n    *(undefined1 *)(param_1 + 0x592c) = 1;\n    return;\n  }\n  FUN_00190180(0);\n  *(undefined1 *)(param_1 + 0x592c) = 1;\n                    \n  exit(0);\n}" ({ "{") (if_statement "if ((*param_2 == '-') && (param_2[1] == 'v')) {\n    FUN_00190180(1);\n    *(undefined1 *)(param_1 + 0x592c) = 1;\n    return;\n  }" (if "if") (parenthesized_expression "((*param_2 == '-') && (param_2[1] == 'v'))" (( "(") (binary_expression "(*param_2 == '-') && (param_2[1] == 'v')" (parenthesized_expression "(*param_2 == '-')" (( "(") (binary_expression "*param_2 == '-'" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (== "==") (char_literal "'-'" (' "'") (character "-") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(param_2[1] == 'v')" (( "(") (binary_expression "param_2[1] == 'v'" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (== "==") (char_literal "'v'" (' "'") (character "v") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    FUN_00190180(1);\n    *(undefined1 *)(param_1 + 0x592c) = 1;\n    return;\n  }" ({ "{") (expression_statement "FUN_00190180(1);" (call_expression "FUN_00190180(1)" (identifier "FUN_00190180") (argument_list "(1)" (( "(") (number_literal "1") () ")"))) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 0x592c) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x592c) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x592c)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x592c)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x592c)" (( "(") (binary_expression "param_1 + 0x592c" (identifier "param_1") (+ "+") (number_literal "0x592c")) () ")")))) (= "=") (number_literal "1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00190180(0);" (call_expression "FUN_00190180(0)" (identifier "FUN_00190180") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 0x592c) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x592c) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x592c)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x592c)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x592c)" (( "(") (binary_expression "param_1 + 0x592c" (identifier "param_1") (+ "+") (number_literal "0x592c")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "exit(0);" (call_expression "exit(0)" (identifier "exit") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void parse_version(General_options * this, char * opt, char * param_2,
   Command_line * param_3) */

void __thiscall
gold::type_1::function_1
          (type_1 *this,char *opt,char *param_3,type_2 *param_4)

{
  if ((*opt == '-') && (opt[1] == 'v')) {
    var_1(true);
    this->printed_version_ = true;
    return;
  }
  var_1(false);
  this->printed_version_ = true;
                    /* WARNING: Subroutine does not return */
  var_2(0);
}


(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: (pointer_declarator declarator: (identifier))))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (character)))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))) (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: (number_literal))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))) (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: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))))))

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

void MASKED(int param_1,char *param_2)

{
  if ((*param_2 == '-') && (param_2[1] == 'v')) {
    FUN_00190180(1);
    *(undefined1 *)(param_1 + 0x592c) = 1;
    return;
  }
  FUN_00190180(0);
  *(undefined1 *)(param_1 + 0x592c) = 1;
                    /* WARNING: Subroutine does not return */
  exit(0);
}

