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

void read_tty_cleanup(void)

{
  if (tty_modified == 0) {
    return;
  }
  ttsetattr(termsave.fd,&termsave.attrs);
  tty_modified = 0;
  return;
}



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

void read_tty_cleanup(void)

{
  if (DAT_00179788 == 0) {
    return;
  }
  ttsetattr(DAT_00179740,&DAT_00179744);
  DAT_00179788 = 0;
  return;
}


PUSH EBX
CALL 0x000312b0
ADD EBX,0xb307a
SUB ESP,0x8
MOV EAX,dword ptr [EBX + 0x7788]
TEST EAX,EAX
JNZ 0x000befa0
ADD ESP,0x8
POP EBX
RET
SUB ESP,0x8
LEA EAX,[EBX + 0x7744]
PUSH EAX
PUSH dword ptr [EBX + 0x7740]
CALL 0x000d5510
ADD ESP,0x10
MOV dword ptr [EBX + 0x7788],0x0
ADD ESP,0x8
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid read_tty_cleanup(void)\n\n{\n  if (DAT_00179788 == 0) {\n    return;\n  }\n  ttsetattr(DAT_00179740,&DAT_00179744);\n  DAT_00179788 = 0;\n  return;\n}\n\n" comment (function_definition "void read_tty_cleanup(void)\n\n{\n  if (DAT_00179788 == 0) {\n    return;\n  }\n  ttsetattr(DAT_00179740,&DAT_00179744);\n  DAT_00179788 = 0;\n  return;\n}" primitive_type (function_declarator "read_tty_cleanup(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  if (DAT_00179788 == 0) {\n    return;\n  }\n  ttsetattr(DAT_00179740,&DAT_00179744);\n  DAT_00179788 = 0;\n  return;\n}" { (if_statement "if (DAT_00179788 == 0) {\n    return;\n  }" if (parenthesized_expression "(DAT_00179788 == 0)" ( (binary_expression "DAT_00179788 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "ttsetattr(DAT_00179740,&DAT_00179744);" (call_expression "ttsetattr(DAT_00179740,&DAT_00179744)" identifier (argument_list "(DAT_00179740,&DAT_00179744)" ( identifier , (pointer_expression "&DAT_00179744" & identifier) ))) ;) (expression_statement "DAT_00179788 = 0;" (assignment_expression "DAT_00179788 = 0" identifier = 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 -- yet parameter storage is locked */\n\nvoid read_tty_cleanup(void)\n\n{\n  if (tty_modified == 0) {\n    return;\n  }\n  ttsetattr(termsave.fd,&termsave.attrs);\n  tty_modified = 0;\n  return;\n}\n\n" comment comment (function_definition "void read_tty_cleanup(void)\n\n{\n  if (tty_modified == 0) {\n    return;\n  }\n  ttsetattr(termsave.fd,&termsave.attrs);\n  tty_modified = 0;\n  return;\n}" primitive_type (function_declarator "read_tty_cleanup(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  if (tty_modified == 0) {\n    return;\n  }\n  ttsetattr(termsave.fd,&termsave.attrs);\n  tty_modified = 0;\n  return;\n}" { (if_statement "if (tty_modified == 0) {\n    return;\n  }" if (parenthesized_expression "(tty_modified == 0)" ( (binary_expression "tty_modified == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "ttsetattr(termsave.fd,&termsave.attrs);" (call_expression "ttsetattr(termsave.fd,&termsave.attrs)" identifier (argument_list "(termsave.fd,&termsave.attrs)" ( (field_expression "termsave.fd" identifier . field_identifier) , (pointer_expression "&termsave.attrs" & (field_expression "termsave.attrs" identifier . field_identifier)) ))) ;) (expression_statement "tty_modified = 0;" (assignment_expression "tty_modified = 0" identifier = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void read_tty_cleanup(void)\n\n{\n  if (DAT_00179788 == 0) {\n    return;\n  }\n  ttsetattr(DAT_00179740,&DAT_00179744);\n  DAT_00179788 = 0;\n  return;\n}\n\n" (function_definition "void read_tty_cleanup(void)\n\n{\n  if (DAT_00179788 == 0) {\n    return;\n  }\n  ttsetattr(DAT_00179740,&DAT_00179744);\n  DAT_00179788 = 0;\n  return;\n}" primitive_type (function_declarator "read_tty_cleanup(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  if (DAT_00179788 == 0) {\n    return;\n  }\n  ttsetattr(DAT_00179740,&DAT_00179744);\n  DAT_00179788 = 0;\n  return;\n}" { (if_statement "if (DAT_00179788 == 0) {\n    return;\n  }" if (parenthesized_expression "(DAT_00179788 == 0)" ( (binary_expression "DAT_00179788 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "ttsetattr(DAT_00179740,&DAT_00179744);" (call_expression "ttsetattr(DAT_00179740,&DAT_00179744)" identifier (argument_list "(DAT_00179740,&DAT_00179744)" ( identifier , (pointer_expression "&DAT_00179744" & identifier) ))) ;) (expression_statement "DAT_00179788 = 0;" (assignment_expression "DAT_00179788 = 0" identifier = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (return_statement return ;) })))
(function_definition "void read_tty_cleanup(void)\n\n{\n  if (DAT_00179788 == 0) {\n    return;\n  }\n  ttsetattr(DAT_00179740,&DAT_00179744);\n  DAT_00179788 = 0;\n  return;\n}" (primitive_type "void") (function_declarator "read_tty_cleanup(void)" (identifier "read_tty_cleanup") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  if (DAT_00179788 == 0) {\n    return;\n  }\n  ttsetattr(DAT_00179740,&DAT_00179744);\n  DAT_00179788 = 0;\n  return;\n}" ({ "{") (if_statement "if (DAT_00179788 == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(DAT_00179788 == 0)" (( "(") (binary_expression "DAT_00179788 == 0" (identifier "DAT_00179788") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "ttsetattr(DAT_00179740,&DAT_00179744);" (call_expression "ttsetattr(DAT_00179740,&DAT_00179744)" (identifier "ttsetattr") (argument_list "(DAT_00179740,&DAT_00179744)" (( "(") (identifier "DAT_00179740") (, ",") (pointer_expression "&DAT_00179744" (& "&") (identifier "DAT_00179744")) () ")"))) (; ";")) (expression_statement "DAT_00179788 = 0;" (assignment_expression "DAT_00179788 = 0" (identifier "DAT_00179788") (= "=") (number_literal "0")) (; ";")) (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)

{
  if (var_1 == 0) {
    return;
  }
  var_2(termsave.fd,&termsave.attrs);
  var_1 = 0;
  return;
}


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

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

void MASKED(void)

{
  if (DAT_00179788 == 0) {
    return;
  }
  ttsetattr(DAT_00179740,&DAT_00179744);
  DAT_00179788 = 0;
  return;
}

