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

void tidy_up_after_search(void)

{
  if (have_compiled_regexp) {
    rpl_regfree((regex_t *)PTR_search_regexp_0006aed0);
    have_compiled_regexp = false;
  }
  if (openfile->mark != (filestruct *)0x0) {
    refresh_needed = true;
  }
  return;
}



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

void FUN_0002c8b0(void)

{
  if (DAT_0006b880 != '\0') {
    FUN_0004ac30(PTR_DAT_0006aed0);
    DAT_0006b880 = '\0';
  }
  if (*(int *)(DAT_0006b640 + 0x30) != 0) {
    DAT_0006b604 = 1;
  }
  return;
}


PUSH EBX
CALL 0x00014e20
ADD EBX,0x3e31a
SUB ESP,0x8
CMP byte ptr [EBX + 0xcb0],0x0
JNZ 0x0002c8e8
LEA EAX,[EBX + 0xa70]
MOV EAX,dword ptr [EAX]
MOV EAX,dword ptr [EAX + 0x30]
TEST EAX,EAX
JZ 0x0002c8e0
LEA EAX,[EBX + 0xa34]
MOV byte ptr [EAX],0x1
ADD ESP,0x8
POP EBX
RET
SUB ESP,0xc
PUSH dword ptr [EBX + 0x300]
CALL 0x0004ac30
MOV byte ptr [EBX + 0xcb0],0x0
ADD ESP,0x10
JMP 0x0002c8c8
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0002c8b0(void)\n\n{\n  if (DAT_0006b880 != '\0') {\n    FUN_0004ac30(PTR_DAT_0006aed0);\n    DAT_0006b880 = '\0';\n  }\n  if (*(int *)(DAT_0006b640 + 0x30) != 0) {\n    DAT_0006b604 = 1;\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_0002c8b0(void)\n\n{\n  if (DAT_0006b880 != '\0') {\n    FUN_0004ac30(PTR_DAT_0006aed0);\n    DAT_0006b880 = '\0';\n  }\n  if (*(int *)(DAT_0006b640 + 0x30) != 0) {\n    DAT_0006b604 = 1;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0002c8b0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  if (DAT_0006b880 != '\0') {\n    FUN_0004ac30(PTR_DAT_0006aed0);\n    DAT_0006b880 = '\0';\n  }\n  if (*(int *)(DAT_0006b640 + 0x30) != 0) {\n    DAT_0006b604 = 1;\n  }\n  return;\n}" { (if_statement "if (DAT_0006b880 != '\0') {\n    FUN_0004ac30(PTR_DAT_0006aed0);\n    DAT_0006b880 = '\0';\n  }" if (parenthesized_expression "(DAT_0006b880 != '\0')" ( (binary_expression "DAT_0006b880 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_0004ac30(PTR_DAT_0006aed0);\n    DAT_0006b880 = '\0';\n  }" { (expression_statement "FUN_0004ac30(PTR_DAT_0006aed0);" (call_expression "FUN_0004ac30(PTR_DAT_0006aed0)" identifier (argument_list "(PTR_DAT_0006aed0)" ( identifier ))) ;) (expression_statement "DAT_0006b880 = '\0';" (assignment_expression "DAT_0006b880 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) })) (if_statement "if (*(int *)(DAT_0006b640 + 0x30) != 0) {\n    DAT_0006b604 = 1;\n  }" if (parenthesized_expression "(*(int *)(DAT_0006b640 + 0x30) != 0)" ( (binary_expression "*(int *)(DAT_0006b640 + 0x30) != 0" (pointer_expression "*(int *)(DAT_0006b640 + 0x30)" * (cast_expression "(int *)(DAT_0006b640 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x30)" ( (binary_expression "DAT_0006b640 + 0x30" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    DAT_0006b604 = 1;\n  }" { (expression_statement "DAT_0006b604 = 1;" (assignment_expression "DAT_0006b604 = 1" 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 tidy_up_after_search(void)\n\n{\n  if (have_compiled_regexp) {\n    rpl_regfree((regex_t *)PTR_search_regexp_0006aed0);\n    have_compiled_regexp = false;\n  }\n  if (openfile->mark != (filestruct *)0x0) {\n    refresh_needed = true;\n  }\n  return;\n}\n\n" comment comment (function_definition "void tidy_up_after_search(void)\n\n{\n  if (have_compiled_regexp) {\n    rpl_regfree((regex_t *)PTR_search_regexp_0006aed0);\n    have_compiled_regexp = false;\n  }\n  if (openfile->mark != (filestruct *)0x0) {\n    refresh_needed = true;\n  }\n  return;\n}" primitive_type (function_declarator "tidy_up_after_search(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  if (have_compiled_regexp) {\n    rpl_regfree((regex_t *)PTR_search_regexp_0006aed0);\n    have_compiled_regexp = false;\n  }\n  if (openfile->mark != (filestruct *)0x0) {\n    refresh_needed = true;\n  }\n  return;\n}" { (if_statement "if (have_compiled_regexp) {\n    rpl_regfree((regex_t *)PTR_search_regexp_0006aed0);\n    have_compiled_regexp = false;\n  }" if (parenthesized_expression "(have_compiled_regexp)" ( identifier )) (compound_statement "{\n    rpl_regfree((regex_t *)PTR_search_regexp_0006aed0);\n    have_compiled_regexp = false;\n  }" { (expression_statement "rpl_regfree((regex_t *)PTR_search_regexp_0006aed0);" (call_expression "rpl_regfree((regex_t *)PTR_search_regexp_0006aed0)" identifier (argument_list "((regex_t *)PTR_search_regexp_0006aed0)" ( (cast_expression "(regex_t *)PTR_search_regexp_0006aed0" ( (type_descriptor "regex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (expression_statement "have_compiled_regexp = false;" (assignment_expression "have_compiled_regexp = false" identifier = false) ;) })) (if_statement "if (openfile->mark != (filestruct *)0x0) {\n    refresh_needed = true;\n  }" if (parenthesized_expression "(openfile->mark != (filestruct *)0x0)" ( (binary_expression "openfile->mark != (filestruct *)0x0" (field_expression "openfile->mark" identifier -> field_identifier) != (cast_expression "(filestruct *)0x0" ( (type_descriptor "filestruct *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    refresh_needed = true;\n  }" { (expression_statement "refresh_needed = true;" (assignment_expression "refresh_needed = true" identifier = true) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0002c8b0(void)\n\n{\n  if (DAT_0006b880 != '\0') {\n    FUN_0004ac30(PTR_DAT_0006aed0);\n    DAT_0006b880 = '\0';\n  }\n  if (*(int *)(DAT_0006b640 + 0x30) != 0) {\n    DAT_0006b604 = 1;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0002c8b0(void)\n\n{\n  if (DAT_0006b880 != '\0') {\n    FUN_0004ac30(PTR_DAT_0006aed0);\n    DAT_0006b880 = '\0';\n  }\n  if (*(int *)(DAT_0006b640 + 0x30) != 0) {\n    DAT_0006b604 = 1;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0002c8b0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  if (DAT_0006b880 != '\0') {\n    FUN_0004ac30(PTR_DAT_0006aed0);\n    DAT_0006b880 = '\0';\n  }\n  if (*(int *)(DAT_0006b640 + 0x30) != 0) {\n    DAT_0006b604 = 1;\n  }\n  return;\n}" { (if_statement "if (DAT_0006b880 != '\0') {\n    FUN_0004ac30(PTR_DAT_0006aed0);\n    DAT_0006b880 = '\0';\n  }" if (parenthesized_expression "(DAT_0006b880 != '\0')" ( (binary_expression "DAT_0006b880 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_0004ac30(PTR_DAT_0006aed0);\n    DAT_0006b880 = '\0';\n  }" { (expression_statement "FUN_0004ac30(PTR_DAT_0006aed0);" (call_expression "FUN_0004ac30(PTR_DAT_0006aed0)" identifier (argument_list "(PTR_DAT_0006aed0)" ( identifier ))) ;) (expression_statement "DAT_0006b880 = '\0';" (assignment_expression "DAT_0006b880 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) })) (if_statement "if (*(int *)(DAT_0006b640 + 0x30) != 0) {\n    DAT_0006b604 = 1;\n  }" if (parenthesized_expression "(*(int *)(DAT_0006b640 + 0x30) != 0)" ( (binary_expression "*(int *)(DAT_0006b640 + 0x30) != 0" (pointer_expression "*(int *)(DAT_0006b640 + 0x30)" * (cast_expression "(int *)(DAT_0006b640 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x30)" ( (binary_expression "DAT_0006b640 + 0x30" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    DAT_0006b604 = 1;\n  }" { (expression_statement "DAT_0006b604 = 1;" (assignment_expression "DAT_0006b604 = 1" 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 != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0002c8b0(void)\n\n{\n  if (DAT_0006b880 != '\0') {\n    FUN_0004ac30(PTR_DAT_0006aed0);\n    DAT_0006b880 = '\0';\n  }\n  if (*(int *)(DAT_0006b640 + 0x30) != 0) {\n    DAT_0006b604 = 1;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0002c8b0(void)" (identifier "FUN_0002c8b0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  if (DAT_0006b880 != '\0') {\n    FUN_0004ac30(PTR_DAT_0006aed0);\n    DAT_0006b880 = '\0';\n  }\n  if (*(int *)(DAT_0006b640 + 0x30) != 0) {\n    DAT_0006b604 = 1;\n  }\n  return;\n}" ({ "{") (if_statement "if (DAT_0006b880 != '\0') {\n    FUN_0004ac30(PTR_DAT_0006aed0);\n    DAT_0006b880 = '\0';\n  }" (if "if") (parenthesized_expression "(DAT_0006b880 != '\0')" (( "(") (binary_expression "DAT_0006b880 != '\0'" (identifier "DAT_0006b880") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    FUN_0004ac30(PTR_DAT_0006aed0);\n    DAT_0006b880 = '\0';\n  }" ({ "{") (expression_statement "FUN_0004ac30(PTR_DAT_0006aed0);" (call_expression "FUN_0004ac30(PTR_DAT_0006aed0)" (identifier "FUN_0004ac30") (argument_list "(PTR_DAT_0006aed0)" (( "(") (identifier "PTR_DAT_0006aed0") () ")"))) (; ";")) (expression_statement "DAT_0006b880 = '\0';" (assignment_expression "DAT_0006b880 = '\0'" (identifier "DAT_0006b880") (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(DAT_0006b640 + 0x30) != 0) {\n    DAT_0006b604 = 1;\n  }" (if "if") (parenthesized_expression "(*(int *)(DAT_0006b640 + 0x30) != 0)" (( "(") (binary_expression "*(int *)(DAT_0006b640 + 0x30) != 0" (pointer_expression "*(int *)(DAT_0006b640 + 0x30)" (* "*") (cast_expression "(int *)(DAT_0006b640 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0006b640 + 0x30)" (( "(") (binary_expression "DAT_0006b640 + 0x30" (identifier "DAT_0006b640") (+ "+") (number_literal "0x30")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    DAT_0006b604 = 1;\n  }" ({ "{") (expression_statement "DAT_0006b604 = 1;" (assignment_expression "DAT_0006b604 = 1" (identifier "DAT_0006b604") (= "=") (number_literal "1")) (; ";")) (} "}"))) (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 (have_compiled_regexp) {
    var_1((type_1 *)PTR_search_regexp_0006aed0);
    have_compiled_regexp = false;
  }
  if (openfile->mark != (type_2 *)0x0) {
    refresh_needed = true;
  }
  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: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (char_literal (escape_sequence)))))) (if_statement condition: (parenthesized_expression (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))) consequence: (compound_statement (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_0006b880 != '\0') {
    FUN_0004ac30(PTR_DAT_0006aed0);
    DAT_0006b880 = '\0';
  }
  if (*(int *)(DAT_0006b640 + 0x30) != 0) {
    DAT_0006b604 = 1;
  }
  return;
}

