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

void rl_sigwinch_handler(int sig)

{
  _rl_caught_signal = sig;
  rl_readline_state = rl_readline_state | 0x8000;
  if ((__sighandler_t)0x1 < old_winch.__sigaction_handler.sa_handler) {
    (*old_winch.__sigaction_handler.sa_handler)(sig);
  }
  rl_readline_state = rl_readline_state & 0xffff7fff;
  return;
}



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

void FUN_000fb8f0(undefined4 param_1)

{
  _rl_caught_signal = param_1;
  rl_readline_state = rl_readline_state | 0x8000;
  if ((code *)0x1 < DAT_0017a180) {
    (*DAT_0017a180)(param_1);
  }
  rl_readline_state = rl_readline_state & 0xffff7fff;
  return;
}


CALL 0x000313e5
ADD EDX,0x7670b
PUSH EBX
SUB ESP,0x8
MOV ECX,dword ptr [ESP + 0x10]
LEA EBX,[EDX + 0x7b44]
MOV dword ptr [EDX + 0x7fd0],ECX
MOV EDX,dword ptr [EDX + 0x8180]
MOV EAX,dword ptr [EBX]
OR AH,0x80
MOV dword ptr [EBX],EAX
CMP EDX,0x1
JBE 0x000fb92c
SUB ESP,0xc
PUSH ECX
CALL EDX
MOV EAX,dword ptr [EBX]
ADD ESP,0x10
AND AH,0x7f
MOV dword ptr [EBX],EAX
ADD ESP,0x8
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nvoid FUN_000fb8f0(undefined4 param_1)\n\n{\n  _rl_caught_signal = param_1;\n  rl_readline_state = rl_readline_state | 0x8000;\n  if ((code *)0x1 < DAT_0017a180) {\n    (*DAT_0017a180)(param_1);\n  }\n  rl_readline_state = rl_readline_state & 0xffff7fff;\n  return;\n}\n\n" comment (function_definition "void FUN_000fb8f0(undefined4 param_1)\n\n{\n  _rl_caught_signal = param_1;\n  rl_readline_state = rl_readline_state | 0x8000;\n  if ((code *)0x1 < DAT_0017a180) {\n    (*DAT_0017a180)(param_1);\n  }\n  rl_readline_state = rl_readline_state & 0xffff7fff;\n  return;\n}" primitive_type (function_declarator "FUN_000fb8f0(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  _rl_caught_signal = param_1;\n  rl_readline_state = rl_readline_state | 0x8000;\n  if ((code *)0x1 < DAT_0017a180) {\n    (*DAT_0017a180)(param_1);\n  }\n  rl_readline_state = rl_readline_state & 0xffff7fff;\n  return;\n}" { (expression_statement "_rl_caught_signal = param_1;" (assignment_expression "_rl_caught_signal = param_1" identifier = identifier) ;) (expression_statement "rl_readline_state = rl_readline_state | 0x8000;" (assignment_expression "rl_readline_state = rl_readline_state | 0x8000" identifier = (binary_expression "rl_readline_state | 0x8000" identifier | number_literal)) ;) (if_statement "if ((code *)0x1 < DAT_0017a180) {\n    (*DAT_0017a180)(param_1);\n  }" if (parenthesized_expression "((code *)0x1 < DAT_0017a180)" ( (binary_expression "(code *)0x1 < DAT_0017a180" (cast_expression "(code *)0x1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) < identifier) )) (compound_statement "{\n    (*DAT_0017a180)(param_1);\n  }" { (expression_statement "(*DAT_0017a180)(param_1);" (call_expression "(*DAT_0017a180)(param_1)" (parenthesized_expression "(*DAT_0017a180)" ( (pointer_expression "*DAT_0017a180" * identifier) )) (argument_list "(param_1)" ( identifier ))) ;) })) (expression_statement "rl_readline_state = rl_readline_state & 0xffff7fff;" (assignment_expression "rl_readline_state = rl_readline_state & 0xffff7fff" identifier = (binary_expression "rl_readline_state & 0xffff7fff" identifier & number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n/* WARNING: Unknown calling convention */\n\nvoid rl_sigwinch_handler(int sig)\n\n{\n  _rl_caught_signal = sig;\n  rl_readline_state = rl_readline_state | 0x8000;\n  if ((__sighandler_t)0x1 < old_winch.__sigaction_handler.sa_handler) {\n    (*old_winch.__sigaction_handler.sa_handler)(sig);\n  }\n  rl_readline_state = rl_readline_state & 0xffff7fff;\n  return;\n}\n\n" comment comment (function_definition "void rl_sigwinch_handler(int sig)\n\n{\n  _rl_caught_signal = sig;\n  rl_readline_state = rl_readline_state | 0x8000;\n  if ((__sighandler_t)0x1 < old_winch.__sigaction_handler.sa_handler) {\n    (*old_winch.__sigaction_handler.sa_handler)(sig);\n  }\n  rl_readline_state = rl_readline_state & 0xffff7fff;\n  return;\n}" primitive_type (function_declarator "rl_sigwinch_handler(int sig)" identifier (parameter_list "(int sig)" ( (parameter_declaration "int sig" primitive_type identifier) ))) (compound_statement "{\n  _rl_caught_signal = sig;\n  rl_readline_state = rl_readline_state | 0x8000;\n  if ((__sighandler_t)0x1 < old_winch.__sigaction_handler.sa_handler) {\n    (*old_winch.__sigaction_handler.sa_handler)(sig);\n  }\n  rl_readline_state = rl_readline_state & 0xffff7fff;\n  return;\n}" { (expression_statement "_rl_caught_signal = sig;" (assignment_expression "_rl_caught_signal = sig" identifier = identifier) ;) (expression_statement "rl_readline_state = rl_readline_state | 0x8000;" (assignment_expression "rl_readline_state = rl_readline_state | 0x8000" identifier = (binary_expression "rl_readline_state | 0x8000" identifier | number_literal)) ;) (if_statement "if ((__sighandler_t)0x1 < old_winch.__sigaction_handler.sa_handler) {\n    (*old_winch.__sigaction_handler.sa_handler)(sig);\n  }" if (parenthesized_expression "((__sighandler_t)0x1 < old_winch.__sigaction_handler.sa_handler)" ( (binary_expression "(__sighandler_t)0x1 < old_winch.__sigaction_handler.sa_handler" (cast_expression "(__sighandler_t)0x1" ( (type_descriptor "__sighandler_t" type_identifier) ) number_literal) < (field_expression "old_winch.__sigaction_handler.sa_handler" (field_expression "old_winch.__sigaction_handler" identifier . field_identifier) . field_identifier)) )) (compound_statement "{\n    (*old_winch.__sigaction_handler.sa_handler)(sig);\n  }" { (expression_statement "(*old_winch.__sigaction_handler.sa_handler)(sig);" (call_expression "(*old_winch.__sigaction_handler.sa_handler)(sig)" (parenthesized_expression "(*old_winch.__sigaction_handler.sa_handler)" ( (pointer_expression "*old_winch.__sigaction_handler.sa_handler" * (field_expression "old_winch.__sigaction_handler.sa_handler" (field_expression "old_winch.__sigaction_handler" identifier . field_identifier) . field_identifier)) )) (argument_list "(sig)" ( identifier ))) ;) })) (expression_statement "rl_readline_state = rl_readline_state & 0xffff7fff;" (assignment_expression "rl_readline_state = rl_readline_state & 0xffff7fff" identifier = (binary_expression "rl_readline_state & 0xffff7fff" identifier & number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000fb8f0(undefined4 param_1)\n\n{\n  _rl_caught_signal = param_1;\n  rl_readline_state = rl_readline_state | 0x8000;\n  if ((code *)0x1 < DAT_0017a180) {\n    (*DAT_0017a180)(param_1);\n  }\n  rl_readline_state = rl_readline_state & 0xffff7fff;\n  return;\n}\n\n" (function_definition "void FUN_000fb8f0(undefined4 param_1)\n\n{\n  _rl_caught_signal = param_1;\n  rl_readline_state = rl_readline_state | 0x8000;\n  if ((code *)0x1 < DAT_0017a180) {\n    (*DAT_0017a180)(param_1);\n  }\n  rl_readline_state = rl_readline_state & 0xffff7fff;\n  return;\n}" primitive_type (function_declarator "FUN_000fb8f0(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  _rl_caught_signal = param_1;\n  rl_readline_state = rl_readline_state | 0x8000;\n  if ((code *)0x1 < DAT_0017a180) {\n    (*DAT_0017a180)(param_1);\n  }\n  rl_readline_state = rl_readline_state & 0xffff7fff;\n  return;\n}" { (expression_statement "_rl_caught_signal = param_1;" (assignment_expression "_rl_caught_signal = param_1" identifier = identifier) ;) (expression_statement "rl_readline_state = rl_readline_state | 0x8000;" (assignment_expression "rl_readline_state = rl_readline_state | 0x8000" identifier = (binary_expression "rl_readline_state | 0x8000" identifier | number_literal)) ;) (if_statement "if ((code *)0x1 < DAT_0017a180) {\n    (*DAT_0017a180)(param_1);\n  }" if (parenthesized_expression "((code *)0x1 < DAT_0017a180)" ( (binary_expression "(code *)0x1 < DAT_0017a180" (cast_expression "(code *)0x1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) < identifier) )) (compound_statement "{\n    (*DAT_0017a180)(param_1);\n  }" { (expression_statement "(*DAT_0017a180)(param_1);" (call_expression "(*DAT_0017a180)(param_1)" (parenthesized_expression "(*DAT_0017a180)" ( (pointer_expression "*DAT_0017a180" * identifier) )) (argument_list "(param_1)" ( identifier ))) ;) })) (expression_statement "rl_readline_state = rl_readline_state & 0xffff7fff;" (assignment_expression "rl_readline_state = rl_readline_state & 0xffff7fff" identifier = (binary_expression "rl_readline_state & 0xffff7fff" identifier & number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) < IDENT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (return_statement return ;) })))
(function_definition "void FUN_000fb8f0(undefined4 param_1)\n\n{\n  _rl_caught_signal = param_1;\n  rl_readline_state = rl_readline_state | 0x8000;\n  if ((code *)0x1 < DAT_0017a180) {\n    (*DAT_0017a180)(param_1);\n  }\n  rl_readline_state = rl_readline_state & 0xffff7fff;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000fb8f0(undefined4 param_1)" (identifier "FUN_000fb8f0") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  _rl_caught_signal = param_1;\n  rl_readline_state = rl_readline_state | 0x8000;\n  if ((code *)0x1 < DAT_0017a180) {\n    (*DAT_0017a180)(param_1);\n  }\n  rl_readline_state = rl_readline_state & 0xffff7fff;\n  return;\n}" ({ "{") (expression_statement "_rl_caught_signal = param_1;" (assignment_expression "_rl_caught_signal = param_1" (identifier "_rl_caught_signal") (= "=") (identifier "param_1")) (; ";")) (expression_statement "rl_readline_state = rl_readline_state | 0x8000;" (assignment_expression "rl_readline_state = rl_readline_state | 0x8000" (identifier "rl_readline_state") (= "=") (binary_expression "rl_readline_state | 0x8000" (identifier "rl_readline_state") (| "|") (number_literal "0x8000"))) (; ";")) (if_statement "if ((code *)0x1 < DAT_0017a180) {\n    (*DAT_0017a180)(param_1);\n  }" (if "if") (parenthesized_expression "((code *)0x1 < DAT_0017a180)" (( "(") (binary_expression "(code *)0x1 < DAT_0017a180" (cast_expression "(code *)0x1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x1")) (< "<") (identifier "DAT_0017a180")) () ")")) (compound_statement "{\n    (*DAT_0017a180)(param_1);\n  }" ({ "{") (expression_statement "(*DAT_0017a180)(param_1);" (call_expression "(*DAT_0017a180)(param_1)" (parenthesized_expression "(*DAT_0017a180)" (( "(") (pointer_expression "*DAT_0017a180" (* "*") (identifier "DAT_0017a180")) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (expression_statement "rl_readline_state = rl_readline_state & 0xffff7fff;" (assignment_expression "rl_readline_state = rl_readline_state & 0xffff7fff" (identifier "rl_readline_state") (= "=") (binary_expression "rl_readline_state & 0xffff7fff" (identifier "rl_readline_state") (& "&") (number_literal "0xffff7fff"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(int sig)

{
  _rl_caught_signal = sig;
  var_1 = var_1 | 0x8000;
  if ((type_1)0x1 < old_winch.__sigaction_handler.sa_handler) {
    (*old_winch.__sigaction_handler.sa_handler)(sig);
  }
  var_1 = var_1 & 0xffff7fff;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (return_statement))))

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

void MASKED(undefined4 param_1)

{
  _rl_caught_signal = param_1;
  rl_readline_state = rl_readline_state | 0x8000;
  if ((code *)0x1 < DAT_0017a180) {
    (*DAT_0017a180)(param_1);
  }
  rl_readline_state = rl_readline_state & 0xffff7fff;
  return;
}

