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

void reedit_ifile(void *save_ifile)

{
  void *pvVar1;
  void *h;
  int iVar2;
  void *pvVar3;
  
  if (save_ifile != (void *)0x0) {
    hold_ifile(save_ifile,-1);
  }
  pvVar1 = next_ifile(save_ifile);
  h = prev_ifile(save_ifile);
  if ((save_ifile == curr_ifile) || (iVar2 = edit_ifile(save_ifile), iVar2 == 0)) {
    return;
  }
  if (pvVar1 != (void *)0x0) {
    do {
      pvVar3 = next_ifile(pvVar1);
      if (pvVar1 == curr_ifile) {
        return;
      }
      iVar2 = edit_ifile(pvVar1);
      if (iVar2 == 0) {
        return;
      }
    } while ((pvVar3 != (void *)0x0) && (pvVar1 = pvVar3, ((byte)sigs & 3) == 0));
  }
  if (h != (void *)0x0) {
    do {
      pvVar1 = prev_ifile(h);
      if (h == curr_ifile) {
        return;
      }
      iVar2 = edit_ifile(h);
      if (iVar2 == 0) {
        return;
      }
    } while ((pvVar1 != (void *)0x0) && (h = pvVar1, ((byte)sigs & 3) == 0));
  }
                    /* WARNING: Subroutine does not return */
  quit(1);
}



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

