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

void connection_fatal(void *frontend,char *fmt,...)

{
  char *ptr;
  char *__s;
  
  ptr = dupvprintf(fmt,&stack0x0000000c);
  __s = dupcat("Fatal: ",ptr,&DAT_00095114,0);
  safefree(ptr);
  fputs(__s,*(FILE **)PTR_stderr_000cffc0);
  safefree(__s);
  cleanup_exit(1);
  return;
}



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

void FUN_00024040(undefined4 param_1,undefined4 param_2)

{
  undefined4 uVar1;
  char *__s;
  
  uVar1 = FUN_0001ce50(param_2,&stack0x0000000c);
  __s = (char *)FUN_0001cc90("Fatal: ",uVar1,&DAT_00095114,0);
  FUN_0001dd30(uVar1);
  fputs(__s,*(FILE **)PTR_stderr_000cffc0);
  FUN_0001dd30(__s);
  FUN_000827c0(1);
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000149a0
ADD EBX,0xabd48
LEA EAX,[ESP + 0x18]
SUB ESP,0x8
PUSH EAX
PUSH dword ptr [ESP + 0x20]
CALL 0x0001ce50
PUSH 0x0
MOV EDI,EAX
LEA EAX,[EBX + 0xfffc5384]
PUSH EAX
LEA EAX,[EBX + 0xfffc0e94]
PUSH EDI
PUSH EAX
CALL 0x0001cc90
ADD ESP,0x14
PUSH EDI
MOV ESI,EAX
CALL 0x0001dd30
POP EAX
MOV EAX,dword ptr [EBX + 0x230]
POP EDX
PUSH dword ptr [EAX]
PUSH ESI
CALL 0x000147e0
MOV dword ptr [ESP],ESI
CALL 0x0001dd30
MOV dword ptr [ESP],0x1
CALL 0x000827c0
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00024040(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  char *__s;\n  \n  uVar1 = FUN_0001ce50(param_2,&stack0x0000000c);\n  __s = (char *)FUN_0001cc90("Fatal: ",uVar1,&DAT_00095114,0);\n  FUN_0001dd30(uVar1);\n  fputs(__s,*(FILE **)PTR_stderr_000cffc0);\n  FUN_0001dd30(__s);\n  FUN_000827c0(1);\n  return;\n}\n\n" comment (function_definition "void FUN_00024040(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  char *__s;\n  \n  uVar1 = FUN_0001ce50(param_2,&stack0x0000000c);\n  __s = (char *)FUN_0001cc90("Fatal: ",uVar1,&DAT_00095114,0);\n  FUN_0001dd30(uVar1);\n  fputs(__s,*(FILE **)PTR_stderr_000cffc0);\n  FUN_0001dd30(__s);\n  FUN_000827c0(1);\n  return;\n}" primitive_type (function_declarator "FUN_00024040(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  char *__s;\n  \n  uVar1 = FUN_0001ce50(param_2,&stack0x0000000c);\n  __s = (char *)FUN_0001cc90("Fatal: ",uVar1,&DAT_00095114,0);\n  FUN_0001dd30(uVar1);\n  fputs(__s,*(FILE **)PTR_stderr_000cffc0);\n  FUN_0001dd30(__s);\n  FUN_000827c0(1);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (expression_statement "uVar1 = FUN_0001ce50(param_2,&stack0x0000000c);" (assignment_expression "uVar1 = FUN_0001ce50(param_2,&stack0x0000000c)" identifier = (call_expression "FUN_0001ce50(param_2,&stack0x0000000c)" identifier (argument_list "(param_2,&stack0x0000000c)" ( identifier , (pointer_expression "&stack0x0000000c" & identifier) )))) ;) (expression_statement "__s = (char *)FUN_0001cc90("Fatal: ",uVar1,&DAT_00095114,0);" (assignment_expression "__s = (char *)FUN_0001cc90("Fatal: ",uVar1,&DAT_00095114,0)" identifier = (cast_expression "(char *)FUN_0001cc90("Fatal: ",uVar1,&DAT_00095114,0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001cc90("Fatal: ",uVar1,&DAT_00095114,0)" identifier (argument_list "("Fatal: ",uVar1,&DAT_00095114,0)" ( (string_literal ""Fatal: "" " string_content ") , identifier , (pointer_expression "&DAT_00095114" & identifier) , number_literal ))))) ;) (expression_statement "FUN_0001dd30(uVar1);" (call_expression "FUN_0001dd30(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (expression_statement "fputs(__s,*(FILE **)PTR_stderr_000cffc0);" (call_expression "fputs(__s,*(FILE **)PTR_stderr_000cffc0)" identifier (argument_list "(__s,*(FILE **)PTR_stderr_000cffc0)" ( identifier , (pointer_expression "*(FILE **)PTR_stderr_000cffc0" * (cast_expression "(FILE **)PTR_stderr_000cffc0" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) (expression_statement "FUN_0001dd30(__s);" (call_expression "FUN_0001dd30(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "FUN_000827c0(1);" (call_expression "FUN_000827c0(1)" identifier (argument_list "(1)" ( number_literal ))) ;) (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 */\n\nvoid connection_fatal(void *frontend,char *fmt,...)\n\n{\n  char *ptr;\n  char *__s;\n  \n  ptr = dupvprintf(fmt,&stack0x0000000c);\n  __s = dupcat("Fatal: ",ptr,&DAT_00095114,0);\n  safefree(ptr);\n  fputs(__s,*(FILE **)PTR_stderr_000cffc0);\n  safefree(__s);\n  cleanup_exit(1);\n  return;\n}\n\n" comment comment (function_definition "void connection_fatal(void *frontend,char *fmt,...)\n\n{\n  char *ptr;\n  char *__s;\n  \n  ptr = dupvprintf(fmt,&stack0x0000000c);\n  __s = dupcat("Fatal: ",ptr,&DAT_00095114,0);\n  safefree(ptr);\n  fputs(__s,*(FILE **)PTR_stderr_000cffc0);\n  safefree(__s);\n  cleanup_exit(1);\n  return;\n}" primitive_type (function_declarator "connection_fatal(void *frontend,char *fmt,...)" identifier (parameter_list "(void *frontend,char *fmt,...)" ( (parameter_declaration "void *frontend" primitive_type (pointer_declarator "*frontend" * identifier)) , (parameter_declaration "char *fmt" primitive_type (pointer_declarator "*fmt" * identifier)) , (variadic_parameter "..." ...) ))) (compound_statement "{\n  char *ptr;\n  char *__s;\n  \n  ptr = dupvprintf(fmt,&stack0x0000000c);\n  __s = dupcat("Fatal: ",ptr,&DAT_00095114,0);\n  safefree(ptr);\n  fputs(__s,*(FILE **)PTR_stderr_000cffc0);\n  safefree(__s);\n  cleanup_exit(1);\n  return;\n}" { (declaration "char *ptr;" primitive_type (pointer_declarator "*ptr" * identifier) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (expression_statement "ptr = dupvprintf(fmt,&stack0x0000000c);" (assignment_expression "ptr = dupvprintf(fmt,&stack0x0000000c)" identifier = (call_expression "dupvprintf(fmt,&stack0x0000000c)" identifier (argument_list "(fmt,&stack0x0000000c)" ( identifier , (pointer_expression "&stack0x0000000c" & identifier) )))) ;) (expression_statement "__s = dupcat("Fatal: ",ptr,&DAT_00095114,0);" (assignment_expression "__s = dupcat("Fatal: ",ptr,&DAT_00095114,0)" identifier = (call_expression "dupcat("Fatal: ",ptr,&DAT_00095114,0)" identifier (argument_list "("Fatal: ",ptr,&DAT_00095114,0)" ( (string_literal ""Fatal: "" " string_content ") , identifier , (pointer_expression "&DAT_00095114" & identifier) , number_literal )))) ;) (expression_statement "safefree(ptr);" (call_expression "safefree(ptr)" identifier (argument_list "(ptr)" ( identifier ))) ;) (expression_statement "fputs(__s,*(FILE **)PTR_stderr_000cffc0);" (call_expression "fputs(__s,*(FILE **)PTR_stderr_000cffc0)" identifier (argument_list "(__s,*(FILE **)PTR_stderr_000cffc0)" ( identifier , (pointer_expression "*(FILE **)PTR_stderr_000cffc0" * (cast_expression "(FILE **)PTR_stderr_000cffc0" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) (expression_statement "safefree(__s);" (call_expression "safefree(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "cleanup_exit(1);" (call_expression "cleanup_exit(1)" identifier (argument_list "(1)" ( number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00024040(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  char *__s;\n  \n  uVar1 = FUN_0001ce50(param_2,&stack0x0000000c);\n  __s = (char *)FUN_0001cc90("Fatal: ",uVar1,&DAT_00095114,0);\n  FUN_0001dd30(uVar1);\n  fputs(__s,*(FILE **)PTR_stderr_000cffc0);\n  FUN_0001dd30(__s);\n  FUN_000827c0(1);\n  return;\n}\n\n" (function_definition "void FUN_00024040(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  char *__s;\n  \n  uVar1 = FUN_0001ce50(param_2,&stack0x0000000c);\n  __s = (char *)FUN_0001cc90("Fatal: ",uVar1,&DAT_00095114,0);\n  FUN_0001dd30(uVar1);\n  fputs(__s,*(FILE **)PTR_stderr_000cffc0);\n  FUN_0001dd30(__s);\n  FUN_000827c0(1);\n  return;\n}" primitive_type (function_declarator "FUN_00024040(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  char *__s;\n  \n  uVar1 = FUN_0001ce50(param_2,&stack0x0000000c);\n  __s = (char *)FUN_0001cc90("Fatal: ",uVar1,&DAT_00095114,0);\n  FUN_0001dd30(uVar1);\n  fputs(__s,*(FILE **)PTR_stderr_000cffc0);\n  FUN_0001dd30(__s);\n  FUN_000827c0(1);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (expression_statement "uVar1 = FUN_0001ce50(param_2,&stack0x0000000c);" (assignment_expression "uVar1 = FUN_0001ce50(param_2,&stack0x0000000c)" identifier = (call_expression "FUN_0001ce50(param_2,&stack0x0000000c)" identifier (argument_list "(param_2,&stack0x0000000c)" ( identifier , (pointer_expression "&stack0x0000000c" & identifier) )))) ;) (expression_statement "__s = (char *)FUN_0001cc90("Fatal: ",uVar1,&DAT_00095114,0);" (assignment_expression "__s = (char *)FUN_0001cc90("Fatal: ",uVar1,&DAT_00095114,0)" identifier = (cast_expression "(char *)FUN_0001cc90("Fatal: ",uVar1,&DAT_00095114,0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001cc90("Fatal: ",uVar1,&DAT_00095114,0)" identifier (argument_list "("Fatal: ",uVar1,&DAT_00095114,0)" ( (string_literal ""Fatal: "" " string_content ") , identifier , (pointer_expression "&DAT_00095114" & identifier) , number_literal ))))) ;) (expression_statement "FUN_0001dd30(uVar1);" (call_expression "FUN_0001dd30(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (expression_statement "fputs(__s,*(FILE **)PTR_stderr_000cffc0);" (call_expression "fputs(__s,*(FILE **)PTR_stderr_000cffc0)" identifier (argument_list "(__s,*(FILE **)PTR_stderr_000cffc0)" ( identifier , (pointer_expression "*(FILE **)PTR_stderr_000cffc0" * (cast_expression "(FILE **)PTR_stderr_000cffc0" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) (expression_statement "FUN_0001dd30(__s);" (call_expression "FUN_0001dd30(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "FUN_000827c0(1);" (call_expression "FUN_000827c0(1)" identifier (argument_list "(1)" ( number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT , (pointer_expression & IDENT) , LIT ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00024040(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  char *__s;\n  \n  uVar1 = FUN_0001ce50(param_2,&stack0x0000000c);\n  __s = (char *)FUN_0001cc90("Fatal: ",uVar1,&DAT_00095114,0);\n  FUN_0001dd30(uVar1);\n  fputs(__s,*(FILE **)PTR_stderr_000cffc0);\n  FUN_0001dd30(__s);\n  FUN_000827c0(1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00024040(undefined4 param_1,undefined4 param_2)" (identifier "FUN_00024040") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  char *__s;\n  \n  uVar1 = FUN_0001ce50(param_2,&stack0x0000000c);\n  __s = (char *)FUN_0001cc90("Fatal: ",uVar1,&DAT_00095114,0);\n  FUN_0001dd30(uVar1);\n  fputs(__s,*(FILE **)PTR_stderr_000cffc0);\n  FUN_0001dd30(__s);\n  FUN_000827c0(1);\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (expression_statement "uVar1 = FUN_0001ce50(param_2,&stack0x0000000c);" (assignment_expression "uVar1 = FUN_0001ce50(param_2,&stack0x0000000c)" (identifier "uVar1") (= "=") (call_expression "FUN_0001ce50(param_2,&stack0x0000000c)" (identifier "FUN_0001ce50") (argument_list "(param_2,&stack0x0000000c)" (( "(") (identifier "param_2") (, ",") (pointer_expression "&stack0x0000000c" (& "&") (identifier "stack0x0000000c")) () ")")))) (; ";")) (expression_statement "__s = (char *)FUN_0001cc90("Fatal: ",uVar1,&DAT_00095114,0);" (assignment_expression "__s = (char *)FUN_0001cc90("Fatal: ",uVar1,&DAT_00095114,0)" (identifier "__s") (= "=") (cast_expression "(char *)FUN_0001cc90("Fatal: ",uVar1,&DAT_00095114,0)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001cc90("Fatal: ",uVar1,&DAT_00095114,0)" (identifier "FUN_0001cc90") (argument_list "("Fatal: ",uVar1,&DAT_00095114,0)" (( "(") (string_literal ""Fatal: "" (" """) (string_content "Fatal: ") (" """)) (, ",") (identifier "uVar1") (, ",") (pointer_expression "&DAT_00095114" (& "&") (identifier "DAT_00095114")) (, ",") (number_literal "0") () ")"))))) (; ";")) (expression_statement "FUN_0001dd30(uVar1);" (call_expression "FUN_0001dd30(uVar1)" (identifier "FUN_0001dd30") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (expression_statement "fputs(__s,*(FILE **)PTR_stderr_000cffc0);" (call_expression "fputs(__s,*(FILE **)PTR_stderr_000cffc0)" (identifier "fputs") (argument_list "(__s,*(FILE **)PTR_stderr_000cffc0)" (( "(") (identifier "__s") (, ",") (pointer_expression "*(FILE **)PTR_stderr_000cffc0" (* "*") (cast_expression "(FILE **)PTR_stderr_000cffc0" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_stderr_000cffc0"))) () ")"))) (; ";")) (expression_statement "FUN_0001dd30(__s);" (call_expression "FUN_0001dd30(__s)" (identifier "FUN_0001dd30") (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (expression_statement "FUN_000827c0(1);" (call_expression "FUN_000827c0(1)" (identifier "FUN_000827c0") (argument_list "(1)" (( "(") (number_literal "1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(void *frontend,char *fmt,...)

{
  char *ptr;
  char *__s;
  
  ptr = var_1(fmt,&stack0x0000000c);
  __s = var_2("Fatal: ",ptr,&DAT_00095114,0);
  var_3(ptr);
  var_4(__s,*(type_1 **)PTR_stderr_000cffc0);
  var_3(__s);
  var_5(1);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (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) (pointer_expression argument: (identifier)))))) (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 (string_literal (string_content)) (identifier) (pointer_expression argument: (identifier)) (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))) (return_statement))))

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

void MASKED(undefined4 param_1,undefined4 param_2)

{
  undefined4 uVar1;
  char *__s;
  
  uVar1 = FUN_0001ce50(param_2,&stack0x0000000c);
  __s = (char *)FUN_0001cc90("Fatal: ",uVar1,&DAT_00095114,0);
  FUN_0001dd30(uVar1);
  fputs(__s,*(FILE **)PTR_stderr_000cffc0);
  FUN_0001dd30(__s);
  FUN_000827c0(1);
  return;
}

