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

int set_acl(char *name,int desc,mode_t mode)

{
  int iVar1;
  char *pcVar2;
  undefined4 uVar3;
  int *piVar4;
  
  iVar1 = qset_acl(name,desc,mode);
  if (iVar1 == 0) {
    return 0;
  }
  pcVar2 = quote(name);
  uVar3 = dcgettext(0,"setting permissions for %s",5);
  piVar4 = __errno_location();
                    /* WARNING: Subroutine does not return */
  error(0,*piVar4,uVar3,pcVar2);
}



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

undefined4 FUN_0001b7d0(undefined4 param_1,undefined4 param_2,undefined4 param_3)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  int *piVar4;
  
  iVar1 = FUN_0001e9d0(param_1,param_2,param_3);
  if (iVar1 == 0) {
    return 0;
  }
  uVar2 = FUN_000209d0(param_1);
  uVar3 = dcgettext(0,"setting permissions for %s",5);
  piVar4 = __errno_location();
                    /* WARNING: Subroutine does not return */
  error(0,*piVar4,uVar3,uVar2);
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000132c0
ADD EBX,0x1d827
SUB ESP,0x10
MOV EDI,dword ptr [ESP + 0x24]
PUSH dword ptr [ESP + 0x2c]
PUSH dword ptr [ESP + 0x2c]
PUSH EDI
CALL 0x0001e9d0
ADD ESP,0x10
MOV ESI,EAX
TEST EAX,EAX
JNZ 0x0001b810
ADD ESP,0xc
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH EDI
CALL 0x000209d0
ADD ESP,0xc
MOV EBP,EAX
LEA EAX,[EBX + 0xffff304e]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000121e0
MOV EDI,EAX
CALL 0x00012590
PUSH EBP
PUSH EDI
PUSH dword ptr [EAX]
PUSH 0x0
CALL 0x00012390
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_0001b7d0(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  \n  iVar1 = FUN_0001e9d0(param_1,param_2,param_3);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  uVar2 = FUN_000209d0(param_1);\n  uVar3 = dcgettext(0,"setting permissions for %s",5);\n  piVar4 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n  error(0,*piVar4,uVar3,uVar2);\n}\n\n" comment (function_definition "undefined4 FUN_0001b7d0(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  \n  iVar1 = FUN_0001e9d0(param_1,param_2,param_3);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  uVar2 = FUN_000209d0(param_1);\n  uVar3 = dcgettext(0,"setting permissions for %s",5);\n  piVar4 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n  error(0,*piVar4,uVar3,uVar2);\n}" type_identifier (function_declarator "FUN_0001b7d0(undefined4 param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  \n  iVar1 = FUN_0001e9d0(param_1,param_2,param_3);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  uVar2 = FUN_000209d0(param_1);\n  uVar3 = dcgettext(0,"setting permissions for %s",5);\n  piVar4 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n  error(0,*piVar4,uVar3,uVar2);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (expression_statement "iVar1 = FUN_0001e9d0(param_1,param_2,param_3);" (assignment_expression "iVar1 = FUN_0001e9d0(param_1,param_2,param_3)" identifier = (call_expression "FUN_0001e9d0(param_1,param_2,param_3)" identifier (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar2 = FUN_000209d0(param_1);" (assignment_expression "uVar2 = FUN_000209d0(param_1)" identifier = (call_expression "FUN_000209d0(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "uVar3 = dcgettext(0,"setting permissions for %s",5);" (assignment_expression "uVar3 = dcgettext(0,"setting permissions for %s",5)" identifier = (call_expression "dcgettext(0,"setting permissions for %s",5)" identifier (argument_list "(0,"setting permissions for %s",5)" ( number_literal , (string_literal ""setting permissions for %s"" " string_content ") , number_literal )))) ;) (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) comment (expression_statement "error(0,*piVar4,uVar3,uVar2);" (call_expression "error(0,*piVar4,uVar3,uVar2)" identifier (argument_list "(0,*piVar4,uVar3,uVar2)" ( number_literal , (pointer_expression "*piVar4" * identifier) , identifier , identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint set_acl(char *name,int desc,mode_t mode)\n\n{\n  int iVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  \n  iVar1 = qset_acl(name,desc,mode);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  pcVar2 = quote(name);\n  uVar3 = dcgettext(0,"setting permissions for %s",5);\n  piVar4 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n  error(0,*piVar4,uVar3,pcVar2);\n}\n\n" comment comment (function_definition "int set_acl(char *name,int desc,mode_t mode)\n\n{\n  int iVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  \n  iVar1 = qset_acl(name,desc,mode);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  pcVar2 = quote(name);\n  uVar3 = dcgettext(0,"setting permissions for %s",5);\n  piVar4 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n  error(0,*piVar4,uVar3,pcVar2);\n}" primitive_type (function_declarator "set_acl(char *name,int desc,mode_t mode)" identifier (parameter_list "(char *name,int desc,mode_t mode)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "int desc" primitive_type identifier) , (parameter_declaration "mode_t mode" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  \n  iVar1 = qset_acl(name,desc,mode);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  pcVar2 = quote(name);\n  uVar3 = dcgettext(0,"setting permissions for %s",5);\n  piVar4 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n  error(0,*piVar4,uVar3,pcVar2);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (expression_statement "iVar1 = qset_acl(name,desc,mode);" (assignment_expression "iVar1 = qset_acl(name,desc,mode)" identifier = (call_expression "qset_acl(name,desc,mode)" identifier (argument_list "(name,desc,mode)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "pcVar2 = quote(name);" (assignment_expression "pcVar2 = quote(name)" identifier = (call_expression "quote(name)" identifier (argument_list "(name)" ( identifier )))) ;) (expression_statement "uVar3 = dcgettext(0,"setting permissions for %s",5);" (assignment_expression "uVar3 = dcgettext(0,"setting permissions for %s",5)" identifier = (call_expression "dcgettext(0,"setting permissions for %s",5)" identifier (argument_list "(0,"setting permissions for %s",5)" ( number_literal , (string_literal ""setting permissions for %s"" " string_content ") , number_literal )))) ;) (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) comment (expression_statement "error(0,*piVar4,uVar3,pcVar2);" (call_expression "error(0,*piVar4,uVar3,pcVar2)" identifier (argument_list "(0,*piVar4,uVar3,pcVar2)" ( number_literal , (pointer_expression "*piVar4" * identifier) , identifier , identifier ))) ;) })))
(translation_unit "undefined4 FUN_0001b7d0(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  \n  iVar1 = FUN_0001e9d0(param_1,param_2,param_3);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  uVar2 = FUN_000209d0(param_1);\n  uVar3 = dcgettext(0,"setting permissions for %s",5);\n  piVar4 = __errno_location();\n                    \n  error(0,*piVar4,uVar3,uVar2);\n}\n\n" (function_definition "undefined4 FUN_0001b7d0(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  \n  iVar1 = FUN_0001e9d0(param_1,param_2,param_3);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  uVar2 = FUN_000209d0(param_1);\n  uVar3 = dcgettext(0,"setting permissions for %s",5);\n  piVar4 = __errno_location();\n                    \n  error(0,*piVar4,uVar3,uVar2);\n}" type_identifier (function_declarator "FUN_0001b7d0(undefined4 param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  \n  iVar1 = FUN_0001e9d0(param_1,param_2,param_3);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  uVar2 = FUN_000209d0(param_1);\n  uVar3 = dcgettext(0,"setting permissions for %s",5);\n  piVar4 = __errno_location();\n                    \n  error(0,*piVar4,uVar3,uVar2);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (expression_statement "iVar1 = FUN_0001e9d0(param_1,param_2,param_3);" (assignment_expression "iVar1 = FUN_0001e9d0(param_1,param_2,param_3)" identifier = (call_expression "FUN_0001e9d0(param_1,param_2,param_3)" identifier (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar2 = FUN_000209d0(param_1);" (assignment_expression "uVar2 = FUN_000209d0(param_1)" identifier = (call_expression "FUN_000209d0(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "uVar3 = dcgettext(0,"setting permissions for %s",5);" (assignment_expression "uVar3 = dcgettext(0,"setting permissions for %s",5)" identifier = (call_expression "dcgettext(0,"setting permissions for %s",5)" identifier (argument_list "(0,"setting permissions for %s",5)" ( number_literal , (string_literal ""setting permissions for %s"" " string_content ") , number_literal )))) ;) (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "error(0,*piVar4,uVar3,uVar2);" (call_expression "error(0,*piVar4,uVar3,uVar2)" identifier (argument_list "(0,*piVar4,uVar3,uVar2)" ( number_literal , (pointer_expression "*piVar4" * identifier) , identifier , identifier ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression * IDENT) , IDENT , IDENT ))) ;) })))
(function_definition "undefined4 FUN_0001b7d0(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  \n  iVar1 = FUN_0001e9d0(param_1,param_2,param_3);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  uVar2 = FUN_000209d0(param_1);\n  uVar3 = dcgettext(0,"setting permissions for %s",5);\n  piVar4 = __errno_location();\n                    \n  error(0,*piVar4,uVar3,uVar2);\n}" (type_identifier "undefined4") (function_declarator "FUN_0001b7d0(undefined4 param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_0001b7d0") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  \n  iVar1 = FUN_0001e9d0(param_1,param_2,param_3);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  uVar2 = FUN_000209d0(param_1);\n  uVar3 = dcgettext(0,"setting permissions for %s",5);\n  piVar4 = __errno_location();\n                    \n  error(0,*piVar4,uVar3,uVar2);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (expression_statement "iVar1 = FUN_0001e9d0(param_1,param_2,param_3);" (assignment_expression "iVar1 = FUN_0001e9d0(param_1,param_2,param_3)" (identifier "iVar1") (= "=") (call_expression "FUN_0001e9d0(param_1,param_2,param_3)" (identifier "FUN_0001e9d0") (argument_list "(param_1,param_2,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar2 = FUN_000209d0(param_1);" (assignment_expression "uVar2 = FUN_000209d0(param_1)" (identifier "uVar2") (= "=") (call_expression "FUN_000209d0(param_1)" (identifier "FUN_000209d0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "uVar3 = dcgettext(0,"setting permissions for %s",5);" (assignment_expression "uVar3 = dcgettext(0,"setting permissions for %s",5)" (identifier "uVar3") (= "=") (call_expression "dcgettext(0,"setting permissions for %s",5)" (identifier "dcgettext") (argument_list "(0,"setting permissions for %s",5)" (( "(") (number_literal "0") (, ",") (string_literal ""setting permissions for %s"" (" """) (string_content "setting permissions for %s") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" (identifier "piVar4") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "error(0,*piVar4,uVar3,uVar2);" (call_expression "error(0,*piVar4,uVar3,uVar2)" (identifier "error") (argument_list "(0,*piVar4,uVar3,uVar2)" (( "(") (number_literal "0") (, ",") (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (, ",") (identifier "uVar3") (, ",") (identifier "uVar2") () ")"))) (; ";")) (} "}")))

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

int function_1(char *name,int desc,type_1 mode)

{
  int var_2;
  char *pcVar2;
  type_2 uVar3;
  int *piVar4;
  
  var_2 = var_1(name,desc,mode);
  if (var_2 == 0) {
    return 0;
  }
  pcVar2 = var_3(name);
  uVar3 = var_4(0,"setting permissions for %s",5);
  piVar4 = var_5();
                    /* WARNING: Subroutine does not return */
  var_6(0,*piVar4,uVar3,pcVar2);
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (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 (number_literal) (string_literal (string_content)) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (pointer_expression argument: (identifier)) (identifier) (identifier)))))))

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

undefined4 MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  int *piVar4;
  
  iVar1 = FUN_0001e9d0(param_1,param_2,param_3);
  if (iVar1 == 0) {
    return 0;
  }
  uVar2 = FUN_000209d0(param_1);
  uVar3 = dcgettext(0,"setting permissions for %s",5);
  piVar4 = __errno_location();
                    /* WARNING: Subroutine does not return */
  error(0,*piVar4,uVar3,uVar2);
}

