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

char * __regparm3 endian_string(bfd_endian endian)

{
  char *pcVar1;
  
  if (endian == BFD_ENDIAN_BIG) {
    pcVar1 = (char *)dcgettext(0,"big endian",5);
    return pcVar1;
  }
  if (endian != BFD_ENDIAN_LITTLE) {
    pcVar1 = (char *)dcgettext(0,"endianness unknown",5);
    return pcVar1;
  }
  pcVar1 = (char *)dcgettext(0,"little endian",5);
  return pcVar1;
}



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

void __regparm3 FUN_00012320(int param_1)

{
  if (param_1 == 0) {
    dcgettext(0,"big endian",5);
    return;
  }
  if (param_1 != 1) {
    dcgettext(0,"endianness unknown",5);
    return;
  }
  dcgettext(0,"little endian",5);
  return;
}


PUSH EBX
CALL 0x00011ca0
ADD EBX,0x6cda
SUB ESP,0x8
TEST EAX,EAX
JZ 0x00012358
CMP EAX,0x1
JZ 0x00012378
SUB ESP,0x4
LEA EAX,[EBX + 0xffffc825]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00011110
ADD ESP,0x10
ADD ESP,0x8
POP EBX
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xffffc80c]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00011110
ADD ESP,0x10
ADD ESP,0x8
POP EBX
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xffffc817]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00011110
ADD ESP,0x10
ADD ESP,0x8
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00012320(int param_1)\n\n{\n  if (param_1 == 0) {\n    dcgettext(0,"big endian",5);\n    return;\n  }\n  if (param_1 != 1) {\n    dcgettext(0,"endianness unknown",5);\n    return;\n  }\n  dcgettext(0,"little endian",5);\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00012320(int param_1)\n\n{\n  if (param_1 == 0) {\n    dcgettext(0,"big endian",5);\n    return;\n  }\n  if (param_1 != 1) {\n    dcgettext(0,"endianness unknown",5);\n    return;\n  }\n  dcgettext(0,"little endian",5);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00012320(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  if (param_1 == 0) {\n    dcgettext(0,"big endian",5);\n    return;\n  }\n  if (param_1 != 1) {\n    dcgettext(0,"endianness unknown",5);\n    return;\n  }\n  dcgettext(0,"little endian",5);\n  return;\n}" { (if_statement "if (param_1 == 0) {\n    dcgettext(0,"big endian",5);\n    return;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    dcgettext(0,"big endian",5);\n    return;\n  }" { (expression_statement "dcgettext(0,"big endian",5);" (call_expression "dcgettext(0,"big endian",5)" identifier (argument_list "(0,"big endian",5)" ( number_literal , (string_literal ""big endian"" " string_content ") , number_literal ))) ;) (return_statement "return;" return ;) })) (if_statement "if (param_1 != 1) {\n    dcgettext(0,"endianness unknown",5);\n    return;\n  }" if (parenthesized_expression "(param_1 != 1)" ( (binary_expression "param_1 != 1" identifier != number_literal) )) (compound_statement "{\n    dcgettext(0,"endianness unknown",5);\n    return;\n  }" { (expression_statement "dcgettext(0,"endianness unknown",5);" (call_expression "dcgettext(0,"endianness unknown",5)" identifier (argument_list "(0,"endianness unknown",5)" ( number_literal , (string_literal ""endianness unknown"" " string_content ") , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "dcgettext(0,"little endian",5);" (call_expression "dcgettext(0,"little endian",5)" identifier (argument_list "(0,"little endian",5)" ( number_literal , (string_literal ""little endian"" " string_content ") , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * __regparm3 endian_string(bfd_endian endian)\n\n{\n  char *pcVar1;\n  \n  if (endian == BFD_ENDIAN_BIG) {\n    pcVar1 = (char *)dcgettext(0,"big endian",5);\n    return pcVar1;\n  }\n  if (endian != BFD_ENDIAN_LITTLE) {\n    pcVar1 = (char *)dcgettext(0,"endianness unknown",5);\n    return pcVar1;\n  }\n  pcVar1 = (char *)dcgettext(0,"little endian",5);\n  return pcVar1;\n}\n\n" comment (function_definition "char * __regparm3 endian_string(bfd_endian endian)\n\n{\n  char *pcVar1;\n  \n  if (endian == BFD_ENDIAN_BIG) {\n    pcVar1 = (char *)dcgettext(0,"big endian",5);\n    return pcVar1;\n  }\n  if (endian != BFD_ENDIAN_LITTLE) {\n    pcVar1 = (char *)dcgettext(0,"endianness unknown",5);\n    return pcVar1;\n  }\n  pcVar1 = (char *)dcgettext(0,"little endian",5);\n  return pcVar1;\n}" primitive_type (pointer_declarator "* __regparm3 endian_string(bfd_endian endian)" * (ERROR "__regparm3" identifier) (function_declarator "endian_string(bfd_endian endian)" identifier (parameter_list "(bfd_endian endian)" ( (parameter_declaration "bfd_endian endian" type_identifier identifier) )))) (compound_statement "{\n  char *pcVar1;\n  \n  if (endian == BFD_ENDIAN_BIG) {\n    pcVar1 = (char *)dcgettext(0,"big endian",5);\n    return pcVar1;\n  }\n  if (endian != BFD_ENDIAN_LITTLE) {\n    pcVar1 = (char *)dcgettext(0,"endianness unknown",5);\n    return pcVar1;\n  }\n  pcVar1 = (char *)dcgettext(0,"little endian",5);\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (if_statement "if (endian == BFD_ENDIAN_BIG) {\n    pcVar1 = (char *)dcgettext(0,"big endian",5);\n    return pcVar1;\n  }" if (parenthesized_expression "(endian == BFD_ENDIAN_BIG)" ( (binary_expression "endian == BFD_ENDIAN_BIG" identifier == identifier) )) (compound_statement "{\n    pcVar1 = (char *)dcgettext(0,"big endian",5);\n    return pcVar1;\n  }" { (expression_statement "pcVar1 = (char *)dcgettext(0,"big endian",5);" (assignment_expression "pcVar1 = (char *)dcgettext(0,"big endian",5)" identifier = (cast_expression "(char *)dcgettext(0,"big endian",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"big endian",5)" identifier (argument_list "(0,"big endian",5)" ( number_literal , (string_literal ""big endian"" " string_content ") , number_literal ))))) ;) (return_statement "return pcVar1;" return identifier ;) })) (if_statement "if (endian != BFD_ENDIAN_LITTLE) {\n    pcVar1 = (char *)dcgettext(0,"endianness unknown",5);\n    return pcVar1;\n  }" if (parenthesized_expression "(endian != BFD_ENDIAN_LITTLE)" ( (binary_expression "endian != BFD_ENDIAN_LITTLE" identifier != identifier) )) (compound_statement "{\n    pcVar1 = (char *)dcgettext(0,"endianness unknown",5);\n    return pcVar1;\n  }" { (expression_statement "pcVar1 = (char *)dcgettext(0,"endianness unknown",5);" (assignment_expression "pcVar1 = (char *)dcgettext(0,"endianness unknown",5)" identifier = (cast_expression "(char *)dcgettext(0,"endianness unknown",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"endianness unknown",5)" identifier (argument_list "(0,"endianness unknown",5)" ( number_literal , (string_literal ""endianness unknown"" " string_content ") , number_literal ))))) ;) (return_statement "return pcVar1;" return identifier ;) })) (expression_statement "pcVar1 = (char *)dcgettext(0,"little endian",5);" (assignment_expression "pcVar1 = (char *)dcgettext(0,"little endian",5)" identifier = (cast_expression "(char *)dcgettext(0,"little endian",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"little endian",5)" identifier (argument_list "(0,"little endian",5)" ( number_literal , (string_literal ""little endian"" " string_content ") , number_literal ))))) ;) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "void __regparm3 FUN_00012320(int param_1)\n\n{\n  if (param_1 == 0) {\n    dcgettext(0,"big endian",5);\n    return;\n  }\n  if (param_1 != 1) {\n    dcgettext(0,"endianness unknown",5);\n    return;\n  }\n  dcgettext(0,"little endian",5);\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00012320(int param_1)\n\n{\n  if (param_1 == 0) {\n    dcgettext(0,"big endian",5);\n    return;\n  }\n  if (param_1 != 1) {\n    dcgettext(0,"endianness unknown",5);\n    return;\n  }\n  dcgettext(0,"little endian",5);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00012320(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  if (param_1 == 0) {\n    dcgettext(0,"big endian",5);\n    return;\n  }\n  if (param_1 != 1) {\n    dcgettext(0,"endianness unknown",5);\n    return;\n  }\n  dcgettext(0,"little endian",5);\n  return;\n}" { (if_statement "if (param_1 == 0) {\n    dcgettext(0,"big endian",5);\n    return;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    dcgettext(0,"big endian",5);\n    return;\n  }" { (expression_statement "dcgettext(0,"big endian",5);" (call_expression "dcgettext(0,"big endian",5)" identifier (argument_list "(0,"big endian",5)" ( number_literal , (string_literal ""big endian"" " string_content ") , number_literal ))) ;) (return_statement "return;" return ;) })) (if_statement "if (param_1 != 1) {\n    dcgettext(0,"endianness unknown",5);\n    return;\n  }" if (parenthesized_expression "(param_1 != 1)" ( (binary_expression "param_1 != 1" identifier != number_literal) )) (compound_statement "{\n    dcgettext(0,"endianness unknown",5);\n    return;\n  }" { (expression_statement "dcgettext(0,"endianness unknown",5);" (call_expression "dcgettext(0,"endianness unknown",5)" identifier (argument_list "(0,"endianness unknown",5)" ( number_literal , (string_literal ""endianness unknown"" " string_content ") , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "dcgettext(0,"little endian",5);" (call_expression "dcgettext(0,"little endian",5)" identifier (argument_list "(0,"little endian",5)" ( number_literal , (string_literal ""little endian"" " string_content ") , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT ))) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT ))) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00012320(int param_1)\n\n{\n  if (param_1 == 0) {\n    dcgettext(0,"big endian",5);\n    return;\n  }\n  if (param_1 != 1) {\n    dcgettext(0,"endianness unknown",5);\n    return;\n  }\n  dcgettext(0,"little endian",5);\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00012320(int param_1)" (identifier "FUN_00012320") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  if (param_1 == 0) {\n    dcgettext(0,"big endian",5);\n    return;\n  }\n  if (param_1 != 1) {\n    dcgettext(0,"endianness unknown",5);\n    return;\n  }\n  dcgettext(0,"little endian",5);\n  return;\n}" ({ "{") (if_statement "if (param_1 == 0) {\n    dcgettext(0,"big endian",5);\n    return;\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    dcgettext(0,"big endian",5);\n    return;\n  }" ({ "{") (expression_statement "dcgettext(0,"big endian",5);" (call_expression "dcgettext(0,"big endian",5)" (identifier "dcgettext") (argument_list "(0,"big endian",5)" (( "(") (number_literal "0") (, ",") (string_literal ""big endian"" (" """) (string_content "big endian") (" """)) (, ",") (number_literal "5") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (param_1 != 1) {\n    dcgettext(0,"endianness unknown",5);\n    return;\n  }" (if "if") (parenthesized_expression "(param_1 != 1)" (( "(") (binary_expression "param_1 != 1" (identifier "param_1") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n    dcgettext(0,"endianness unknown",5);\n    return;\n  }" ({ "{") (expression_statement "dcgettext(0,"endianness unknown",5);" (call_expression "dcgettext(0,"endianness unknown",5)" (identifier "dcgettext") (argument_list "(0,"endianness unknown",5)" (( "(") (number_literal "0") (, ",") (string_literal ""endianness unknown"" (" """) (string_content "endianness unknown") (" """)) (, ",") (number_literal "5") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "dcgettext(0,"little endian",5);" (call_expression "dcgettext(0,"little endian",5)" (identifier "dcgettext") (argument_list "(0,"little endian",5)" (( "(") (number_literal "0") (, ",") (string_literal ""little endian"" (" """) (string_content "little endian") (" """)) (, ",") (number_literal "5") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

char * __regparm3 function_1(type_1 var_1)

{
  char *pcVar1;
  
  if (var_1 == var_2) {
    pcVar1 = (char *)var_3(0,"big endian",5);
    return pcVar1;
  }
  if (var_1 != var_4) {
    pcVar1 = (char *)var_3(0,"endianness unknown",5);
    return pcVar1;
  }
  pcVar1 = (char *)var_3(0,"little endian",5);
  return pcVar1;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (number_literal)))) (return_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (number_literal)))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (number_literal)))) (return_statement))))

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

void __regparm3 MASKED(int param_1)

{
  if (param_1 == 0) {
    dcgettext(0,"big endian",5);
    return;
  }
  if (param_1 != 1) {
    dcgettext(0,"endianness unknown",5);
    return;
  }
  dcgettext(0,"little endian",5);
  return;
}

