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

int bash_push_line(void)

{
  if (push_to_readline != (char *)0x0) {
    rl_insert_text(push_to_readline);
    free(push_to_readline);
    push_to_readline = (char *)0x0;
    rl_startup_hook = (rl_hook_func_t_conflict *)old_rl_startup_hook;
  }
  return 0;
}



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

undefined4 FUN_0008c500(void)

{
  if (DAT_001514e4 != (void *)0x0) {
    rl_insert_text(DAT_001514e4);
    free(DAT_001514e4);
    DAT_001514e4 = (void *)0x0;
    rl_startup_hook = DAT_001514f0;
  }
  return 0;
}


PUSH EBX
CALL 0x00031ed0
ADD EBX,0xbdafa
SUB ESP,0x8
MOV EAX,dword ptr [EBX + 0x74e4]
TEST EAX,EAX
JZ 0x0008c549
SUB ESP,0xc
PUSH EAX
CALL 0x000e1ec0
POP EAX
PUSH dword ptr [EBX + 0x74e4]
CALL 0x0002f200
MOV EDX,dword ptr [EBX + 0x74f0]
LEA EAX,[EBX + 0x7b20]
ADD ESP,0x10
MOV dword ptr [EBX + 0x74e4],0x0
MOV dword ptr [EAX],EDX
ADD ESP,0x8
XOR EAX,EAX
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_0008c500(void)\n\n{\n  if (DAT_001514e4 != (void *)0x0) {\n    rl_insert_text(DAT_001514e4);\n    free(DAT_001514e4);\n    DAT_001514e4 = (void *)0x0;\n    rl_startup_hook = DAT_001514f0;\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 FUN_0008c500(void)\n\n{\n  if (DAT_001514e4 != (void *)0x0) {\n    rl_insert_text(DAT_001514e4);\n    free(DAT_001514e4);\n    DAT_001514e4 = (void *)0x0;\n    rl_startup_hook = DAT_001514f0;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0008c500(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  if (DAT_001514e4 != (void *)0x0) {\n    rl_insert_text(DAT_001514e4);\n    free(DAT_001514e4);\n    DAT_001514e4 = (void *)0x0;\n    rl_startup_hook = DAT_001514f0;\n  }\n  return 0;\n}" { (if_statement "if (DAT_001514e4 != (void *)0x0) {\n    rl_insert_text(DAT_001514e4);\n    free(DAT_001514e4);\n    DAT_001514e4 = (void *)0x0;\n    rl_startup_hook = DAT_001514f0;\n  }" if (parenthesized_expression "(DAT_001514e4 != (void *)0x0)" ( (binary_expression "DAT_001514e4 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    rl_insert_text(DAT_001514e4);\n    free(DAT_001514e4);\n    DAT_001514e4 = (void *)0x0;\n    rl_startup_hook = DAT_001514f0;\n  }" { (expression_statement "rl_insert_text(DAT_001514e4);" (call_expression "rl_insert_text(DAT_001514e4)" identifier (argument_list "(DAT_001514e4)" ( identifier ))) ;) (expression_statement "free(DAT_001514e4);" (call_expression "free(DAT_001514e4)" identifier (argument_list "(DAT_001514e4)" ( identifier ))) ;) (expression_statement "DAT_001514e4 = (void *)0x0;" (assignment_expression "DAT_001514e4 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "rl_startup_hook = DAT_001514f0;" (assignment_expression "rl_startup_hook = DAT_001514f0" identifier = identifier) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint bash_push_line(void)\n\n{\n  if (push_to_readline != (char *)0x0) {\n    rl_insert_text(push_to_readline);\n    free(push_to_readline);\n    push_to_readline = (char *)0x0;\n    rl_startup_hook = (rl_hook_func_t_conflict *)old_rl_startup_hook;\n  }\n  return 0;\n}\n\n" comment comment (function_definition "int bash_push_line(void)\n\n{\n  if (push_to_readline != (char *)0x0) {\n    rl_insert_text(push_to_readline);\n    free(push_to_readline);\n    push_to_readline = (char *)0x0;\n    rl_startup_hook = (rl_hook_func_t_conflict *)old_rl_startup_hook;\n  }\n  return 0;\n}" primitive_type (function_declarator "bash_push_line(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  if (push_to_readline != (char *)0x0) {\n    rl_insert_text(push_to_readline);\n    free(push_to_readline);\n    push_to_readline = (char *)0x0;\n    rl_startup_hook = (rl_hook_func_t_conflict *)old_rl_startup_hook;\n  }\n  return 0;\n}" { (if_statement "if (push_to_readline != (char *)0x0) {\n    rl_insert_text(push_to_readline);\n    free(push_to_readline);\n    push_to_readline = (char *)0x0;\n    rl_startup_hook = (rl_hook_func_t_conflict *)old_rl_startup_hook;\n  }" if (parenthesized_expression "(push_to_readline != (char *)0x0)" ( (binary_expression "push_to_readline != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    rl_insert_text(push_to_readline);\n    free(push_to_readline);\n    push_to_readline = (char *)0x0;\n    rl_startup_hook = (rl_hook_func_t_conflict *)old_rl_startup_hook;\n  }" { (expression_statement "rl_insert_text(push_to_readline);" (call_expression "rl_insert_text(push_to_readline)" identifier (argument_list "(push_to_readline)" ( identifier ))) ;) (expression_statement "free(push_to_readline);" (call_expression "free(push_to_readline)" identifier (argument_list "(push_to_readline)" ( identifier ))) ;) (expression_statement "push_to_readline = (char *)0x0;" (assignment_expression "push_to_readline = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "rl_startup_hook = (rl_hook_func_t_conflict *)old_rl_startup_hook;" (assignment_expression "rl_startup_hook = (rl_hook_func_t_conflict *)old_rl_startup_hook" identifier = (cast_expression "(rl_hook_func_t_conflict *)old_rl_startup_hook" ( (type_descriptor "rl_hook_func_t_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_0008c500(void)\n\n{\n  if (DAT_001514e4 != (void *)0x0) {\n    rl_insert_text(DAT_001514e4);\n    free(DAT_001514e4);\n    DAT_001514e4 = (void *)0x0;\n    rl_startup_hook = DAT_001514f0;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0008c500(void)\n\n{\n  if (DAT_001514e4 != (void *)0x0) {\n    rl_insert_text(DAT_001514e4);\n    free(DAT_001514e4);\n    DAT_001514e4 = (void *)0x0;\n    rl_startup_hook = DAT_001514f0;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0008c500(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  if (DAT_001514e4 != (void *)0x0) {\n    rl_insert_text(DAT_001514e4);\n    free(DAT_001514e4);\n    DAT_001514e4 = (void *)0x0;\n    rl_startup_hook = DAT_001514f0;\n  }\n  return 0;\n}" { (if_statement "if (DAT_001514e4 != (void *)0x0) {\n    rl_insert_text(DAT_001514e4);\n    free(DAT_001514e4);\n    DAT_001514e4 = (void *)0x0;\n    rl_startup_hook = DAT_001514f0;\n  }" if (parenthesized_expression "(DAT_001514e4 != (void *)0x0)" ( (binary_expression "DAT_001514e4 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    rl_insert_text(DAT_001514e4);\n    free(DAT_001514e4);\n    DAT_001514e4 = (void *)0x0;\n    rl_startup_hook = DAT_001514f0;\n  }" { (expression_statement "rl_insert_text(DAT_001514e4);" (call_expression "rl_insert_text(DAT_001514e4)" identifier (argument_list "(DAT_001514e4)" ( identifier ))) ;) (expression_statement "free(DAT_001514e4);" (call_expression "free(DAT_001514e4)" identifier (argument_list "(DAT_001514e4)" ( identifier ))) ;) (expression_statement "DAT_001514e4 = (void *)0x0;" (assignment_expression "DAT_001514e4 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "rl_startup_hook = DAT_001514f0;" (assignment_expression "rl_startup_hook = DAT_001514f0" identifier = identifier) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0008c500(void)\n\n{\n  if (DAT_001514e4 != (void *)0x0) {\n    rl_insert_text(DAT_001514e4);\n    free(DAT_001514e4);\n    DAT_001514e4 = (void *)0x0;\n    rl_startup_hook = DAT_001514f0;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_0008c500(void)" (identifier "FUN_0008c500") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  if (DAT_001514e4 != (void *)0x0) {\n    rl_insert_text(DAT_001514e4);\n    free(DAT_001514e4);\n    DAT_001514e4 = (void *)0x0;\n    rl_startup_hook = DAT_001514f0;\n  }\n  return 0;\n}" ({ "{") (if_statement "if (DAT_001514e4 != (void *)0x0) {\n    rl_insert_text(DAT_001514e4);\n    free(DAT_001514e4);\n    DAT_001514e4 = (void *)0x0;\n    rl_startup_hook = DAT_001514f0;\n  }" (if "if") (parenthesized_expression "(DAT_001514e4 != (void *)0x0)" (( "(") (binary_expression "DAT_001514e4 != (void *)0x0" (identifier "DAT_001514e4") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    rl_insert_text(DAT_001514e4);\n    free(DAT_001514e4);\n    DAT_001514e4 = (void *)0x0;\n    rl_startup_hook = DAT_001514f0;\n  }" ({ "{") (expression_statement "rl_insert_text(DAT_001514e4);" (call_expression "rl_insert_text(DAT_001514e4)" (identifier "rl_insert_text") (argument_list "(DAT_001514e4)" (( "(") (identifier "DAT_001514e4") () ")"))) (; ";")) (expression_statement "free(DAT_001514e4);" (call_expression "free(DAT_001514e4)" (identifier "free") (argument_list "(DAT_001514e4)" (( "(") (identifier "DAT_001514e4") () ")"))) (; ";")) (expression_statement "DAT_001514e4 = (void *)0x0;" (assignment_expression "DAT_001514e4 = (void *)0x0" (identifier "DAT_001514e4") (= "=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "rl_startup_hook = DAT_001514f0;" (assignment_expression "rl_startup_hook = DAT_001514f0" (identifier "rl_startup_hook") (= "=") (identifier "DAT_001514f0")) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

int function_1(void)

{
  if (var_1 != (char *)0x0) {
    var_2(var_1);
    var_3(var_1);
    var_1 = (char *)0x0;
    rl_startup_hook = (type_1 *)old_rl_startup_hook;
  }
  return 0;
}


(translation_unit (function_definition type: (type_identifier) 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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (return_statement (number_literal)))))

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

undefined4 MASKED(void)

{
  if (DAT_001514e4 != (void *)0x0) {
    rl_insert_text(DAT_001514e4);
    free(DAT_001514e4);
    DAT_001514e4 = (void *)0x0;
    rl_startup_hook = DAT_001514f0;
  }
  return 0;
}

