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

void do_para_begin(void)

{
  _Bool _Var1;
  filestruct *line;
  
  line = openfile->fileage;
  if (openfile->current != line) {
    line = openfile->current->prev;
    openfile->current = line;
  }
  while( true ) {
    _Var1 = begpar(line,0);
    if (_Var1) break;
    line = openfile->current->prev;
    openfile->current = line;
  }
  openfile->current_x = 0;
  return;
}



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

void FUN_00024850(void)

{
  char cVar1;
  int iVar2;
  
  iVar2 = *(int *)(DAT_0006b640 + 4);
  if (*(int *)(DAT_0006b640 + 0x10) != iVar2) {
    iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);
    *(int *)(DAT_0006b640 + 0x10) = iVar2;
  }
  while( true ) {
    cVar1 = FUN_00031cd0(iVar2,0);
    if (cVar1 != '\0') break;
    iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);
    *(int *)(DAT_0006b640 + 0x10) = iVar2;
  }
  *(undefined4 *)(DAT_0006b640 + 0x1c) = 0;
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00014e20
ADD EBX,0x46379
SUB ESP,0x4
LEA ESI,[EBX + 0xa70]
MOV EDX,dword ptr [ESI]
MOV ECX,dword ptr [EDX + 0x10]
MOV EAX,dword ptr [EDX + 0x4]
CMP ECX,EAX
JZ 0x0002488b
MOV EAX,dword ptr [ECX + 0xc]
MOV dword ptr [EDX + 0x10],EAX
JMP 0x0002488b
MOV EDX,dword ptr [ESI]
MOV EAX,dword ptr [EDX + 0x10]
MOV EAX,dword ptr [EAX + 0xc]
MOV dword ptr [EDX + 0x10],EAX
SUB ESP,0x8
PUSH 0x0
PUSH EAX
CALL 0x00031cd0
ADD ESP,0x10
TEST AL,AL
JZ 0x00024880
MOV EAX,dword ptr [ESI]
MOV dword ptr [EAX + 0x1c],0x0
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00024850(void)\n\n{\n  char cVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(DAT_0006b640 + 4);\n  if (*(int *)(DAT_0006b640 + 0x10) != iVar2) {\n    iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);\n    *(int *)(DAT_0006b640 + 0x10) = iVar2;\n  }\n  while( true ) {\n    cVar1 = FUN_00031cd0(iVar2,0);\n    if (cVar1 != '\0') break;\n    iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);\n    *(int *)(DAT_0006b640 + 0x10) = iVar2;\n  }\n  *(undefined4 *)(DAT_0006b640 + 0x1c) = 0;\n  return;\n}\n\n" comment (function_definition "void FUN_00024850(void)\n\n{\n  char cVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(DAT_0006b640 + 4);\n  if (*(int *)(DAT_0006b640 + 0x10) != iVar2) {\n    iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);\n    *(int *)(DAT_0006b640 + 0x10) = iVar2;\n  }\n  while( true ) {\n    cVar1 = FUN_00031cd0(iVar2,0);\n    if (cVar1 != '\0') break;\n    iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);\n    *(int *)(DAT_0006b640 + 0x10) = iVar2;\n  }\n  *(undefined4 *)(DAT_0006b640 + 0x1c) = 0;\n  return;\n}" primitive_type (function_declarator "FUN_00024850(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(DAT_0006b640 + 4);\n  if (*(int *)(DAT_0006b640 + 0x10) != iVar2) {\n    iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);\n    *(int *)(DAT_0006b640 + 0x10) = iVar2;\n  }\n  while( true ) {\n    cVar1 = FUN_00031cd0(iVar2,0);\n    if (cVar1 != '\0') break;\n    iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);\n    *(int *)(DAT_0006b640 + 0x10) = iVar2;\n  }\n  *(undefined4 *)(DAT_0006b640 + 0x1c) = 0;\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(DAT_0006b640 + 4);" (assignment_expression "iVar2 = *(int *)(DAT_0006b640 + 4)" identifier = (pointer_expression "*(int *)(DAT_0006b640 + 4)" * (cast_expression "(int *)(DAT_0006b640 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 4)" ( (binary_expression "DAT_0006b640 + 4" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(DAT_0006b640 + 0x10) != iVar2) {\n    iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);\n    *(int *)(DAT_0006b640 + 0x10) = iVar2;\n  }" if (parenthesized_expression "(*(int *)(DAT_0006b640 + 0x10) != iVar2)" ( (binary_expression "*(int *)(DAT_0006b640 + 0x10) != iVar2" (pointer_expression "*(int *)(DAT_0006b640 + 0x10)" * (cast_expression "(int *)(DAT_0006b640 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x10)" ( (binary_expression "DAT_0006b640 + 0x10" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n    iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);\n    *(int *)(DAT_0006b640 + 0x10) = iVar2;\n  }" { (expression_statement "iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);" (assignment_expression "iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc)" identifier = (pointer_expression "*(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc)" * (cast_expression "(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_0006b640 + 0x10) + 0xc)" ( (binary_expression "*(int *)(DAT_0006b640 + 0x10) + 0xc" (pointer_expression "*(int *)(DAT_0006b640 + 0x10)" * (cast_expression "(int *)(DAT_0006b640 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x10)" ( (binary_expression "DAT_0006b640 + 0x10" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "*(int *)(DAT_0006b640 + 0x10) = iVar2;" (assignment_expression "*(int *)(DAT_0006b640 + 0x10) = iVar2" (pointer_expression "*(int *)(DAT_0006b640 + 0x10)" * (cast_expression "(int *)(DAT_0006b640 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x10)" ( (binary_expression "DAT_0006b640 + 0x10" identifier + number_literal) )))) = identifier) ;) })) (while_statement "while( true ) {\n    cVar1 = FUN_00031cd0(iVar2,0);\n    if (cVar1 != '\0') break;\n    iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);\n    *(int *)(DAT_0006b640 + 0x10) = iVar2;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    cVar1 = FUN_00031cd0(iVar2,0);\n    if (cVar1 != '\0') break;\n    iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);\n    *(int *)(DAT_0006b640 + 0x10) = iVar2;\n  }" { (expression_statement "cVar1 = FUN_00031cd0(iVar2,0);" (assignment_expression "cVar1 = FUN_00031cd0(iVar2,0)" identifier = (call_expression "FUN_00031cd0(iVar2,0)" identifier (argument_list "(iVar2,0)" ( identifier , number_literal )))) ;) (if_statement "if (cVar1 != '\0') break;" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);" (assignment_expression "iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc)" identifier = (pointer_expression "*(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc)" * (cast_expression "(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_0006b640 + 0x10) + 0xc)" ( (binary_expression "*(int *)(DAT_0006b640 + 0x10) + 0xc" (pointer_expression "*(int *)(DAT_0006b640 + 0x10)" * (cast_expression "(int *)(DAT_0006b640 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x10)" ( (binary_expression "DAT_0006b640 + 0x10" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "*(int *)(DAT_0006b640 + 0x10) = iVar2;" (assignment_expression "*(int *)(DAT_0006b640 + 0x10) = iVar2" (pointer_expression "*(int *)(DAT_0006b640 + 0x10)" * (cast_expression "(int *)(DAT_0006b640 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x10)" ( (binary_expression "DAT_0006b640 + 0x10" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "*(undefined4 *)(DAT_0006b640 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(DAT_0006b640 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(DAT_0006b640 + 0x1c)" * (cast_expression "(undefined4 *)(DAT_0006b640 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x1c)" ( (binary_expression "DAT_0006b640 + 0x1c" identifier + number_literal) )))) = 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 do_para_begin(void)\n\n{\n  _Bool _Var1;\n  filestruct *line;\n  \n  line = openfile->fileage;\n  if (openfile->current != line) {\n    line = openfile->current->prev;\n    openfile->current = line;\n  }\n  while( true ) {\n    _Var1 = begpar(line,0);\n    if (_Var1) break;\n    line = openfile->current->prev;\n    openfile->current = line;\n  }\n  openfile->current_x = 0;\n  return;\n}\n\n" comment comment (function_definition "void do_para_begin(void)\n\n{\n  _Bool _Var1;\n  filestruct *line;\n  \n  line = openfile->fileage;\n  if (openfile->current != line) {\n    line = openfile->current->prev;\n    openfile->current = line;\n  }\n  while( true ) {\n    _Var1 = begpar(line,0);\n    if (_Var1) break;\n    line = openfile->current->prev;\n    openfile->current = line;\n  }\n  openfile->current_x = 0;\n  return;\n}" primitive_type (function_declarator "do_para_begin(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  _Bool _Var1;\n  filestruct *line;\n  \n  line = openfile->fileage;\n  if (openfile->current != line) {\n    line = openfile->current->prev;\n    openfile->current = line;\n  }\n  while( true ) {\n    _Var1 = begpar(line,0);\n    if (_Var1) break;\n    line = openfile->current->prev;\n    openfile->current = line;\n  }\n  openfile->current_x = 0;\n  return;\n}" { (declaration "_Bool _Var1;" type_identifier identifier ;) (declaration "filestruct *line;" type_identifier (pointer_declarator "*line" * identifier) ;) (expression_statement "line = openfile->fileage;" (assignment_expression "line = openfile->fileage" identifier = (field_expression "openfile->fileage" identifier -> field_identifier)) ;) (if_statement "if (openfile->current != line) {\n    line = openfile->current->prev;\n    openfile->current = line;\n  }" if (parenthesized_expression "(openfile->current != line)" ( (binary_expression "openfile->current != line" (field_expression "openfile->current" identifier -> field_identifier) != identifier) )) (compound_statement "{\n    line = openfile->current->prev;\n    openfile->current = line;\n  }" { (expression_statement "line = openfile->current->prev;" (assignment_expression "line = openfile->current->prev" identifier = (field_expression "openfile->current->prev" (field_expression "openfile->current" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "openfile->current = line;" (assignment_expression "openfile->current = line" (field_expression "openfile->current" identifier -> field_identifier) = identifier) ;) })) (while_statement "while( true ) {\n    _Var1 = begpar(line,0);\n    if (_Var1) break;\n    line = openfile->current->prev;\n    openfile->current = line;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    _Var1 = begpar(line,0);\n    if (_Var1) break;\n    line = openfile->current->prev;\n    openfile->current = line;\n  }" { (expression_statement "_Var1 = begpar(line,0);" (assignment_expression "_Var1 = begpar(line,0)" identifier = (call_expression "begpar(line,0)" identifier (argument_list "(line,0)" ( identifier , number_literal )))) ;) (if_statement "if (_Var1) break;" if (parenthesized_expression "(_Var1)" ( identifier )) (break_statement "break;" break ;)) (expression_statement "line = openfile->current->prev;" (assignment_expression "line = openfile->current->prev" identifier = (field_expression "openfile->current->prev" (field_expression "openfile->current" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "openfile->current = line;" (assignment_expression "openfile->current = line" (field_expression "openfile->current" identifier -> field_identifier) = identifier) ;) })) (expression_statement "openfile->current_x = 0;" (assignment_expression "openfile->current_x = 0" (field_expression "openfile->current_x" identifier -> field_identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00024850(void)\n\n{\n  char cVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(DAT_0006b640 + 4);\n  if (*(int *)(DAT_0006b640 + 0x10) != iVar2) {\n    iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);\n    *(int *)(DAT_0006b640 + 0x10) = iVar2;\n  }\n  while( true ) {\n    cVar1 = FUN_00031cd0(iVar2,0);\n    if (cVar1 != '\0') break;\n    iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);\n    *(int *)(DAT_0006b640 + 0x10) = iVar2;\n  }\n  *(undefined4 *)(DAT_0006b640 + 0x1c) = 0;\n  return;\n}\n\n" (function_definition "void FUN_00024850(void)\n\n{\n  char cVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(DAT_0006b640 + 4);\n  if (*(int *)(DAT_0006b640 + 0x10) != iVar2) {\n    iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);\n    *(int *)(DAT_0006b640 + 0x10) = iVar2;\n  }\n  while( true ) {\n    cVar1 = FUN_00031cd0(iVar2,0);\n    if (cVar1 != '\0') break;\n    iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);\n    *(int *)(DAT_0006b640 + 0x10) = iVar2;\n  }\n  *(undefined4 *)(DAT_0006b640 + 0x1c) = 0;\n  return;\n}" primitive_type (function_declarator "FUN_00024850(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(DAT_0006b640 + 4);\n  if (*(int *)(DAT_0006b640 + 0x10) != iVar2) {\n    iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);\n    *(int *)(DAT_0006b640 + 0x10) = iVar2;\n  }\n  while( true ) {\n    cVar1 = FUN_00031cd0(iVar2,0);\n    if (cVar1 != '\0') break;\n    iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);\n    *(int *)(DAT_0006b640 + 0x10) = iVar2;\n  }\n  *(undefined4 *)(DAT_0006b640 + 0x1c) = 0;\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(DAT_0006b640 + 4);" (assignment_expression "iVar2 = *(int *)(DAT_0006b640 + 4)" identifier = (pointer_expression "*(int *)(DAT_0006b640 + 4)" * (cast_expression "(int *)(DAT_0006b640 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 4)" ( (binary_expression "DAT_0006b640 + 4" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(DAT_0006b640 + 0x10) != iVar2) {\n    iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);\n    *(int *)(DAT_0006b640 + 0x10) = iVar2;\n  }" if (parenthesized_expression "(*(int *)(DAT_0006b640 + 0x10) != iVar2)" ( (binary_expression "*(int *)(DAT_0006b640 + 0x10) != iVar2" (pointer_expression "*(int *)(DAT_0006b640 + 0x10)" * (cast_expression "(int *)(DAT_0006b640 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x10)" ( (binary_expression "DAT_0006b640 + 0x10" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n    iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);\n    *(int *)(DAT_0006b640 + 0x10) = iVar2;\n  }" { (expression_statement "iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);" (assignment_expression "iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc)" identifier = (pointer_expression "*(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc)" * (cast_expression "(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_0006b640 + 0x10) + 0xc)" ( (binary_expression "*(int *)(DAT_0006b640 + 0x10) + 0xc" (pointer_expression "*(int *)(DAT_0006b640 + 0x10)" * (cast_expression "(int *)(DAT_0006b640 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x10)" ( (binary_expression "DAT_0006b640 + 0x10" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "*(int *)(DAT_0006b640 + 0x10) = iVar2;" (assignment_expression "*(int *)(DAT_0006b640 + 0x10) = iVar2" (pointer_expression "*(int *)(DAT_0006b640 + 0x10)" * (cast_expression "(int *)(DAT_0006b640 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x10)" ( (binary_expression "DAT_0006b640 + 0x10" identifier + number_literal) )))) = identifier) ;) })) (while_statement "while( true ) {\n    cVar1 = FUN_00031cd0(iVar2,0);\n    if (cVar1 != '\0') break;\n    iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);\n    *(int *)(DAT_0006b640 + 0x10) = iVar2;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    cVar1 = FUN_00031cd0(iVar2,0);\n    if (cVar1 != '\0') break;\n    iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);\n    *(int *)(DAT_0006b640 + 0x10) = iVar2;\n  }" { (expression_statement "cVar1 = FUN_00031cd0(iVar2,0);" (assignment_expression "cVar1 = FUN_00031cd0(iVar2,0)" identifier = (call_expression "FUN_00031cd0(iVar2,0)" identifier (argument_list "(iVar2,0)" ( identifier , number_literal )))) ;) (if_statement "if (cVar1 != '\0') break;" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);" (assignment_expression "iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc)" identifier = (pointer_expression "*(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc)" * (cast_expression "(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_0006b640 + 0x10) + 0xc)" ( (binary_expression "*(int *)(DAT_0006b640 + 0x10) + 0xc" (pointer_expression "*(int *)(DAT_0006b640 + 0x10)" * (cast_expression "(int *)(DAT_0006b640 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x10)" ( (binary_expression "DAT_0006b640 + 0x10" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "*(int *)(DAT_0006b640 + 0x10) = iVar2;" (assignment_expression "*(int *)(DAT_0006b640 + 0x10) = iVar2" (pointer_expression "*(int *)(DAT_0006b640 + 0x10)" * (cast_expression "(int *)(DAT_0006b640 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x10)" ( (binary_expression "DAT_0006b640 + 0x10" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "*(undefined4 *)(DAT_0006b640 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(DAT_0006b640 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(DAT_0006b640 + 0x1c)" * (cast_expression "(undefined4 *)(DAT_0006b640 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x1c)" ( (binary_expression "DAT_0006b640 + 0x1c" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_00024850(void)\n\n{\n  char cVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(DAT_0006b640 + 4);\n  if (*(int *)(DAT_0006b640 + 0x10) != iVar2) {\n    iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);\n    *(int *)(DAT_0006b640 + 0x10) = iVar2;\n  }\n  while( true ) {\n    cVar1 = FUN_00031cd0(iVar2,0);\n    if (cVar1 != '\0') break;\n    iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);\n    *(int *)(DAT_0006b640 + 0x10) = iVar2;\n  }\n  *(undefined4 *)(DAT_0006b640 + 0x1c) = 0;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00024850(void)" (identifier "FUN_00024850") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(DAT_0006b640 + 4);\n  if (*(int *)(DAT_0006b640 + 0x10) != iVar2) {\n    iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);\n    *(int *)(DAT_0006b640 + 0x10) = iVar2;\n  }\n  while( true ) {\n    cVar1 = FUN_00031cd0(iVar2,0);\n    if (cVar1 != '\0') break;\n    iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);\n    *(int *)(DAT_0006b640 + 0x10) = iVar2;\n  }\n  *(undefined4 *)(DAT_0006b640 + 0x1c) = 0;\n  return;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar2 = *(int *)(DAT_0006b640 + 4);" (assignment_expression "iVar2 = *(int *)(DAT_0006b640 + 4)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(DAT_0006b640 + 4)" (* "*") (cast_expression "(int *)(DAT_0006b640 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0006b640 + 4)" (( "(") (binary_expression "DAT_0006b640 + 4" (identifier "DAT_0006b640") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (*(int *)(DAT_0006b640 + 0x10) != iVar2) {\n    iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);\n    *(int *)(DAT_0006b640 + 0x10) = iVar2;\n  }" (if "if") (parenthesized_expression "(*(int *)(DAT_0006b640 + 0x10) != iVar2)" (( "(") (binary_expression "*(int *)(DAT_0006b640 + 0x10) != iVar2" (pointer_expression "*(int *)(DAT_0006b640 + 0x10)" (* "*") (cast_expression "(int *)(DAT_0006b640 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0006b640 + 0x10)" (( "(") (binary_expression "DAT_0006b640 + 0x10" (identifier "DAT_0006b640") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (identifier "iVar2")) () ")")) (compound_statement "{\n    iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);\n    *(int *)(DAT_0006b640 + 0x10) = iVar2;\n  }" ({ "{") (expression_statement "iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);" (assignment_expression "iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc)" (* "*") (cast_expression "(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(DAT_0006b640 + 0x10) + 0xc)" (( "(") (binary_expression "*(int *)(DAT_0006b640 + 0x10) + 0xc" (pointer_expression "*(int *)(DAT_0006b640 + 0x10)" (* "*") (cast_expression "(int *)(DAT_0006b640 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0006b640 + 0x10)" (( "(") (binary_expression "DAT_0006b640 + 0x10" (identifier "DAT_0006b640") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "*(int *)(DAT_0006b640 + 0x10) = iVar2;" (assignment_expression "*(int *)(DAT_0006b640 + 0x10) = iVar2" (pointer_expression "*(int *)(DAT_0006b640 + 0x10)" (* "*") (cast_expression "(int *)(DAT_0006b640 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0006b640 + 0x10)" (( "(") (binary_expression "DAT_0006b640 + 0x10" (identifier "DAT_0006b640") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (} "}"))) (while_statement "while( true ) {\n    cVar1 = FUN_00031cd0(iVar2,0);\n    if (cVar1 != '\0') break;\n    iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);\n    *(int *)(DAT_0006b640 + 0x10) = iVar2;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    cVar1 = FUN_00031cd0(iVar2,0);\n    if (cVar1 != '\0') break;\n    iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);\n    *(int *)(DAT_0006b640 + 0x10) = iVar2;\n  }" ({ "{") (expression_statement "cVar1 = FUN_00031cd0(iVar2,0);" (assignment_expression "cVar1 = FUN_00031cd0(iVar2,0)" (identifier "cVar1") (= "=") (call_expression "FUN_00031cd0(iVar2,0)" (identifier "FUN_00031cd0") (argument_list "(iVar2,0)" (( "(") (identifier "iVar2") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (cVar1 != '\0') break;" (if "if") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);" (assignment_expression "iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc)" (* "*") (cast_expression "(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(DAT_0006b640 + 0x10) + 0xc)" (( "(") (binary_expression "*(int *)(DAT_0006b640 + 0x10) + 0xc" (pointer_expression "*(int *)(DAT_0006b640 + 0x10)" (* "*") (cast_expression "(int *)(DAT_0006b640 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0006b640 + 0x10)" (( "(") (binary_expression "DAT_0006b640 + 0x10" (identifier "DAT_0006b640") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "*(int *)(DAT_0006b640 + 0x10) = iVar2;" (assignment_expression "*(int *)(DAT_0006b640 + 0x10) = iVar2" (pointer_expression "*(int *)(DAT_0006b640 + 0x10)" (* "*") (cast_expression "(int *)(DAT_0006b640 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0006b640 + 0x10)" (( "(") (binary_expression "DAT_0006b640 + 0x10" (identifier "DAT_0006b640") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(DAT_0006b640 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(DAT_0006b640 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(DAT_0006b640 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(DAT_0006b640 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0006b640 + 0x1c)" (( "(") (binary_expression "DAT_0006b640 + 0x1c" (identifier "DAT_0006b640") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (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)

{
  type_1 _Var1;
  type_2 *var_1;
  
  var_1 = openfile->fileage;
  if (openfile->current != var_1) {
    var_1 = openfile->current->prev;
    openfile->current = var_1;
  }
  while( true ) {
    _Var1 = var_2(var_1,0);
    if (_Var1) break;
    var_1 = openfile->current->prev;
    openfile->current = var_1;
  }
  openfile->current_x = 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 (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (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: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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))))))) (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: (identifier))))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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))))))) (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: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (return_statement))))

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

void MASKED(void)

{
  char cVar1;
  int iVar2;
  
  iVar2 = *(int *)(DAT_0006b640 + 4);
  if (*(int *)(DAT_0006b640 + 0x10) != iVar2) {
    iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);
    *(int *)(DAT_0006b640 + 0x10) = iVar2;
  }
  while( true ) {
    cVar1 = FUN_00031cd0(iVar2,0);
    if (cVar1 != '\0') break;
    iVar2 = *(int *)(*(int *)(DAT_0006b640 + 0x10) + 0xc);
    *(int *)(DAT_0006b640 + 0x10) = iVar2;
  }
  *(undefined4 *)(DAT_0006b640 + 0x1c) = 0;
  return;
}

