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

char * ldemul_default_target(int argc,char **argv)

{
  char *pcVar1;
  
  pcVar1 = getenv("GNUTARGET");
  if (pcVar1 == (char *)0x0) {
    pcVar1 = ld_emulation->target_name;
  }
  return pcVar1;
}



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

char * FUN_000338c0(void)

{
  char *pcVar1;
  
  pcVar1 = getenv("GNUTARGET");
  if (pcVar1 == (char *)0x0) {
    pcVar1 = *(char **)(DAT_001c3a0c + 0x30);
  }
  return pcVar1;
}


PUSH EBX
CALL 0x00017c50
ADD EBX,0x18e73a
SUB ESP,0x14
LEA EAX,[EBX + 0xffebf440]
PUSH EAX
CALL 0x000166d0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x000338eb
MOV EAX,dword ptr [EBX + 0x1a0c]
MOV EAX,dword ptr [EAX + 0x30]
ADD ESP,0x8
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * FUN_000338c0(void)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = getenv("GNUTARGET");\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = *(char **)(DAT_001c3a0c + 0x30);\n  }\n  return pcVar1;\n}\n\n" comment (function_definition "char * FUN_000338c0(void)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = getenv("GNUTARGET");\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = *(char **)(DAT_001c3a0c + 0x30);\n  }\n  return pcVar1;\n}" primitive_type (pointer_declarator "* FUN_000338c0(void)" * (function_declarator "FUN_000338c0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  char *pcVar1;\n  \n  pcVar1 = getenv("GNUTARGET");\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = *(char **)(DAT_001c3a0c + 0x30);\n  }\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "pcVar1 = getenv("GNUTARGET");" (assignment_expression "pcVar1 = getenv("GNUTARGET")" identifier = (call_expression "getenv("GNUTARGET")" identifier (argument_list "("GNUTARGET")" ( (string_literal ""GNUTARGET"" " string_content ") )))) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n    pcVar1 = *(char **)(DAT_001c3a0c + 0x30);\n  }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar1 = *(char **)(DAT_001c3a0c + 0x30);\n  }" { (expression_statement "pcVar1 = *(char **)(DAT_001c3a0c + 0x30);" (assignment_expression "pcVar1 = *(char **)(DAT_001c3a0c + 0x30)" identifier = (pointer_expression "*(char **)(DAT_001c3a0c + 0x30)" * (cast_expression "(char **)(DAT_001c3a0c + 0x30)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_001c3a0c + 0x30)" ( (binary_expression "DAT_001c3a0c + 0x30" identifier + number_literal) ))))) ;) })) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nchar * ldemul_default_target(int argc,char **argv)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = getenv("GNUTARGET");\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = ld_emulation->target_name;\n  }\n  return pcVar1;\n}\n\n" comment comment (function_definition "char * ldemul_default_target(int argc,char **argv)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = getenv("GNUTARGET");\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = ld_emulation->target_name;\n  }\n  return pcVar1;\n}" primitive_type (pointer_declarator "* ldemul_default_target(int argc,char **argv)" * (function_declarator "ldemul_default_target(int argc,char **argv)" identifier (parameter_list "(int argc,char **argv)" ( (parameter_declaration "int argc" primitive_type identifier) , (parameter_declaration "char **argv" primitive_type (pointer_declarator "**argv" * (pointer_declarator "*argv" * identifier))) )))) (compound_statement "{\n  char *pcVar1;\n  \n  pcVar1 = getenv("GNUTARGET");\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = ld_emulation->target_name;\n  }\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "pcVar1 = getenv("GNUTARGET");" (assignment_expression "pcVar1 = getenv("GNUTARGET")" identifier = (call_expression "getenv("GNUTARGET")" identifier (argument_list "("GNUTARGET")" ( (string_literal ""GNUTARGET"" " string_content ") )))) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n    pcVar1 = ld_emulation->target_name;\n  }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar1 = ld_emulation->target_name;\n  }" { (expression_statement "pcVar1 = ld_emulation->target_name;" (assignment_expression "pcVar1 = ld_emulation->target_name" identifier = (field_expression "ld_emulation->target_name" identifier -> field_identifier)) ;) })) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "char * FUN_000338c0(void)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = getenv("GNUTARGET");\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = *(char **)(DAT_001c3a0c + 0x30);\n  }\n  return pcVar1;\n}\n\n" (function_definition "char * FUN_000338c0(void)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = getenv("GNUTARGET");\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = *(char **)(DAT_001c3a0c + 0x30);\n  }\n  return pcVar1;\n}" primitive_type (pointer_declarator "* FUN_000338c0(void)" * (function_declarator "FUN_000338c0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  char *pcVar1;\n  \n  pcVar1 = getenv("GNUTARGET");\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = *(char **)(DAT_001c3a0c + 0x30);\n  }\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "pcVar1 = getenv("GNUTARGET");" (assignment_expression "pcVar1 = getenv("GNUTARGET")" identifier = (call_expression "getenv("GNUTARGET")" identifier (argument_list "("GNUTARGET")" ( (string_literal ""GNUTARGET"" " string_content ") )))) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n    pcVar1 = *(char **)(DAT_001c3a0c + 0x30);\n  }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar1 = *(char **)(DAT_001c3a0c + 0x30);\n  }" { (expression_statement "pcVar1 = *(char **)(DAT_001c3a0c + 0x30);" (assignment_expression "pcVar1 = *(char **)(DAT_001c3a0c + 0x30)" identifier = (pointer_expression "*(char **)(DAT_001c3a0c + 0x30)" * (cast_expression "(char **)(DAT_001c3a0c + 0x30)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_001c3a0c + 0x30)" ( (binary_expression "DAT_001c3a0c + 0x30" identifier + number_literal) ))))) ;) })) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (return_statement return IDENT ;) })))
(function_definition "char * FUN_000338c0(void)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = getenv("GNUTARGET");\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = *(char **)(DAT_001c3a0c + 0x30);\n  }\n  return pcVar1;\n}" (primitive_type "char") (pointer_declarator "* FUN_000338c0(void)" (* "*") (function_declarator "FUN_000338c0(void)" (identifier "FUN_000338c0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")")))) (compound_statement "{\n  char *pcVar1;\n  \n  pcVar1 = getenv("GNUTARGET");\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = *(char **)(DAT_001c3a0c + 0x30);\n  }\n  return pcVar1;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (expression_statement "pcVar1 = getenv("GNUTARGET");" (assignment_expression "pcVar1 = getenv("GNUTARGET")" (identifier "pcVar1") (= "=") (call_expression "getenv("GNUTARGET")" (identifier "getenv") (argument_list "("GNUTARGET")" (( "(") (string_literal ""GNUTARGET"" (" """) (string_content "GNUTARGET") (" """)) () ")")))) (; ";")) (if_statement "if (pcVar1 == (char *)0x0) {\n    pcVar1 = *(char **)(DAT_001c3a0c + 0x30);\n  }" (if "if") (parenthesized_expression "(pcVar1 == (char *)0x0)" (( "(") (binary_expression "pcVar1 == (char *)0x0" (identifier "pcVar1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    pcVar1 = *(char **)(DAT_001c3a0c + 0x30);\n  }" ({ "{") (expression_statement "pcVar1 = *(char **)(DAT_001c3a0c + 0x30);" (assignment_expression "pcVar1 = *(char **)(DAT_001c3a0c + 0x30)" (identifier "pcVar1") (= "=") (pointer_expression "*(char **)(DAT_001c3a0c + 0x30)" (* "*") (cast_expression "(char **)(DAT_001c3a0c + 0x30)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(DAT_001c3a0c + 0x30)" (( "(") (binary_expression "DAT_001c3a0c + 0x30" (identifier "DAT_001c3a0c") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (} "}"))) (return_statement "return pcVar1;" (return "return") (identifier "pcVar1") (; ";")) (} "}")))

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

char * function_1(int argc,char **argv)

{
  char *var_2;
  
  var_2 = var_1("GNUTARGET");
  if (var_2 == (char *)0x0) {
    var_2 = ld_emulation->target_name;
  }
  return var_2;
}


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

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

char * MASKED(void)

{
  char *pcVar1;
  
  pcVar1 = getenv("GNUTARGET");
  if (pcVar1 == (char *)0x0) {
    pcVar1 = *(char **)(DAT_001c3a0c + 0x30);
  }
  return pcVar1;
}