void FUN_0001f5f0(int param_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  
  if (param_1 != 0) {
    FUN_00021a90(param_1,0xffffffff);
  }
  iVar1 = FUN_00021860(param_1);
  iVar2 = FUN_00021890(param_1);
  if ((param_1 == DAT_00044bf8) || (iVar3 = FUN_0001eb60(), iVar3 == 0)) {
    return;
  }
  if (iVar1 != 0) {
    do {
      iVar3 = FUN_00021860(iVar1);
      if (iVar1 == DAT_00044bf8) {
        return;
      }
      iVar1 = FUN_0001eb60();
      if (iVar1 == 0) {
        return;
      }
    } while ((iVar3 != 0) && (iVar1 = iVar3, ((byte)DAT_000489f8 & 3) == 0));
  }
  if (iVar2 != 0) {
    do {
      iVar1 = FUN_00021890(iVar2);
      if (iVar2 == DAT_00044bf8) {
        return;
      }
      iVar2 = FUN_0001eb60();
      if (iVar2 == 0) {
        return;
      }
    } while ((iVar1 != 0) && (iVar2 = iVar1, ((byte)DAT_000489f8 & 3) == 0));
  }
                    /* WARNING: Subroutine does not return */
  FUN_00012bf0(1);
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000129d0
ADD EBX,0x23893
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x30]
TEST ESI,ESI
JZ 0x0001f618
SUB ESP,0x8
PUSH -0x1
PUSH ESI
CALL 0x00021a90
ADD ESP,0x10
SUB ESP,0xc
PUSH ESI
CALL 0x00021860
MOV dword ptr [ESP],ESI
MOV EDI,EAX
CALL 0x00021890
MOV EBP,EAX
LEA EAX,[EBX + 0x1d6c]
MOV dword ptr [ESP + 0x18],EAX
ADD ESP,0x10
CMP ESI,dword ptr [EAX]
JZ 0x0001f68a
MOV EAX,ESI
CALL 0x0001eb60
TEST EAX,EAX
JZ 0x0001f68a
TEST EDI,EDI
JZ 0x0001f698
LEA ESI,[EBX + 0x5b6c]
JMP 0x0001f672
MOV EAX,EDI
CALL 0x0001eb60
TEST EAX,EAX
JZ 0x0001f68a
MOV EDX,dword ptr [ESP + 0xc]
TEST EDX,EDX
JZ 0x0001f698
MOV EDI,EDX
TEST byte ptr [ESI],0x3
JNZ 0x0001f698
SUB ESP,0xc
PUSH EDI
CALL 0x00021860
MOV dword ptr [ESP + 0x1c],EAX
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x8]
CMP EDI,dword ptr [EAX]
JNZ 0x0001f658
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
TEST EBP,EBP
JZ 0x0001f6e0
LEA ESI,[EBX + 0x5b6c]
JMP 0x0001f6be
MOV EAX,EBP
CALL 0x0001eb60
TEST EAX,EAX
JZ 0x0001f68a
TEST EDI,EDI
JZ 0x0001f6e0
MOV EBP,EDI
TEST byte ptr [ESI],0x3
JNZ 0x0001f6e0
SUB ESP,0xc
PUSH EBP
CALL 0x00021890
ADD ESP,0x10
MOV EDI,EAX
MOV EAX,dword ptr [ESP + 0x8]
CMP EBP,dword ptr [EAX]
JNZ 0x0001f6a8
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH 0x1
CALL 0x00012bf0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0001f5f0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_1 != 0) {\n    FUN_00021a90(param_1,0xffffffff);\n  }\n  iVar1 = FUN_00021860(param_1);\n  iVar2 = FUN_00021890(param_1);\n  if ((param_1 == DAT_00044bf8) || (iVar3 = FUN_0001eb60(), iVar3 == 0)) {\n    return;\n  }\n  if (iVar1 != 0) {\n    do {\n      iVar3 = FUN_00021860(iVar1);\n      if (iVar1 == DAT_00044bf8) {\n        return;\n      }\n      iVar1 = FUN_0001eb60();\n      if (iVar1 == 0) {\n        return;\n      }\n    } while ((iVar3 != 0) && (iVar1 = iVar3, ((byte)DAT_000489f8 & 3) == 0));\n  }\n  if (iVar2 != 0) {\n    do {\n      iVar1 = FUN_00021890(iVar2);\n      if (iVar2 == DAT_00044bf8) {\n        return;\n      }\n      iVar2 = FUN_0001eb60();\n      if (iVar2 == 0) {\n        return;\n      }\n    } while ((iVar1 != 0) && (iVar2 = iVar1, ((byte)DAT_000489f8 & 3) == 0));\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00012bf0(1);\n}\n\n" comment (function_definition "void FUN_0001f5f0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_1 != 0) {\n    FUN_00021a90(param_1,0xffffffff);\n  }\n  iVar1 = FUN_00021860(param_1);\n  iVar2 = FUN_00021890(param_1);\n  if ((param_1 == DAT_00044bf8) || (iVar3 = FUN_0001eb60(), iVar3 == 0)) {\n    return;\n  }\n  if (iVar1 != 0) {\n    do {\n      iVar3 = FUN_00021860(iVar1);\n      if (iVar1 == DAT_00044bf8) {\n        return;\n      }\n      iVar1 = FUN_0001eb60();\n      if (iVar1 == 0) {\n        return;\n      }\n    } while ((iVar3 != 0) && (iVar1 = iVar3, ((byte)DAT_000489f8 & 3) == 0));\n  }\n  if (iVar2 != 0) {\n    do {\n      iVar1 = FUN_00021890(iVar2);\n      if (iVar2 == DAT_00044bf8) {\n        return;\n      }\n      iVar2 = FUN_0001eb60();\n      if (iVar2 == 0) {\n        return;\n      }\n    } while ((iVar1 != 0) && (iVar2 = iVar1, ((byte)DAT_000489f8 & 3) == 0));\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00012bf0(1);\n}" primitive_type (function_declarator "FUN_0001f5f0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_1 != 0) {\n    FUN_00021a90(param_1,0xffffffff);\n  }\n  iVar1 = FUN_00021860(param_1);\n  iVar2 = FUN_00021890(param_1);\n  if ((param_1 == DAT_00044bf8) || (iVar3 = FUN_0001eb60(), iVar3 == 0)) {\n    return;\n  }\n  if (iVar1 != 0) {\n    do {\n      iVar3 = FUN_00021860(iVar1);\n      if (iVar1 == DAT_00044bf8) {\n        return;\n      }\n      iVar1 = FUN_0001eb60();\n      if (iVar1 == 0) {\n        return;\n      }\n    } while ((iVar3 != 0) && (iVar1 = iVar3, ((byte)DAT_000489f8 & 3) == 0));\n  }\n  if (iVar2 != 0) {\n    do {\n      iVar1 = FUN_00021890(iVar2);\n      if (iVar2 == DAT_00044bf8) {\n        return;\n      }\n      iVar2 = FUN_0001eb60();\n      if (iVar2 == 0) {\n        return;\n      }\n    } while ((iVar1 != 0) && (iVar2 = iVar1, ((byte)DAT_000489f8 & 3) == 0));\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00012bf0(1);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (param_1 != 0) {\n    FUN_00021a90(param_1,0xffffffff);\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_00021a90(param_1,0xffffffff);\n  }" { (expression_statement "FUN_00021a90(param_1,0xffffffff);" (call_expression "FUN_00021a90(param_1,0xffffffff)" identifier (argument_list "(param_1,0xffffffff)" ( identifier , number_literal ))) ;) })) (expression_statement "iVar1 = FUN_00021860(param_1);" (assignment_expression "iVar1 = FUN_00021860(param_1)" identifier = (call_expression "FUN_00021860(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar2 = FUN_00021890(param_1);" (assignment_expression "iVar2 = FUN_00021890(param_1)" identifier = (call_expression "FUN_00021890(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if ((param_1 == DAT_00044bf8) || (iVar3 = FUN_0001eb60(), iVar3 == 0)) {\n    return;\n  }" if (parenthesized_expression "((param_1 == DAT_00044bf8) || (iVar3 = FUN_0001eb60(), iVar3 == 0))" ( (binary_expression "(param_1 == DAT_00044bf8) || (iVar3 = FUN_0001eb60(), iVar3 == 0)" (parenthesized_expression "(param_1 == DAT_00044bf8)" ( (binary_expression "param_1 == DAT_00044bf8" identifier == identifier) )) || (parenthesized_expression "(iVar3 = FUN_0001eb60(), iVar3 == 0)" ( (comma_expression "iVar3 = FUN_0001eb60(), iVar3 == 0" (assignment_expression "iVar3 = FUN_0001eb60()" identifier = (call_expression "FUN_0001eb60()" identifier (argument_list "()" ( )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (if_statement "if (iVar1 != 0) {\n    do {\n      iVar3 = FUN_00021860(iVar1);\n      if (iVar1 == DAT_00044bf8) {\n        return;\n      }\n      iVar1 = FUN_0001eb60();\n      if (iVar1 == 0) {\n        return;\n      }\n    } while ((iVar3 != 0) && (iVar1 = iVar3, ((byte)DAT_000489f8 & 3) == 0));\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      iVar3 = FUN_00021860(iVar1);\n      if (iVar1 == DAT_00044bf8) {\n        return;\n      }\n      iVar1 = FUN_0001eb60();\n      if (iVar1 == 0) {\n        return;\n      }\n    } while ((iVar3 != 0) && (iVar1 = iVar3, ((byte)DAT_000489f8 & 3) == 0));\n  }" { (do_statement "do {\n      iVar3 = FUN_00021860(iVar1);\n      if (iVar1 == DAT_00044bf8) {\n        return;\n      }\n      iVar1 = FUN_0001eb60();\n      if (iVar1 == 0) {\n        return;\n      }\n    } while ((iVar3 != 0) && (iVar1 = iVar3, ((byte)DAT_000489f8 & 3) == 0));" do (compound_statement "{\n      iVar3 = FUN_00021860(iVar1);\n      if (iVar1 == DAT_00044bf8) {\n        return;\n      }\n      iVar1 = FUN_0001eb60();\n      if (iVar1 == 0) {\n        return;\n      }\n    }" { (expression_statement "iVar3 = FUN_00021860(iVar1);" (assignment_expression "iVar3 = FUN_00021860(iVar1)" identifier = (call_expression "FUN_00021860(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (if_statement "if (iVar1 == DAT_00044bf8) {\n        return;\n      }" if (parenthesized_expression "(iVar1 == DAT_00044bf8)" ( (binary_expression "iVar1 == DAT_00044bf8" identifier == identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "iVar1 = FUN_0001eb60();" (assignment_expression "iVar1 = FUN_0001eb60()" identifier = (call_expression "FUN_0001eb60()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n        return;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) }) while (parenthesized_expression "((iVar3 != 0) && (iVar1 = iVar3, ((byte)DAT_000489f8 & 3) == 0))" ( (binary_expression "(iVar3 != 0) && (iVar1 = iVar3, ((byte)DAT_000489f8 & 3) == 0)" (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 = iVar3, ((byte)DAT_000489f8 & 3) == 0)" ( (comma_expression "iVar1 = iVar3, ((byte)DAT_000489f8 & 3) == 0" (assignment_expression "iVar1 = iVar3" identifier = identifier) , (binary_expression "((byte)DAT_000489f8 & 3) == 0" (parenthesized_expression "((byte)DAT_000489f8 & 3)" ( (binary_expression "(byte)DAT_000489f8 & 3" (cast_expression "(byte)DAT_000489f8" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )) == number_literal)) ))) )) ;) })) (if_statement "if (iVar2 != 0) {\n    do {\n      iVar1 = FUN_00021890(iVar2);\n      if (iVar2 == DAT_00044bf8) {\n        return;\n      }\n      iVar2 = FUN_0001eb60();\n      if (iVar2 == 0) {\n        return;\n      }\n    } while ((iVar1 != 0) && (iVar2 = iVar1, ((byte)DAT_000489f8 & 3) == 0));\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      iVar1 = FUN_00021890(iVar2);\n      if (iVar2 == DAT_00044bf8) {\n        return;\n      }\n      iVar2 = FUN_0001eb60();\n      if (iVar2 == 0) {\n        return;\n      }\n    } while ((iVar1 != 0) && (iVar2 = iVar1, ((byte)DAT_000489f8 & 3) == 0));\n  }" { (do_statement "do {\n      iVar1 = FUN_00021890(iVar2);\n      if (iVar2 == DAT_00044bf8) {\n        return;\n      }\n      iVar2 = FUN_0001eb60();\n      if (iVar2 == 0) {\n        return;\n      }\n    } while ((iVar1 != 0) && (iVar2 = iVar1, ((byte)DAT_000489f8 & 3) == 0));" do (compound_statement "{\n      iVar1 = FUN_00021890(iVar2);\n      if (iVar2 == DAT_00044bf8) {\n        return;\n      }\n      iVar2 = FUN_0001eb60();\n      if (iVar2 == 0) {\n        return;\n      }\n    }" { (expression_statement "iVar1 = FUN_00021890(iVar2);" (assignment_expression "iVar1 = FUN_00021890(iVar2)" identifier = (call_expression "FUN_00021890(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) (if_statement "if (iVar2 == DAT_00044bf8) {\n        return;\n      }" if (parenthesized_expression "(iVar2 == DAT_00044bf8)" ( (binary_expression "iVar2 == DAT_00044bf8" identifier == identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "iVar2 = FUN_0001eb60();" (assignment_expression "iVar2 = FUN_0001eb60()" identifier = (call_expression "FUN_0001eb60()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == 0) {\n        return;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) }) while (parenthesized_expression "((iVar1 != 0) && (iVar2 = iVar1, ((byte)DAT_000489f8 & 3) == 0))" ( (binary_expression "(iVar1 != 0) && (iVar2 = iVar1, ((byte)DAT_000489f8 & 3) == 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar2 = iVar1, ((byte)DAT_000489f8 & 3) == 0)" ( (comma_expression "iVar2 = iVar1, ((byte)DAT_000489f8 & 3) == 0" (assignment_expression "iVar2 = iVar1" identifier = identifier) , (binary_expression "((byte)DAT_000489f8 & 3) == 0" (parenthesized_expression "((byte)DAT_000489f8 & 3)" ( (binary_expression "(byte)DAT_000489f8 & 3" (cast_expression "(byte)DAT_000489f8" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )) == number_literal)) ))) )) ;) })) comment (expression_statement "FUN_00012bf0(1);" (call_expression "FUN_00012bf0(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid reedit_ifile(void *save_ifile)\n\n{\n  void *pvVar1;\n  void *h;\n  int iVar2;\n  void *pvVar3;\n  \n  if (save_ifile != (void *)0x0) {\n    hold_ifile(save_ifile,-1);\n  }\n  pvVar1 = next_ifile(save_ifile);\n  h = prev_ifile(save_ifile);\n  if ((save_ifile == curr_ifile) || (iVar2 = edit_ifile(save_ifile), iVar2 == 0)) {\n    return;\n  }\n  if (pvVar1 != (void *)0x0) {\n    do {\n      pvVar3 = next_ifile(pvVar1);\n      if (pvVar1 == curr_ifile) {\n        return;\n      }\n      iVar2 = edit_ifile(pvVar1);\n      if (iVar2 == 0) {\n        return;\n      }\n    } while ((pvVar3 != (void *)0x0) && (pvVar1 = pvVar3, ((byte)sigs & 3) == 0));\n  }\n  if (h != (void *)0x0) {\n    do {\n      pvVar1 = prev_ifile(h);\n      if (h == curr_ifile) {\n        return;\n      }\n      iVar2 = edit_ifile(h);\n      if (iVar2 == 0) {\n        return;\n      }\n    } while ((pvVar1 != (void *)0x0) && (h = pvVar1, ((byte)sigs & 3) == 0));\n  }\n                    /* WARNING: Subroutine does not return */\n  quit(1);\n}\n\n" comment comment (function_definition "void reedit_ifile(void *save_ifile)\n\n{\n  void *pvVar1;\n  void *h;\n  int iVar2;\n  void *pvVar3;\n  \n  if (save_ifile != (void *)0x0) {\n    hold_ifile(save_ifile,-1);\n  }\n  pvVar1 = next_ifile(save_ifile);\n  h = prev_ifile(save_ifile);\n  if ((save_ifile == curr_ifile) || (iVar2 = edit_ifile(save_ifile), iVar2 == 0)) {\n    return;\n  }\n  if (pvVar1 != (void *)0x0) {\n    do {\n      pvVar3 = next_ifile(pvVar1);\n      if (pvVar1 == curr_ifile) {\n        return;\n      }\n      iVar2 = edit_ifile(pvVar1);\n      if (iVar2 == 0) {\n        return;\n      }\n    } while ((pvVar3 != (void *)0x0) && (pvVar1 = pvVar3, ((byte)sigs & 3) == 0));\n  }\n  if (h != (void *)0x0) {\n    do {\n      pvVar1 = prev_ifile(h);\n      if (h == curr_ifile) {\n        return;\n      }\n      iVar2 = edit_ifile(h);\n      if (iVar2 == 0) {\n        return;\n      }\n    } while ((pvVar1 != (void *)0x0) && (h = pvVar1, ((byte)sigs & 3) == 0));\n  }\n                    /* WARNING: Subroutine does not return */\n  quit(1);\n}" primitive_type (function_declarator "reedit_ifile(void *save_ifile)" identifier (parameter_list "(void *save_ifile)" ( (parameter_declaration "void *save_ifile" primitive_type (pointer_declarator "*save_ifile" * identifier)) ))) (compound_statement "{\n  void *pvVar1;\n  void *h;\n  int iVar2;\n  void *pvVar3;\n  \n  if (save_ifile != (void *)0x0) {\n    hold_ifile(save_ifile,-1);\n  }\n  pvVar1 = next_ifile(save_ifile);\n  h = prev_ifile(save_ifile);\n  if ((save_ifile == curr_ifile) || (iVar2 = edit_ifile(save_ifile), iVar2 == 0)) {\n    return;\n  }\n  if (pvVar1 != (void *)0x0) {\n    do {\n      pvVar3 = next_ifile(pvVar1);\n      if (pvVar1 == curr_ifile) {\n        return;\n      }\n      iVar2 = edit_ifile(pvVar1);\n      if (iVar2 == 0) {\n        return;\n      }\n    } while ((pvVar3 != (void *)0x0) && (pvVar1 = pvVar3, ((byte)sigs & 3) == 0));\n  }\n  if (h != (void *)0x0) {\n    do {\n      pvVar1 = prev_ifile(h);\n      if (h == curr_ifile) {\n        return;\n      }\n      iVar2 = edit_ifile(h);\n      if (iVar2 == 0) {\n        return;\n      }\n    } while ((pvVar1 != (void *)0x0) && (h = pvVar1, ((byte)sigs & 3) == 0));\n  }\n                    /* WARNING: Subroutine does not return */\n  quit(1);\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "void *h;" primitive_type (pointer_declarator "*h" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (if_statement "if (save_ifile != (void *)0x0) {\n    hold_ifile(save_ifile,-1);\n  }" if (parenthesized_expression "(save_ifile != (void *)0x0)" ( (binary_expression "save_ifile != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    hold_ifile(save_ifile,-1);\n  }" { (expression_statement "hold_ifile(save_ifile,-1);" (call_expression "hold_ifile(save_ifile,-1)" identifier (argument_list "(save_ifile,-1)" ( identifier , number_literal ))) ;) })) (expression_statement "pvVar1 = next_ifile(save_ifile);" (assignment_expression "pvVar1 = next_ifile(save_ifile)" identifier = (call_expression "next_ifile(save_ifile)" identifier (argument_list "(save_ifile)" ( identifier )))) ;) (expression_statement "h = prev_ifile(save_ifile);" (assignment_expression "h = prev_ifile(save_ifile)" identifier = (call_expression "prev_ifile(save_ifile)" identifier (argument_list "(save_ifile)" ( identifier )))) ;) (if_statement "if ((save_ifile == curr_ifile) || (iVar2 = edit_ifile(save_ifile), iVar2 == 0)) {\n    return;\n  }" if (parenthesized_expression "((save_ifile == curr_ifile) || (iVar2 = edit_ifile(save_ifile), iVar2 == 0))" ( (binary_expression "(save_ifile == curr_ifile) || (iVar2 = edit_ifile(save_ifile), iVar2 == 0)" (parenthesized_expression "(save_ifile == curr_ifile)" ( (binary_expression "save_ifile == curr_ifile" identifier == identifier) )) || (parenthesized_expression "(iVar2 = edit_ifile(save_ifile), iVar2 == 0)" ( (comma_expression "iVar2 = edit_ifile(save_ifile), iVar2 == 0" (assignment_expression "iVar2 = edit_ifile(save_ifile)" identifier = (call_expression "edit_ifile(save_ifile)" identifier (argument_list "(save_ifile)" ( identifier )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (if_statement "if (pvVar1 != (void *)0x0) {\n    do {\n      pvVar3 = next_ifile(pvVar1);\n      if (pvVar1 == curr_ifile) {\n        return;\n      }\n      iVar2 = edit_ifile(pvVar1);\n      if (iVar2 == 0) {\n        return;\n      }\n    } while ((pvVar3 != (void *)0x0) && (pvVar1 = pvVar3, ((byte)sigs & 3) == 0));\n  }" if (parenthesized_expression "(pvVar1 != (void *)0x0)" ( (binary_expression "pvVar1 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      pvVar3 = next_ifile(pvVar1);\n      if (pvVar1 == curr_ifile) {\n        return;\n      }\n      iVar2 = edit_ifile(pvVar1);\n      if (iVar2 == 0) {\n        return;\n      }\n    } while ((pvVar3 != (void *)0x0) && (pvVar1 = pvVar3, ((byte)sigs & 3) == 0));\n  }" { (do_statement "do {\n      pvVar3 = next_ifile(pvVar1);\n      if (pvVar1 == curr_ifile) {\n        return;\n      }\n      iVar2 = edit_ifile(pvVar1);\n      if (iVar2 == 0) {\n        return;\n      }\n    } while ((pvVar3 != (void *)0x0) && (pvVar1 = pvVar3, ((byte)sigs & 3) == 0));" do (compound_statement "{\n      pvVar3 = next_ifile(pvVar1);\n      if (pvVar1 == curr_ifile) {\n        return;\n      }\n      iVar2 = edit_ifile(pvVar1);\n      if (iVar2 == 0) {\n        return;\n      }\n    }" { (expression_statement "pvVar3 = next_ifile(pvVar1);" (assignment_expression "pvVar3 = next_ifile(pvVar1)" identifier = (call_expression "next_ifile(pvVar1)" identifier (argument_list "(pvVar1)" ( identifier )))) ;) (if_statement "if (pvVar1 == curr_ifile) {\n        return;\n      }" if (parenthesized_expression "(pvVar1 == curr_ifile)" ( (binary_expression "pvVar1 == curr_ifile" identifier == identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "iVar2 = edit_ifile(pvVar1);" (assignment_expression "iVar2 = edit_ifile(pvVar1)" identifier = (call_expression "edit_ifile(pvVar1)" identifier (argument_list "(pvVar1)" ( identifier )))) ;) (if_statement "if (iVar2 == 0) {\n        return;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) }) while (parenthesized_expression "((pvVar3 != (void *)0x0) && (pvVar1 = pvVar3, ((byte)sigs & 3) == 0))" ( (binary_expression "(pvVar3 != (void *)0x0) && (pvVar1 = pvVar3, ((byte)sigs & 3) == 0)" (parenthesized_expression "(pvVar3 != (void *)0x0)" ( (binary_expression "pvVar3 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pvVar1 = pvVar3, ((byte)sigs & 3) == 0)" ( (comma_expression "pvVar1 = pvVar3, ((byte)sigs & 3) == 0" (assignment_expression "pvVar1 = pvVar3" identifier = identifier) , (binary_expression "((byte)sigs & 3) == 0" (parenthesized_expression "((byte)sigs & 3)" ( (binary_expression "(byte)sigs & 3" (cast_expression "(byte)sigs" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )) == number_literal)) ))) )) ;) })) (if_statement "if (h != (void *)0x0) {\n    do {\n      pvVar1 = prev_ifile(h);\n      if (h == curr_ifile) {\n        return;\n      }\n      iVar2 = edit_ifile(h);\n      if (iVar2 == 0) {\n        return;\n      }\n    } while ((pvVar1 != (void *)0x0) && (h = pvVar1, ((byte)sigs & 3) == 0));\n  }" if (parenthesized_expression "(h != (void *)0x0)" ( (binary_expression "h != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      pvVar1 = prev_ifile(h);\n      if (h == curr_ifile) {\n        return;\n      }\n      iVar2 = edit_ifile(h);\n      if (iVar2 == 0) {\n        return;\n      }\n    } while ((pvVar1 != (void *)0x0) && (h = pvVar1, ((byte)sigs & 3) == 0));\n  }" { (do_statement "do {\n      pvVar1 = prev_ifile(h);\n      if (h == curr_ifile) {\n        return;\n      }\n      iVar2 = edit_ifile(h);\n      if (iVar2 == 0) {\n        return;\n      }\n    } while ((pvVar1 != (void *)0x0) && (h = pvVar1, ((byte)sigs & 3) == 0));" do (compound_statement "{\n      pvVar1 = prev_ifile(h);\n      if (h == curr_ifile) {\n        return;\n      }\n      iVar2 = edit_ifile(h);\n      if (iVar2 == 0) {\n        return;\n      }\n    }" { (expression_statement "pvVar1 = prev_ifile(h);" (assignment_expression "pvVar1 = prev_ifile(h)" identifier = (call_expression "prev_ifile(h)" identifier (argument_list "(h)" ( identifier )))) ;) (if_statement "if (h == curr_ifile) {\n        return;\n      }" if (parenthesized_expression "(h == curr_ifile)" ( (binary_expression "h == curr_ifile" identifier == identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "iVar2 = edit_ifile(h);" (assignment_expression "iVar2 = edit_ifile(h)" identifier = (call_expression "edit_ifile(h)" identifier (argument_list "(h)" ( identifier )))) ;) (if_statement "if (iVar2 == 0) {\n        return;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) }) while (parenthesized_expression "((pvVar1 != (void *)0x0) && (h = pvVar1, ((byte)sigs & 3) == 0))" ( (binary_expression "(pvVar1 != (void *)0x0) && (h = pvVar1, ((byte)sigs & 3) == 0)" (parenthesized_expression "(pvVar1 != (void *)0x0)" ( (binary_expression "pvVar1 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(h = pvVar1, ((byte)sigs & 3) == 0)" ( (comma_expression "h = pvVar1, ((byte)sigs & 3) == 0" (assignment_expression "h = pvVar1" identifier = identifier) , (binary_expression "((byte)sigs & 3) == 0" (parenthesized_expression "((byte)sigs & 3)" ( (binary_expression "(byte)sigs & 3" (cast_expression "(byte)sigs" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )) == number_literal)) ))) )) ;) })) comment (expression_statement "quit(1);" (call_expression "quit(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })))
(translation_unit "void FUN_0001f5f0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_1 != 0) {\n    FUN_00021a90(param_1,0xffffffff);\n  }\n  iVar1 = FUN_00021860(param_1);\n  iVar2 = FUN_00021890(param_1);\n  if ((param_1 == DAT_00044bf8) || (iVar3 = FUN_0001eb60(), iVar3 == 0)) {\n    return;\n  }\n  if (iVar1 != 0) {\n    do {\n      iVar3 = FUN_00021860(iVar1);\n      if (iVar1 == DAT_00044bf8) {\n        return;\n      }\n      iVar1 = FUN_0001eb60();\n      if (iVar1 == 0) {\n        return;\n      }\n    } while ((iVar3 != 0) && (iVar1 = iVar3, ((byte)DAT_000489f8 & 3) == 0));\n  }\n  if (iVar2 != 0) {\n    do {\n      iVar1 = FUN_00021890(iVar2);\n      if (iVar2 == DAT_00044bf8) {\n        return;\n      }\n      iVar2 = FUN_0001eb60();\n      if (iVar2 == 0) {\n        return;\n      }\n    } while ((iVar1 != 0) && (iVar2 = iVar1, ((byte)DAT_000489f8 & 3) == 0));\n  }\n                    \n  FUN_00012bf0(1);\n}\n\n" (function_definition "void FUN_0001f5f0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_1 != 0) {\n    FUN_00021a90(param_1,0xffffffff);\n  }\n  iVar1 = FUN_00021860(param_1);\n  iVar2 = FUN_00021890(param_1);\n  if ((param_1 == DAT_00044bf8) || (iVar3 = FUN_0001eb60(), iVar3 == 0)) {\n    return;\n  }\n  if (iVar1 != 0) {\n    do {\n      iVar3 = FUN_00021860(iVar1);\n      if (iVar1 == DAT_00044bf8) {\n        return;\n      }\n      iVar1 = FUN_0001eb60();\n      if (iVar1 == 0) {\n        return;\n      }\n    } while ((iVar3 != 0) && (iVar1 = iVar3, ((byte)DAT_000489f8 & 3) == 0));\n  }\n  if (iVar2 != 0) {\n    do {\n      iVar1 = FUN_00021890(iVar2);\n      if (iVar2 == DAT_00044bf8) {\n        return;\n      }\n      iVar2 = FUN_0001eb60();\n      if (iVar2 == 0) {\n        return;\n      }\n    } while ((iVar1 != 0) && (iVar2 = iVar1, ((byte)DAT_000489f8 & 3) == 0));\n  }\n                    \n  FUN_00012bf0(1);\n}" primitive_type (function_declarator "FUN_0001f5f0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_1 != 0) {\n    FUN_00021a90(param_1,0xffffffff);\n  }\n  iVar1 = FUN_00021860(param_1);\n  iVar2 = FUN_00021890(param_1);\n  if ((param_1 == DAT_00044bf8) || (iVar3 = FUN_0001eb60(), iVar3 == 0)) {\n    return;\n  }\n  if (iVar1 != 0) {\n    do {\n      iVar3 = FUN_00021860(iVar1);\n      if (iVar1 == DAT_00044bf8) {\n        return;\n      }\n      iVar1 = FUN_0001eb60();\n      if (iVar1 == 0) {\n        return;\n      }\n    } while ((iVar3 != 0) && (iVar1 = iVar3, ((byte)DAT_000489f8 & 3) == 0));\n  }\n  if (iVar2 != 0) {\n    do {\n      iVar1 = FUN_00021890(iVar2);\n      if (iVar2 == DAT_00044bf8) {\n        return;\n      }\n      iVar2 = FUN_0001eb60();\n      if (iVar2 == 0) {\n        return;\n      }\n    } while ((iVar1 != 0) && (iVar2 = iVar1, ((byte)DAT_000489f8 & 3) == 0));\n  }\n                    \n  FUN_00012bf0(1);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if (param_1 != 0) {\n    FUN_00021a90(param_1,0xffffffff);\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_00021a90(param_1,0xffffffff);\n  }" { (expression_statement "FUN_00021a90(param_1,0xffffffff);" (call_expression "FUN_00021a90(param_1,0xffffffff)" identifier (argument_list "(param_1,0xffffffff)" ( identifier , number_literal ))) ;) })) (expression_statement "iVar1 = FUN_00021860(param_1);" (assignment_expression "iVar1 = FUN_00021860(param_1)" identifier = (call_expression "FUN_00021860(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar2 = FUN_00021890(param_1);" (assignment_expression "iVar2 = FUN_00021890(param_1)" identifier = (call_expression "FUN_00021890(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if ((param_1 == DAT_00044bf8) || (iVar3 = FUN_0001eb60(), iVar3 == 0)) {\n    return;\n  }" if (parenthesized_expression "((param_1 == DAT_00044bf8) || (iVar3 = FUN_0001eb60(), iVar3 == 0))" ( (binary_expression "(param_1 == DAT_00044bf8) || (iVar3 = FUN_0001eb60(), iVar3 == 0)" (parenthesized_expression "(param_1 == DAT_00044bf8)" ( (binary_expression "param_1 == DAT_00044bf8" identifier == identifier) )) || (parenthesized_expression "(iVar3 = FUN_0001eb60(), iVar3 == 0)" ( (comma_expression "iVar3 = FUN_0001eb60(), iVar3 == 0" (assignment_expression "iVar3 = FUN_0001eb60()" identifier = (call_expression "FUN_0001eb60()" identifier (argument_list "()" ( )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (if_statement "if (iVar1 != 0) {\n    do {\n      iVar3 = FUN_00021860(iVar1);\n      if (iVar1 == DAT_00044bf8) {\n        return;\n      }\n      iVar1 = FUN_0001eb60();\n      if (iVar1 == 0) {\n        return;\n      }\n    } while ((iVar3 != 0) && (iVar1 = iVar3, ((byte)DAT_000489f8 & 3) == 0));\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      iVar3 = FUN_00021860(iVar1);\n      if (iVar1 == DAT_00044bf8) {\n        return;\n      }\n      iVar1 = FUN_0001eb60();\n      if (iVar1 == 0) {\n        return;\n      }\n    } while ((iVar3 != 0) && (iVar1 = iVar3, ((byte)DAT_000489f8 & 3) == 0));\n  }" { (do_statement "do {\n      iVar3 = FUN_00021860(iVar1);\n      if (iVar1 == DAT_00044bf8) {\n        return;\n      }\n      iVar1 = FUN_0001eb60();\n      if (iVar1 == 0) {\n        return;\n      }\n    } while ((iVar3 != 0) && (iVar1 = iVar3, ((byte)DAT_000489f8 & 3) == 0));" do (compound_statement "{\n      iVar3 = FUN_00021860(iVar1);\n      if (iVar1 == DAT_00044bf8) {\n        return;\n      }\n      iVar1 = FUN_0001eb60();\n      if (iVar1 == 0) {\n        return;\n      }\n    }" { (expression_statement "iVar3 = FUN_00021860(iVar1);" (assignment_expression "iVar3 = FUN_00021860(iVar1)" identifier = (call_expression "FUN_00021860(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (if_statement "if (iVar1 == DAT_00044bf8) {\n        return;\n      }" if (parenthesized_expression "(iVar1 == DAT_00044bf8)" ( (binary_expression "iVar1 == DAT_00044bf8" identifier == identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "iVar1 = FUN_0001eb60();" (assignment_expression "iVar1 = FUN_0001eb60()" identifier = (call_expression "FUN_0001eb60()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n        return;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) }) while (parenthesized_expression "((iVar3 != 0) && (iVar1 = iVar3, ((byte)DAT_000489f8 & 3) == 0))" ( (binary_expression "(iVar3 != 0) && (iVar1 = iVar3, ((byte)DAT_000489f8 & 3) == 0)" (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 = iVar3, ((byte)DAT_000489f8 & 3) == 0)" ( (comma_expression "iVar1 = iVar3, ((byte)DAT_000489f8 & 3) == 0" (assignment_expression "iVar1 = iVar3" identifier = identifier) , (binary_expression "((byte)DAT_000489f8 & 3) == 0" (parenthesized_expression "((byte)DAT_000489f8 & 3)" ( (binary_expression "(byte)DAT_000489f8 & 3" (cast_expression "(byte)DAT_000489f8" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )) == number_literal)) ))) )) ;) })) (if_statement "if (iVar2 != 0) {\n    do {\n      iVar1 = FUN_00021890(iVar2);\n      if (iVar2 == DAT_00044bf8) {\n        return;\n      }\n      iVar2 = FUN_0001eb60();\n      if (iVar2 == 0) {\n        return;\n      }\n    } while ((iVar1 != 0) && (iVar2 = iVar1, ((byte)DAT_000489f8 & 3) == 0));\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      iVar1 = FUN_00021890(iVar2);\n      if (iVar2 == DAT_00044bf8) {\n        return;\n      }\n      iVar2 = FUN_0001eb60();\n      if (iVar2 == 0) {\n        return;\n      }\n    } while ((iVar1 != 0) && (iVar2 = iVar1, ((byte)DAT_000489f8 & 3) == 0));\n  }" { (do_statement "do {\n      iVar1 = FUN_00021890(iVar2);\n      if (iVar2 == DAT_00044bf8) {\n        return;\n      }\n      iVar2 = FUN_0001eb60();\n      if (iVar2 == 0) {\n        return;\n      }\n    } while ((iVar1 != 0) && (iVar2 = iVar1, ((byte)DAT_000489f8 & 3) == 0));" do (compound_statement "{\n      iVar1 = FUN_00021890(iVar2);\n      if (iVar2 == DAT_00044bf8) {\n        return;\n      }\n      iVar2 = FUN_0001eb60();\n      if (iVar2 == 0) {\n        return;\n      }\n    }" { (expression_statement "iVar1 = FUN_00021890(iVar2);" (assignment_expression "iVar1 = FUN_00021890(iVar2)" identifier = (call_expression "FUN_00021890(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) (if_statement "if (iVar2 == DAT_00044bf8) {\n        return;\n      }" if (parenthesized_expression "(iVar2 == DAT_00044bf8)" ( (binary_expression "iVar2 == DAT_00044bf8" identifier == identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "iVar2 = FUN_0001eb60();" (assignment_expression "iVar2 = FUN_0001eb60()" identifier = (call_expression "FUN_0001eb60()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == 0) {\n        return;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) }) while (parenthesized_expression "((iVar1 != 0) && (iVar2 = iVar1, ((byte)DAT_000489f8 & 3) == 0))" ( (binary_expression "(iVar1 != 0) && (iVar2 = iVar1, ((byte)DAT_000489f8 & 3) == 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar2 = iVar1, ((byte)DAT_000489f8 & 3) == 0)" ( (comma_expression "iVar2 = iVar1, ((byte)DAT_000489f8 & 3) == 0" (assignment_expression "iVar2 = iVar1" identifier = identifier) , (binary_expression "((byte)DAT_000489f8 & 3) == 0" (parenthesized_expression "((byte)DAT_000489f8 & 3)" ( (binary_expression "(byte)DAT_000489f8 & 3" (cast_expression "(byte)DAT_000489f8" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )) == number_literal)) ))) )) ;) })) (expression_statement "FUN_00012bf0(1);" (call_expression "FUN_00012bf0(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == IDENT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) )) == LIT)) ))) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) )) == LIT)) ))) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })))
(function_definition "void FUN_0001f5f0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_1 != 0) {\n    FUN_00021a90(param_1,0xffffffff);\n  }\n  iVar1 = FUN_00021860(param_1);\n  iVar2 = FUN_00021890(param_1);\n  if ((param_1 == DAT_00044bf8) || (iVar3 = FUN_0001eb60(), iVar3 == 0)) {\n    return;\n  }\n  if (iVar1 != 0) {\n    do {\n      iVar3 = FUN_00021860(iVar1);\n      if (iVar1 == DAT_00044bf8) {\n        return;\n      }\n      iVar1 = FUN_0001eb60();\n      if (iVar1 == 0) {\n        return;\n      }\n    } while ((iVar3 != 0) && (iVar1 = iVar3, ((byte)DAT_000489f8 & 3) == 0));\n  }\n  if (iVar2 != 0) {\n    do {\n      iVar1 = FUN_00021890(iVar2);\n      if (iVar2 == DAT_00044bf8) {\n        return;\n      }\n      iVar2 = FUN_0001eb60();\n      if (iVar2 == 0) {\n        return;\n      }\n    } while ((iVar1 != 0) && (iVar2 = iVar1, ((byte)DAT_000489f8 & 3) == 0));\n  }\n                    \n  FUN_00012bf0(1);\n}" (primitive_type "void") (function_declarator "FUN_0001f5f0(int param_1)" (identifier "FUN_0001f5f0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  if (param_1 != 0) {\n    FUN_00021a90(param_1,0xffffffff);\n  }\n  iVar1 = FUN_00021860(param_1);\n  iVar2 = FUN_00021890(param_1);\n  if ((param_1 == DAT_00044bf8) || (iVar3 = FUN_0001eb60(), iVar3 == 0)) {\n    return;\n  }\n  if (iVar1 != 0) {\n    do {\n      iVar3 = FUN_00021860(iVar1);\n      if (iVar1 == DAT_00044bf8) {\n        return;\n      }\n      iVar1 = FUN_0001eb60();\n      if (iVar1 == 0) {\n        return;\n      }\n    } while ((iVar3 != 0) && (iVar1 = iVar3, ((byte)DAT_000489f8 & 3) == 0));\n  }\n  if (iVar2 != 0) {\n    do {\n      iVar1 = FUN_00021890(iVar2);\n      if (iVar2 == DAT_00044bf8) {\n        return;\n      }\n      iVar2 = FUN_0001eb60();\n      if (iVar2 == 0) {\n        return;\n      }\n    } while ((iVar1 != 0) && (iVar2 = iVar1, ((byte)DAT_000489f8 & 3) == 0));\n  }\n                    \n  FUN_00012bf0(1);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (if_statement "if (param_1 != 0) {\n    FUN_00021a90(param_1,0xffffffff);\n  }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00021a90(param_1,0xffffffff);\n  }" ({ "{") (expression_statement "FUN_00021a90(param_1,0xffffffff);" (call_expression "FUN_00021a90(param_1,0xffffffff)" (identifier "FUN_00021a90") (argument_list "(param_1,0xffffffff)" (( "(") (identifier "param_1") (, ",") (number_literal "0xffffffff") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar1 = FUN_00021860(param_1);" (assignment_expression "iVar1 = FUN_00021860(param_1)" (identifier "iVar1") (= "=") (call_expression "FUN_00021860(param_1)" (identifier "FUN_00021860") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "iVar2 = FUN_00021890(param_1);" (assignment_expression "iVar2 = FUN_00021890(param_1)" (identifier "iVar2") (= "=") (call_expression "FUN_00021890(param_1)" (identifier "FUN_00021890") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if ((param_1 == DAT_00044bf8) || (iVar3 = FUN_0001eb60(), iVar3 == 0)) {\n    return;\n  }" (if "if") (parenthesized_expression "((param_1 == DAT_00044bf8) || (iVar3 = FUN_0001eb60(), iVar3 == 0))" (( "(") (binary_expression "(param_1 == DAT_00044bf8) || (iVar3 = FUN_0001eb60(), iVar3 == 0)" (parenthesized_expression "(param_1 == DAT_00044bf8)" (( "(") (binary_expression "param_1 == DAT_00044bf8" (identifier "param_1") (== "==") (identifier "DAT_00044bf8")) () ")")) (|| "||") (parenthesized_expression "(iVar3 = FUN_0001eb60(), iVar3 == 0)" (( "(") (comma_expression "iVar3 = FUN_0001eb60(), iVar3 == 0" (assignment_expression "iVar3 = FUN_0001eb60()" (identifier "iVar3") (= "=") (call_expression "FUN_0001eb60()" (identifier "FUN_0001eb60") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (iVar1 != 0) {\n    do {\n      iVar3 = FUN_00021860(iVar1);\n      if (iVar1 == DAT_00044bf8) {\n        return;\n      }\n      iVar1 = FUN_0001eb60();\n      if (iVar1 == 0) {\n        return;\n      }\n    } while ((iVar3 != 0) && (iVar1 = iVar3, ((byte)DAT_000489f8 & 3) == 0));\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    do {\n      iVar3 = FUN_00021860(iVar1);\n      if (iVar1 == DAT_00044bf8) {\n        return;\n      }\n      iVar1 = FUN_0001eb60();\n      if (iVar1 == 0) {\n        return;\n      }\n    } while ((iVar3 != 0) && (iVar1 = iVar3, ((byte)DAT_000489f8 & 3) == 0));\n  }" ({ "{") (do_statement "do {\n      iVar3 = FUN_00021860(iVar1);\n      if (iVar1 == DAT_00044bf8) {\n        return;\n      }\n      iVar1 = FUN_0001eb60();\n      if (iVar1 == 0) {\n        return;\n      }\n    } while ((iVar3 != 0) && (iVar1 = iVar3, ((byte)DAT_000489f8 & 3) == 0));" (do "do") (compound_statement "{\n      iVar3 = FUN_00021860(iVar1);\n      if (iVar1 == DAT_00044bf8) {\n        return;\n      }\n      iVar1 = FUN_0001eb60();\n      if (iVar1 == 0) {\n        return;\n      }\n    }" ({ "{") (expression_statement "iVar3 = FUN_00021860(iVar1);" (assignment_expression "iVar3 = FUN_00021860(iVar1)" (identifier "iVar3") (= "=") (call_expression "FUN_00021860(iVar1)" (identifier "FUN_00021860") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")")))) (; ";")) (if_statement "if (iVar1 == DAT_00044bf8) {\n        return;\n      }" (if "if") (parenthesized_expression "(iVar1 == DAT_00044bf8)" (( "(") (binary_expression "iVar1 == DAT_00044bf8" (identifier "iVar1") (== "==") (identifier "DAT_00044bf8")) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar1 = FUN_0001eb60();" (assignment_expression "iVar1 = FUN_0001eb60()" (identifier "iVar1") (= "=") (call_expression "FUN_0001eb60()" (identifier "FUN_0001eb60") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n        return;\n      }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "((iVar3 != 0) && (iVar1 = iVar3, ((byte)DAT_000489f8 & 3) == 0))" (( "(") (binary_expression "(iVar3 != 0) && (iVar1 = iVar3, ((byte)DAT_000489f8 & 3) == 0)" (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = iVar3, ((byte)DAT_000489f8 & 3) == 0)" (( "(") (comma_expression "iVar1 = iVar3, ((byte)DAT_000489f8 & 3) == 0" (assignment_expression "iVar1 = iVar3" (identifier "iVar1") (= "=") (identifier "iVar3")) (, ",") (binary_expression "((byte)DAT_000489f8 & 3) == 0" (parenthesized_expression "((byte)DAT_000489f8 & 3)" (( "(") (binary_expression "(byte)DAT_000489f8 & 3" (cast_expression "(byte)DAT_000489f8" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "DAT_000489f8")) (& "&") (number_literal "3")) () ")")) (== "==") (number_literal "0"))) () ")"))) () ")")) (; ";")) (} "}"))) (if_statement "if (iVar2 != 0) {\n    do {\n      iVar1 = FUN_00021890(iVar2);\n      if (iVar2 == DAT_00044bf8) {\n        return;\n      }\n      iVar2 = FUN_0001eb60();\n      if (iVar2 == 0) {\n        return;\n      }\n    } while ((iVar1 != 0) && (iVar2 = iVar1, ((byte)DAT_000489f8 & 3) == 0));\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    do {\n      iVar1 = FUN_00021890(iVar2);\n      if (iVar2 == DAT_00044bf8) {\n        return;\n      }\n      iVar2 = FUN_0001eb60();\n      if (iVar2 == 0) {\n        return;\n      }\n    } while ((iVar1 != 0) && (iVar2 = iVar1, ((byte)DAT_000489f8 & 3) == 0));\n  }" ({ "{") (do_statement "do {\n      iVar1 = FUN_00021890(iVar2);\n      if (iVar2 == DAT_00044bf8) {\n        return;\n      }\n      iVar2 = FUN_0001eb60();\n      if (iVar2 == 0) {\n        return;\n      }\n    } while ((iVar1 != 0) && (iVar2 = iVar1, ((byte)DAT_000489f8 & 3) == 0));" (do "do") (compound_statement "{\n      iVar1 = FUN_00021890(iVar2);\n      if (iVar2 == DAT_00044bf8) {\n        return;\n      }\n      iVar2 = FUN_0001eb60();\n      if (iVar2 == 0) {\n        return;\n      }\n    }" ({ "{") (expression_statement "iVar1 = FUN_00021890(iVar2);" (assignment_expression "iVar1 = FUN_00021890(iVar2)" (identifier "iVar1") (= "=") (call_expression "FUN_00021890(iVar2)" (identifier "FUN_00021890") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")")))) (; ";")) (if_statement "if (iVar2 == DAT_00044bf8) {\n        return;\n      }" (if "if") (parenthesized_expression "(iVar2 == DAT_00044bf8)" (( "(") (binary_expression "iVar2 == DAT_00044bf8" (identifier "iVar2") (== "==") (identifier "DAT_00044bf8")) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_0001eb60();" (assignment_expression "iVar2 = FUN_0001eb60()" (identifier "iVar2") (= "=") (call_expression "FUN_0001eb60()" (identifier "FUN_0001eb60") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n        return;\n      }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "((iVar1 != 0) && (iVar2 = iVar1, ((byte)DAT_000489f8 & 3) == 0))" (( "(") (binary_expression "(iVar1 != 0) && (iVar2 = iVar1, ((byte)DAT_000489f8 & 3) == 0)" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = iVar1, ((byte)DAT_000489f8 & 3) == 0)" (( "(") (comma_expression "iVar2 = iVar1, ((byte)DAT_000489f8 & 3) == 0" (assignment_expression "iVar2 = iVar1" (identifier "iVar2") (= "=") (identifier "iVar1")) (, ",") (binary_expression "((byte)DAT_000489f8 & 3) == 0" (parenthesized_expression "((byte)DAT_000489f8 & 3)" (( "(") (binary_expression "(byte)DAT_000489f8 & 3" (cast_expression "(byte)DAT_000489f8" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "DAT_000489f8")) (& "&") (number_literal "3")) () ")")) (== "==") (number_literal "0"))) () ")"))) () ")")) (; ";")) (} "}"))) (expression_statement "FUN_00012bf0(1);" (call_expression "FUN_00012bf0(1)" (identifier "FUN_00012bf0") (argument_list "(1)" (( "(") (number_literal "1") () ")"))) (; ";")) (} "}")))

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

void function_1(void *var_1)

{
  void *var_8;
  void *var_10;
  int var_7;
  void *var_9;
  
  if (var_1 != (void *)0x0) {
    var_2(var_1,-1);
  }
  var_8 = var_3(var_1);
  var_10 = var_4(var_1);
  if ((var_1 == var_5) || (var_7 = var_6(var_1), var_7 == 0)) {
    return;
  }
  if (var_8 != (void *)0x0) {
    do {
      var_9 = var_3(var_8);
      if (var_8 == var_5) {
        return;
      }
      var_7 = var_6(var_8);
      if (var_7 == 0) {
        return;
      }
    } while ((var_9 != (void *)0x0) && (var_8 = var_9, ((type_1)sigs & 3) == 0));
  }
  if (var_10 != (void *)0x0) {
    do {
      var_8 = var_4(var_10);
      if (var_10 == var_5) {
        return;
      }
      var_7 = var_6(var_10);
      if (var_7 == 0) {
        return;
      }
    } while ((var_8 != (void *)0x0) && (var_10 = var_8, ((type_1)sigs & 3) == 0));
  }
                    /* WARNING: Subroutine does not return */
  var_11(1);
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (return_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement)))) condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement)))) condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))))))

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

void MASKED(int param_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  
  if (param_1 != 0) {
    FUN_00021a90(param_1,0xffffffff);
  }
  iVar1 = FUN_00021860(param_1);
  iVar2 = FUN_00021890(param_1);
  if ((param_1 == DAT_00044bf8) || (iVar3 = FUN_0001eb60(), iVar3 == 0)) {
    return;
  }
  if (iVar1 != 0) {
    do {
      iVar3 = FUN_00021860(iVar1);
      if (iVar1 == DAT_00044bf8) {
        return;
      }
      iVar1 = FUN_0001eb60();
      if (iVar1 == 0) {
        return;
      }
    } while ((iVar3 != 0) && (iVar1 = iVar3, ((byte)DAT_000489f8 & 3) == 0));
  }
  if (iVar2 != 0) {
    do {
      iVar1 = FUN_00021890(iVar2);
      if (iVar2 == DAT_00044bf8) {
        return;
      }
      iVar2 = FUN_0001eb60();
      if (iVar2 == 0) {
        return;
      }
    } while ((iVar1 != 0) && (iVar2 = iVar1, ((byte)DAT_000489f8 & 3) == 0));
  }
                    /* WARNING: Subroutine does not return */
  FUN_00012bf0(1);
}

