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

char * __regparm3 simple_backup_name(char *pathname)

{
  size_t sVar1;
  size_t sVar2;
  char *pcVar3;
  
  sVar1 = strlen(pathname);
  sVar2 = strlen(simple_backup_suffix);
  pcVar3 = (char *)xmalloc(sVar1 + 2 + sVar2);
  __sprintf_chk(pcVar3,1,0xffffffff,&DAT_000200d2,pathname,simple_backup_suffix);
  return pcVar3;
}



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

undefined4 __regparm3 FUN_000146a0(char *param_1)

{
  size_t sVar1;
  size_t sVar2;
  undefined4 uVar3;
  
  sVar1 = strlen(param_1);
  sVar2 = strlen(PTR_DAT_00026180);
  uVar3 = FUN_00018170(sVar1 + 2 + sVar2);
  __sprintf_chk(uVar3,1,0xffffffff,&DAT_000200d2,param_1,PTR_DAT_00026180);
  return uVar3;
}


PUSH EDI
MOV EDI,EAX
PUSH ESI
PUSH EBX
CALL 0x00012b10
ADD EBX,0x11956
SUB ESP,0xc
PUSH EAX
CALL 0x00012190
POP EDX
PUSH dword ptr [EBX + 0x180]
MOV ESI,EAX
CALL 0x00012190
LEA EAX,[ESI + EAX*0x1 + 0x2]
MOV dword ptr [ESP],EAX
CALL 0x00018170
POP ECX
MOV ESI,EAX
POP EAX
LEA EAX,[EBX + 0xffffa0d2]
PUSH dword ptr [EBX + 0x180]
PUSH EDI
PUSH EAX
PUSH -0x1
PUSH 0x1
PUSH ESI
CALL 0x00012310
ADD ESP,0x20
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3 FUN_000146a0(char *param_1)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  \n  sVar1 = strlen(param_1);\n  sVar2 = strlen(PTR_DAT_00026180);\n  uVar3 = FUN_00018170(sVar1 + 2 + sVar2);\n  __sprintf_chk(uVar3,1,0xffffffff,&DAT_000200d2,param_1,PTR_DAT_00026180);\n  return uVar3;\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_000146a0(char *param_1)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  \n  sVar1 = strlen(param_1);\n  sVar2 = strlen(PTR_DAT_00026180);\n  uVar3 = FUN_00018170(sVar1 + 2 + sVar2);\n  __sprintf_chk(uVar3,1,0xffffffff,&DAT_000200d2,param_1,PTR_DAT_00026180);\n  return uVar3;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_000146a0(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  \n  sVar1 = strlen(param_1);\n  sVar2 = strlen(PTR_DAT_00026180);\n  uVar3 = FUN_00018170(sVar1 + 2 + sVar2);\n  __sprintf_chk(uVar3,1,0xffffffff,&DAT_000200d2,param_1,PTR_DAT_00026180);\n  return uVar3;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "sVar1 = strlen(param_1);" (assignment_expression "sVar1 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "sVar2 = strlen(PTR_DAT_00026180);" (assignment_expression "sVar2 = strlen(PTR_DAT_00026180)" identifier = (call_expression "strlen(PTR_DAT_00026180)" identifier (argument_list "(PTR_DAT_00026180)" ( identifier )))) ;) (expression_statement "uVar3 = FUN_00018170(sVar1 + 2 + sVar2);" (assignment_expression "uVar3 = FUN_00018170(sVar1 + 2 + sVar2)" identifier = (call_expression "FUN_00018170(sVar1 + 2 + sVar2)" identifier (argument_list "(sVar1 + 2 + sVar2)" ( (binary_expression "sVar1 + 2 + sVar2" (binary_expression "sVar1 + 2" identifier + number_literal) + identifier) )))) ;) (expression_statement "__sprintf_chk(uVar3,1,0xffffffff,&DAT_000200d2,param_1,PTR_DAT_00026180);" (call_expression "__sprintf_chk(uVar3,1,0xffffffff,&DAT_000200d2,param_1,PTR_DAT_00026180)" identifier (argument_list "(uVar3,1,0xffffffff,&DAT_000200d2,param_1,PTR_DAT_00026180)" ( identifier , number_literal , number_literal , (pointer_expression "&DAT_000200d2" & identifier) , identifier , identifier ))) ;) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * __regparm3 simple_backup_name(char *pathname)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  char *pcVar3;\n  \n  sVar1 = strlen(pathname);\n  sVar2 = strlen(simple_backup_suffix);\n  pcVar3 = (char *)xmalloc(sVar1 + 2 + sVar2);\n  __sprintf_chk(pcVar3,1,0xffffffff,&DAT_000200d2,pathname,simple_backup_suffix);\n  return pcVar3;\n}\n\n" comment (function_definition "char * __regparm3 simple_backup_name(char *pathname)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  char *pcVar3;\n  \n  sVar1 = strlen(pathname);\n  sVar2 = strlen(simple_backup_suffix);\n  pcVar3 = (char *)xmalloc(sVar1 + 2 + sVar2);\n  __sprintf_chk(pcVar3,1,0xffffffff,&DAT_000200d2,pathname,simple_backup_suffix);\n  return pcVar3;\n}" primitive_type (pointer_declarator "* __regparm3 simple_backup_name(char *pathname)" * (ERROR "__regparm3" identifier) (function_declarator "simple_backup_name(char *pathname)" identifier (parameter_list "(char *pathname)" ( (parameter_declaration "char *pathname" primitive_type (pointer_declarator "*pathname" * identifier)) )))) (compound_statement "{\n  size_t sVar1;\n  size_t sVar2;\n  char *pcVar3;\n  \n  sVar1 = strlen(pathname);\n  sVar2 = strlen(simple_backup_suffix);\n  pcVar3 = (char *)xmalloc(sVar1 + 2 + sVar2);\n  __sprintf_chk(pcVar3,1,0xffffffff,&DAT_000200d2,pathname,simple_backup_suffix);\n  return pcVar3;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "sVar1 = strlen(pathname);" (assignment_expression "sVar1 = strlen(pathname)" identifier = (call_expression "strlen(pathname)" identifier (argument_list "(pathname)" ( identifier )))) ;) (expression_statement "sVar2 = strlen(simple_backup_suffix);" (assignment_expression "sVar2 = strlen(simple_backup_suffix)" identifier = (call_expression "strlen(simple_backup_suffix)" identifier (argument_list "(simple_backup_suffix)" ( identifier )))) ;) (expression_statement "pcVar3 = (char *)xmalloc(sVar1 + 2 + sVar2);" (assignment_expression "pcVar3 = (char *)xmalloc(sVar1 + 2 + sVar2)" identifier = (cast_expression "(char *)xmalloc(sVar1 + 2 + sVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar1 + 2 + sVar2)" identifier (argument_list "(sVar1 + 2 + sVar2)" ( (binary_expression "sVar1 + 2 + sVar2" (binary_expression "sVar1 + 2" identifier + number_literal) + identifier) ))))) ;) (expression_statement "__sprintf_chk(pcVar3,1,0xffffffff,&DAT_000200d2,pathname,simple_backup_suffix);" (call_expression "__sprintf_chk(pcVar3,1,0xffffffff,&DAT_000200d2,pathname,simple_backup_suffix)" identifier (argument_list "(pcVar3,1,0xffffffff,&DAT_000200d2,pathname,simple_backup_suffix)" ( identifier , number_literal , number_literal , (pointer_expression "&DAT_000200d2" & identifier) , identifier , identifier ))) ;) (return_statement "return pcVar3;" return identifier ;) })))
(translation_unit "undefined4 __regparm3 FUN_000146a0(char *param_1)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  \n  sVar1 = strlen(param_1);\n  sVar2 = strlen(PTR_DAT_00026180);\n  uVar3 = FUN_00018170(sVar1 + 2 + sVar2);\n  __sprintf_chk(uVar3,1,0xffffffff,&DAT_000200d2,param_1,PTR_DAT_00026180);\n  return uVar3;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_000146a0(char *param_1)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  \n  sVar1 = strlen(param_1);\n  sVar2 = strlen(PTR_DAT_00026180);\n  uVar3 = FUN_00018170(sVar1 + 2 + sVar2);\n  __sprintf_chk(uVar3,1,0xffffffff,&DAT_000200d2,param_1,PTR_DAT_00026180);\n  return uVar3;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_000146a0(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  \n  sVar1 = strlen(param_1);\n  sVar2 = strlen(PTR_DAT_00026180);\n  uVar3 = FUN_00018170(sVar1 + 2 + sVar2);\n  __sprintf_chk(uVar3,1,0xffffffff,&DAT_000200d2,param_1,PTR_DAT_00026180);\n  return uVar3;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "sVar1 = strlen(param_1);" (assignment_expression "sVar1 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "sVar2 = strlen(PTR_DAT_00026180);" (assignment_expression "sVar2 = strlen(PTR_DAT_00026180)" identifier = (call_expression "strlen(PTR_DAT_00026180)" identifier (argument_list "(PTR_DAT_00026180)" ( identifier )))) ;) (expression_statement "uVar3 = FUN_00018170(sVar1 + 2 + sVar2);" (assignment_expression "uVar3 = FUN_00018170(sVar1 + 2 + sVar2)" identifier = (call_expression "FUN_00018170(sVar1 + 2 + sVar2)" identifier (argument_list "(sVar1 + 2 + sVar2)" ( (binary_expression "sVar1 + 2 + sVar2" (binary_expression "sVar1 + 2" identifier + number_literal) + identifier) )))) ;) (expression_statement "__sprintf_chk(uVar3,1,0xffffffff,&DAT_000200d2,param_1,PTR_DAT_00026180);" (call_expression "__sprintf_chk(uVar3,1,0xffffffff,&DAT_000200d2,param_1,PTR_DAT_00026180)" identifier (argument_list "(uVar3,1,0xffffffff,&DAT_000200d2,param_1,PTR_DAT_00026180)" ( identifier , number_literal , number_literal , (pointer_expression "&DAT_000200d2" & identifier) , identifier , identifier ))) ;) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT , (pointer_expression & IDENT) , IDENT , IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 __regparm3 FUN_000146a0(char *param_1)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  \n  sVar1 = strlen(param_1);\n  sVar2 = strlen(PTR_DAT_00026180);\n  uVar3 = FUN_00018170(sVar1 + 2 + sVar2);\n  __sprintf_chk(uVar3,1,0xffffffff,&DAT_000200d2,param_1,PTR_DAT_00026180);\n  return uVar3;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000146a0(char *param_1)" (identifier "FUN_000146a0") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  size_t sVar1;\n  size_t sVar2;\n  undefined4 uVar3;\n  \n  sVar1 = strlen(param_1);\n  sVar2 = strlen(PTR_DAT_00026180);\n  uVar3 = FUN_00018170(sVar1 + 2 + sVar2);\n  __sprintf_chk(uVar3,1,0xffffffff,&DAT_000200d2,param_1,PTR_DAT_00026180);\n  return uVar3;\n}" ({ "{") (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (expression_statement "sVar1 = strlen(param_1);" (assignment_expression "sVar1 = strlen(param_1)" (identifier "sVar1") (= "=") (call_expression "strlen(param_1)" (identifier "strlen") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "sVar2 = strlen(PTR_DAT_00026180);" (assignment_expression "sVar2 = strlen(PTR_DAT_00026180)" (identifier "sVar2") (= "=") (call_expression "strlen(PTR_DAT_00026180)" (identifier "strlen") (argument_list "(PTR_DAT_00026180)" (( "(") (identifier "PTR_DAT_00026180") () ")")))) (; ";")) (expression_statement "uVar3 = FUN_00018170(sVar1 + 2 + sVar2);" (assignment_expression "uVar3 = FUN_00018170(sVar1 + 2 + sVar2)" (identifier "uVar3") (= "=") (call_expression "FUN_00018170(sVar1 + 2 + sVar2)" (identifier "FUN_00018170") (argument_list "(sVar1 + 2 + sVar2)" (( "(") (binary_expression "sVar1 + 2 + sVar2" (binary_expression "sVar1 + 2" (identifier "sVar1") (+ "+") (number_literal "2")) (+ "+") (identifier "sVar2")) () ")")))) (; ";")) (expression_statement "__sprintf_chk(uVar3,1,0xffffffff,&DAT_000200d2,param_1,PTR_DAT_00026180);" (call_expression "__sprintf_chk(uVar3,1,0xffffffff,&DAT_000200d2,param_1,PTR_DAT_00026180)" (identifier "__sprintf_chk") (argument_list "(uVar3,1,0xffffffff,&DAT_000200d2,param_1,PTR_DAT_00026180)" (( "(") (identifier "uVar3") (, ",") (number_literal "1") (, ",") (number_literal "0xffffffff") (, ",") (pointer_expression "&DAT_000200d2" (& "&") (identifier "DAT_000200d2")) (, ",") (identifier "param_1") (, ",") (identifier "PTR_DAT_00026180") () ")"))) (; ";")) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

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

char * __regparm3 function_1(char *pathname)

{
  size_t var_3;
  size_t var_4;
  char *pcVar3;
  
  var_3 = var_1(pathname);
  var_4 = var_1(simple_backup_suffix);
  pcVar3 = (char *)var_2(var_3 + 2 + var_4);
  var_5(pcVar3,1,0xffffffff,&DAT_000200d2,pathname,simple_backup_suffix);
  return pcVar3;
}


(translation_unit (function_definition type: (type_identifier) (ERROR (identifier)) 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: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal) (pointer_expression argument: (identifier)) (identifier) (identifier)))) (return_statement (identifier)))))

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

undefined4 __regparm3 MASKED(char *param_1)

{
  size_t sVar1;
  size_t sVar2;
  undefined4 uVar3;
  
  sVar1 = strlen(param_1);
  sVar2 = strlen(PTR_DAT_00026180);
  uVar3 = FUN_00018170(sVar1 + 2 + sVar2);
  __sprintf_chk(uVar3,1,0xffffffff,&DAT_000200d2,param_1,PTR_DAT_00026180);
  return uVar3;
}

