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

void sh_wrerror(void)

{
  int *piVar1;
  char *pcVar2;
  char *format;
  
  piVar1 = __errno_location();
  pcVar2 = strerror(*piVar1);
  format = (char *)dcgettext(0,"write error: %s",5);
  builtin_error(format,pcVar2);
  return;
}



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

void sh_wrerror(void)

{
  int *piVar1;
  char *pcVar2;
  undefined4 uVar3;
  
  piVar1 = __errno_location();
  pcVar2 = strerror(*piVar1);
  uVar3 = dcgettext(0,"write error: %s",5);
  builtin_error(uVar3,pcVar2);
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00031ed0
ADD EBX,0xae589
SUB ESP,0x4
CALL 0x0002f8b0
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x0002f670
ADD ESP,0xc
MOV ESI,EAX
LEA EAX,[EBX + 0xfffb78e9]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x0002f380
POP EDX
POP ECX
PUSH ESI
PUSH EAX
CALL 0x0009b430
ADD ESP,0x14
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid sh_wrerror(void)\n\n{\n  int *piVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  \n  piVar1 = __errno_location();\n  pcVar2 = strerror(*piVar1);\n  uVar3 = dcgettext(0,"write error: %s",5);\n  builtin_error(uVar3,pcVar2);\n  return;\n}\n\n" comment (function_definition "void sh_wrerror(void)\n\n{\n  int *piVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  \n  piVar1 = __errno_location();\n  pcVar2 = strerror(*piVar1);\n  uVar3 = dcgettext(0,"write error: %s",5);\n  builtin_error(uVar3,pcVar2);\n  return;\n}" primitive_type (function_declarator "sh_wrerror(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int *piVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  \n  piVar1 = __errno_location();\n  pcVar2 = strerror(*piVar1);\n  uVar3 = dcgettext(0,"write error: %s",5);\n  builtin_error(uVar3,pcVar2);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "piVar1 = __errno_location();" (assignment_expression "piVar1 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar2 = strerror(*piVar1);" (assignment_expression "pcVar2 = strerror(*piVar1)" identifier = (call_expression "strerror(*piVar1)" identifier (argument_list "(*piVar1)" ( (pointer_expression "*piVar1" * identifier) )))) ;) (expression_statement "uVar3 = dcgettext(0,"write error: %s",5);" (assignment_expression "uVar3 = dcgettext(0,"write error: %s",5)" identifier = (call_expression "dcgettext(0,"write error: %s",5)" identifier (argument_list "(0,"write error: %s",5)" ( number_literal , (string_literal ""write error: %s"" " string_content ") , number_literal )))) ;) (expression_statement "builtin_error(uVar3,pcVar2);" (call_expression "builtin_error(uVar3,pcVar2)" identifier (argument_list "(uVar3,pcVar2)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(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 sh_wrerror(void)\n\n{\n  int *piVar1;\n  char *pcVar2;\n  char *format;\n  \n  piVar1 = __errno_location();\n  pcVar2 = strerror(*piVar1);\n  format = (char *)dcgettext(0,"write error: %s",5);\n  builtin_error(format,pcVar2);\n  return;\n}\n\n" comment comment (function_definition "void sh_wrerror(void)\n\n{\n  int *piVar1;\n  char *pcVar2;\n  char *format;\n  \n  piVar1 = __errno_location();\n  pcVar2 = strerror(*piVar1);\n  format = (char *)dcgettext(0,"write error: %s",5);\n  builtin_error(format,pcVar2);\n  return;\n}" primitive_type (function_declarator "sh_wrerror(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int *piVar1;\n  char *pcVar2;\n  char *format;\n  \n  piVar1 = __errno_location();\n  pcVar2 = strerror(*piVar1);\n  format = (char *)dcgettext(0,"write error: %s",5);\n  builtin_error(format,pcVar2);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (expression_statement "piVar1 = __errno_location();" (assignment_expression "piVar1 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar2 = strerror(*piVar1);" (assignment_expression "pcVar2 = strerror(*piVar1)" identifier = (call_expression "strerror(*piVar1)" identifier (argument_list "(*piVar1)" ( (pointer_expression "*piVar1" * identifier) )))) ;) (expression_statement "format = (char *)dcgettext(0,"write error: %s",5);" (assignment_expression "format = (char *)dcgettext(0,"write error: %s",5)" identifier = (cast_expression "(char *)dcgettext(0,"write error: %s",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"write error: %s",5)" identifier (argument_list "(0,"write error: %s",5)" ( number_literal , (string_literal ""write error: %s"" " string_content ") , number_literal ))))) ;) (expression_statement "builtin_error(format,pcVar2);" (call_expression "builtin_error(format,pcVar2)" identifier (argument_list "(format,pcVar2)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void sh_wrerror(void)\n\n{\n  int *piVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  \n  piVar1 = __errno_location();\n  pcVar2 = strerror(*piVar1);\n  uVar3 = dcgettext(0,"write error: %s",5);\n  builtin_error(uVar3,pcVar2);\n  return;\n}\n\n" (function_definition "void sh_wrerror(void)\n\n{\n  int *piVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  \n  piVar1 = __errno_location();\n  pcVar2 = strerror(*piVar1);\n  uVar3 = dcgettext(0,"write error: %s",5);\n  builtin_error(uVar3,pcVar2);\n  return;\n}" primitive_type (function_declarator "sh_wrerror(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int *piVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  \n  piVar1 = __errno_location();\n  pcVar2 = strerror(*piVar1);\n  uVar3 = dcgettext(0,"write error: %s",5);\n  builtin_error(uVar3,pcVar2);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "piVar1 = __errno_location();" (assignment_expression "piVar1 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar2 = strerror(*piVar1);" (assignment_expression "pcVar2 = strerror(*piVar1)" identifier = (call_expression "strerror(*piVar1)" identifier (argument_list "(*piVar1)" ( (pointer_expression "*piVar1" * identifier) )))) ;) (expression_statement "uVar3 = dcgettext(0,"write error: %s",5);" (assignment_expression "uVar3 = dcgettext(0,"write error: %s",5)" identifier = (call_expression "dcgettext(0,"write error: %s",5)" identifier (argument_list "(0,"write error: %s",5)" ( number_literal , (string_literal ""write error: %s"" " string_content ") , number_literal )))) ;) (expression_statement "builtin_error(uVar3,pcVar2);" (call_expression "builtin_error(uVar3,pcVar2)" identifier (argument_list "(uVar3,pcVar2)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void sh_wrerror(void)\n\n{\n  int *piVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  \n  piVar1 = __errno_location();\n  pcVar2 = strerror(*piVar1);\n  uVar3 = dcgettext(0,"write error: %s",5);\n  builtin_error(uVar3,pcVar2);\n  return;\n}" (primitive_type "void") (function_declarator "sh_wrerror(void)" (identifier "sh_wrerror") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int *piVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  \n  piVar1 = __errno_location();\n  pcVar2 = strerror(*piVar1);\n  uVar3 = dcgettext(0,"write error: %s",5);\n  builtin_error(uVar3,pcVar2);\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (expression_statement "piVar1 = __errno_location();" (assignment_expression "piVar1 = __errno_location()" (identifier "piVar1") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar2 = strerror(*piVar1);" (assignment_expression "pcVar2 = strerror(*piVar1)" (identifier "pcVar2") (= "=") (call_expression "strerror(*piVar1)" (identifier "strerror") (argument_list "(*piVar1)" (( "(") (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) () ")")))) (; ";")) (expression_statement "uVar3 = dcgettext(0,"write error: %s",5);" (assignment_expression "uVar3 = dcgettext(0,"write error: %s",5)" (identifier "uVar3") (= "=") (call_expression "dcgettext(0,"write error: %s",5)" (identifier "dcgettext") (argument_list "(0,"write error: %s",5)" (( "(") (number_literal "0") (, ",") (string_literal ""write error: %s"" (" """) (string_content "write error: %s") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "builtin_error(uVar3,pcVar2);" (call_expression "builtin_error(uVar3,pcVar2)" (identifier "builtin_error") (argument_list "(uVar3,pcVar2)" (( "(") (identifier "uVar3") (, ",") (identifier "pcVar2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* 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 *piVar1;
  char *pcVar2;
  char *format;
  
  piVar1 = var_1();
  pcVar2 = var_2(*piVar1);
  format = (char *)var_3(0,"write error: %s",5);
  var_4(format,pcVar2);
  return;
}


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

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

void MASKED(void)

{
  int *piVar1;
  char *pcVar2;
  undefined4 uVar3;
  
  piVar1 = __errno_location();
  pcVar2 = strerror(*piVar1);
  uVar3 = dcgettext(0,"write error: %s",5);
  builtin_error(uVar3,pcVar2);
  return;
}

