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

void set_simple_backup_suffix(char *s)

{
  char *pcVar1;
  
  if ((((s != (char *)0x0) || (s = getenv("SIMPLE_BACKUP_SUFFIX"), s != (char *)0x0)) &&
      (*s != '\0')) && (pcVar1 = last_component(s), pcVar1 == s)) {
    simple_backup_suffix = s;
    return;
  }
  simple_backup_suffix = "~";
  return;
}



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

void FUN_0001bbb0(char *param_1)

{
  char *pcVar1;
  
  if ((((param_1 != (char *)0x0) ||
       (param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0)) && (*param_1 != '\0')) &&
     (pcVar1 = (char *)FUN_0001ce30(param_1), pcVar1 == param_1)) {
    DAT_0003d790 = param_1;
    return;
  }
  DAT_0003d790 = &DAT_0002fd63;
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00013950
ADD EBX,0x1f449
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
TEST ESI,ESI
JZ 0x0001bc10
CMP byte ptr [ESI],0x0
JNZ 0x0001bbe8
LEA EAX,[EBX + 0x2790]
LEA ESI,[EBX + 0xffff4d63]
MOV dword ptr [EAX],ESI
ADD ESP,0x4
POP EBX
POP ESI
RET
SUB ESP,0xc
PUSH ESI
CALL 0x0001ce30
ADD ESP,0x10
CMP EAX,ESI
JNZ 0x0001bbcd
LEA EAX,[EBX + 0x2790]
MOV dword ptr [EAX],ESI
ADD ESP,0x4
POP EBX
POP ESI
RET
SUB ESP,0xc
LEA EAX,[EBX + 0xffff4d65]
PUSH EAX
CALL 0x00012430
ADD ESP,0x10
MOV ESI,EAX
TEST EAX,EAX
JZ 0x0001bbcd
JMP 0x0001bbc8
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0001bbb0(char *param_1)\n\n{\n  char *pcVar1;\n  \n  if ((((param_1 != (char *)0x0) ||\n       (param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0)) && (*param_1 != '\0')) &&\n     (pcVar1 = (char *)FUN_0001ce30(param_1), pcVar1 == param_1)) {\n    DAT_0003d790 = param_1;\n    return;\n  }\n  DAT_0003d790 = &DAT_0002fd63;\n  return;\n}\n\n" comment (function_definition "void FUN_0001bbb0(char *param_1)\n\n{\n  char *pcVar1;\n  \n  if ((((param_1 != (char *)0x0) ||\n       (param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0)) && (*param_1 != '\0')) &&\n     (pcVar1 = (char *)FUN_0001ce30(param_1), pcVar1 == param_1)) {\n    DAT_0003d790 = param_1;\n    return;\n  }\n  DAT_0003d790 = &DAT_0002fd63;\n  return;\n}" primitive_type (function_declarator "FUN_0001bbb0(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  \n  if ((((param_1 != (char *)0x0) ||\n       (param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0)) && (*param_1 != '\0')) &&\n     (pcVar1 = (char *)FUN_0001ce30(param_1), pcVar1 == param_1)) {\n    DAT_0003d790 = param_1;\n    return;\n  }\n  DAT_0003d790 = &DAT_0002fd63;\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (if_statement "if ((((param_1 != (char *)0x0) ||\n       (param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0)) && (*param_1 != '\0')) &&\n     (pcVar1 = (char *)FUN_0001ce30(param_1), pcVar1 == param_1)) {\n    DAT_0003d790 = param_1;\n    return;\n  }" if (parenthesized_expression "((((param_1 != (char *)0x0) ||\n       (param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0)) && (*param_1 != '\0')) &&\n     (pcVar1 = (char *)FUN_0001ce30(param_1), pcVar1 == param_1))" ( (binary_expression "(((param_1 != (char *)0x0) ||\n       (param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0)) && (*param_1 != '\0')) &&\n     (pcVar1 = (char *)FUN_0001ce30(param_1), pcVar1 == param_1)" (parenthesized_expression "(((param_1 != (char *)0x0) ||\n       (param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0)) && (*param_1 != '\0'))" ( (binary_expression "((param_1 != (char *)0x0) ||\n       (param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0)) && (*param_1 != '\0')" (parenthesized_expression "((param_1 != (char *)0x0) ||\n       (param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0))" ( (binary_expression "(param_1 != (char *)0x0) ||\n       (param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0)" (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0)" ( (comma_expression "param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0" (assignment_expression "param_1 = getenv("SIMPLE_BACKUP_SUFFIX")" identifier = (call_expression "getenv("SIMPLE_BACKUP_SUFFIX")" identifier (argument_list "("SIMPLE_BACKUP_SUFFIX")" ( (string_literal ""SIMPLE_BACKUP_SUFFIX"" " string_content ") )))) , (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) && (parenthesized_expression "(*param_1 != '\0')" ( (binary_expression "*param_1 != '\0'" (pointer_expression "*param_1" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) && (parenthesized_expression "(pcVar1 = (char *)FUN_0001ce30(param_1), pcVar1 == param_1)" ( (comma_expression "pcVar1 = (char *)FUN_0001ce30(param_1), pcVar1 == param_1" (assignment_expression "pcVar1 = (char *)FUN_0001ce30(param_1)" identifier = (cast_expression "(char *)FUN_0001ce30(param_1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001ce30(param_1)" identifier (argument_list "(param_1)" ( identifier ))))) , (binary_expression "pcVar1 == param_1" identifier == identifier)) ))) )) (compound_statement "{\n    DAT_0003d790 = param_1;\n    return;\n  }" { (expression_statement "DAT_0003d790 = param_1;" (assignment_expression "DAT_0003d790 = param_1" identifier = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "DAT_0003d790 = &DAT_0002fd63;" (assignment_expression "DAT_0003d790 = &DAT_0002fd63" identifier = (pointer_expression "&DAT_0002fd63" & identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid set_simple_backup_suffix(char *s)\n\n{\n  char *pcVar1;\n  \n  if ((((s != (char *)0x0) || (s = getenv("SIMPLE_BACKUP_SUFFIX"), s != (char *)0x0)) &&\n      (*s != '\0')) && (pcVar1 = last_component(s), pcVar1 == s)) {\n    simple_backup_suffix = s;\n    return;\n  }\n  simple_backup_suffix = "~";\n  return;\n}\n\n" comment (function_definition "void set_simple_backup_suffix(char *s)\n\n{\n  char *pcVar1;\n  \n  if ((((s != (char *)0x0) || (s = getenv("SIMPLE_BACKUP_SUFFIX"), s != (char *)0x0)) &&\n      (*s != '\0')) && (pcVar1 = last_component(s), pcVar1 == s)) {\n    simple_backup_suffix = s;\n    return;\n  }\n  simple_backup_suffix = "~";\n  return;\n}" primitive_type (function_declarator "set_simple_backup_suffix(char *s)" identifier (parameter_list "(char *s)" ( (parameter_declaration "char *s" primitive_type (pointer_declarator "*s" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  \n  if ((((s != (char *)0x0) || (s = getenv("SIMPLE_BACKUP_SUFFIX"), s != (char *)0x0)) &&\n      (*s != '\0')) && (pcVar1 = last_component(s), pcVar1 == s)) {\n    simple_backup_suffix = s;\n    return;\n  }\n  simple_backup_suffix = "~";\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (if_statement "if ((((s != (char *)0x0) || (s = getenv("SIMPLE_BACKUP_SUFFIX"), s != (char *)0x0)) &&\n      (*s != '\0')) && (pcVar1 = last_component(s), pcVar1 == s)) {\n    simple_backup_suffix = s;\n    return;\n  }" if (parenthesized_expression "((((s != (char *)0x0) || (s = getenv("SIMPLE_BACKUP_SUFFIX"), s != (char *)0x0)) &&\n      (*s != '\0')) && (pcVar1 = last_component(s), pcVar1 == s))" ( (binary_expression "(((s != (char *)0x0) || (s = getenv("SIMPLE_BACKUP_SUFFIX"), s != (char *)0x0)) &&\n      (*s != '\0')) && (pcVar1 = last_component(s), pcVar1 == s)" (parenthesized_expression "(((s != (char *)0x0) || (s = getenv("SIMPLE_BACKUP_SUFFIX"), s != (char *)0x0)) &&\n      (*s != '\0'))" ( (binary_expression "((s != (char *)0x0) || (s = getenv("SIMPLE_BACKUP_SUFFIX"), s != (char *)0x0)) &&\n      (*s != '\0')" (parenthesized_expression "((s != (char *)0x0) || (s = getenv("SIMPLE_BACKUP_SUFFIX"), s != (char *)0x0))" ( (binary_expression "(s != (char *)0x0) || (s = getenv("SIMPLE_BACKUP_SUFFIX"), s != (char *)0x0)" (parenthesized_expression "(s != (char *)0x0)" ( (binary_expression "s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(s = getenv("SIMPLE_BACKUP_SUFFIX"), s != (char *)0x0)" ( (comma_expression "s = getenv("SIMPLE_BACKUP_SUFFIX"), s != (char *)0x0" (assignment_expression "s = getenv("SIMPLE_BACKUP_SUFFIX")" identifier = (call_expression "getenv("SIMPLE_BACKUP_SUFFIX")" identifier (argument_list "("SIMPLE_BACKUP_SUFFIX")" ( (string_literal ""SIMPLE_BACKUP_SUFFIX"" " string_content ") )))) , (binary_expression "s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) && (parenthesized_expression "(*s != '\0')" ( (binary_expression "*s != '\0'" (pointer_expression "*s" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) && (parenthesized_expression "(pcVar1 = last_component(s), pcVar1 == s)" ( (comma_expression "pcVar1 = last_component(s), pcVar1 == s" (assignment_expression "pcVar1 = last_component(s)" identifier = (call_expression "last_component(s)" identifier (argument_list "(s)" ( identifier )))) , (binary_expression "pcVar1 == s" identifier == identifier)) ))) )) (compound_statement "{\n    simple_backup_suffix = s;\n    return;\n  }" { (expression_statement "simple_backup_suffix = s;" (assignment_expression "simple_backup_suffix = s" identifier = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "simple_backup_suffix = "~";" (assignment_expression "simple_backup_suffix = "~"" identifier = (string_literal ""~"" " string_content ")) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0001bbb0(char *param_1)\n\n{\n  char *pcVar1;\n  \n  if ((((param_1 != (char *)0x0) ||\n       (param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0)) && (*param_1 != '\0')) &&\n     (pcVar1 = (char *)FUN_0001ce30(param_1), pcVar1 == param_1)) {\n    DAT_0003d790 = param_1;\n    return;\n  }\n  DAT_0003d790 = &DAT_0002fd63;\n  return;\n}\n\n" (function_definition "void FUN_0001bbb0(char *param_1)\n\n{\n  char *pcVar1;\n  \n  if ((((param_1 != (char *)0x0) ||\n       (param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0)) && (*param_1 != '\0')) &&\n     (pcVar1 = (char *)FUN_0001ce30(param_1), pcVar1 == param_1)) {\n    DAT_0003d790 = param_1;\n    return;\n  }\n  DAT_0003d790 = &DAT_0002fd63;\n  return;\n}" primitive_type (function_declarator "FUN_0001bbb0(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  \n  if ((((param_1 != (char *)0x0) ||\n       (param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0)) && (*param_1 != '\0')) &&\n     (pcVar1 = (char *)FUN_0001ce30(param_1), pcVar1 == param_1)) {\n    DAT_0003d790 = param_1;\n    return;\n  }\n  DAT_0003d790 = &DAT_0002fd63;\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (if_statement "if ((((param_1 != (char *)0x0) ||\n       (param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0)) && (*param_1 != '\0')) &&\n     (pcVar1 = (char *)FUN_0001ce30(param_1), pcVar1 == param_1)) {\n    DAT_0003d790 = param_1;\n    return;\n  }" if (parenthesized_expression "((((param_1 != (char *)0x0) ||\n       (param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0)) && (*param_1 != '\0')) &&\n     (pcVar1 = (char *)FUN_0001ce30(param_1), pcVar1 == param_1))" ( (binary_expression "(((param_1 != (char *)0x0) ||\n       (param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0)) && (*param_1 != '\0')) &&\n     (pcVar1 = (char *)FUN_0001ce30(param_1), pcVar1 == param_1)" (parenthesized_expression "(((param_1 != (char *)0x0) ||\n       (param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0)) && (*param_1 != '\0'))" ( (binary_expression "((param_1 != (char *)0x0) ||\n       (param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0)) && (*param_1 != '\0')" (parenthesized_expression "((param_1 != (char *)0x0) ||\n       (param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0))" ( (binary_expression "(param_1 != (char *)0x0) ||\n       (param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0)" (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0)" ( (comma_expression "param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0" (assignment_expression "param_1 = getenv("SIMPLE_BACKUP_SUFFIX")" identifier = (call_expression "getenv("SIMPLE_BACKUP_SUFFIX")" identifier (argument_list "("SIMPLE_BACKUP_SUFFIX")" ( (string_literal ""SIMPLE_BACKUP_SUFFIX"" " string_content ") )))) , (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) && (parenthesized_expression "(*param_1 != '\0')" ( (binary_expression "*param_1 != '\0'" (pointer_expression "*param_1" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) && (parenthesized_expression "(pcVar1 = (char *)FUN_0001ce30(param_1), pcVar1 == param_1)" ( (comma_expression "pcVar1 = (char *)FUN_0001ce30(param_1), pcVar1 == param_1" (assignment_expression "pcVar1 = (char *)FUN_0001ce30(param_1)" identifier = (cast_expression "(char *)FUN_0001ce30(param_1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001ce30(param_1)" identifier (argument_list "(param_1)" ( identifier ))))) , (binary_expression "pcVar1 == param_1" identifier == identifier)) ))) )) (compound_statement "{\n    DAT_0003d790 = param_1;\n    return;\n  }" { (expression_statement "DAT_0003d790 = param_1;" (assignment_expression "DAT_0003d790 = param_1" identifier = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "DAT_0003d790 = &DAT_0002fd63;" (assignment_expression "DAT_0003d790 = &DAT_0002fd63" identifier = (pointer_expression "&DAT_0002fd63" & identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) , (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) , (binary_expression IDENT == IDENT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (return_statement return ;) })))
(function_definition "void FUN_0001bbb0(char *param_1)\n\n{\n  char *pcVar1;\n  \n  if ((((param_1 != (char *)0x0) ||\n       (param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0)) && (*param_1 != '\0')) &&\n     (pcVar1 = (char *)FUN_0001ce30(param_1), pcVar1 == param_1)) {\n    DAT_0003d790 = param_1;\n    return;\n  }\n  DAT_0003d790 = &DAT_0002fd63;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0001bbb0(char *param_1)" (identifier "FUN_0001bbb0") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  char *pcVar1;\n  \n  if ((((param_1 != (char *)0x0) ||\n       (param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0)) && (*param_1 != '\0')) &&\n     (pcVar1 = (char *)FUN_0001ce30(param_1), pcVar1 == param_1)) {\n    DAT_0003d790 = param_1;\n    return;\n  }\n  DAT_0003d790 = &DAT_0002fd63;\n  return;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (if_statement "if ((((param_1 != (char *)0x0) ||\n       (param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0)) && (*param_1 != '\0')) &&\n     (pcVar1 = (char *)FUN_0001ce30(param_1), pcVar1 == param_1)) {\n    DAT_0003d790 = param_1;\n    return;\n  }" (if "if") (parenthesized_expression "((((param_1 != (char *)0x0) ||\n       (param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0)) && (*param_1 != '\0')) &&\n     (pcVar1 = (char *)FUN_0001ce30(param_1), pcVar1 == param_1))" (( "(") (binary_expression "(((param_1 != (char *)0x0) ||\n       (param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0)) && (*param_1 != '\0')) &&\n     (pcVar1 = (char *)FUN_0001ce30(param_1), pcVar1 == param_1)" (parenthesized_expression "(((param_1 != (char *)0x0) ||\n       (param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0)) && (*param_1 != '\0'))" (( "(") (binary_expression "((param_1 != (char *)0x0) ||\n       (param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0)) && (*param_1 != '\0')" (parenthesized_expression "((param_1 != (char *)0x0) ||\n       (param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0))" (( "(") (binary_expression "(param_1 != (char *)0x0) ||\n       (param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0)" (parenthesized_expression "(param_1 != (char *)0x0)" (( "(") (binary_expression "param_1 != (char *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0)" (( "(") (comma_expression "param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0" (assignment_expression "param_1 = getenv("SIMPLE_BACKUP_SUFFIX")" (identifier "param_1") (= "=") (call_expression "getenv("SIMPLE_BACKUP_SUFFIX")" (identifier "getenv") (argument_list "("SIMPLE_BACKUP_SUFFIX")" (( "(") (string_literal ""SIMPLE_BACKUP_SUFFIX"" (" """) (string_content "SIMPLE_BACKUP_SUFFIX") (" """)) () ")")))) (, ",") (binary_expression "param_1 != (char *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(*param_1 != '\0')" (( "(") (binary_expression "*param_1 != '\0'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(pcVar1 = (char *)FUN_0001ce30(param_1), pcVar1 == param_1)" (( "(") (comma_expression "pcVar1 = (char *)FUN_0001ce30(param_1), pcVar1 == param_1" (assignment_expression "pcVar1 = (char *)FUN_0001ce30(param_1)" (identifier "pcVar1") (= "=") (cast_expression "(char *)FUN_0001ce30(param_1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001ce30(param_1)" (identifier "FUN_0001ce30") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))))) (, ",") (binary_expression "pcVar1 == param_1" (identifier "pcVar1") (== "==") (identifier "param_1"))) () ")"))) () ")")) (compound_statement "{\n    DAT_0003d790 = param_1;\n    return;\n  }" ({ "{") (expression_statement "DAT_0003d790 = param_1;" (assignment_expression "DAT_0003d790 = param_1" (identifier "DAT_0003d790") (= "=") (identifier "param_1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "DAT_0003d790 = &DAT_0002fd63;" (assignment_expression "DAT_0003d790 = &DAT_0002fd63" (identifier "DAT_0003d790") (= "=") (pointer_expression "&DAT_0002fd63" (& "&") (identifier "DAT_0002fd63"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(char *var_1)

{
  char *var_4;
  
  if ((((var_1 != (char *)0x0) || (var_1 = var_2("SIMPLE_BACKUP_SUFFIX"), var_1 != (char *)0x0)) &&
      (*var_1 != '\0')) && (var_4 = var_3(var_1), var_4 == var_1)) {
    simple_backup_suffix = var_1;
    return;
  }
  simple_backup_suffix = "~";
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content))))) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier))))) right: (binary_expression left: (identifier) right: (identifier)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (return_statement))))

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

void MASKED(char *param_1)

{
  char *pcVar1;
  
  if ((((param_1 != (char *)0x0) ||
       (param_1 = getenv("SIMPLE_BACKUP_SUFFIX"), param_1 != (char *)0x0)) && (*param_1 != '\0')) &&
     (pcVar1 = (char *)FUN_0001ce30(param_1), pcVar1 == param_1)) {
    DAT_0003d790 = param_1;
    return;
  }
  DAT_0003d790 = &DAT_0002fd63;
  return;
}

