
/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

void lang_add_output_format(char *format,char *big,char *little,int from_script)

{
  if ((output_target != (char *)0x0) && (from_script != 0)) {
    return;
  }
  if (command_line.endian == ENDIAN_BIG) {
    output_target = format;
    if (big != (char *)0x0) {
      output_target = big;
    }
  }
  else if ((command_line.endian == ENDIAN_LITTLE) && (little != (char *)0x0)) {
    output_target = little;
  }
  else {
    output_target = format;
  }
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

void FUN_00027970(int param_1,int param_2,int param_3,int param_4)

{
  if ((DAT_00084b7c != 0) && (param_4 != 0)) {
    return;
  }
  if (DAT_00084c90 == 1) {
    DAT_00084b7c = param_1;
    if (param_2 != 0) {
      DAT_00084b7c = param_2;
    }
  }
  else if ((DAT_00084c90 == 2) && (param_3 != 0)) {
    DAT_00084b7c = param_3;
  }
  else {
    DAT_00084b7c = param_1;
  }
  return;
}


CALL 0x00015af5
ADD EDX,0x5c68b
MOV ECX,dword ptr [ESP + 0xc]
LEA EAX,[EDX + 0xb7c]
CMP dword ptr [EAX],0x0
JZ 0x00027998
CMP dword ptr [ESP + 0x10],0x0
JZ 0x00027998
RET
LEA EDX,[EDX + 0xc60]
MOV EDX,dword ptr [EDX + 0x30]
CMP EDX,0x1
JZ 0x000279b8
CMP EDX,0x2
JNZ 0x000279d0
TEST ECX,ECX
JZ 0x000279d0
MOV dword ptr [EAX],ECX
RET
MOV EDX,dword ptr [ESP + 0x8]
MOV ECX,dword ptr [ESP + 0x4]
TEST EDX,EDX
CMOVNZ ECX,dword ptr [ESP + 0x8]
MOV dword ptr [EAX],ECX
JMP 0x000279b1
MOV ECX,dword ptr [ESP + 0x4]
MOV dword ptr [EAX],ECX
JMP 0x000279b1
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nvoid FUN_00027970(int param_1,int param_2,int param_3,int param_4)\n\n{\n  if ((DAT_00084b7c != 0) && (param_4 != 0)) {\n    return;\n  }\n  if (DAT_00084c90 == 1) {\n    DAT_00084b7c = param_1;\n    if (param_2 != 0) {\n      DAT_00084b7c = param_2;\n    }\n  }\n  else if ((DAT_00084c90 == 2) && (param_3 != 0)) {\n    DAT_00084b7c = param_3;\n  }\n  else {\n    DAT_00084b7c = param_1;\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00027970(int param_1,int param_2,int param_3,int param_4)\n\n{\n  if ((DAT_00084b7c != 0) && (param_4 != 0)) {\n    return;\n  }\n  if (DAT_00084c90 == 1) {\n    DAT_00084b7c = param_1;\n    if (param_2 != 0) {\n      DAT_00084b7c = param_2;\n    }\n  }\n  else if ((DAT_00084c90 == 2) && (param_3 != 0)) {\n    DAT_00084b7c = param_3;\n  }\n  else {\n    DAT_00084b7c = param_1;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00027970(int param_1,int param_2,int param_3,int param_4)" identifier (parameter_list "(int param_1,int param_2,int param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  if ((DAT_00084b7c != 0) && (param_4 != 0)) {\n    return;\n  }\n  if (DAT_00084c90 == 1) {\n    DAT_00084b7c = param_1;\n    if (param_2 != 0) {\n      DAT_00084b7c = param_2;\n    }\n  }\n  else if ((DAT_00084c90 == 2) && (param_3 != 0)) {\n    DAT_00084b7c = param_3;\n  }\n  else {\n    DAT_00084b7c = param_1;\n  }\n  return;\n}" { (if_statement "if ((DAT_00084b7c != 0) && (param_4 != 0)) {\n    return;\n  }" if (parenthesized_expression "((DAT_00084b7c != 0) && (param_4 != 0))" ( (binary_expression "(DAT_00084b7c != 0) && (param_4 != 0)" (parenthesized_expression "(DAT_00084b7c != 0)" ( (binary_expression "DAT_00084b7c != 0" identifier != number_literal) )) && (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (if_statement "if (DAT_00084c90 == 1) {\n    DAT_00084b7c = param_1;\n    if (param_2 != 0) {\n      DAT_00084b7c = param_2;\n    }\n  }\n  else if ((DAT_00084c90 == 2) && (param_3 != 0)) {\n    DAT_00084b7c = param_3;\n  }\n  else {\n    DAT_00084b7c = param_1;\n  }" if (parenthesized_expression "(DAT_00084c90 == 1)" ( (binary_expression "DAT_00084c90 == 1" identifier == number_literal) )) (compound_statement "{\n    DAT_00084b7c = param_1;\n    if (param_2 != 0) {\n      DAT_00084b7c = param_2;\n    }\n  }" { (expression_statement "DAT_00084b7c = param_1;" (assignment_expression "DAT_00084b7c = param_1" identifier = identifier) ;) (if_statement "if (param_2 != 0) {\n      DAT_00084b7c = param_2;\n    }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n      DAT_00084b7c = param_2;\n    }" { (expression_statement "DAT_00084b7c = param_2;" (assignment_expression "DAT_00084b7c = param_2" identifier = identifier) ;) })) }) (else_clause "else if ((DAT_00084c90 == 2) && (param_3 != 0)) {\n    DAT_00084b7c = param_3;\n  }\n  else {\n    DAT_00084b7c = param_1;\n  }" else (if_statement "if ((DAT_00084c90 == 2) && (param_3 != 0)) {\n    DAT_00084b7c = param_3;\n  }\n  else {\n    DAT_00084b7c = param_1;\n  }" if (parenthesized_expression "((DAT_00084c90 == 2) && (param_3 != 0))" ( (binary_expression "(DAT_00084c90 == 2) && (param_3 != 0)" (parenthesized_expression "(DAT_00084c90 == 2)" ( (binary_expression "DAT_00084c90 == 2" identifier == number_literal) )) && (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    DAT_00084b7c = param_3;\n  }" { (expression_statement "DAT_00084b7c = param_3;" (assignment_expression "DAT_00084b7c = param_3" identifier = identifier) ;) }) (else_clause "else {\n    DAT_00084b7c = param_1;\n  }" else (compound_statement "{\n    DAT_00084b7c = param_1;\n  }" { (expression_statement "DAT_00084b7c = param_1;" (assignment_expression "DAT_00084b7c = param_1" identifier = identifier) ;) }))))) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nvoid lang_add_output_format(char *format,char *big,char *little,int from_script)\n\n{\n  if ((output_target != (char *)0x0) && (from_script != 0)) {\n    return;\n  }\n  if (command_line.endian == ENDIAN_BIG) {\n    output_target = format;\n    if (big != (char *)0x0) {\n      output_target = big;\n    }\n  }\n  else if ((command_line.endian == ENDIAN_LITTLE) && (little != (char *)0x0)) {\n    output_target = little;\n  }\n  else {\n    output_target = format;\n  }\n  return;\n}\n\n" comment (function_definition "void lang_add_output_format(char *format,char *big,char *little,int from_script)\n\n{\n  if ((output_target != (char *)0x0) && (from_script != 0)) {\n    return;\n  }\n  if (command_line.endian == ENDIAN_BIG) {\n    output_target = format;\n    if (big != (char *)0x0) {\n      output_target = big;\n    }\n  }\n  else if ((command_line.endian == ENDIAN_LITTLE) && (little != (char *)0x0)) {\n    output_target = little;\n  }\n  else {\n    output_target = format;\n  }\n  return;\n}" primitive_type (function_declarator "lang_add_output_format(char *format,char *big,char *little,int from_script)" identifier (parameter_list "(char *format,char *big,char *little,int from_script)" ( (parameter_declaration "char *format" primitive_type (pointer_declarator "*format" * identifier)) , (parameter_declaration "char *big" primitive_type (pointer_declarator "*big" * identifier)) , (parameter_declaration "char *little" primitive_type (pointer_declarator "*little" * identifier)) , (parameter_declaration "int from_script" primitive_type identifier) ))) (compound_statement "{\n  if ((output_target != (char *)0x0) && (from_script != 0)) {\n    return;\n  }\n  if (command_line.endian == ENDIAN_BIG) {\n    output_target = format;\n    if (big != (char *)0x0) {\n      output_target = big;\n    }\n  }\n  else if ((command_line.endian == ENDIAN_LITTLE) && (little != (char *)0x0)) {\n    output_target = little;\n  }\n  else {\n    output_target = format;\n  }\n  return;\n}" { (if_statement "if ((output_target != (char *)0x0) && (from_script != 0)) {\n    return;\n  }" if (parenthesized_expression "((output_target != (char *)0x0) && (from_script != 0))" ( (binary_expression "(output_target != (char *)0x0) && (from_script != 0)" (parenthesized_expression "(output_target != (char *)0x0)" ( (binary_expression "output_target != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(from_script != 0)" ( (binary_expression "from_script != 0" identifier != number_literal) ))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (if_statement "if (command_line.endian == ENDIAN_BIG) {\n    output_target = format;\n    if (big != (char *)0x0) {\n      output_target = big;\n    }\n  }\n  else if ((command_line.endian == ENDIAN_LITTLE) && (little != (char *)0x0)) {\n    output_target = little;\n  }\n  else {\n    output_target = format;\n  }" if (parenthesized_expression "(command_line.endian == ENDIAN_BIG)" ( (binary_expression "command_line.endian == ENDIAN_BIG" (field_expression "command_line.endian" identifier . field_identifier) == identifier) )) (compound_statement "{\n    output_target = format;\n    if (big != (char *)0x0) {\n      output_target = big;\n    }\n  }" { (expression_statement "output_target = format;" (assignment_expression "output_target = format" identifier = identifier) ;) (if_statement "if (big != (char *)0x0) {\n      output_target = big;\n    }" if (parenthesized_expression "(big != (char *)0x0)" ( (binary_expression "big != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      output_target = big;\n    }" { (expression_statement "output_target = big;" (assignment_expression "output_target = big" identifier = identifier) ;) })) }) (else_clause "else if ((command_line.endian == ENDIAN_LITTLE) && (little != (char *)0x0)) {\n    output_target = little;\n  }\n  else {\n    output_target = format;\n  }" else (if_statement "if ((command_line.endian == ENDIAN_LITTLE) && (little != (char *)0x0)) {\n    output_target = little;\n  }\n  else {\n    output_target = format;\n  }" if (parenthesized_expression "((command_line.endian == ENDIAN_LITTLE) && (little != (char *)0x0))" ( (binary_expression "(command_line.endian == ENDIAN_LITTLE) && (little != (char *)0x0)" (parenthesized_expression "(command_line.endian == ENDIAN_LITTLE)" ( (binary_expression "command_line.endian == ENDIAN_LITTLE" (field_expression "command_line.endian" identifier . field_identifier) == identifier) )) && (parenthesized_expression "(little != (char *)0x0)" ( (binary_expression "little != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    output_target = little;\n  }" { (expression_statement "output_target = little;" (assignment_expression "output_target = little" identifier = identifier) ;) }) (else_clause "else {\n    output_target = format;\n  }" else (compound_statement "{\n    output_target = format;\n  }" { (expression_statement "output_target = format;" (assignment_expression "output_target = format" identifier = identifier) ;) }))))) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00027970(int param_1,int param_2,int param_3,int param_4)\n\n{\n  if ((DAT_00084b7c != 0) && (param_4 != 0)) {\n    return;\n  }\n  if (DAT_00084c90 == 1) {\n    DAT_00084b7c = param_1;\n    if (param_2 != 0) {\n      DAT_00084b7c = param_2;\n    }\n  }\n  else if ((DAT_00084c90 == 2) && (param_3 != 0)) {\n    DAT_00084b7c = param_3;\n  }\n  else {\n    DAT_00084b7c = param_1;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00027970(int param_1,int param_2,int param_3,int param_4)\n\n{\n  if ((DAT_00084b7c != 0) && (param_4 != 0)) {\n    return;\n  }\n  if (DAT_00084c90 == 1) {\n    DAT_00084b7c = param_1;\n    if (param_2 != 0) {\n      DAT_00084b7c = param_2;\n    }\n  }\n  else if ((DAT_00084c90 == 2) && (param_3 != 0)) {\n    DAT_00084b7c = param_3;\n  }\n  else {\n    DAT_00084b7c = param_1;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00027970(int param_1,int param_2,int param_3,int param_4)" identifier (parameter_list "(int param_1,int param_2,int param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  if ((DAT_00084b7c != 0) && (param_4 != 0)) {\n    return;\n  }\n  if (DAT_00084c90 == 1) {\n    DAT_00084b7c = param_1;\n    if (param_2 != 0) {\n      DAT_00084b7c = param_2;\n    }\n  }\n  else if ((DAT_00084c90 == 2) && (param_3 != 0)) {\n    DAT_00084b7c = param_3;\n  }\n  else {\n    DAT_00084b7c = param_1;\n  }\n  return;\n}" { (if_statement "if ((DAT_00084b7c != 0) && (param_4 != 0)) {\n    return;\n  }" if (parenthesized_expression "((DAT_00084b7c != 0) && (param_4 != 0))" ( (binary_expression "(DAT_00084b7c != 0) && (param_4 != 0)" (parenthesized_expression "(DAT_00084b7c != 0)" ( (binary_expression "DAT_00084b7c != 0" identifier != number_literal) )) && (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (if_statement "if (DAT_00084c90 == 1) {\n    DAT_00084b7c = param_1;\n    if (param_2 != 0) {\n      DAT_00084b7c = param_2;\n    }\n  }\n  else if ((DAT_00084c90 == 2) && (param_3 != 0)) {\n    DAT_00084b7c = param_3;\n  }\n  else {\n    DAT_00084b7c = param_1;\n  }" if (parenthesized_expression "(DAT_00084c90 == 1)" ( (binary_expression "DAT_00084c90 == 1" identifier == number_literal) )) (compound_statement "{\n    DAT_00084b7c = param_1;\n    if (param_2 != 0) {\n      DAT_00084b7c = param_2;\n    }\n  }" { (expression_statement "DAT_00084b7c = param_1;" (assignment_expression "DAT_00084b7c = param_1" identifier = identifier) ;) (if_statement "if (param_2 != 0) {\n      DAT_00084b7c = param_2;\n    }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n      DAT_00084b7c = param_2;\n    }" { (expression_statement "DAT_00084b7c = param_2;" (assignment_expression "DAT_00084b7c = param_2" identifier = identifier) ;) })) }) (else_clause "else if ((DAT_00084c90 == 2) && (param_3 != 0)) {\n    DAT_00084b7c = param_3;\n  }\n  else {\n    DAT_00084b7c = param_1;\n  }" else (if_statement "if ((DAT_00084c90 == 2) && (param_3 != 0)) {\n    DAT_00084b7c = param_3;\n  }\n  else {\n    DAT_00084b7c = param_1;\n  }" if (parenthesized_expression "((DAT_00084c90 == 2) && (param_3 != 0))" ( (binary_expression "(DAT_00084c90 == 2) && (param_3 != 0)" (parenthesized_expression "(DAT_00084c90 == 2)" ( (binary_expression "DAT_00084c90 == 2" identifier == number_literal) )) && (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    DAT_00084b7c = param_3;\n  }" { (expression_statement "DAT_00084b7c = param_3;" (assignment_expression "DAT_00084b7c = param_3" identifier = identifier) ;) }) (else_clause "else {\n    DAT_00084b7c = param_1;\n  }" else (compound_statement "{\n    DAT_00084b7c = param_1;\n  }" { (expression_statement "DAT_00084b7c = param_1;" (assignment_expression "DAT_00084b7c = param_1" identifier = identifier) ;) }))))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) }))))) (return_statement return ;) })))
(function_definition "void FUN_00027970(int param_1,int param_2,int param_3,int param_4)\n\n{\n  if ((DAT_00084b7c != 0) && (param_4 != 0)) {\n    return;\n  }\n  if (DAT_00084c90 == 1) {\n    DAT_00084b7c = param_1;\n    if (param_2 != 0) {\n      DAT_00084b7c = param_2;\n    }\n  }\n  else if ((DAT_00084c90 == 2) && (param_3 != 0)) {\n    DAT_00084b7c = param_3;\n  }\n  else {\n    DAT_00084b7c = param_1;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00027970(int param_1,int param_2,int param_3,int param_4)" (identifier "FUN_00027970") (parameter_list "(int param_1,int param_2,int param_3,int param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  if ((DAT_00084b7c != 0) && (param_4 != 0)) {\n    return;\n  }\n  if (DAT_00084c90 == 1) {\n    DAT_00084b7c = param_1;\n    if (param_2 != 0) {\n      DAT_00084b7c = param_2;\n    }\n  }\n  else if ((DAT_00084c90 == 2) && (param_3 != 0)) {\n    DAT_00084b7c = param_3;\n  }\n  else {\n    DAT_00084b7c = param_1;\n  }\n  return;\n}" ({ "{") (if_statement "if ((DAT_00084b7c != 0) && (param_4 != 0)) {\n    return;\n  }" (if "if") (parenthesized_expression "((DAT_00084b7c != 0) && (param_4 != 0))" (( "(") (binary_expression "(DAT_00084b7c != 0) && (param_4 != 0)" (parenthesized_expression "(DAT_00084b7c != 0)" (( "(") (binary_expression "DAT_00084b7c != 0" (identifier "DAT_00084b7c") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_4 != 0)" (( "(") (binary_expression "param_4 != 0" (identifier "param_4") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (DAT_00084c90 == 1) {\n    DAT_00084b7c = param_1;\n    if (param_2 != 0) {\n      DAT_00084b7c = param_2;\n    }\n  }\n  else if ((DAT_00084c90 == 2) && (param_3 != 0)) {\n    DAT_00084b7c = param_3;\n  }\n  else {\n    DAT_00084b7c = param_1;\n  }" (if "if") (parenthesized_expression "(DAT_00084c90 == 1)" (( "(") (binary_expression "DAT_00084c90 == 1" (identifier "DAT_00084c90") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    DAT_00084b7c = param_1;\n    if (param_2 != 0) {\n      DAT_00084b7c = param_2;\n    }\n  }" ({ "{") (expression_statement "DAT_00084b7c = param_1;" (assignment_expression "DAT_00084b7c = param_1" (identifier "DAT_00084b7c") (= "=") (identifier "param_1")) (; ";")) (if_statement "if (param_2 != 0) {\n      DAT_00084b7c = param_2;\n    }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      DAT_00084b7c = param_2;\n    }" ({ "{") (expression_statement "DAT_00084b7c = param_2;" (assignment_expression "DAT_00084b7c = param_2" (identifier "DAT_00084b7c") (= "=") (identifier "param_2")) (; ";")) (} "}"))) (} "}")) (else_clause "else if ((DAT_00084c90 == 2) && (param_3 != 0)) {\n    DAT_00084b7c = param_3;\n  }\n  else {\n    DAT_00084b7c = param_1;\n  }" (else "else") (if_statement "if ((DAT_00084c90 == 2) && (param_3 != 0)) {\n    DAT_00084b7c = param_3;\n  }\n  else {\n    DAT_00084b7c = param_1;\n  }" (if "if") (parenthesized_expression "((DAT_00084c90 == 2) && (param_3 != 0))" (( "(") (binary_expression "(DAT_00084c90 == 2) && (param_3 != 0)" (parenthesized_expression "(DAT_00084c90 == 2)" (( "(") (binary_expression "DAT_00084c90 == 2" (identifier "DAT_00084c90") (== "==") (number_literal "2")) () ")")) (&& "&&") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    DAT_00084b7c = param_3;\n  }" ({ "{") (expression_statement "DAT_00084b7c = param_3;" (assignment_expression "DAT_00084b7c = param_3" (identifier "DAT_00084b7c") (= "=") (identifier "param_3")) (; ";")) (} "}")) (else_clause "else {\n    DAT_00084b7c = param_1;\n  }" (else "else") (compound_statement "{\n    DAT_00084b7c = param_1;\n  }" ({ "{") (expression_statement "DAT_00084b7c = param_1;" (assignment_expression "DAT_00084b7c = param_1" (identifier "DAT_00084b7c") (= "=") (identifier "param_1")) (; ";")) (} "}")))))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

void function_1(char *format,char *var_4,char *var_6,int var_2)

{
  if ((var_1 != (char *)0x0) && (var_2 != 0)) {
    return;
  }
  if (command_line.endian == var_3) {
    var_1 = format;
    if (var_4 != (char *)0x0) {
      var_1 = var_4;
    }
  }
  else if ((command_line.endian == var_5) && (var_6 != (char *)0x0)) {
    var_1 = var_6;
  }
  else {
    var_1 = format;
  }
  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)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (return_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier)))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier)))))))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

void MASKED(int param_1,int param_2,int param_3,int param_4)

{
  if ((DAT_00084b7c != 0) && (param_4 != 0)) {
    return;
  }
  if (DAT_00084c90 == 1) {
    DAT_00084b7c = param_1;
    if (param_2 != 0) {
      DAT_00084b7c = param_2;
    }
  }
  else if ((DAT_00084c90 == 2) && (param_3 != 0)) {
    DAT_00084b7c = param_3;
  }
  else {
    DAT_00084b7c = param_1;
  }
  return;
}

