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

void __regparm3 kill_error(pid_t pid,int e)

{
  char *pcVar1;
  
  pcVar1 = strerror(e);
  if (pcVar1 == (char *)0x0) {
    pcVar1 = (char *)dcgettext(0,"Unknown error",5);
  }
  builtin_error("(%ld) - %s",pid,pcVar1);
  return;
}



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

void __regparm3 FUN_000a53a0(undefined4 param_1,int param_2)

{
  char *pcVar1;
  
  pcVar1 = strerror(param_2);
  if (pcVar1 == (char *)0x0) {
    pcVar1 = (char *)dcgettext(0,"Unknown error",5);
  }
  builtin_error("(%ld) - %s",param_1,pcVar1);
  return;
}


PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00031ed0
ADD EBX,0xa4c57
SUB ESP,0x10
PUSH EDX
CALL 0x0002f670
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000a53e0
SUB ESP,0x4
PUSH EAX
LEA EAX,[EBX + 0xfffb822d]
PUSH ESI
PUSH EAX
CALL 0x0009b430
ADD ESP,0x14
POP EBX
POP ESI
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xfffb821f]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x0002f380
ADD ESP,0x10
JMP 0x000a53bf
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_000a53a0(undefined4 param_1,int param_2)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = strerror(param_2);\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = (char *)dcgettext(0,"Unknown error",5);\n  }\n  builtin_error("(%ld) - %s",param_1,pcVar1);\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_000a53a0(undefined4 param_1,int param_2)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = strerror(param_2);\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = (char *)dcgettext(0,"Unknown error",5);\n  }\n  builtin_error("(%ld) - %s",param_1,pcVar1);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000a53a0(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  char *pcVar1;\n  \n  pcVar1 = strerror(param_2);\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = (char *)dcgettext(0,"Unknown error",5);\n  }\n  builtin_error("(%ld) - %s",param_1,pcVar1);\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "pcVar1 = strerror(param_2);" (assignment_expression "pcVar1 = strerror(param_2)" identifier = (call_expression "strerror(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n    pcVar1 = (char *)dcgettext(0,"Unknown error",5);\n  }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar1 = (char *)dcgettext(0,"Unknown error",5);\n  }" { (expression_statement "pcVar1 = (char *)dcgettext(0,"Unknown error",5);" (assignment_expression "pcVar1 = (char *)dcgettext(0,"Unknown error",5)" identifier = (cast_expression "(char *)dcgettext(0,"Unknown error",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Unknown error",5)" identifier (argument_list "(0,"Unknown error",5)" ( number_literal , (string_literal ""Unknown error"" " string_content ") , number_literal ))))) ;) })) (expression_statement "builtin_error("(%ld) - %s",param_1,pcVar1);" (call_expression "builtin_error("(%ld) - %s",param_1,pcVar1)" identifier (argument_list "("(%ld) - %s",param_1,pcVar1)" ( (string_literal ""(%ld) - %s"" " string_content ") , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 kill_error(pid_t pid,int e)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = strerror(e);\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = (char *)dcgettext(0,"Unknown error",5);\n  }\n  builtin_error("(%ld) - %s",pid,pcVar1);\n  return;\n}\n\n" comment (function_definition "void __regparm3 kill_error(pid_t pid,int e)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = strerror(e);\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = (char *)dcgettext(0,"Unknown error",5);\n  }\n  builtin_error("(%ld) - %s",pid,pcVar1);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "kill_error(pid_t pid,int e)" identifier (parameter_list "(pid_t pid,int e)" ( (parameter_declaration "pid_t pid" type_identifier identifier) , (parameter_declaration "int e" primitive_type identifier) ))) (compound_statement "{\n  char *pcVar1;\n  \n  pcVar1 = strerror(e);\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = (char *)dcgettext(0,"Unknown error",5);\n  }\n  builtin_error("(%ld) - %s",pid,pcVar1);\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "pcVar1 = strerror(e);" (assignment_expression "pcVar1 = strerror(e)" identifier = (call_expression "strerror(e)" identifier (argument_list "(e)" ( identifier )))) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n    pcVar1 = (char *)dcgettext(0,"Unknown error",5);\n  }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar1 = (char *)dcgettext(0,"Unknown error",5);\n  }" { (expression_statement "pcVar1 = (char *)dcgettext(0,"Unknown error",5);" (assignment_expression "pcVar1 = (char *)dcgettext(0,"Unknown error",5)" identifier = (cast_expression "(char *)dcgettext(0,"Unknown error",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Unknown error",5)" identifier (argument_list "(0,"Unknown error",5)" ( number_literal , (string_literal ""Unknown error"" " string_content ") , number_literal ))))) ;) })) (expression_statement "builtin_error("(%ld) - %s",pid,pcVar1);" (call_expression "builtin_error("(%ld) - %s",pid,pcVar1)" identifier (argument_list "("(%ld) - %s",pid,pcVar1)" ( (string_literal ""(%ld) - %s"" " string_content ") , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_000a53a0(undefined4 param_1,int param_2)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = strerror(param_2);\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = (char *)dcgettext(0,"Unknown error",5);\n  }\n  builtin_error("(%ld) - %s",param_1,pcVar1);\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_000a53a0(undefined4 param_1,int param_2)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = strerror(param_2);\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = (char *)dcgettext(0,"Unknown error",5);\n  }\n  builtin_error("(%ld) - %s",param_1,pcVar1);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000a53a0(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  char *pcVar1;\n  \n  pcVar1 = strerror(param_2);\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = (char *)dcgettext(0,"Unknown error",5);\n  }\n  builtin_error("(%ld) - %s",param_1,pcVar1);\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "pcVar1 = strerror(param_2);" (assignment_expression "pcVar1 = strerror(param_2)" identifier = (call_expression "strerror(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n    pcVar1 = (char *)dcgettext(0,"Unknown error",5);\n  }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar1 = (char *)dcgettext(0,"Unknown error",5);\n  }" { (expression_statement "pcVar1 = (char *)dcgettext(0,"Unknown error",5);" (assignment_expression "pcVar1 = (char *)dcgettext(0,"Unknown error",5)" identifier = (cast_expression "(char *)dcgettext(0,"Unknown error",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Unknown error",5)" identifier (argument_list "(0,"Unknown error",5)" ( number_literal , (string_literal ""Unknown error"" " string_content ") , number_literal ))))) ;) })) (expression_statement "builtin_error("(%ld) - %s",param_1,pcVar1);" (call_expression "builtin_error("(%ld) - %s",param_1,pcVar1)" identifier (argument_list "("(%ld) - %s",param_1,pcVar1)" ( (string_literal ""(%ld) - %s"" " string_content ") , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT ))))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_000a53a0(undefined4 param_1,int param_2)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = strerror(param_2);\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = (char *)dcgettext(0,"Unknown error",5);\n  }\n  builtin_error("(%ld) - %s",param_1,pcVar1);\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000a53a0(undefined4 param_1,int param_2)" (identifier "FUN_000a53a0") (parameter_list "(undefined4 param_1,int param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  char *pcVar1;\n  \n  pcVar1 = strerror(param_2);\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = (char *)dcgettext(0,"Unknown error",5);\n  }\n  builtin_error("(%ld) - %s",param_1,pcVar1);\n  return;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (expression_statement "pcVar1 = strerror(param_2);" (assignment_expression "pcVar1 = strerror(param_2)" (identifier "pcVar1") (= "=") (call_expression "strerror(param_2)" (identifier "strerror") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (pcVar1 == (char *)0x0) {\n    pcVar1 = (char *)dcgettext(0,"Unknown error",5);\n  }" (if "if") (parenthesized_expression "(pcVar1 == (char *)0x0)" (( "(") (binary_expression "pcVar1 == (char *)0x0" (identifier "pcVar1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    pcVar1 = (char *)dcgettext(0,"Unknown error",5);\n  }" ({ "{") (expression_statement "pcVar1 = (char *)dcgettext(0,"Unknown error",5);" (assignment_expression "pcVar1 = (char *)dcgettext(0,"Unknown error",5)" (identifier "pcVar1") (= "=") (cast_expression "(char *)dcgettext(0,"Unknown error",5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "dcgettext(0,"Unknown error",5)" (identifier "dcgettext") (argument_list "(0,"Unknown error",5)" (( "(") (number_literal "0") (, ",") (string_literal ""Unknown error"" (" """) (string_content "Unknown error") (" """)) (, ",") (number_literal "5") () ")"))))) (; ";")) (} "}"))) (expression_statement "builtin_error("(%ld) - %s",param_1,pcVar1);" (call_expression "builtin_error("(%ld) - %s",param_1,pcVar1)" (identifier "builtin_error") (argument_list "("(%ld) - %s",param_1,pcVar1)" (( "(") (string_literal ""(%ld) - %s"" (" """) (string_content "(%ld) - %s") (" """)) (, ",") (identifier "param_1") (, ",") (identifier "pcVar1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 pid,int e)

{
  char *var_2;
  
  var_2 = var_1(e);
  if (var_2 == (char *)0x0) {
    var_2 = (char *)var_3(0,"Unknown error",5);
  }
  var_4("(%ld) - %s",pid,var_2);
  return;
}


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

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

void __regparm3 MASKED(undefined4 param_1,int param_2)

{
  char *pcVar1;
  
  pcVar1 = strerror(param_2);
  if (pcVar1 == (char *)0x0) {
    pcVar1 = (char *)dcgettext(0,"Unknown error",5);
  }
  builtin_error("(%ld) - %s",param_1,pcVar1);
  return;
}

