
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void restore_default_fscreatecon_or_die(void)

{
  int iVar1;
  undefined4 uVar2;
  int *piVar3;
  
  iVar1 = setfscreatecon(0);
  if (iVar1 == 0) {
    return;
  }
  uVar2 = dcgettext(0,"failed to restore the default file creation context",5,iVar1);
  piVar3 = __errno_location();
                    /* WARNING: Subroutine does not return */
  error(1,*piVar3,uVar2);
}



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

void FUN_00015210(void)

{
  int iVar1;
  undefined4 uVar2;
  int *piVar3;
  
  iVar1 = setfscreatecon(0);
  if (iVar1 == 0) {
    return;
  }
  uVar2 = dcgettext(0,"failed to restore the default file creation context",5,iVar1);
  piVar3 = __errno_location();
                    /* WARNING: Subroutine does not return */
  error(1,*piVar3,uVar2);
}


PUSH ESI
PUSH EBX
CALL 0x00013950
ADD EBX,0x25de9
SUB ESP,0x10
PUSH 0x0
CALL 0x000125b0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00015234
ADD ESP,0x4
POP EBX
POP ESI
RET
PUSH EAX
LEA EAX,[EBX + 0xffff46bc]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00012240
MOV ESI,EAX
CALL 0x00012640
ADD ESP,0xc
PUSH ESI
PUSH dword ptr [EAX]
PUSH 0x1
CALL 0x00012410
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00015210(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  iVar1 = setfscreatecon(0);\n  if (iVar1 == 0) {\n    return;\n  }\n  uVar2 = dcgettext(0,"failed to restore the default file creation context",5,iVar1);\n  piVar3 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n  error(1,*piVar3,uVar2);\n}\n\n" comment (function_definition "void FUN_00015210(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  iVar1 = setfscreatecon(0);\n  if (iVar1 == 0) {\n    return;\n  }\n  uVar2 = dcgettext(0,"failed to restore the default file creation context",5,iVar1);\n  piVar3 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n  error(1,*piVar3,uVar2);\n}" primitive_type (function_declarator "FUN_00015210(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  iVar1 = setfscreatecon(0);\n  if (iVar1 == 0) {\n    return;\n  }\n  uVar2 = dcgettext(0,"failed to restore the default file creation context",5,iVar1);\n  piVar3 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n  error(1,*piVar3,uVar2);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "iVar1 = setfscreatecon(0);" (assignment_expression "iVar1 = setfscreatecon(0)" identifier = (call_expression "setfscreatecon(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "uVar2 = dcgettext(0,"failed to restore the default file creation context",5,iVar1);" (assignment_expression "uVar2 = dcgettext(0,"failed to restore the default file creation context",5,iVar1)" identifier = (call_expression "dcgettext(0,"failed to restore the default file creation context",5,iVar1)" identifier (argument_list "(0,"failed to restore the default file creation context",5,iVar1)" ( number_literal , (string_literal ""failed to restore the default file creation context"" " string_content ") , number_literal , identifier )))) ;) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) comment (expression_statement "error(1,*piVar3,uVar2);" (call_expression "error(1,*piVar3,uVar2)" identifier (argument_list "(1,*piVar3,uVar2)" ( number_literal , (pointer_expression "*piVar3" * identifier) , identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n\nvoid restore_default_fscreatecon_or_die(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  iVar1 = setfscreatecon(0);\n  if (iVar1 == 0) {\n    return;\n  }\n  uVar2 = dcgettext(0,"failed to restore the default file creation context",5,iVar1);\n  piVar3 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n  error(1,*piVar3,uVar2);\n}\n\n" comment comment (function_definition "void restore_default_fscreatecon_or_die(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  iVar1 = setfscreatecon(0);\n  if (iVar1 == 0) {\n    return;\n  }\n  uVar2 = dcgettext(0,"failed to restore the default file creation context",5,iVar1);\n  piVar3 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n  error(1,*piVar3,uVar2);\n}" primitive_type (function_declarator "restore_default_fscreatecon_or_die(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  iVar1 = setfscreatecon(0);\n  if (iVar1 == 0) {\n    return;\n  }\n  uVar2 = dcgettext(0,"failed to restore the default file creation context",5,iVar1);\n  piVar3 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n  error(1,*piVar3,uVar2);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "iVar1 = setfscreatecon(0);" (assignment_expression "iVar1 = setfscreatecon(0)" identifier = (call_expression "setfscreatecon(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "uVar2 = dcgettext(0,"failed to restore the default file creation context",5,iVar1);" (assignment_expression "uVar2 = dcgettext(0,"failed to restore the default file creation context",5,iVar1)" identifier = (call_expression "dcgettext(0,"failed to restore the default file creation context",5,iVar1)" identifier (argument_list "(0,"failed to restore the default file creation context",5,iVar1)" ( number_literal , (string_literal ""failed to restore the default file creation context"" " string_content ") , number_literal , identifier )))) ;) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) comment (expression_statement "error(1,*piVar3,uVar2);" (call_expression "error(1,*piVar3,uVar2)" identifier (argument_list "(1,*piVar3,uVar2)" ( number_literal , (pointer_expression "*piVar3" * identifier) , identifier ))) ;) })))
(translation_unit "void FUN_00015210(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  iVar1 = setfscreatecon(0);\n  if (iVar1 == 0) {\n    return;\n  }\n  uVar2 = dcgettext(0,"failed to restore the default file creation context",5,iVar1);\n  piVar3 = __errno_location();\n                    \n  error(1,*piVar3,uVar2);\n}\n\n" (function_definition "void FUN_00015210(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  iVar1 = setfscreatecon(0);\n  if (iVar1 == 0) {\n    return;\n  }\n  uVar2 = dcgettext(0,"failed to restore the default file creation context",5,iVar1);\n  piVar3 = __errno_location();\n                    \n  error(1,*piVar3,uVar2);\n}" primitive_type (function_declarator "FUN_00015210(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  iVar1 = setfscreatecon(0);\n  if (iVar1 == 0) {\n    return;\n  }\n  uVar2 = dcgettext(0,"failed to restore the default file creation context",5,iVar1);\n  piVar3 = __errno_location();\n                    \n  error(1,*piVar3,uVar2);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "iVar1 = setfscreatecon(0);" (assignment_expression "iVar1 = setfscreatecon(0)" identifier = (call_expression "setfscreatecon(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "uVar2 = dcgettext(0,"failed to restore the default file creation context",5,iVar1);" (assignment_expression "uVar2 = dcgettext(0,"failed to restore the default file creation context",5,iVar1)" identifier = (call_expression "dcgettext(0,"failed to restore the default file creation context",5,iVar1)" identifier (argument_list "(0,"failed to restore the default file creation context",5,iVar1)" ( number_literal , (string_literal ""failed to restore the default file creation context"" " string_content ") , number_literal , identifier )))) ;) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "error(1,*piVar3,uVar2);" (call_expression "error(1,*piVar3,uVar2)" identifier (argument_list "(1,*piVar3,uVar2)" ( number_literal , (pointer_expression "*piVar3" * identifier) , identifier ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression * IDENT) , IDENT ))) ;) })))
(function_definition "void FUN_00015210(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  iVar1 = setfscreatecon(0);\n  if (iVar1 == 0) {\n    return;\n  }\n  uVar2 = dcgettext(0,"failed to restore the default file creation context",5,iVar1);\n  piVar3 = __errno_location();\n                    \n  error(1,*piVar3,uVar2);\n}" (primitive_type "void") (function_declarator "FUN_00015210(void)" (identifier "FUN_00015210") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  iVar1 = setfscreatecon(0);\n  if (iVar1 == 0) {\n    return;\n  }\n  uVar2 = dcgettext(0,"failed to restore the default file creation context",5,iVar1);\n  piVar3 = __errno_location();\n                    \n  error(1,*piVar3,uVar2);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (expression_statement "iVar1 = setfscreatecon(0);" (assignment_expression "iVar1 = setfscreatecon(0)" (identifier "iVar1") (= "=") (call_expression "setfscreatecon(0)" (identifier "setfscreatecon") (argument_list "(0)" (( "(") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar2 = dcgettext(0,"failed to restore the default file creation context",5,iVar1);" (assignment_expression "uVar2 = dcgettext(0,"failed to restore the default file creation context",5,iVar1)" (identifier "uVar2") (= "=") (call_expression "dcgettext(0,"failed to restore the default file creation context",5,iVar1)" (identifier "dcgettext") (argument_list "(0,"failed to restore the default file creation context",5,iVar1)" (( "(") (number_literal "0") (, ",") (string_literal ""failed to restore the default file creation context"" (" """) (string_content "failed to restore the default file creation context") (" """)) (, ",") (number_literal "5") (, ",") (identifier "iVar1") () ")")))) (; ";")) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" (identifier "piVar3") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "error(1,*piVar3,uVar2);" (call_expression "error(1,*piVar3,uVar2)" (identifier "error") (argument_list "(1,*piVar3,uVar2)" (( "(") (number_literal "1") (, ",") (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (, ",") (identifier "uVar2") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void function_1(void)

{
  int var_2;
  type_1 uVar2;
  int *piVar3;
  
  var_2 = var_1(0);
  if (var_2 == 0) {
    return;
  }
  uVar2 = var_3(0,"failed to restore the default file creation context",5,var_2);
  piVar3 = var_4();
                    /* WARNING: Subroutine does not return */
  var_5(1,*piVar3,uVar2);
}


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

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

void MASKED(void)

{
  int iVar1;
  undefined4 uVar2;
  int *piVar3;
  
  iVar1 = setfscreatecon(0);
  if (iVar1 == 0) {
    return;
  }
  uVar2 = dcgettext(0,"failed to restore the default file creation context",5,iVar1);
  piVar3 = __errno_location();
                    /* WARNING: Subroutine does not return */
  error(1,*piVar3,uVar2);
}

