
/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */
/* WARNING: Unknown calling convention */

void overflow_handler(int emergency,stackoverflow_context_t context)

{
  if (emergency != 0) {
    emergency = -(uint)(segv_handler_missing == 0) & 0xb;
  }
                    /* WARNING: Subroutine does not return */
  die(emergency);
}



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

undefined4 FUN_0001f2f0(void)

{
  int iVar1;
  int *piVar2;
  undefined4 uVar3;
  code *pcStack_8;
  
  FUN_0001f1c0();
  DAT_0004c368 = pcStack_8;
  if (pcStack_8 == (code *)0x0) {
    DAT_0004c368 = FUN_0001f1b0;
  }
  DAT_0004c364 = dcgettext(0,"program error",5);
  DAT_0004c360 = dcgettext(0,"stack overflow",5);
  iVar1 = stackoverflow_install_handler(FUN_0001f2f0,&DAT_00048360,0x4000);
  if (iVar1 == 0) {
    DAT_00048340 = sigsegv_install_handler(FUN_0001f2d0);
    uVar3 = 0;
  }
  else {
    piVar2 = __errno_location();
    uVar3 = 0xffffffff;
    *piVar2 = 0x5f;
  }
  return uVar3;
}


CALL 0x000143d5
ADD EDX,0x28af7
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x10]
TEST EAX,EAX
JZ 0x0001f314
MOV EAX,dword ptr [EDX + 0x554]
CMP EAX,0x1
SBB EAX,EAX
AND EAX,0xb
CALL 0x0001f1c0
LEA ESI,[ESI]
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_0001f2f0(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  code *pcStack_8;\n  \n  FUN_0001f1c0();\n  DAT_0004c368 = pcStack_8;\n  if (pcStack_8 == (code *)0x0) {\n    DAT_0004c368 = FUN_0001f1b0;\n  }\n  DAT_0004c364 = dcgettext(0,"program error",5);\n  DAT_0004c360 = dcgettext(0,"stack overflow",5);\n  iVar1 = stackoverflow_install_handler(FUN_0001f2f0,&DAT_00048360,0x4000);\n  if (iVar1 == 0) {\n    DAT_00048340 = sigsegv_install_handler(FUN_0001f2d0);\n    uVar3 = 0;\n  }\n  else {\n    piVar2 = __errno_location();\n    uVar3 = 0xffffffff;\n    *piVar2 = 0x5f;\n  }\n  return uVar3;\n}\n\n" comment comment (function_definition "undefined4 FUN_0001f2f0(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  code *pcStack_8;\n  \n  FUN_0001f1c0();\n  DAT_0004c368 = pcStack_8;\n  if (pcStack_8 == (code *)0x0) {\n    DAT_0004c368 = FUN_0001f1b0;\n  }\n  DAT_0004c364 = dcgettext(0,"program error",5);\n  DAT_0004c360 = dcgettext(0,"stack overflow",5);\n  iVar1 = stackoverflow_install_handler(FUN_0001f2f0,&DAT_00048360,0x4000);\n  if (iVar1 == 0) {\n    DAT_00048340 = sigsegv_install_handler(FUN_0001f2d0);\n    uVar3 = 0;\n  }\n  else {\n    piVar2 = __errno_location();\n    uVar3 = 0xffffffff;\n    *piVar2 = 0x5f;\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_0001f2f0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  code *pcStack_8;\n  \n  FUN_0001f1c0();\n  DAT_0004c368 = pcStack_8;\n  if (pcStack_8 == (code *)0x0) {\n    DAT_0004c368 = FUN_0001f1b0;\n  }\n  DAT_0004c364 = dcgettext(0,"program error",5);\n  DAT_0004c360 = dcgettext(0,"stack overflow",5);\n  iVar1 = stackoverflow_install_handler(FUN_0001f2f0,&DAT_00048360,0x4000);\n  if (iVar1 == 0) {\n    DAT_00048340 = sigsegv_install_handler(FUN_0001f2d0);\n    uVar3 = 0;\n  }\n  else {\n    piVar2 = __errno_location();\n    uVar3 = 0xffffffff;\n    *piVar2 = 0x5f;\n  }\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "code *pcStack_8;" type_identifier (pointer_declarator "*pcStack_8" * identifier) ;) (expression_statement "FUN_0001f1c0();" (call_expression "FUN_0001f1c0()" identifier (argument_list "()" ( ))) ;) (expression_statement "DAT_0004c368 = pcStack_8;" (assignment_expression "DAT_0004c368 = pcStack_8" identifier = identifier) ;) (if_statement "if (pcStack_8 == (code *)0x0) {\n    DAT_0004c368 = FUN_0001f1b0;\n  }" if (parenthesized_expression "(pcStack_8 == (code *)0x0)" ( (binary_expression "pcStack_8 == (code *)0x0" identifier == (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    DAT_0004c368 = FUN_0001f1b0;\n  }" { (expression_statement "DAT_0004c368 = FUN_0001f1b0;" (assignment_expression "DAT_0004c368 = FUN_0001f1b0" identifier = identifier) ;) })) (expression_statement "DAT_0004c364 = dcgettext(0,"program error",5);" (assignment_expression "DAT_0004c364 = dcgettext(0,"program error",5)" identifier = (call_expression "dcgettext(0,"program error",5)" identifier (argument_list "(0,"program error",5)" ( number_literal , (string_literal ""program error"" " string_content ") , number_literal )))) ;) (expression_statement "DAT_0004c360 = dcgettext(0,"stack overflow",5);" (assignment_expression "DAT_0004c360 = dcgettext(0,"stack overflow",5)" identifier = (call_expression "dcgettext(0,"stack overflow",5)" identifier (argument_list "(0,"stack overflow",5)" ( number_literal , (string_literal ""stack overflow"" " string_content ") , number_literal )))) ;) (expression_statement "iVar1 = stackoverflow_install_handler(FUN_0001f2f0,&DAT_00048360,0x4000);" (assignment_expression "iVar1 = stackoverflow_install_handler(FUN_0001f2f0,&DAT_00048360,0x4000)" identifier = (call_expression "stackoverflow_install_handler(FUN_0001f2f0,&DAT_00048360,0x4000)" identifier (argument_list "(FUN_0001f2f0,&DAT_00048360,0x4000)" ( identifier , (pointer_expression "&DAT_00048360" & identifier) , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n    DAT_00048340 = sigsegv_install_handler(FUN_0001f2d0);\n    uVar3 = 0;\n  }\n  else {\n    piVar2 = __errno_location();\n    uVar3 = 0xffffffff;\n    *piVar2 = 0x5f;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    DAT_00048340 = sigsegv_install_handler(FUN_0001f2d0);\n    uVar3 = 0;\n  }" { (expression_statement "DAT_00048340 = sigsegv_install_handler(FUN_0001f2d0);" (assignment_expression "DAT_00048340 = sigsegv_install_handler(FUN_0001f2d0)" identifier = (call_expression "sigsegv_install_handler(FUN_0001f2d0)" identifier (argument_list "(FUN_0001f2d0)" ( identifier )))) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    piVar2 = __errno_location();\n    uVar3 = 0xffffffff;\n    *piVar2 = 0x5f;\n  }" else (compound_statement "{\n    piVar2 = __errno_location();\n    uVar3 = 0xffffffff;\n    *piVar2 = 0x5f;\n  }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar3 = 0xffffffff;" (assignment_expression "uVar3 = 0xffffffff" identifier = number_literal) ;) (expression_statement "*piVar2 = 0x5f;" (assignment_expression "*piVar2 = 0x5f" (pointer_expression "*piVar2" * identifier) = number_literal) ;) }))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n/* WARNING: Unknown calling convention */\n\nvoid overflow_handler(int emergency,stackoverflow_context_t context)\n\n{\n  if (emergency != 0) {\n    emergency = -(uint)(segv_handler_missing == 0) & 0xb;\n  }\n                    /* WARNING: Subroutine does not return */\n  die(emergency);\n}\n\n" comment comment (function_definition "void overflow_handler(int emergency,stackoverflow_context_t context)\n\n{\n  if (emergency != 0) {\n    emergency = -(uint)(segv_handler_missing == 0) & 0xb;\n  }\n                    /* WARNING: Subroutine does not return */\n  die(emergency);\n}" primitive_type (function_declarator "overflow_handler(int emergency,stackoverflow_context_t context)" identifier (parameter_list "(int emergency,stackoverflow_context_t context)" ( (parameter_declaration "int emergency" primitive_type identifier) , (parameter_declaration "stackoverflow_context_t context" type_identifier identifier) ))) (compound_statement "{\n  if (emergency != 0) {\n    emergency = -(uint)(segv_handler_missing == 0) & 0xb;\n  }\n                    /* WARNING: Subroutine does not return */\n  die(emergency);\n}" { (if_statement "if (emergency != 0) {\n    emergency = -(uint)(segv_handler_missing == 0) & 0xb;\n  }" if (parenthesized_expression "(emergency != 0)" ( (binary_expression "emergency != 0" identifier != number_literal) )) (compound_statement "{\n    emergency = -(uint)(segv_handler_missing == 0) & 0xb;\n  }" { (expression_statement "emergency = -(uint)(segv_handler_missing == 0) & 0xb;" (assignment_expression "emergency = -(uint)(segv_handler_missing == 0) & 0xb" identifier = (binary_expression "-(uint)(segv_handler_missing == 0) & 0xb" (unary_expression "-(uint)(segv_handler_missing == 0)" - (call_expression "(uint)(segv_handler_missing == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(segv_handler_missing == 0)" ( (binary_expression "segv_handler_missing == 0" identifier == number_literal) )))) & number_literal)) ;) })) comment (expression_statement "die(emergency);" (call_expression "die(emergency)" identifier (argument_list "(emergency)" ( identifier ))) ;) })))
(translation_unit "undefined4 FUN_0001f2f0(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  code *pcStack_8;\n  \n  FUN_0001f1c0();\n  DAT_0004c368 = pcStack_8;\n  if (pcStack_8 == (code *)0x0) {\n    DAT_0004c368 = FUN_0001f1b0;\n  }\n  DAT_0004c364 = dcgettext(0,"program error",5);\n  DAT_0004c360 = dcgettext(0,"stack overflow",5);\n  iVar1 = stackoverflow_install_handler(FUN_0001f2f0,&DAT_00048360,0x4000);\n  if (iVar1 == 0) {\n    DAT_00048340 = sigsegv_install_handler(FUN_0001f2d0);\n    uVar3 = 0;\n  }\n  else {\n    piVar2 = __errno_location();\n    uVar3 = 0xffffffff;\n    *piVar2 = 0x5f;\n  }\n  return uVar3;\n}\n\n" (function_definition "undefined4 FUN_0001f2f0(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  code *pcStack_8;\n  \n  FUN_0001f1c0();\n  DAT_0004c368 = pcStack_8;\n  if (pcStack_8 == (code *)0x0) {\n    DAT_0004c368 = FUN_0001f1b0;\n  }\n  DAT_0004c364 = dcgettext(0,"program error",5);\n  DAT_0004c360 = dcgettext(0,"stack overflow",5);\n  iVar1 = stackoverflow_install_handler(FUN_0001f2f0,&DAT_00048360,0x4000);\n  if (iVar1 == 0) {\n    DAT_00048340 = sigsegv_install_handler(FUN_0001f2d0);\n    uVar3 = 0;\n  }\n  else {\n    piVar2 = __errno_location();\n    uVar3 = 0xffffffff;\n    *piVar2 = 0x5f;\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_0001f2f0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  code *pcStack_8;\n  \n  FUN_0001f1c0();\n  DAT_0004c368 = pcStack_8;\n  if (pcStack_8 == (code *)0x0) {\n    DAT_0004c368 = FUN_0001f1b0;\n  }\n  DAT_0004c364 = dcgettext(0,"program error",5);\n  DAT_0004c360 = dcgettext(0,"stack overflow",5);\n  iVar1 = stackoverflow_install_handler(FUN_0001f2f0,&DAT_00048360,0x4000);\n  if (iVar1 == 0) {\n    DAT_00048340 = sigsegv_install_handler(FUN_0001f2d0);\n    uVar3 = 0;\n  }\n  else {\n    piVar2 = __errno_location();\n    uVar3 = 0xffffffff;\n    *piVar2 = 0x5f;\n  }\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "code *pcStack_8;" type_identifier (pointer_declarator "*pcStack_8" * identifier) ;) (expression_statement "FUN_0001f1c0();" (call_expression "FUN_0001f1c0()" identifier (argument_list "()" ( ))) ;) (expression_statement "DAT_0004c368 = pcStack_8;" (assignment_expression "DAT_0004c368 = pcStack_8" identifier = identifier) ;) (if_statement "if (pcStack_8 == (code *)0x0) {\n    DAT_0004c368 = FUN_0001f1b0;\n  }" if (parenthesized_expression "(pcStack_8 == (code *)0x0)" ( (binary_expression "pcStack_8 == (code *)0x0" identifier == (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    DAT_0004c368 = FUN_0001f1b0;\n  }" { (expression_statement "DAT_0004c368 = FUN_0001f1b0;" (assignment_expression "DAT_0004c368 = FUN_0001f1b0" identifier = identifier) ;) })) (expression_statement "DAT_0004c364 = dcgettext(0,"program error",5);" (assignment_expression "DAT_0004c364 = dcgettext(0,"program error",5)" identifier = (call_expression "dcgettext(0,"program error",5)" identifier (argument_list "(0,"program error",5)" ( number_literal , (string_literal ""program error"" " string_content ") , number_literal )))) ;) (expression_statement "DAT_0004c360 = dcgettext(0,"stack overflow",5);" (assignment_expression "DAT_0004c360 = dcgettext(0,"stack overflow",5)" identifier = (call_expression "dcgettext(0,"stack overflow",5)" identifier (argument_list "(0,"stack overflow",5)" ( number_literal , (string_literal ""stack overflow"" " string_content ") , number_literal )))) ;) (expression_statement "iVar1 = stackoverflow_install_handler(FUN_0001f2f0,&DAT_00048360,0x4000);" (assignment_expression "iVar1 = stackoverflow_install_handler(FUN_0001f2f0,&DAT_00048360,0x4000)" identifier = (call_expression "stackoverflow_install_handler(FUN_0001f2f0,&DAT_00048360,0x4000)" identifier (argument_list "(FUN_0001f2f0,&DAT_00048360,0x4000)" ( identifier , (pointer_expression "&DAT_00048360" & identifier) , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n    DAT_00048340 = sigsegv_install_handler(FUN_0001f2d0);\n    uVar3 = 0;\n  }\n  else {\n    piVar2 = __errno_location();\n    uVar3 = 0xffffffff;\n    *piVar2 = 0x5f;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    DAT_00048340 = sigsegv_install_handler(FUN_0001f2d0);\n    uVar3 = 0;\n  }" { (expression_statement "DAT_00048340 = sigsegv_install_handler(FUN_0001f2d0);" (assignment_expression "DAT_00048340 = sigsegv_install_handler(FUN_0001f2d0)" identifier = (call_expression "sigsegv_install_handler(FUN_0001f2d0)" identifier (argument_list "(FUN_0001f2d0)" ( identifier )))) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    piVar2 = __errno_location();\n    uVar3 = 0xffffffff;\n    *piVar2 = 0x5f;\n  }" else (compound_statement "{\n    piVar2 = __errno_location();\n    uVar3 = 0xffffffff;\n    *piVar2 = 0x5f;\n  }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar3 = 0xffffffff;" (assignment_expression "uVar3 = 0xffffffff" identifier = number_literal) ;) (expression_statement "*piVar2 = 0x5f;" (assignment_expression "*piVar2 = 0x5f" (pointer_expression "*piVar2" * identifier) = number_literal) ;) }))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = 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 = 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 ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_0001f2f0(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  code *pcStack_8;\n  \n  FUN_0001f1c0();\n  DAT_0004c368 = pcStack_8;\n  if (pcStack_8 == (code *)0x0) {\n    DAT_0004c368 = FUN_0001f1b0;\n  }\n  DAT_0004c364 = dcgettext(0,"program error",5);\n  DAT_0004c360 = dcgettext(0,"stack overflow",5);\n  iVar1 = stackoverflow_install_handler(FUN_0001f2f0,&DAT_00048360,0x4000);\n  if (iVar1 == 0) {\n    DAT_00048340 = sigsegv_install_handler(FUN_0001f2d0);\n    uVar3 = 0;\n  }\n  else {\n    piVar2 = __errno_location();\n    uVar3 = 0xffffffff;\n    *piVar2 = 0x5f;\n  }\n  return uVar3;\n}" (type_identifier "undefined4") (function_declarator "FUN_0001f2f0(void)" (identifier "FUN_0001f2f0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  code *pcStack_8;\n  \n  FUN_0001f1c0();\n  DAT_0004c368 = pcStack_8;\n  if (pcStack_8 == (code *)0x0) {\n    DAT_0004c368 = FUN_0001f1b0;\n  }\n  DAT_0004c364 = dcgettext(0,"program error",5);\n  DAT_0004c360 = dcgettext(0,"stack overflow",5);\n  iVar1 = stackoverflow_install_handler(FUN_0001f2f0,&DAT_00048360,0x4000);\n  if (iVar1 == 0) {\n    DAT_00048340 = sigsegv_install_handler(FUN_0001f2d0);\n    uVar3 = 0;\n  }\n  else {\n    piVar2 = __errno_location();\n    uVar3 = 0xffffffff;\n    *piVar2 = 0x5f;\n  }\n  return uVar3;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "code *pcStack_8;" (type_identifier "code") (pointer_declarator "*pcStack_8" (* "*") (identifier "pcStack_8")) (; ";")) (expression_statement "FUN_0001f1c0();" (call_expression "FUN_0001f1c0()" (identifier "FUN_0001f1c0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "DAT_0004c368 = pcStack_8;" (assignment_expression "DAT_0004c368 = pcStack_8" (identifier "DAT_0004c368") (= "=") (identifier "pcStack_8")) (; ";")) (if_statement "if (pcStack_8 == (code *)0x0) {\n    DAT_0004c368 = FUN_0001f1b0;\n  }" (if "if") (parenthesized_expression "(pcStack_8 == (code *)0x0)" (( "(") (binary_expression "pcStack_8 == (code *)0x0" (identifier "pcStack_8") (== "==") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    DAT_0004c368 = FUN_0001f1b0;\n  }" ({ "{") (expression_statement "DAT_0004c368 = FUN_0001f1b0;" (assignment_expression "DAT_0004c368 = FUN_0001f1b0" (identifier "DAT_0004c368") (= "=") (identifier "FUN_0001f1b0")) (; ";")) (} "}"))) (expression_statement "DAT_0004c364 = dcgettext(0,"program error",5);" (assignment_expression "DAT_0004c364 = dcgettext(0,"program error",5)" (identifier "DAT_0004c364") (= "=") (call_expression "dcgettext(0,"program error",5)" (identifier "dcgettext") (argument_list "(0,"program error",5)" (( "(") (number_literal "0") (, ",") (string_literal ""program error"" (" """) (string_content "program error") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "DAT_0004c360 = dcgettext(0,"stack overflow",5);" (assignment_expression "DAT_0004c360 = dcgettext(0,"stack overflow",5)" (identifier "DAT_0004c360") (= "=") (call_expression "dcgettext(0,"stack overflow",5)" (identifier "dcgettext") (argument_list "(0,"stack overflow",5)" (( "(") (number_literal "0") (, ",") (string_literal ""stack overflow"" (" """) (string_content "stack overflow") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "iVar1 = stackoverflow_install_handler(FUN_0001f2f0,&DAT_00048360,0x4000);" (assignment_expression "iVar1 = stackoverflow_install_handler(FUN_0001f2f0,&DAT_00048360,0x4000)" (identifier "iVar1") (= "=") (call_expression "stackoverflow_install_handler(FUN_0001f2f0,&DAT_00048360,0x4000)" (identifier "stackoverflow_install_handler") (argument_list "(FUN_0001f2f0,&DAT_00048360,0x4000)" (( "(") (identifier "FUN_0001f2f0") (, ",") (pointer_expression "&DAT_00048360" (& "&") (identifier "DAT_00048360")) (, ",") (number_literal "0x4000") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    DAT_00048340 = sigsegv_install_handler(FUN_0001f2d0);\n    uVar3 = 0;\n  }\n  else {\n    piVar2 = __errno_location();\n    uVar3 = 0xffffffff;\n    *piVar2 = 0x5f;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    DAT_00048340 = sigsegv_install_handler(FUN_0001f2d0);\n    uVar3 = 0;\n  }" ({ "{") (expression_statement "DAT_00048340 = sigsegv_install_handler(FUN_0001f2d0);" (assignment_expression "DAT_00048340 = sigsegv_install_handler(FUN_0001f2d0)" (identifier "DAT_00048340") (= "=") (call_expression "sigsegv_install_handler(FUN_0001f2d0)" (identifier "sigsegv_install_handler") (argument_list "(FUN_0001f2d0)" (( "(") (identifier "FUN_0001f2d0") () ")")))) (; ";")) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    piVar2 = __errno_location();\n    uVar3 = 0xffffffff;\n    *piVar2 = 0x5f;\n  }" (else "else") (compound_statement "{\n    piVar2 = __errno_location();\n    uVar3 = 0xffffffff;\n    *piVar2 = 0x5f;\n  }" ({ "{") (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" (identifier "piVar2") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar3 = 0xffffffff;" (assignment_expression "uVar3 = 0xffffffff" (identifier "uVar3") (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "*piVar2 = 0x5f;" (assignment_expression "*piVar2 = 0x5f" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (number_literal "0x5f")) (; ";")) (} "}")))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */
/* WARNING: Unknown calling convention */

void function_1(int var_1,type_1 context)

{
  if (var_1 != 0) {
    var_1 = -(uint)(var_2 == 0) & 0xb;
  }
                    /* WARNING: Subroutine does not return */
  var_3(var_1);
}


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

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

undefined4 MASKED(void)

{
  int iVar1;
  int *piVar2;
  undefined4 uVar3;
  code *pcStack_8;
  
  FUN_0001f1c0();
  DAT_0004c368 = pcStack_8;
  if (pcStack_8 == (code *)0x0) {
    DAT_0004c368 = FUN_0001f1b0;
  }
  DAT_0004c364 = dcgettext(0,"program error",5);
  DAT_0004c360 = dcgettext(0,"stack overflow",5);
  iVar1 = stackoverflow_install_handler(MASKED,&DAT_00048360,0x4000);
  if (iVar1 == 0) {
    DAT_00048340 = sigsegv_install_handler(FUN_0001f2d0);
    uVar3 = 0;
  }
  else {
    piVar2 = __errno_location();
    uVar3 = 0xffffffff;
    *piVar2 = 0x5f;
  }
  return uVar3;
}

