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

void newline_and_flush(void)

{
}



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

void __regparm3 FUN_00056b11(_IO_FILE *param_1)

{
  char *pcVar1;
  
  *(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1;
  pcVar1 = param_1->_IO_write_ptr;
  if (pcVar1 < param_1->_IO_write_end) {
    param_1->_IO_write_ptr = pcVar1 + 1;
    *pcVar1 = '\n';
  }
  else {
    __overflow(param_1,10);
  }
  fflush(param_1);
  FUN_00055de5();
  return;
}


PUSH ESI
PUSH EBX
PUSH EDX
CALL 0x00017650
ADD EBX,0x84f07
MOV ESI,EAX
LEA EAX,[EBX + 0xce8]
MOV EDX,dword ptr [EAX]
MOV EAX,dword ptr [EDX + 0x24]
INC EAX
MOV dword ptr [EDX + 0x24],EAX
MOV EAX,dword ptr [ESI + 0x14]
CMP EAX,dword ptr [ESI + 0x18]
JC 0x00056b59
SUB ESP,0x8
PUSH 0xa
PUSH ESI
CALL 0x00017120
ADD ESP,0x10
SUB ESP,0xc
PUSH ESI
CALL 0x000161f0
ADD ESP,0x14
POP EBX
POP ESI
JMP 0x00055de5
LEA EDX,[EAX + 0x1]
MOV dword ptr [ESI + 0x14],EDX
MOV byte ptr [EAX],0xa
JMP 0x00056b46
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00056b11(_IO_FILE *param_1)\n\n{\n  char *pcVar1;\n  \n  *(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1;\n  pcVar1 = param_1->_IO_write_ptr;\n  if (pcVar1 < param_1->_IO_write_end) {\n    param_1->_IO_write_ptr = pcVar1 + 1;\n    *pcVar1 = '\n';\n  }\n  else {\n    __overflow(param_1,10);\n  }\n  fflush(param_1);\n  FUN_00055de5();\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00056b11(_IO_FILE *param_1)\n\n{\n  char *pcVar1;\n  \n  *(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1;\n  pcVar1 = param_1->_IO_write_ptr;\n  if (pcVar1 < param_1->_IO_write_end) {\n    param_1->_IO_write_ptr = pcVar1 + 1;\n    *pcVar1 = '\n';\n  }\n  else {\n    __overflow(param_1,10);\n  }\n  fflush(param_1);\n  FUN_00055de5();\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00056b11(_IO_FILE *param_1)" identifier (parameter_list "(_IO_FILE *param_1)" ( (parameter_declaration "_IO_FILE *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  \n  *(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1;\n  pcVar1 = param_1->_IO_write_ptr;\n  if (pcVar1 < param_1->_IO_write_end) {\n    param_1->_IO_write_ptr = pcVar1 + 1;\n    *pcVar1 = '\n';\n  }\n  else {\n    __overflow(param_1,10);\n  }\n  fflush(param_1);\n  FUN_00055de5();\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "*(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1;" (assignment_expression "*(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1" (pointer_expression "*(int *)(DAT_000dc708 + 0x24)" * (cast_expression "(int *)(DAT_000dc708 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000dc708 + 0x24)" ( (binary_expression "DAT_000dc708 + 0x24" identifier + number_literal) )))) = (binary_expression "*(int *)(DAT_000dc708 + 0x24) + 1" (pointer_expression "*(int *)(DAT_000dc708 + 0x24)" * (cast_expression "(int *)(DAT_000dc708 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000dc708 + 0x24)" ( (binary_expression "DAT_000dc708 + 0x24" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "pcVar1 = param_1->_IO_write_ptr;" (assignment_expression "pcVar1 = param_1->_IO_write_ptr" identifier = (field_expression "param_1->_IO_write_ptr" identifier -> field_identifier)) ;) (if_statement "if (pcVar1 < param_1->_IO_write_end) {\n    param_1->_IO_write_ptr = pcVar1 + 1;\n    *pcVar1 = '\n';\n  }\n  else {\n    __overflow(param_1,10);\n  }" if (parenthesized_expression "(pcVar1 < param_1->_IO_write_end)" ( (binary_expression "pcVar1 < param_1->_IO_write_end" identifier < (field_expression "param_1->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n    param_1->_IO_write_ptr = pcVar1 + 1;\n    *pcVar1 = '\n';\n  }" { (expression_statement "param_1->_IO_write_ptr = pcVar1 + 1;" (assignment_expression "param_1->_IO_write_ptr = pcVar1 + 1" (field_expression "param_1->_IO_write_ptr" identifier -> field_identifier) = (binary_expression "pcVar1 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar1 = '\n';" (assignment_expression "*pcVar1 = '\n'" (pointer_expression "*pcVar1" * identifier) = (char_literal "'\n'" ' escape_sequence ')) ;) }) (else_clause "else {\n    __overflow(param_1,10);\n  }" else (compound_statement "{\n    __overflow(param_1,10);\n  }" { (expression_statement "__overflow(param_1,10);" (call_expression "__overflow(param_1,10)" identifier (argument_list "(param_1,10)" ( identifier , number_literal ))) ;) }))) (expression_statement "fflush(param_1);" (call_expression "fflush(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "FUN_00055de5();" (call_expression "FUN_00055de5()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid newline_and_flush(void)\n\n{\n}\n\n" comment (function_definition "void newline_and_flush(void)\n\n{\n}" primitive_type (function_declarator "newline_and_flush(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n}" { })))
(translation_unit "void __regparm3 FUN_00056b11(_IO_FILE *param_1)\n\n{\n  char *pcVar1;\n  \n  *(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1;\n  pcVar1 = param_1->_IO_write_ptr;\n  if (pcVar1 < param_1->_IO_write_end) {\n    param_1->_IO_write_ptr = pcVar1 + 1;\n    *pcVar1 = '\n';\n  }\n  else {\n    __overflow(param_1,10);\n  }\n  fflush(param_1);\n  FUN_00055de5();\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00056b11(_IO_FILE *param_1)\n\n{\n  char *pcVar1;\n  \n  *(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1;\n  pcVar1 = param_1->_IO_write_ptr;\n  if (pcVar1 < param_1->_IO_write_end) {\n    param_1->_IO_write_ptr = pcVar1 + 1;\n    *pcVar1 = '\n';\n  }\n  else {\n    __overflow(param_1,10);\n  }\n  fflush(param_1);\n  FUN_00055de5();\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00056b11(_IO_FILE *param_1)" identifier (parameter_list "(_IO_FILE *param_1)" ( (parameter_declaration "_IO_FILE *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  \n  *(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1;\n  pcVar1 = param_1->_IO_write_ptr;\n  if (pcVar1 < param_1->_IO_write_end) {\n    param_1->_IO_write_ptr = pcVar1 + 1;\n    *pcVar1 = '\n';\n  }\n  else {\n    __overflow(param_1,10);\n  }\n  fflush(param_1);\n  FUN_00055de5();\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "*(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1;" (assignment_expression "*(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1" (pointer_expression "*(int *)(DAT_000dc708 + 0x24)" * (cast_expression "(int *)(DAT_000dc708 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000dc708 + 0x24)" ( (binary_expression "DAT_000dc708 + 0x24" identifier + number_literal) )))) = (binary_expression "*(int *)(DAT_000dc708 + 0x24) + 1" (pointer_expression "*(int *)(DAT_000dc708 + 0x24)" * (cast_expression "(int *)(DAT_000dc708 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000dc708 + 0x24)" ( (binary_expression "DAT_000dc708 + 0x24" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "pcVar1 = param_1->_IO_write_ptr;" (assignment_expression "pcVar1 = param_1->_IO_write_ptr" identifier = (field_expression "param_1->_IO_write_ptr" identifier -> field_identifier)) ;) (if_statement "if (pcVar1 < param_1->_IO_write_end) {\n    param_1->_IO_write_ptr = pcVar1 + 1;\n    *pcVar1 = '\n';\n  }\n  else {\n    __overflow(param_1,10);\n  }" if (parenthesized_expression "(pcVar1 < param_1->_IO_write_end)" ( (binary_expression "pcVar1 < param_1->_IO_write_end" identifier < (field_expression "param_1->_IO_write_end" identifier -> field_identifier)) )) (compound_statement "{\n    param_1->_IO_write_ptr = pcVar1 + 1;\n    *pcVar1 = '\n';\n  }" { (expression_statement "param_1->_IO_write_ptr = pcVar1 + 1;" (assignment_expression "param_1->_IO_write_ptr = pcVar1 + 1" (field_expression "param_1->_IO_write_ptr" identifier -> field_identifier) = (binary_expression "pcVar1 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar1 = '\n';" (assignment_expression "*pcVar1 = '\n'" (pointer_expression "*pcVar1" * identifier) = (char_literal "'\n'" ' escape_sequence ')) ;) }) (else_clause "else {\n    __overflow(param_1,10);\n  }" else (compound_statement "{\n    __overflow(param_1,10);\n  }" { (expression_statement "__overflow(param_1,10);" (call_expression "__overflow(param_1,10)" identifier (argument_list "(param_1,10)" ( identifier , number_literal ))) ;) }))) (expression_statement "fflush(param_1);" (call_expression "fflush(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "FUN_00055de5();" (call_expression "FUN_00055de5()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = (field_expression IDENT -> field_identifier)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (field_expression IDENT -> field_identifier)) )) (compound_statement { (expression_statement (assignment_expression (field_expression IDENT -> field_identifier) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00056b11(_IO_FILE *param_1)\n\n{\n  char *pcVar1;\n  \n  *(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1;\n  pcVar1 = param_1->_IO_write_ptr;\n  if (pcVar1 < param_1->_IO_write_end) {\n    param_1->_IO_write_ptr = pcVar1 + 1;\n    *pcVar1 = '\n';\n  }\n  else {\n    __overflow(param_1,10);\n  }\n  fflush(param_1);\n  FUN_00055de5();\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00056b11(_IO_FILE *param_1)" (identifier "FUN_00056b11") (parameter_list "(_IO_FILE *param_1)" (( "(") (parameter_declaration "_IO_FILE *param_1" (type_identifier "_IO_FILE") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  char *pcVar1;\n  \n  *(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1;\n  pcVar1 = param_1->_IO_write_ptr;\n  if (pcVar1 < param_1->_IO_write_end) {\n    param_1->_IO_write_ptr = pcVar1 + 1;\n    *pcVar1 = '\n';\n  }\n  else {\n    __overflow(param_1,10);\n  }\n  fflush(param_1);\n  FUN_00055de5();\n  return;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (expression_statement "*(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1;" (assignment_expression "*(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1" (pointer_expression "*(int *)(DAT_000dc708 + 0x24)" (* "*") (cast_expression "(int *)(DAT_000dc708 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_000dc708 + 0x24)" (( "(") (binary_expression "DAT_000dc708 + 0x24" (identifier "DAT_000dc708") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (binary_expression "*(int *)(DAT_000dc708 + 0x24) + 1" (pointer_expression "*(int *)(DAT_000dc708 + 0x24)" (* "*") (cast_expression "(int *)(DAT_000dc708 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_000dc708 + 0x24)" (( "(") (binary_expression "DAT_000dc708 + 0x24" (identifier "DAT_000dc708") (+ "+") (number_literal "0x24")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pcVar1 = param_1->_IO_write_ptr;" (assignment_expression "pcVar1 = param_1->_IO_write_ptr" (identifier "pcVar1") (= "=") (field_expression "param_1->_IO_write_ptr" (identifier "param_1") (-> "->") (field_identifier "_IO_write_ptr"))) (; ";")) (if_statement "if (pcVar1 < param_1->_IO_write_end) {\n    param_1->_IO_write_ptr = pcVar1 + 1;\n    *pcVar1 = '\n';\n  }\n  else {\n    __overflow(param_1,10);\n  }" (if "if") (parenthesized_expression "(pcVar1 < param_1->_IO_write_end)" (( "(") (binary_expression "pcVar1 < param_1->_IO_write_end" (identifier "pcVar1") (< "<") (field_expression "param_1->_IO_write_end" (identifier "param_1") (-> "->") (field_identifier "_IO_write_end"))) () ")")) (compound_statement "{\n    param_1->_IO_write_ptr = pcVar1 + 1;\n    *pcVar1 = '\n';\n  }" ({ "{") (expression_statement "param_1->_IO_write_ptr = pcVar1 + 1;" (assignment_expression "param_1->_IO_write_ptr = pcVar1 + 1" (field_expression "param_1->_IO_write_ptr" (identifier "param_1") (-> "->") (field_identifier "_IO_write_ptr")) (= "=") (binary_expression "pcVar1 + 1" (identifier "pcVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*pcVar1 = '\n';" (assignment_expression "*pcVar1 = '\n'" (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) (= "=") (char_literal "'\n'" (' "'") (escape_sequence "\n") (' "'"))) (; ";")) (} "}")) (else_clause "else {\n    __overflow(param_1,10);\n  }" (else "else") (compound_statement "{\n    __overflow(param_1,10);\n  }" ({ "{") (expression_statement "__overflow(param_1,10);" (call_expression "__overflow(param_1,10)" (identifier "__overflow") (argument_list "(param_1,10)" (( "(") (identifier "param_1") (, ",") (number_literal "10") () ")"))) (; ";")) (} "}")))) (expression_statement "fflush(param_1);" (call_expression "fflush(param_1)" (identifier "fflush") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "FUN_00055de5();" (call_expression "FUN_00055de5()" (identifier "FUN_00055de5") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(void)

{
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (field_expression argument: (identifier) field: (field_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (field_expression argument: (identifier) field: (field_identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))))

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

void __regparm3 MASKED(_IO_FILE *param_1)

{
  char *pcVar1;
  
  *(int *)(DAT_000dc708 + 0x24) = *(int *)(DAT_000dc708 + 0x24) + 1;
  pcVar1 = param_1->_IO_write_ptr;
  if (pcVar1 < param_1->_IO_write_end) {
    param_1->_IO_write_ptr = pcVar1 + 1;
    *pcVar1 = '\n';
  }
  else {
    __overflow(param_1,10);
  }
  fflush(param_1);
  FUN_00055de5();
  return;
}

