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

char * sparc_target_format(void)

{
  char *pcVar1;
  
  if (default_init_p == 0) {
    init_default_arch();
  }
  pcVar1 = "elf64-sparc";
  if (sparc_arch_size != 0x40) {
    pcVar1 = "elf32-sparc";
  }
  return pcVar1;
}



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

char * FUN_00042590(void)

{
  char *pcVar1;
  
  if (DAT_00077520 == 0) {
    FUN_000424c0();
  }
  pcVar1 = "elf64-sparc";
  if (DAT_00077514 != 0x40) {
    pcVar1 = "elf32-sparc";
  }
  return pcVar1;
}


PUSH EBX
CALL 0x00016040
ADD EBX,0x2ba6a
SUB ESP,0x8
MOV EAX,dword ptr [EBX + 0x9520]
TEST EAX,EAX
JZ 0x000425c8
CMP dword ptr [EBX + 0x9514],0x40
LEA EAX,[EBX + 0xfffe8e4a]
JZ 0x000425be
LEA EAX,[EBX + 0xfffe8e56]
ADD ESP,0x8
POP EBX
RET
CALL 0x000424c0
JMP 0x000425a9
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * FUN_00042590(void)\n\n{\n  char *pcVar1;\n  \n  if (DAT_00077520 == 0) {\n    FUN_000424c0();\n  }\n  pcVar1 = "elf64-sparc";\n  if (DAT_00077514 != 0x40) {\n    pcVar1 = "elf32-sparc";\n  }\n  return pcVar1;\n}\n\n" comment (function_definition "char * FUN_00042590(void)\n\n{\n  char *pcVar1;\n  \n  if (DAT_00077520 == 0) {\n    FUN_000424c0();\n  }\n  pcVar1 = "elf64-sparc";\n  if (DAT_00077514 != 0x40) {\n    pcVar1 = "elf32-sparc";\n  }\n  return pcVar1;\n}" primitive_type (pointer_declarator "* FUN_00042590(void)" * (function_declarator "FUN_00042590(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  char *pcVar1;\n  \n  if (DAT_00077520 == 0) {\n    FUN_000424c0();\n  }\n  pcVar1 = "elf64-sparc";\n  if (DAT_00077514 != 0x40) {\n    pcVar1 = "elf32-sparc";\n  }\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (if_statement "if (DAT_00077520 == 0) {\n    FUN_000424c0();\n  }" if (parenthesized_expression "(DAT_00077520 == 0)" ( (binary_expression "DAT_00077520 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_000424c0();\n  }" { (expression_statement "FUN_000424c0();" (call_expression "FUN_000424c0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "pcVar1 = "elf64-sparc";" (assignment_expression "pcVar1 = "elf64-sparc"" identifier = (string_literal ""elf64-sparc"" " string_content ")) ;) (if_statement "if (DAT_00077514 != 0x40) {\n    pcVar1 = "elf32-sparc";\n  }" if (parenthesized_expression "(DAT_00077514 != 0x40)" ( (binary_expression "DAT_00077514 != 0x40" identifier != number_literal) )) (compound_statement "{\n    pcVar1 = "elf32-sparc";\n  }" { (expression_statement "pcVar1 = "elf32-sparc";" (assignment_expression "pcVar1 = "elf32-sparc"" identifier = (string_literal ""elf32-sparc"" " string_content ")) ;) })) (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 * sparc_target_format(void)\n\n{\n  char *pcVar1;\n  \n  if (default_init_p == 0) {\n    init_default_arch();\n  }\n  pcVar1 = "elf64-sparc";\n  if (sparc_arch_size != 0x40) {\n    pcVar1 = "elf32-sparc";\n  }\n  return pcVar1;\n}\n\n" comment comment (function_definition "char * sparc_target_format(void)\n\n{\n  char *pcVar1;\n  \n  if (default_init_p == 0) {\n    init_default_arch();\n  }\n  pcVar1 = "elf64-sparc";\n  if (sparc_arch_size != 0x40) {\n    pcVar1 = "elf32-sparc";\n  }\n  return pcVar1;\n}" primitive_type (pointer_declarator "* sparc_target_format(void)" * (function_declarator "sparc_target_format(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  char *pcVar1;\n  \n  if (default_init_p == 0) {\n    init_default_arch();\n  }\n  pcVar1 = "elf64-sparc";\n  if (sparc_arch_size != 0x40) {\n    pcVar1 = "elf32-sparc";\n  }\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (if_statement "if (default_init_p == 0) {\n    init_default_arch();\n  }" if (parenthesized_expression "(default_init_p == 0)" ( (binary_expression "default_init_p == 0" identifier == number_literal) )) (compound_statement "{\n    init_default_arch();\n  }" { (expression_statement "init_default_arch();" (call_expression "init_default_arch()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "pcVar1 = "elf64-sparc";" (assignment_expression "pcVar1 = "elf64-sparc"" identifier = (string_literal ""elf64-sparc"" " string_content ")) ;) (if_statement "if (sparc_arch_size != 0x40) {\n    pcVar1 = "elf32-sparc";\n  }" if (parenthesized_expression "(sparc_arch_size != 0x40)" ( (binary_expression "sparc_arch_size != 0x40" identifier != number_literal) )) (compound_statement "{\n    pcVar1 = "elf32-sparc";\n  }" { (expression_statement "pcVar1 = "elf32-sparc";" (assignment_expression "pcVar1 = "elf32-sparc"" identifier = (string_literal ""elf32-sparc"" " string_content ")) ;) })) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "char * FUN_00042590(void)\n\n{\n  char *pcVar1;\n  \n  if (DAT_00077520 == 0) {\n    FUN_000424c0();\n  }\n  pcVar1 = "elf64-sparc";\n  if (DAT_00077514 != 0x40) {\n    pcVar1 = "elf32-sparc";\n  }\n  return pcVar1;\n}\n\n" (function_definition "char * FUN_00042590(void)\n\n{\n  char *pcVar1;\n  \n  if (DAT_00077520 == 0) {\n    FUN_000424c0();\n  }\n  pcVar1 = "elf64-sparc";\n  if (DAT_00077514 != 0x40) {\n    pcVar1 = "elf32-sparc";\n  }\n  return pcVar1;\n}" primitive_type (pointer_declarator "* FUN_00042590(void)" * (function_declarator "FUN_00042590(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  char *pcVar1;\n  \n  if (DAT_00077520 == 0) {\n    FUN_000424c0();\n  }\n  pcVar1 = "elf64-sparc";\n  if (DAT_00077514 != 0x40) {\n    pcVar1 = "elf32-sparc";\n  }\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (if_statement "if (DAT_00077520 == 0) {\n    FUN_000424c0();\n  }" if (parenthesized_expression "(DAT_00077520 == 0)" ( (binary_expression "DAT_00077520 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_000424c0();\n  }" { (expression_statement "FUN_000424c0();" (call_expression "FUN_000424c0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "pcVar1 = "elf64-sparc";" (assignment_expression "pcVar1 = "elf64-sparc"" identifier = (string_literal ""elf64-sparc"" " string_content ")) ;) (if_statement "if (DAT_00077514 != 0x40) {\n    pcVar1 = "elf32-sparc";\n  }" if (parenthesized_expression "(DAT_00077514 != 0x40)" ( (binary_expression "DAT_00077514 != 0x40" identifier != number_literal) )) (compound_statement "{\n    pcVar1 = "elf32-sparc";\n  }" { (expression_statement "pcVar1 = "elf32-sparc";" (assignment_expression "pcVar1 = "elf32-sparc"" identifier = (string_literal ""elf32-sparc"" " string_content ")) ;) })) (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) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (return_statement return IDENT ;) })))
(function_definition "char * FUN_00042590(void)\n\n{\n  char *pcVar1;\n  \n  if (DAT_00077520 == 0) {\n    FUN_000424c0();\n  }\n  pcVar1 = "elf64-sparc";\n  if (DAT_00077514 != 0x40) {\n    pcVar1 = "elf32-sparc";\n  }\n  return pcVar1;\n}" (primitive_type "char") (pointer_declarator "* FUN_00042590(void)" (* "*") (function_declarator "FUN_00042590(void)" (identifier "FUN_00042590") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")")))) (compound_statement "{\n  char *pcVar1;\n  \n  if (DAT_00077520 == 0) {\n    FUN_000424c0();\n  }\n  pcVar1 = "elf64-sparc";\n  if (DAT_00077514 != 0x40) {\n    pcVar1 = "elf32-sparc";\n  }\n  return pcVar1;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (if_statement "if (DAT_00077520 == 0) {\n    FUN_000424c0();\n  }" (if "if") (parenthesized_expression "(DAT_00077520 == 0)" (( "(") (binary_expression "DAT_00077520 == 0" (identifier "DAT_00077520") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_000424c0();\n  }" ({ "{") (expression_statement "FUN_000424c0();" (call_expression "FUN_000424c0()" (identifier "FUN_000424c0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "pcVar1 = "elf64-sparc";" (assignment_expression "pcVar1 = "elf64-sparc"" (identifier "pcVar1") (= "=") (string_literal ""elf64-sparc"" (" """) (string_content "elf64-sparc") (" """))) (; ";")) (if_statement "if (DAT_00077514 != 0x40) {\n    pcVar1 = "elf32-sparc";\n  }" (if "if") (parenthesized_expression "(DAT_00077514 != 0x40)" (( "(") (binary_expression "DAT_00077514 != 0x40" (identifier "DAT_00077514") (!= "!=") (number_literal "0x40")) () ")")) (compound_statement "{\n    pcVar1 = "elf32-sparc";\n  }" ({ "{") (expression_statement "pcVar1 = "elf32-sparc";" (assignment_expression "pcVar1 = "elf32-sparc"" (identifier "pcVar1") (= "=") (string_literal ""elf32-sparc"" (" """) (string_content "elf32-sparc") (" """))) (; ";")) (} "}"))) (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(void)

{
  char *pcVar1;
  
  if (var_1 == 0) {
    var_2();
  }
  pcVar1 = "elf64-sparc";
  if (var_3 != 0x40) {
    pcVar1 = "elf32-sparc";
  }
  return pcVar1;
}


(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))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))))) (return_statement (identifier)))))

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

char * MASKED(void)

{
  char *pcVar1;
  
  if (DAT_00077520 == 0) {
    FUN_000424c0();
  }
  pcVar1 = "elf64-sparc";
  if (DAT_00077514 != 0x40) {
    pcVar1 = "elf32-sparc";
  }
  return pcVar1;
}

