
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::ios_base::_M_move(std::ios_base&) */

void __thiscall std::ios_base::_M_move(ios_base *this,ios_base *param_1)

{
  undefined4 uVar1;
  ios_base *piVar2;
  undefined4 uVar3;
  undefined4 *puVar4;
  int iVar5;
  ios_base *piVar6;
  
  piVar6 = this + 0x24;
  *(undefined4 *)(this + 4) = *(undefined4 *)(param_1 + 4);
  *(undefined4 *)(this + 8) = *(undefined4 *)(param_1 + 8);
  *(undefined4 *)(this + 0xc) = *(undefined4 *)(param_1 + 0xc);
  *(undefined4 *)(this + 0x10) = *(undefined4 *)(param_1 + 0x10);
  *(undefined4 *)(this + 0x14) = *(undefined4 *)(param_1 + 0x14);
  uVar1 = *(undefined4 *)(param_1 + 0x18);
  *(undefined4 *)(param_1 + 0x18) = 0;
  *(undefined4 *)(this + 0x18) = uVar1;
  piVar2 = *(ios_base **)(this + 0x68);
  if ((piVar2 != (ios_base *)0x0) && (piVar2 != piVar6)) {
    operator_delete__(piVar2);
  }
  piVar2 = *(ios_base **)(param_1 + 0x68);
  if (piVar2 == param_1 + 0x24) {
    *(ios_base **)(this + 0x68) = piVar6;
    iVar5 = 0;
    *(undefined4 *)(this + 100) = 8;
    while( true ) {
      piVar6 = piVar6 + iVar5;
      puVar4 = (undefined4 *)(*(int *)(param_1 + 0x68) + iVar5);
      iVar5 = iVar5 + 8;
      uVar1 = *puVar4;
      uVar3 = puVar4[1];
      *puVar4 = 0;
      puVar4[1] = 0;
      *(undefined4 *)piVar6 = uVar1;
      *(undefined4 *)(piVar6 + 4) = uVar3;
      if (iVar5 == 0x40) break;
      piVar6 = *(ios_base **)(this + 0x68);
    }
  }
  else {
    *(ios_base **)(param_1 + 0x68) = param_1 + 0x24;
    *(ios_base **)(this + 0x68) = piVar2;
    uVar1 = *(undefined4 *)(param_1 + 100);
    *(undefined4 *)(param_1 + 100) = 8;
    *(undefined4 *)(this + 100) = uVar1;
  }
  locale::operator=((locale *)(this + 0x6c),(locale *)(param_1 + 0x6c));
  return;
}



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

void FUN_00244360(int param_1,int param_2)

{
  undefined4 uVar1;
  undefined4 uVar2;
  undefined4 *puVar3;
  int iVar4;
  int iVar5;
  undefined4 *puVar6;
  
  iVar5 = param_1 + 0x24;
  *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4);
  *(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8);
  *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc);
  *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10);
  *(undefined4 *)(param_1 + 0x14) = *(undefined4 *)(param_2 + 0x14);
  uVar1 = *(undefined4 *)(param_2 + 0x18);
  *(undefined4 *)(param_2 + 0x18) = 0;
  *(undefined4 *)(param_1 + 0x18) = uVar1;
  iVar4 = *(int *)(param_1 + 0x68);
  if ((iVar4 != 0) && (iVar4 != iVar5)) {
    FUN_001fefd0(iVar4);
  }
  iVar4 = *(int *)(param_2 + 0x68);
  if (iVar4 == param_2 + 0x24) {
    *(int *)(param_1 + 0x68) = iVar5;
    iVar4 = 0;
    *(undefined4 *)(param_1 + 100) = 8;
    while( true ) {
      puVar6 = (undefined4 *)(iVar5 + iVar4);
      puVar3 = (undefined4 *)(*(int *)(param_2 + 0x68) + iVar4);
      iVar4 = iVar4 + 8;
      uVar1 = *puVar3;
      uVar2 = puVar3[1];
      *puVar3 = 0;
      puVar3[1] = 0;
      *puVar6 = uVar1;
      puVar6[1] = uVar2;
      if (iVar4 == 0x40) break;
      iVar5 = *(int *)(param_1 + 0x68);
    }
  }
  else {
    *(int *)(param_2 + 0x68) = param_2 + 0x24;
    *(int *)(param_1 + 0x68) = iVar4;
    uVar1 = *(undefined4 *)(param_2 + 100);
    *(undefined4 *)(param_2 + 100) = 8;
    *(undefined4 *)(param_1 + 100) = uVar1;
  }
  FUN_00201700(param_1 + 0x6c,param_2 + 0x6c);
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00036f20
ADD EBX,0x16ac97
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x34]
MOV EDI,dword ptr [ESP + 0x30]
MOV EAX,dword ptr [ESI + 0x4]
LEA EBP,[EDI + 0x24]
MOV dword ptr [ESP + 0xc],EBX
MOV dword ptr [EDI + 0x4],EAX
MOV EAX,dword ptr [ESI + 0x8]
MOV dword ptr [EDI + 0x8],EAX
MOV EAX,dword ptr [ESI + 0xc]
MOV dword ptr [EDI + 0xc],EAX
MOV EAX,dword ptr [ESI + 0x10]
MOV dword ptr [EDI + 0x10],EAX
MOV EAX,dword ptr [ESI + 0x14]
MOV dword ptr [EDI + 0x14],EAX
MOV EAX,dword ptr [ESI + 0x18]
MOV dword ptr [ESI + 0x18],0x0
MOV dword ptr [EDI + 0x18],EAX
MOV EAX,dword ptr [EDI + 0x68]
TEST EAX,EAX
JZ 0x002443c3
CMP EAX,EBP
JZ 0x002443c3
SUB ESP,0xc
PUSH EAX
CALL 0x001fefd0
ADD ESP,0x10
MOV EAX,dword ptr [ESI + 0x68]
LEA EDX,[ESI + 0x24]
CMP EAX,EDX
JZ 0x00244400
MOV dword ptr [ESI + 0x68],EDX
MOV dword ptr [EDI + 0x68],EAX
MOV EAX,dword ptr [ESI + 0x64]
MOV dword ptr [ESI + 0x64],0x8
MOV dword ptr [EDI + 0x64],EAX
SUB ESP,0x8
ADD ESI,0x6c
ADD EDI,0x6c
PUSH ESI
PUSH EDI
MOV EBX,dword ptr [ESP + 0x1c]
CALL 0x00201700
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [EDI + 0x68],EBP
XOR EDX,EDX
MOV dword ptr [EDI + 0x64],0x8
JMP 0x00244413
MOV EBP,dword ptr [EDI + 0x68]
MOV EAX,dword ptr [ESI + 0x68]
ADD EBP,EDX
ADD EAX,EDX
ADD EDX,0x8
MOV EBX,dword ptr [EAX]
MOV ECX,dword ptr [EAX + 0x4]
MOV dword ptr [EAX],0x0
MOV dword ptr [EAX + 0x4],0x0
MOV dword ptr [EBP],EBX
MOV dword ptr [EBP + 0x4],ECX
CMP EDX,0x40
JNZ 0x00244410
JMP 0x002443e0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00244360(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  \n  iVar5 = param_1 + 0x24;\n  *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4);\n  *(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8);\n  *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc);\n  *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10);\n  *(undefined4 *)(param_1 + 0x14) = *(undefined4 *)(param_2 + 0x14);\n  uVar1 = *(undefined4 *)(param_2 + 0x18);\n  *(undefined4 *)(param_2 + 0x18) = 0;\n  *(undefined4 *)(param_1 + 0x18) = uVar1;\n  iVar4 = *(int *)(param_1 + 0x68);\n  if ((iVar4 != 0) && (iVar4 != iVar5)) {\n    FUN_001fefd0(iVar4);\n  }\n  iVar4 = *(int *)(param_2 + 0x68);\n  if (iVar4 == param_2 + 0x24) {\n    *(int *)(param_1 + 0x68) = iVar5;\n    iVar4 = 0;\n    *(undefined4 *)(param_1 + 100) = 8;\n    while( true ) {\n      puVar6 = (undefined4 *)(iVar5 + iVar4);\n      puVar3 = (undefined4 *)(*(int *)(param_2 + 0x68) + iVar4);\n      iVar4 = iVar4 + 8;\n      uVar1 = *puVar3;\n      uVar2 = puVar3[1];\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      *puVar6 = uVar1;\n      puVar6[1] = uVar2;\n      if (iVar4 == 0x40) break;\n      iVar5 = *(int *)(param_1 + 0x68);\n    }\n  }\n  else {\n    *(int *)(param_2 + 0x68) = param_2 + 0x24;\n    *(int *)(param_1 + 0x68) = iVar4;\n    uVar1 = *(undefined4 *)(param_2 + 100);\n    *(undefined4 *)(param_2 + 100) = 8;\n    *(undefined4 *)(param_1 + 100) = uVar1;\n  }\n  FUN_00201700(param_1 + 0x6c,param_2 + 0x6c);\n  return;\n}\n\n" comment (function_definition "void FUN_00244360(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  \n  iVar5 = param_1 + 0x24;\n  *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4);\n  *(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8);\n  *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc);\n  *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10);\n  *(undefined4 *)(param_1 + 0x14) = *(undefined4 *)(param_2 + 0x14);\n  uVar1 = *(undefined4 *)(param_2 + 0x18);\n  *(undefined4 *)(param_2 + 0x18) = 0;\n  *(undefined4 *)(param_1 + 0x18) = uVar1;\n  iVar4 = *(int *)(param_1 + 0x68);\n  if ((iVar4 != 0) && (iVar4 != iVar5)) {\n    FUN_001fefd0(iVar4);\n  }\n  iVar4 = *(int *)(param_2 + 0x68);\n  if (iVar4 == param_2 + 0x24) {\n    *(int *)(param_1 + 0x68) = iVar5;\n    iVar4 = 0;\n    *(undefined4 *)(param_1 + 100) = 8;\n    while( true ) {\n      puVar6 = (undefined4 *)(iVar5 + iVar4);\n      puVar3 = (undefined4 *)(*(int *)(param_2 + 0x68) + iVar4);\n      iVar4 = iVar4 + 8;\n      uVar1 = *puVar3;\n      uVar2 = puVar3[1];\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      *puVar6 = uVar1;\n      puVar6[1] = uVar2;\n      if (iVar4 == 0x40) break;\n      iVar5 = *(int *)(param_1 + 0x68);\n    }\n  }\n  else {\n    *(int *)(param_2 + 0x68) = param_2 + 0x24;\n    *(int *)(param_1 + 0x68) = iVar4;\n    uVar1 = *(undefined4 *)(param_2 + 100);\n    *(undefined4 *)(param_2 + 100) = 8;\n    *(undefined4 *)(param_1 + 100) = uVar1;\n  }\n  FUN_00201700(param_1 + 0x6c,param_2 + 0x6c);\n  return;\n}" primitive_type (function_declarator "FUN_00244360(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  \n  iVar5 = param_1 + 0x24;\n  *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4);\n  *(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8);\n  *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc);\n  *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10);\n  *(undefined4 *)(param_1 + 0x14) = *(undefined4 *)(param_2 + 0x14);\n  uVar1 = *(undefined4 *)(param_2 + 0x18);\n  *(undefined4 *)(param_2 + 0x18) = 0;\n  *(undefined4 *)(param_1 + 0x18) = uVar1;\n  iVar4 = *(int *)(param_1 + 0x68);\n  if ((iVar4 != 0) && (iVar4 != iVar5)) {\n    FUN_001fefd0(iVar4);\n  }\n  iVar4 = *(int *)(param_2 + 0x68);\n  if (iVar4 == param_2 + 0x24) {\n    *(int *)(param_1 + 0x68) = iVar5;\n    iVar4 = 0;\n    *(undefined4 *)(param_1 + 100) = 8;\n    while( true ) {\n      puVar6 = (undefined4 *)(iVar5 + iVar4);\n      puVar3 = (undefined4 *)(*(int *)(param_2 + 0x68) + iVar4);\n      iVar4 = iVar4 + 8;\n      uVar1 = *puVar3;\n      uVar2 = puVar3[1];\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      *puVar6 = uVar1;\n      puVar6[1] = uVar2;\n      if (iVar4 == 0x40) break;\n      iVar5 = *(int *)(param_1 + 0x68);\n    }\n  }\n  else {\n    *(int *)(param_2 + 0x68) = param_2 + 0x24;\n    *(int *)(param_1 + 0x68) = iVar4;\n    uVar1 = *(undefined4 *)(param_2 + 100);\n    *(undefined4 *)(param_2 + 100) = 8;\n    *(undefined4 *)(param_1 + 100) = uVar1;\n  }\n  FUN_00201700(param_1 + 0x6c,param_2 + 0x6c);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (expression_statement "iVar5 = param_1 + 0x24;" (assignment_expression "iVar5 = param_1 + 0x24" identifier = (binary_expression "param_1 + 0x24" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4);" (assignment_expression "*(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4)" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_2 + 4)" * (cast_expression "(undefined4 *)(param_2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8);" (assignment_expression "*(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8)" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc);" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc)" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10);" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10)" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_2 + 0x10)" * (cast_expression "(undefined4 *)(param_2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x14) = *(undefined4 *)(param_2 + 0x14);" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = *(undefined4 *)(param_2 + 0x14)" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_2 + 0x14)" * (cast_expression "(undefined4 *)(param_2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = *(undefined4 *)(param_2 + 0x18);" (assignment_expression "uVar1 = *(undefined4 *)(param_2 + 0x18)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0x18)" * (cast_expression "(undefined4 *)(param_2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_2 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x18)" * (cast_expression "(undefined4 *)(param_2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x18) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0x68);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x68)" identifier = (pointer_expression "*(int *)(param_1 + 0x68)" * (cast_expression "(int *)(param_1 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) ))))) ;) (if_statement "if ((iVar4 != 0) && (iVar4 != iVar5)) {\n    FUN_001fefd0(iVar4);\n  }" if (parenthesized_expression "((iVar4 != 0) && (iVar4 != iVar5))" ( (binary_expression "(iVar4 != 0) && (iVar4 != iVar5)" (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar4 != iVar5)" ( (binary_expression "iVar4 != iVar5" identifier != identifier) ))) )) (compound_statement "{\n    FUN_001fefd0(iVar4);\n  }" { (expression_statement "FUN_001fefd0(iVar4);" (call_expression "FUN_001fefd0(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) })) (expression_statement "iVar4 = *(int *)(param_2 + 0x68);" (assignment_expression "iVar4 = *(int *)(param_2 + 0x68)" identifier = (pointer_expression "*(int *)(param_2 + 0x68)" * (cast_expression "(int *)(param_2 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x68)" ( (binary_expression "param_2 + 0x68" identifier + number_literal) ))))) ;) (if_statement "if (iVar4 == param_2 + 0x24) {\n    *(int *)(param_1 + 0x68) = iVar5;\n    iVar4 = 0;\n    *(undefined4 *)(param_1 + 100) = 8;\n    while( true ) {\n      puVar6 = (undefined4 *)(iVar5 + iVar4);\n      puVar3 = (undefined4 *)(*(int *)(param_2 + 0x68) + iVar4);\n      iVar4 = iVar4 + 8;\n      uVar1 = *puVar3;\n      uVar2 = puVar3[1];\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      *puVar6 = uVar1;\n      puVar6[1] = uVar2;\n      if (iVar4 == 0x40) break;\n      iVar5 = *(int *)(param_1 + 0x68);\n    }\n  }\n  else {\n    *(int *)(param_2 + 0x68) = param_2 + 0x24;\n    *(int *)(param_1 + 0x68) = iVar4;\n    uVar1 = *(undefined4 *)(param_2 + 100);\n    *(undefined4 *)(param_2 + 100) = 8;\n    *(undefined4 *)(param_1 + 100) = uVar1;\n  }" if (parenthesized_expression "(iVar4 == param_2 + 0x24)" ( (binary_expression "iVar4 == param_2 + 0x24" identifier == (binary_expression "param_2 + 0x24" identifier + number_literal)) )) (compound_statement "{\n    *(int *)(param_1 + 0x68) = iVar5;\n    iVar4 = 0;\n    *(undefined4 *)(param_1 + 100) = 8;\n    while( true ) {\n      puVar6 = (undefined4 *)(iVar5 + iVar4);\n      puVar3 = (undefined4 *)(*(int *)(param_2 + 0x68) + iVar4);\n      iVar4 = iVar4 + 8;\n      uVar1 = *puVar3;\n      uVar2 = puVar3[1];\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      *puVar6 = uVar1;\n      puVar6[1] = uVar2;\n      if (iVar4 == 0x40) break;\n      iVar5 = *(int *)(param_1 + 0x68);\n    }\n  }" { (expression_statement "*(int *)(param_1 + 0x68) = iVar5;" (assignment_expression "*(int *)(param_1 + 0x68) = iVar5" (pointer_expression "*(int *)(param_1 + 0x68)" * (cast_expression "(int *)(param_1 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 100) = 8;" (assignment_expression "*(undefined4 *)(param_1 + 100) = 8" (pointer_expression "*(undefined4 *)(param_1 + 100)" * (cast_expression "(undefined4 *)(param_1 + 100)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) = number_literal) ;) (while_statement "while( true ) {\n      puVar6 = (undefined4 *)(iVar5 + iVar4);\n      puVar3 = (undefined4 *)(*(int *)(param_2 + 0x68) + iVar4);\n      iVar4 = iVar4 + 8;\n      uVar1 = *puVar3;\n      uVar2 = puVar3[1];\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      *puVar6 = uVar1;\n      puVar6[1] = uVar2;\n      if (iVar4 == 0x40) break;\n      iVar5 = *(int *)(param_1 + 0x68);\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      puVar6 = (undefined4 *)(iVar5 + iVar4);\n      puVar3 = (undefined4 *)(*(int *)(param_2 + 0x68) + iVar4);\n      iVar4 = iVar4 + 8;\n      uVar1 = *puVar3;\n      uVar2 = puVar3[1];\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      *puVar6 = uVar1;\n      puVar6[1] = uVar2;\n      if (iVar4 == 0x40) break;\n      iVar5 = *(int *)(param_1 + 0x68);\n    }" { (expression_statement "puVar6 = (undefined4 *)(iVar5 + iVar4);" (assignment_expression "puVar6 = (undefined4 *)(iVar5 + iVar4)" identifier = (cast_expression "(undefined4 *)(iVar5 + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + iVar4)" ( (binary_expression "iVar5 + iVar4" identifier + identifier) )))) ;) (expression_statement "puVar3 = (undefined4 *)(*(int *)(param_2 + 0x68) + iVar4);" (assignment_expression "puVar3 = (undefined4 *)(*(int *)(param_2 + 0x68) + iVar4)" identifier = (cast_expression "(undefined4 *)(*(int *)(param_2 + 0x68) + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0x68) + iVar4)" ( (binary_expression "*(int *)(param_2 + 0x68) + iVar4" (pointer_expression "*(int *)(param_2 + 0x68)" * (cast_expression "(int *)(param_2 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x68)" ( (binary_expression "param_2 + 0x68" identifier + number_literal) )))) + identifier) )))) ;) (expression_statement "iVar4 = iVar4 + 8;" (assignment_expression "iVar4 = iVar4 + 8" identifier = (binary_expression "iVar4 + 8" identifier + number_literal)) ;) (expression_statement "uVar1 = *puVar3;" (assignment_expression "uVar1 = *puVar3" identifier = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "uVar2 = puVar3[1];" (assignment_expression "uVar2 = puVar3[1]" identifier = (subscript_expression "puVar3[1]" identifier [ number_literal ])) ;) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar6 = uVar1;" (assignment_expression "*puVar6 = uVar1" (pointer_expression "*puVar6" * identifier) = identifier) ;) (expression_statement "puVar6[1] = uVar2;" (assignment_expression "puVar6[1] = uVar2" (subscript_expression "puVar6[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar4 == 0x40) break;" if (parenthesized_expression "(iVar4 == 0x40)" ( (binary_expression "iVar4 == 0x40" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar5 = *(int *)(param_1 + 0x68);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x68)" identifier = (pointer_expression "*(int *)(param_1 + 0x68)" * (cast_expression "(int *)(param_1 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) ))))) ;) })) }) (else_clause "else {\n    *(int *)(param_2 + 0x68) = param_2 + 0x24;\n    *(int *)(param_1 + 0x68) = iVar4;\n    uVar1 = *(undefined4 *)(param_2 + 100);\n    *(undefined4 *)(param_2 + 100) = 8;\n    *(undefined4 *)(param_1 + 100) = uVar1;\n  }" else (compound_statement "{\n    *(int *)(param_2 + 0x68) = param_2 + 0x24;\n    *(int *)(param_1 + 0x68) = iVar4;\n    uVar1 = *(undefined4 *)(param_2 + 100);\n    *(undefined4 *)(param_2 + 100) = 8;\n    *(undefined4 *)(param_1 + 100) = uVar1;\n  }" { (expression_statement "*(int *)(param_2 + 0x68) = param_2 + 0x24;" (assignment_expression "*(int *)(param_2 + 0x68) = param_2 + 0x24" (pointer_expression "*(int *)(param_2 + 0x68)" * (cast_expression "(int *)(param_2 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x68)" ( (binary_expression "param_2 + 0x68" identifier + number_literal) )))) = (binary_expression "param_2 + 0x24" identifier + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x68) = iVar4;" (assignment_expression "*(int *)(param_1 + 0x68) = iVar4" (pointer_expression "*(int *)(param_1 + 0x68)" * (cast_expression "(int *)(param_1 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar1 = *(undefined4 *)(param_2 + 100);" (assignment_expression "uVar1 = *(undefined4 *)(param_2 + 100)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 100)" * (cast_expression "(undefined4 *)(param_2 + 100)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 100)" ( (binary_expression "param_2 + 100" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_2 + 100) = 8;" (assignment_expression "*(undefined4 *)(param_2 + 100) = 8" (pointer_expression "*(undefined4 *)(param_2 + 100)" * (cast_expression "(undefined4 *)(param_2 + 100)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 100)" ( (binary_expression "param_2 + 100" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 100) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 100) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 100)" * (cast_expression "(undefined4 *)(param_1 + 100)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "FUN_00201700(param_1 + 0x6c,param_2 + 0x6c);" (call_expression "FUN_00201700(param_1 + 0x6c,param_2 + 0x6c)" identifier (argument_list "(param_1 + 0x6c,param_2 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) , (binary_expression "param_2 + 0x6c" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::ios_base::_M_move(std::ios_base&) */\n\nvoid __thiscall std::ios_base::_M_move(ios_base *this,ios_base *param_1)\n\n{\n  undefined4 uVar1;\n  ios_base *piVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  ios_base *piVar6;\n  \n  piVar6 = this + 0x24;\n  *(undefined4 *)(this + 4) = *(undefined4 *)(param_1 + 4);\n  *(undefined4 *)(this + 8) = *(undefined4 *)(param_1 + 8);\n  *(undefined4 *)(this + 0xc) = *(undefined4 *)(param_1 + 0xc);\n  *(undefined4 *)(this + 0x10) = *(undefined4 *)(param_1 + 0x10);\n  *(undefined4 *)(this + 0x14) = *(undefined4 *)(param_1 + 0x14);\n  uVar1 = *(undefined4 *)(param_1 + 0x18);\n  *(undefined4 *)(param_1 + 0x18) = 0;\n  *(undefined4 *)(this + 0x18) = uVar1;\n  piVar2 = *(ios_base **)(this + 0x68);\n  if ((piVar2 != (ios_base *)0x0) && (piVar2 != piVar6)) {\n    operator_delete__(piVar2);\n  }\n  piVar2 = *(ios_base **)(param_1 + 0x68);\n  if (piVar2 == param_1 + 0x24) {\n    *(ios_base **)(this + 0x68) = piVar6;\n    iVar5 = 0;\n    *(undefined4 *)(this + 100) = 8;\n    while( true ) {\n      piVar6 = piVar6 + iVar5;\n      puVar4 = (undefined4 *)(*(int *)(param_1 + 0x68) + iVar5);\n      iVar5 = iVar5 + 8;\n      uVar1 = *puVar4;\n      uVar3 = puVar4[1];\n      *puVar4 = 0;\n      puVar4[1] = 0;\n      *(undefined4 *)piVar6 = uVar1;\n      *(undefined4 *)(piVar6 + 4) = uVar3;\n      if (iVar5 == 0x40) break;\n      piVar6 = *(ios_base **)(this + 0x68);\n    }\n  }\n  else {\n    *(ios_base **)(param_1 + 0x68) = param_1 + 0x24;\n    *(ios_base **)(this + 0x68) = piVar2;\n    uVar1 = *(undefined4 *)(param_1 + 100);\n    *(undefined4 *)(param_1 + 100) = 8;\n    *(undefined4 *)(this + 100) = uVar1;\n  }\n  locale::operator=((locale *)(this + 0x6c),(locale *)(param_1 + 0x6c));\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::ios_base::_M_move(ios_base *this,ios_base *param_1)\n\n{\n  undefined4 uVar1;\n  ios_base *piVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  ios_base *piVar6;\n  \n  piVar6 = this + 0x24;\n  *(undefined4 *)(this + 4) = *(undefined4 *)(param_1 + 4);\n  *(undefined4 *)(this + 8) = *(undefined4 *)(param_1 + 8);\n  *(undefined4 *)(this + 0xc) = *(undefined4 *)(param_1 + 0xc);\n  *(undefined4 *)(this + 0x10) = *(undefined4 *)(param_1 + 0x10);\n  *(undefined4 *)(this + 0x14) = *(undefined4 *)(param_1 + 0x14);\n  uVar1 = *(undefined4 *)(param_1 + 0x18);\n  *(undefined4 *)(param_1 + 0x18) = 0;\n  *(undefined4 *)(this + 0x18) = uVar1;\n  piVar2 = *(ios_base **)(this + 0x68);\n  if ((piVar2 != (ios_base *)0x0) && (piVar2 != piVar6)) {\n    operator_delete__(piVar2);\n  }\n  piVar2 = *(ios_base **)(param_1 + 0x68);\n  if (piVar2 == param_1 + 0x24) {\n    *(ios_base **)(this + 0x68) = piVar6;\n    iVar5 = 0;\n    *(undefined4 *)(this + 100) = 8;\n    while( true ) {\n      piVar6 = piVar6 + iVar5;\n      puVar4 = (undefined4 *)(*(int *)(param_1 + 0x68) + iVar5);\n      iVar5 = iVar5 + 8;\n      uVar1 = *puVar4;\n      uVar3 = puVar4[1];\n      *puVar4 = 0;\n      puVar4[1] = 0;\n      *(undefined4 *)piVar6 = uVar1;\n      *(undefined4 *)(piVar6 + 4) = uVar3;\n      if (iVar5 == 0x40) break;\n      piVar6 = *(ios_base **)(this + 0x68);\n    }\n  }\n  else {\n    *(ios_base **)(param_1 + 0x68) = param_1 + 0x24;\n    *(ios_base **)(this + 0x68) = piVar2;\n    uVar1 = *(undefined4 *)(param_1 + 100);\n    *(undefined4 *)(param_1 + 100) = 8;\n    *(undefined4 *)(this + 100) = uVar1;\n  }\n  locale::operator=((locale *)(this + 0x6c),(locale *)(param_1 + 0x6c));\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::ios_base::" identifier : : identifier : :) (function_declarator "_M_move(ios_base *this,ios_base *param_1)" identifier (parameter_list "(ios_base *this,ios_base *param_1)" ( (parameter_declaration "ios_base *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "ios_base *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  ios_base *piVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  ios_base *piVar6;\n  \n  piVar6 = this + 0x24;\n  *(undefined4 *)(this + 4) = *(undefined4 *)(param_1 + 4);\n  *(undefined4 *)(this + 8) = *(undefined4 *)(param_1 + 8);\n  *(undefined4 *)(this + 0xc) = *(undefined4 *)(param_1 + 0xc);\n  *(undefined4 *)(this + 0x10) = *(undefined4 *)(param_1 + 0x10);\n  *(undefined4 *)(this + 0x14) = *(undefined4 *)(param_1 + 0x14);\n  uVar1 = *(undefined4 *)(param_1 + 0x18);\n  *(undefined4 *)(param_1 + 0x18) = 0;\n  *(undefined4 *)(this + 0x18) = uVar1;\n  piVar2 = *(ios_base **)(this + 0x68);\n  if ((piVar2 != (ios_base *)0x0) && (piVar2 != piVar6)) {\n    operator_delete__(piVar2);\n  }\n  piVar2 = *(ios_base **)(param_1 + 0x68);\n  if (piVar2 == param_1 + 0x24) {\n    *(ios_base **)(this + 0x68) = piVar6;\n    iVar5 = 0;\n    *(undefined4 *)(this + 100) = 8;\n    while( true ) {\n      piVar6 = piVar6 + iVar5;\n      puVar4 = (undefined4 *)(*(int *)(param_1 + 0x68) + iVar5);\n      iVar5 = iVar5 + 8;\n      uVar1 = *puVar4;\n      uVar3 = puVar4[1];\n      *puVar4 = 0;\n      puVar4[1] = 0;\n      *(undefined4 *)piVar6 = uVar1;\n      *(undefined4 *)(piVar6 + 4) = uVar3;\n      if (iVar5 == 0x40) break;\n      piVar6 = *(ios_base **)(this + 0x68);\n    }\n  }\n  else {\n    *(ios_base **)(param_1 + 0x68) = param_1 + 0x24;\n    *(ios_base **)(this + 0x68) = piVar2;\n    uVar1 = *(undefined4 *)(param_1 + 100);\n    *(undefined4 *)(param_1 + 100) = 8;\n    *(undefined4 *)(this + 100) = uVar1;\n  }\n  locale::operator=((locale *)(this + 0x6c),(locale *)(param_1 + 0x6c));\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "ios_base *piVar2;" type_identifier (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "ios_base *piVar6;" type_identifier (pointer_declarator "*piVar6" * identifier) ;) (expression_statement "piVar6 = this + 0x24;" (assignment_expression "piVar6 = this + 0x24" identifier = (binary_expression "this + 0x24" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(this + 4) = *(undefined4 *)(param_1 + 4);" (assignment_expression "*(undefined4 *)(this + 4) = *(undefined4 *)(param_1 + 4)" (pointer_expression "*(undefined4 *)(this + 4)" * (cast_expression "(undefined4 *)(this + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(this + 8) = *(undefined4 *)(param_1 + 8);" (assignment_expression "*(undefined4 *)(this + 8) = *(undefined4 *)(param_1 + 8)" (pointer_expression "*(undefined4 *)(this + 8)" * (cast_expression "(undefined4 *)(this + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(this + 0xc) = *(undefined4 *)(param_1 + 0xc);" (assignment_expression "*(undefined4 *)(this + 0xc) = *(undefined4 *)(param_1 + 0xc)" (pointer_expression "*(undefined4 *)(this + 0xc)" * (cast_expression "(undefined4 *)(this + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(this + 0x10) = *(undefined4 *)(param_1 + 0x10);" (assignment_expression "*(undefined4 *)(this + 0x10) = *(undefined4 *)(param_1 + 0x10)" (pointer_expression "*(undefined4 *)(this + 0x10)" * (cast_expression "(undefined4 *)(this + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(this + 0x14) = *(undefined4 *)(param_1 + 0x14);" (assignment_expression "*(undefined4 *)(this + 0x14) = *(undefined4 *)(param_1 + 0x14)" (pointer_expression "*(undefined4 *)(this + 0x14)" * (cast_expression "(undefined4 *)(this + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x14)" ( (binary_expression "this + 0x14" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x18);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x18)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(this + 0x18) = uVar1;" (assignment_expression "*(undefined4 *)(this + 0x18) = uVar1" (pointer_expression "*(undefined4 *)(this + 0x18)" * (cast_expression "(undefined4 *)(this + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x18)" ( (binary_expression "this + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "piVar2 = *(ios_base **)(this + 0x68);" (assignment_expression "piVar2 = *(ios_base **)(this + 0x68)" identifier = (pointer_expression "*(ios_base **)(this + 0x68)" * (cast_expression "(ios_base **)(this + 0x68)" ( (type_descriptor "ios_base **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x68)" ( (binary_expression "this + 0x68" identifier + number_literal) ))))) ;) (if_statement "if ((piVar2 != (ios_base *)0x0) && (piVar2 != piVar6)) {\n    operator_delete__(piVar2);\n  }" if (parenthesized_expression "((piVar2 != (ios_base *)0x0) && (piVar2 != piVar6))" ( (binary_expression "(piVar2 != (ios_base *)0x0) && (piVar2 != piVar6)" (parenthesized_expression "(piVar2 != (ios_base *)0x0)" ( (binary_expression "piVar2 != (ios_base *)0x0" identifier != (cast_expression "(ios_base *)0x0" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(piVar2 != piVar6)" ( (binary_expression "piVar2 != piVar6" identifier != identifier) ))) )) (compound_statement "{\n    operator_delete__(piVar2);\n  }" { (expression_statement "operator_delete__(piVar2);" (call_expression "operator_delete__(piVar2)" identifier (argument_list "(piVar2)" ( identifier ))) ;) })) (expression_statement "piVar2 = *(ios_base **)(param_1 + 0x68);" (assignment_expression "piVar2 = *(ios_base **)(param_1 + 0x68)" identifier = (pointer_expression "*(ios_base **)(param_1 + 0x68)" * (cast_expression "(ios_base **)(param_1 + 0x68)" ( (type_descriptor "ios_base **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) ))))) ;) (if_statement "if (piVar2 == param_1 + 0x24) {\n    *(ios_base **)(this + 0x68) = piVar6;\n    iVar5 = 0;\n    *(undefined4 *)(this + 100) = 8;\n    while( true ) {\n      piVar6 = piVar6 + iVar5;\n      puVar4 = (undefined4 *)(*(int *)(param_1 + 0x68) + iVar5);\n      iVar5 = iVar5 + 8;\n      uVar1 = *puVar4;\n      uVar3 = puVar4[1];\n      *puVar4 = 0;\n      puVar4[1] = 0;\n      *(undefined4 *)piVar6 = uVar1;\n      *(undefined4 *)(piVar6 + 4) = uVar3;\n      if (iVar5 == 0x40) break;\n      piVar6 = *(ios_base **)(this + 0x68);\n    }\n  }\n  else {\n    *(ios_base **)(param_1 + 0x68) = param_1 + 0x24;\n    *(ios_base **)(this + 0x68) = piVar2;\n    uVar1 = *(undefined4 *)(param_1 + 100);\n    *(undefined4 *)(param_1 + 100) = 8;\n    *(undefined4 *)(this + 100) = uVar1;\n  }" if (parenthesized_expression "(piVar2 == param_1 + 0x24)" ( (binary_expression "piVar2 == param_1 + 0x24" identifier == (binary_expression "param_1 + 0x24" identifier + number_literal)) )) (compound_statement "{\n    *(ios_base **)(this + 0x68) = piVar6;\n    iVar5 = 0;\n    *(undefined4 *)(this + 100) = 8;\n    while( true ) {\n      piVar6 = piVar6 + iVar5;\n      puVar4 = (undefined4 *)(*(int *)(param_1 + 0x68) + iVar5);\n      iVar5 = iVar5 + 8;\n      uVar1 = *puVar4;\n      uVar3 = puVar4[1];\n      *puVar4 = 0;\n      puVar4[1] = 0;\n      *(undefined4 *)piVar6 = uVar1;\n      *(undefined4 *)(piVar6 + 4) = uVar3;\n      if (iVar5 == 0x40) break;\n      piVar6 = *(ios_base **)(this + 0x68);\n    }\n  }" { (expression_statement "*(ios_base **)(this + 0x68) = piVar6;" (assignment_expression "*(ios_base **)(this + 0x68) = piVar6" (pointer_expression "*(ios_base **)(this + 0x68)" * (cast_expression "(ios_base **)(this + 0x68)" ( (type_descriptor "ios_base **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x68)" ( (binary_expression "this + 0x68" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(this + 100) = 8;" (assignment_expression "*(undefined4 *)(this + 100) = 8" (pointer_expression "*(undefined4 *)(this + 100)" * (cast_expression "(undefined4 *)(this + 100)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 100)" ( (binary_expression "this + 100" identifier + number_literal) )))) = number_literal) ;) (while_statement "while( true ) {\n      piVar6 = piVar6 + iVar5;\n      puVar4 = (undefined4 *)(*(int *)(param_1 + 0x68) + iVar5);\n      iVar5 = iVar5 + 8;\n      uVar1 = *puVar4;\n      uVar3 = puVar4[1];\n      *puVar4 = 0;\n      puVar4[1] = 0;\n      *(undefined4 *)piVar6 = uVar1;\n      *(undefined4 *)(piVar6 + 4) = uVar3;\n      if (iVar5 == 0x40) break;\n      piVar6 = *(ios_base **)(this + 0x68);\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      piVar6 = piVar6 + iVar5;\n      puVar4 = (undefined4 *)(*(int *)(param_1 + 0x68) + iVar5);\n      iVar5 = iVar5 + 8;\n      uVar1 = *puVar4;\n      uVar3 = puVar4[1];\n      *puVar4 = 0;\n      puVar4[1] = 0;\n      *(undefined4 *)piVar6 = uVar1;\n      *(undefined4 *)(piVar6 + 4) = uVar3;\n      if (iVar5 == 0x40) break;\n      piVar6 = *(ios_base **)(this + 0x68);\n    }" { (expression_statement "piVar6 = piVar6 + iVar5;" (assignment_expression "piVar6 = piVar6 + iVar5" identifier = (binary_expression "piVar6 + iVar5" identifier + identifier)) ;) (expression_statement "puVar4 = (undefined4 *)(*(int *)(param_1 + 0x68) + iVar5);" (assignment_expression "puVar4 = (undefined4 *)(*(int *)(param_1 + 0x68) + iVar5)" identifier = (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x68) + iVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x68) + iVar5)" ( (binary_expression "*(int *)(param_1 + 0x68) + iVar5" (pointer_expression "*(int *)(param_1 + 0x68)" * (cast_expression "(int *)(param_1 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) + identifier) )))) ;) (expression_statement "iVar5 = iVar5 + 8;" (assignment_expression "iVar5 = iVar5 + 8" identifier = (binary_expression "iVar5 + 8" identifier + number_literal)) ;) (expression_statement "uVar1 = *puVar4;" (assignment_expression "uVar1 = *puVar4" identifier = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "uVar3 = puVar4[1];" (assignment_expression "uVar3 = puVar4[1]" identifier = (subscript_expression "puVar4[1]" identifier [ number_literal ])) ;) (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "puVar4[1] = 0;" (assignment_expression "puVar4[1] = 0" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined4 *)piVar6 = uVar1;" (assignment_expression "*(undefined4 *)piVar6 = uVar1" (pointer_expression "*(undefined4 *)piVar6" * (cast_expression "(undefined4 *)piVar6" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined4 *)(piVar6 + 4) = uVar3;" (assignment_expression "*(undefined4 *)(piVar6 + 4) = uVar3" (pointer_expression "*(undefined4 *)(piVar6 + 4)" * (cast_expression "(undefined4 *)(piVar6 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar6 + 4)" ( (binary_expression "piVar6 + 4" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar5 == 0x40) break;" if (parenthesized_expression "(iVar5 == 0x40)" ( (binary_expression "iVar5 == 0x40" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "piVar6 = *(ios_base **)(this + 0x68);" (assignment_expression "piVar6 = *(ios_base **)(this + 0x68)" identifier = (pointer_expression "*(ios_base **)(this + 0x68)" * (cast_expression "(ios_base **)(this + 0x68)" ( (type_descriptor "ios_base **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x68)" ( (binary_expression "this + 0x68" identifier + number_literal) ))))) ;) })) }) (else_clause "else {\n    *(ios_base **)(param_1 + 0x68) = param_1 + 0x24;\n    *(ios_base **)(this + 0x68) = piVar2;\n    uVar1 = *(undefined4 *)(param_1 + 100);\n    *(undefined4 *)(param_1 + 100) = 8;\n    *(undefined4 *)(this + 100) = uVar1;\n  }" else (compound_statement "{\n    *(ios_base **)(param_1 + 0x68) = param_1 + 0x24;\n    *(ios_base **)(this + 0x68) = piVar2;\n    uVar1 = *(undefined4 *)(param_1 + 100);\n    *(undefined4 *)(param_1 + 100) = 8;\n    *(undefined4 *)(this + 100) = uVar1;\n  }" { (expression_statement "*(ios_base **)(param_1 + 0x68) = param_1 + 0x24;" (assignment_expression "*(ios_base **)(param_1 + 0x68) = param_1 + 0x24" (pointer_expression "*(ios_base **)(param_1 + 0x68)" * (cast_expression "(ios_base **)(param_1 + 0x68)" ( (type_descriptor "ios_base **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) = (binary_expression "param_1 + 0x24" identifier + number_literal)) ;) (expression_statement "*(ios_base **)(this + 0x68) = piVar2;" (assignment_expression "*(ios_base **)(this + 0x68) = piVar2" (pointer_expression "*(ios_base **)(this + 0x68)" * (cast_expression "(ios_base **)(this + 0x68)" ( (type_descriptor "ios_base **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x68)" ( (binary_expression "this + 0x68" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 100);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 100)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 100)" * (cast_expression "(undefined4 *)(param_1 + 100)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 100) = 8;" (assignment_expression "*(undefined4 *)(param_1 + 100) = 8" (pointer_expression "*(undefined4 *)(param_1 + 100)" * (cast_expression "(undefined4 *)(param_1 + 100)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(this + 100) = uVar1;" (assignment_expression "*(undefined4 *)(this + 100) = uVar1" (pointer_expression "*(undefined4 *)(this + 100)" * (cast_expression "(undefined4 *)(this + 100)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 100)" ( (binary_expression "this + 100" identifier + number_literal) )))) = identifier) ;) }))) (labeled_statement "locale::operator=((locale *)(this + 0x6c),(locale *)(param_1 + 0x6c));" statement_identifier : (ERROR ":" :) (expression_statement "operator=((locale *)(this + 0x6c),(locale *)(param_1 + 0x6c));" (assignment_expression "operator=((locale *)(this + 0x6c),(locale *)(param_1 + 0x6c))" identifier = (parenthesized_expression "((locale *)(this + 0x6c),(locale *)(param_1 + 0x6c))" ( (comma_expression "(locale *)(this + 0x6c),(locale *)(param_1 + 0x6c)" (cast_expression "(locale *)(this + 0x6c)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x6c)" ( (binary_expression "this + 0x6c" identifier + number_literal) ))) , (cast_expression "(locale *)(param_1 + 0x6c)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00244360(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  \n  iVar5 = param_1 + 0x24;\n  *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4);\n  *(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8);\n  *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc);\n  *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10);\n  *(undefined4 *)(param_1 + 0x14) = *(undefined4 *)(param_2 + 0x14);\n  uVar1 = *(undefined4 *)(param_2 + 0x18);\n  *(undefined4 *)(param_2 + 0x18) = 0;\n  *(undefined4 *)(param_1 + 0x18) = uVar1;\n  iVar4 = *(int *)(param_1 + 0x68);\n  if ((iVar4 != 0) && (iVar4 != iVar5)) {\n    FUN_001fefd0(iVar4);\n  }\n  iVar4 = *(int *)(param_2 + 0x68);\n  if (iVar4 == param_2 + 0x24) {\n    *(int *)(param_1 + 0x68) = iVar5;\n    iVar4 = 0;\n    *(undefined4 *)(param_1 + 100) = 8;\n    while( true ) {\n      puVar6 = (undefined4 *)(iVar5 + iVar4);\n      puVar3 = (undefined4 *)(*(int *)(param_2 + 0x68) + iVar4);\n      iVar4 = iVar4 + 8;\n      uVar1 = *puVar3;\n      uVar2 = puVar3[1];\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      *puVar6 = uVar1;\n      puVar6[1] = uVar2;\n      if (iVar4 == 0x40) break;\n      iVar5 = *(int *)(param_1 + 0x68);\n    }\n  }\n  else {\n    *(int *)(param_2 + 0x68) = param_2 + 0x24;\n    *(int *)(param_1 + 0x68) = iVar4;\n    uVar1 = *(undefined4 *)(param_2 + 100);\n    *(undefined4 *)(param_2 + 100) = 8;\n    *(undefined4 *)(param_1 + 100) = uVar1;\n  }\n  FUN_00201700(param_1 + 0x6c,param_2 + 0x6c);\n  return;\n}\n\n" (function_definition "void FUN_00244360(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  \n  iVar5 = param_1 + 0x24;\n  *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4);\n  *(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8);\n  *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc);\n  *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10);\n  *(undefined4 *)(param_1 + 0x14) = *(undefined4 *)(param_2 + 0x14);\n  uVar1 = *(undefined4 *)(param_2 + 0x18);\n  *(undefined4 *)(param_2 + 0x18) = 0;\n  *(undefined4 *)(param_1 + 0x18) = uVar1;\n  iVar4 = *(int *)(param_1 + 0x68);\n  if ((iVar4 != 0) && (iVar4 != iVar5)) {\n    FUN_001fefd0(iVar4);\n  }\n  iVar4 = *(int *)(param_2 + 0x68);\n  if (iVar4 == param_2 + 0x24) {\n    *(int *)(param_1 + 0x68) = iVar5;\n    iVar4 = 0;\n    *(undefined4 *)(param_1 + 100) = 8;\n    while( true ) {\n      puVar6 = (undefined4 *)(iVar5 + iVar4);\n      puVar3 = (undefined4 *)(*(int *)(param_2 + 0x68) + iVar4);\n      iVar4 = iVar4 + 8;\n      uVar1 = *puVar3;\n      uVar2 = puVar3[1];\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      *puVar6 = uVar1;\n      puVar6[1] = uVar2;\n      if (iVar4 == 0x40) break;\n      iVar5 = *(int *)(param_1 + 0x68);\n    }\n  }\n  else {\n    *(int *)(param_2 + 0x68) = param_2 + 0x24;\n    *(int *)(param_1 + 0x68) = iVar4;\n    uVar1 = *(undefined4 *)(param_2 + 100);\n    *(undefined4 *)(param_2 + 100) = 8;\n    *(undefined4 *)(param_1 + 100) = uVar1;\n  }\n  FUN_00201700(param_1 + 0x6c,param_2 + 0x6c);\n  return;\n}" primitive_type (function_declarator "FUN_00244360(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  \n  iVar5 = param_1 + 0x24;\n  *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4);\n  *(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8);\n  *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc);\n  *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10);\n  *(undefined4 *)(param_1 + 0x14) = *(undefined4 *)(param_2 + 0x14);\n  uVar1 = *(undefined4 *)(param_2 + 0x18);\n  *(undefined4 *)(param_2 + 0x18) = 0;\n  *(undefined4 *)(param_1 + 0x18) = uVar1;\n  iVar4 = *(int *)(param_1 + 0x68);\n  if ((iVar4 != 0) && (iVar4 != iVar5)) {\n    FUN_001fefd0(iVar4);\n  }\n  iVar4 = *(int *)(param_2 + 0x68);\n  if (iVar4 == param_2 + 0x24) {\n    *(int *)(param_1 + 0x68) = iVar5;\n    iVar4 = 0;\n    *(undefined4 *)(param_1 + 100) = 8;\n    while( true ) {\n      puVar6 = (undefined4 *)(iVar5 + iVar4);\n      puVar3 = (undefined4 *)(*(int *)(param_2 + 0x68) + iVar4);\n      iVar4 = iVar4 + 8;\n      uVar1 = *puVar3;\n      uVar2 = puVar3[1];\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      *puVar6 = uVar1;\n      puVar6[1] = uVar2;\n      if (iVar4 == 0x40) break;\n      iVar5 = *(int *)(param_1 + 0x68);\n    }\n  }\n  else {\n    *(int *)(param_2 + 0x68) = param_2 + 0x24;\n    *(int *)(param_1 + 0x68) = iVar4;\n    uVar1 = *(undefined4 *)(param_2 + 100);\n    *(undefined4 *)(param_2 + 100) = 8;\n    *(undefined4 *)(param_1 + 100) = uVar1;\n  }\n  FUN_00201700(param_1 + 0x6c,param_2 + 0x6c);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (expression_statement "iVar5 = param_1 + 0x24;" (assignment_expression "iVar5 = param_1 + 0x24" identifier = (binary_expression "param_1 + 0x24" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4);" (assignment_expression "*(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4)" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_2 + 4)" * (cast_expression "(undefined4 *)(param_2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8);" (assignment_expression "*(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8)" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc);" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc)" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10);" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10)" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_2 + 0x10)" * (cast_expression "(undefined4 *)(param_2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x14) = *(undefined4 *)(param_2 + 0x14);" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = *(undefined4 *)(param_2 + 0x14)" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_2 + 0x14)" * (cast_expression "(undefined4 *)(param_2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = *(undefined4 *)(param_2 + 0x18);" (assignment_expression "uVar1 = *(undefined4 *)(param_2 + 0x18)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0x18)" * (cast_expression "(undefined4 *)(param_2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_2 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x18)" * (cast_expression "(undefined4 *)(param_2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x18) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0x68);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x68)" identifier = (pointer_expression "*(int *)(param_1 + 0x68)" * (cast_expression "(int *)(param_1 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) ))))) ;) (if_statement "if ((iVar4 != 0) && (iVar4 != iVar5)) {\n    FUN_001fefd0(iVar4);\n  }" if (parenthesized_expression "((iVar4 != 0) && (iVar4 != iVar5))" ( (binary_expression "(iVar4 != 0) && (iVar4 != iVar5)" (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar4 != iVar5)" ( (binary_expression "iVar4 != iVar5" identifier != identifier) ))) )) (compound_statement "{\n    FUN_001fefd0(iVar4);\n  }" { (expression_statement "FUN_001fefd0(iVar4);" (call_expression "FUN_001fefd0(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) })) (expression_statement "iVar4 = *(int *)(param_2 + 0x68);" (assignment_expression "iVar4 = *(int *)(param_2 + 0x68)" identifier = (pointer_expression "*(int *)(param_2 + 0x68)" * (cast_expression "(int *)(param_2 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x68)" ( (binary_expression "param_2 + 0x68" identifier + number_literal) ))))) ;) (if_statement "if (iVar4 == param_2 + 0x24) {\n    *(int *)(param_1 + 0x68) = iVar5;\n    iVar4 = 0;\n    *(undefined4 *)(param_1 + 100) = 8;\n    while( true ) {\n      puVar6 = (undefined4 *)(iVar5 + iVar4);\n      puVar3 = (undefined4 *)(*(int *)(param_2 + 0x68) + iVar4);\n      iVar4 = iVar4 + 8;\n      uVar1 = *puVar3;\n      uVar2 = puVar3[1];\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      *puVar6 = uVar1;\n      puVar6[1] = uVar2;\n      if (iVar4 == 0x40) break;\n      iVar5 = *(int *)(param_1 + 0x68);\n    }\n  }\n  else {\n    *(int *)(param_2 + 0x68) = param_2 + 0x24;\n    *(int *)(param_1 + 0x68) = iVar4;\n    uVar1 = *(undefined4 *)(param_2 + 100);\n    *(undefined4 *)(param_2 + 100) = 8;\n    *(undefined4 *)(param_1 + 100) = uVar1;\n  }" if (parenthesized_expression "(iVar4 == param_2 + 0x24)" ( (binary_expression "iVar4 == param_2 + 0x24" identifier == (binary_expression "param_2 + 0x24" identifier + number_literal)) )) (compound_statement "{\n    *(int *)(param_1 + 0x68) = iVar5;\n    iVar4 = 0;\n    *(undefined4 *)(param_1 + 100) = 8;\n    while( true ) {\n      puVar6 = (undefined4 *)(iVar5 + iVar4);\n      puVar3 = (undefined4 *)(*(int *)(param_2 + 0x68) + iVar4);\n      iVar4 = iVar4 + 8;\n      uVar1 = *puVar3;\n      uVar2 = puVar3[1];\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      *puVar6 = uVar1;\n      puVar6[1] = uVar2;\n      if (iVar4 == 0x40) break;\n      iVar5 = *(int *)(param_1 + 0x68);\n    }\n  }" { (expression_statement "*(int *)(param_1 + 0x68) = iVar5;" (assignment_expression "*(int *)(param_1 + 0x68) = iVar5" (pointer_expression "*(int *)(param_1 + 0x68)" * (cast_expression "(int *)(param_1 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 100) = 8;" (assignment_expression "*(undefined4 *)(param_1 + 100) = 8" (pointer_expression "*(undefined4 *)(param_1 + 100)" * (cast_expression "(undefined4 *)(param_1 + 100)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) = number_literal) ;) (while_statement "while( true ) {\n      puVar6 = (undefined4 *)(iVar5 + iVar4);\n      puVar3 = (undefined4 *)(*(int *)(param_2 + 0x68) + iVar4);\n      iVar4 = iVar4 + 8;\n      uVar1 = *puVar3;\n      uVar2 = puVar3[1];\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      *puVar6 = uVar1;\n      puVar6[1] = uVar2;\n      if (iVar4 == 0x40) break;\n      iVar5 = *(int *)(param_1 + 0x68);\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      puVar6 = (undefined4 *)(iVar5 + iVar4);\n      puVar3 = (undefined4 *)(*(int *)(param_2 + 0x68) + iVar4);\n      iVar4 = iVar4 + 8;\n      uVar1 = *puVar3;\n      uVar2 = puVar3[1];\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      *puVar6 = uVar1;\n      puVar6[1] = uVar2;\n      if (iVar4 == 0x40) break;\n      iVar5 = *(int *)(param_1 + 0x68);\n    }" { (expression_statement "puVar6 = (undefined4 *)(iVar5 + iVar4);" (assignment_expression "puVar6 = (undefined4 *)(iVar5 + iVar4)" identifier = (cast_expression "(undefined4 *)(iVar5 + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + iVar4)" ( (binary_expression "iVar5 + iVar4" identifier + identifier) )))) ;) (expression_statement "puVar3 = (undefined4 *)(*(int *)(param_2 + 0x68) + iVar4);" (assignment_expression "puVar3 = (undefined4 *)(*(int *)(param_2 + 0x68) + iVar4)" identifier = (cast_expression "(undefined4 *)(*(int *)(param_2 + 0x68) + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0x68) + iVar4)" ( (binary_expression "*(int *)(param_2 + 0x68) + iVar4" (pointer_expression "*(int *)(param_2 + 0x68)" * (cast_expression "(int *)(param_2 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x68)" ( (binary_expression "param_2 + 0x68" identifier + number_literal) )))) + identifier) )))) ;) (expression_statement "iVar4 = iVar4 + 8;" (assignment_expression "iVar4 = iVar4 + 8" identifier = (binary_expression "iVar4 + 8" identifier + number_literal)) ;) (expression_statement "uVar1 = *puVar3;" (assignment_expression "uVar1 = *puVar3" identifier = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "uVar2 = puVar3[1];" (assignment_expression "uVar2 = puVar3[1]" identifier = (subscript_expression "puVar3[1]" identifier [ number_literal ])) ;) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar6 = uVar1;" (assignment_expression "*puVar6 = uVar1" (pointer_expression "*puVar6" * identifier) = identifier) ;) (expression_statement "puVar6[1] = uVar2;" (assignment_expression "puVar6[1] = uVar2" (subscript_expression "puVar6[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar4 == 0x40) break;" if (parenthesized_expression "(iVar4 == 0x40)" ( (binary_expression "iVar4 == 0x40" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar5 = *(int *)(param_1 + 0x68);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x68)" identifier = (pointer_expression "*(int *)(param_1 + 0x68)" * (cast_expression "(int *)(param_1 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) ))))) ;) })) }) (else_clause "else {\n    *(int *)(param_2 + 0x68) = param_2 + 0x24;\n    *(int *)(param_1 + 0x68) = iVar4;\n    uVar1 = *(undefined4 *)(param_2 + 100);\n    *(undefined4 *)(param_2 + 100) = 8;\n    *(undefined4 *)(param_1 + 100) = uVar1;\n  }" else (compound_statement "{\n    *(int *)(param_2 + 0x68) = param_2 + 0x24;\n    *(int *)(param_1 + 0x68) = iVar4;\n    uVar1 = *(undefined4 *)(param_2 + 100);\n    *(undefined4 *)(param_2 + 100) = 8;\n    *(undefined4 *)(param_1 + 100) = uVar1;\n  }" { (expression_statement "*(int *)(param_2 + 0x68) = param_2 + 0x24;" (assignment_expression "*(int *)(param_2 + 0x68) = param_2 + 0x24" (pointer_expression "*(int *)(param_2 + 0x68)" * (cast_expression "(int *)(param_2 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x68)" ( (binary_expression "param_2 + 0x68" identifier + number_literal) )))) = (binary_expression "param_2 + 0x24" identifier + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x68) = iVar4;" (assignment_expression "*(int *)(param_1 + 0x68) = iVar4" (pointer_expression "*(int *)(param_1 + 0x68)" * (cast_expression "(int *)(param_1 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar1 = *(undefined4 *)(param_2 + 100);" (assignment_expression "uVar1 = *(undefined4 *)(param_2 + 100)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 100)" * (cast_expression "(undefined4 *)(param_2 + 100)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 100)" ( (binary_expression "param_2 + 100" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_2 + 100) = 8;" (assignment_expression "*(undefined4 *)(param_2 + 100) = 8" (pointer_expression "*(undefined4 *)(param_2 + 100)" * (cast_expression "(undefined4 *)(param_2 + 100)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 100)" ( (binary_expression "param_2 + 100" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 100) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 100) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 100)" * (cast_expression "(undefined4 *)(param_1 + 100)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "FUN_00201700(param_1 + 0x6c,param_2 + 0x6c);" (call_expression "FUN_00201700(param_1 + 0x6c,param_2 + 0x6c)" identifier (argument_list "(param_1 + 0x6c,param_2 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) , (binary_expression "param_2 + 0x6c" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_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 IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != IDENT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( 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 IDENT == (binary_expression IDENT + LIT)) )) (compound_statement { (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 IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (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) )))) + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + 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 IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_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 (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00244360(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  \n  iVar5 = param_1 + 0x24;\n  *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4);\n  *(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8);\n  *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc);\n  *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10);\n  *(undefined4 *)(param_1 + 0x14) = *(undefined4 *)(param_2 + 0x14);\n  uVar1 = *(undefined4 *)(param_2 + 0x18);\n  *(undefined4 *)(param_2 + 0x18) = 0;\n  *(undefined4 *)(param_1 + 0x18) = uVar1;\n  iVar4 = *(int *)(param_1 + 0x68);\n  if ((iVar4 != 0) && (iVar4 != iVar5)) {\n    FUN_001fefd0(iVar4);\n  }\n  iVar4 = *(int *)(param_2 + 0x68);\n  if (iVar4 == param_2 + 0x24) {\n    *(int *)(param_1 + 0x68) = iVar5;\n    iVar4 = 0;\n    *(undefined4 *)(param_1 + 100) = 8;\n    while( true ) {\n      puVar6 = (undefined4 *)(iVar5 + iVar4);\n      puVar3 = (undefined4 *)(*(int *)(param_2 + 0x68) + iVar4);\n      iVar4 = iVar4 + 8;\n      uVar1 = *puVar3;\n      uVar2 = puVar3[1];\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      *puVar6 = uVar1;\n      puVar6[1] = uVar2;\n      if (iVar4 == 0x40) break;\n      iVar5 = *(int *)(param_1 + 0x68);\n    }\n  }\n  else {\n    *(int *)(param_2 + 0x68) = param_2 + 0x24;\n    *(int *)(param_1 + 0x68) = iVar4;\n    uVar1 = *(undefined4 *)(param_2 + 100);\n    *(undefined4 *)(param_2 + 100) = 8;\n    *(undefined4 *)(param_1 + 100) = uVar1;\n  }\n  FUN_00201700(param_1 + 0x6c,param_2 + 0x6c);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00244360(int param_1,int param_2)" (identifier "FUN_00244360") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  \n  iVar5 = param_1 + 0x24;\n  *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4);\n  *(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8);\n  *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc);\n  *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10);\n  *(undefined4 *)(param_1 + 0x14) = *(undefined4 *)(param_2 + 0x14);\n  uVar1 = *(undefined4 *)(param_2 + 0x18);\n  *(undefined4 *)(param_2 + 0x18) = 0;\n  *(undefined4 *)(param_1 + 0x18) = uVar1;\n  iVar4 = *(int *)(param_1 + 0x68);\n  if ((iVar4 != 0) && (iVar4 != iVar5)) {\n    FUN_001fefd0(iVar4);\n  }\n  iVar4 = *(int *)(param_2 + 0x68);\n  if (iVar4 == param_2 + 0x24) {\n    *(int *)(param_1 + 0x68) = iVar5;\n    iVar4 = 0;\n    *(undefined4 *)(param_1 + 100) = 8;\n    while( true ) {\n      puVar6 = (undefined4 *)(iVar5 + iVar4);\n      puVar3 = (undefined4 *)(*(int *)(param_2 + 0x68) + iVar4);\n      iVar4 = iVar4 + 8;\n      uVar1 = *puVar3;\n      uVar2 = puVar3[1];\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      *puVar6 = uVar1;\n      puVar6[1] = uVar2;\n      if (iVar4 == 0x40) break;\n      iVar5 = *(int *)(param_1 + 0x68);\n    }\n  }\n  else {\n    *(int *)(param_2 + 0x68) = param_2 + 0x24;\n    *(int *)(param_1 + 0x68) = iVar4;\n    uVar1 = *(undefined4 *)(param_2 + 100);\n    *(undefined4 *)(param_2 + 100) = 8;\n    *(undefined4 *)(param_1 + 100) = uVar1;\n  }\n  FUN_00201700(param_1 + 0x6c,param_2 + 0x6c);\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 *puVar6;" (type_identifier "undefined4") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (expression_statement "iVar5 = param_1 + 0x24;" (assignment_expression "iVar5 = param_1 + 0x24" (identifier "iVar5") (= "=") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4);" (assignment_expression "*(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4)" (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(param_2 + 4)" (* "*") (cast_expression "(undefined4 *)(param_2 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8);" (assignment_expression "*(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8)" (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(param_2 + 8)" (* "*") (cast_expression "(undefined4 *)(param_2 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc);" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc)" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(param_2 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10);" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10)" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(param_2 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x14) = *(undefined4 *)(param_2 + 0x14);" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = *(undefined4 *)(param_2 + 0x14)" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(param_2 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "uVar1 = *(undefined4 *)(param_2 + 0x18);" (assignment_expression "uVar1 = *(undefined4 *)(param_2 + 0x18)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(param_2 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(param_2 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x18) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "iVar4 = *(int *)(param_1 + 0x68);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x68)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + 0x68)" (* "*") (cast_expression "(int *)(param_1 + 0x68)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")"))))) (; ";")) (if_statement "if ((iVar4 != 0) && (iVar4 != iVar5)) {\n    FUN_001fefd0(iVar4);\n  }" (if "if") (parenthesized_expression "((iVar4 != 0) && (iVar4 != iVar5))" (( "(") (binary_expression "(iVar4 != 0) && (iVar4 != iVar5)" (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar4 != iVar5)" (( "(") (binary_expression "iVar4 != iVar5" (identifier "iVar4") (!= "!=") (identifier "iVar5")) () ")"))) () ")")) (compound_statement "{\n    FUN_001fefd0(iVar4);\n  }" ({ "{") (expression_statement "FUN_001fefd0(iVar4);" (call_expression "FUN_001fefd0(iVar4)" (identifier "FUN_001fefd0") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar4 = *(int *)(param_2 + 0x68);" (assignment_expression "iVar4 = *(int *)(param_2 + 0x68)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_2 + 0x68)" (* "*") (cast_expression "(int *)(param_2 + 0x68)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x68)" (( "(") (binary_expression "param_2 + 0x68" (identifier "param_2") (+ "+") (number_literal "0x68")) () ")"))))) (; ";")) (if_statement "if (iVar4 == param_2 + 0x24) {\n    *(int *)(param_1 + 0x68) = iVar5;\n    iVar4 = 0;\n    *(undefined4 *)(param_1 + 100) = 8;\n    while( true ) {\n      puVar6 = (undefined4 *)(iVar5 + iVar4);\n      puVar3 = (undefined4 *)(*(int *)(param_2 + 0x68) + iVar4);\n      iVar4 = iVar4 + 8;\n      uVar1 = *puVar3;\n      uVar2 = puVar3[1];\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      *puVar6 = uVar1;\n      puVar6[1] = uVar2;\n      if (iVar4 == 0x40) break;\n      iVar5 = *(int *)(param_1 + 0x68);\n    }\n  }\n  else {\n    *(int *)(param_2 + 0x68) = param_2 + 0x24;\n    *(int *)(param_1 + 0x68) = iVar4;\n    uVar1 = *(undefined4 *)(param_2 + 100);\n    *(undefined4 *)(param_2 + 100) = 8;\n    *(undefined4 *)(param_1 + 100) = uVar1;\n  }" (if "if") (parenthesized_expression "(iVar4 == param_2 + 0x24)" (( "(") (binary_expression "iVar4 == param_2 + 0x24" (identifier "iVar4") (== "==") (binary_expression "param_2 + 0x24" (identifier "param_2") (+ "+") (number_literal "0x24"))) () ")")) (compound_statement "{\n    *(int *)(param_1 + 0x68) = iVar5;\n    iVar4 = 0;\n    *(undefined4 *)(param_1 + 100) = 8;\n    while( true ) {\n      puVar6 = (undefined4 *)(iVar5 + iVar4);\n      puVar3 = (undefined4 *)(*(int *)(param_2 + 0x68) + iVar4);\n      iVar4 = iVar4 + 8;\n      uVar1 = *puVar3;\n      uVar2 = puVar3[1];\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      *puVar6 = uVar1;\n      puVar6[1] = uVar2;\n      if (iVar4 == 0x40) break;\n      iVar5 = *(int *)(param_1 + 0x68);\n    }\n  }" ({ "{") (expression_statement "*(int *)(param_1 + 0x68) = iVar5;" (assignment_expression "*(int *)(param_1 + 0x68) = iVar5" (pointer_expression "*(int *)(param_1 + 0x68)" (* "*") (cast_expression "(int *)(param_1 + 0x68)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")")))) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 100) = 8;" (assignment_expression "*(undefined4 *)(param_1 + 100) = 8" (pointer_expression "*(undefined4 *)(param_1 + 100)" (* "*") (cast_expression "(undefined4 *)(param_1 + 100)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 100)" (( "(") (binary_expression "param_1 + 100" (identifier "param_1") (+ "+") (number_literal "100")) () ")")))) (= "=") (number_literal "8")) (; ";")) (while_statement "while( true ) {\n      puVar6 = (undefined4 *)(iVar5 + iVar4);\n      puVar3 = (undefined4 *)(*(int *)(param_2 + 0x68) + iVar4);\n      iVar4 = iVar4 + 8;\n      uVar1 = *puVar3;\n      uVar2 = puVar3[1];\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      *puVar6 = uVar1;\n      puVar6[1] = uVar2;\n      if (iVar4 == 0x40) break;\n      iVar5 = *(int *)(param_1 + 0x68);\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      puVar6 = (undefined4 *)(iVar5 + iVar4);\n      puVar3 = (undefined4 *)(*(int *)(param_2 + 0x68) + iVar4);\n      iVar4 = iVar4 + 8;\n      uVar1 = *puVar3;\n      uVar2 = puVar3[1];\n      *puVar3 = 0;\n      puVar3[1] = 0;\n      *puVar6 = uVar1;\n      puVar6[1] = uVar2;\n      if (iVar4 == 0x40) break;\n      iVar5 = *(int *)(param_1 + 0x68);\n    }" ({ "{") (expression_statement "puVar6 = (undefined4 *)(iVar5 + iVar4);" (assignment_expression "puVar6 = (undefined4 *)(iVar5 + iVar4)" (identifier "puVar6") (= "=") (cast_expression "(undefined4 *)(iVar5 + iVar4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + iVar4)" (( "(") (binary_expression "iVar5 + iVar4" (identifier "iVar5") (+ "+") (identifier "iVar4")) () ")")))) (; ";")) (expression_statement "puVar3 = (undefined4 *)(*(int *)(param_2 + 0x68) + iVar4);" (assignment_expression "puVar3 = (undefined4 *)(*(int *)(param_2 + 0x68) + iVar4)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)(*(int *)(param_2 + 0x68) + iVar4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_2 + 0x68) + iVar4)" (( "(") (binary_expression "*(int *)(param_2 + 0x68) + iVar4" (pointer_expression "*(int *)(param_2 + 0x68)" (* "*") (cast_expression "(int *)(param_2 + 0x68)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x68)" (( "(") (binary_expression "param_2 + 0x68" (identifier "param_2") (+ "+") (number_literal "0x68")) () ")")))) (+ "+") (identifier "iVar4")) () ")")))) (; ";")) (expression_statement "iVar4 = iVar4 + 8;" (assignment_expression "iVar4 = iVar4 + 8" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 8" (identifier "iVar4") (+ "+") (number_literal "8"))) (; ";")) (expression_statement "uVar1 = *puVar3;" (assignment_expression "uVar1 = *puVar3" (identifier "uVar1") (= "=") (pointer_expression "*puVar3" (* "*") (identifier "puVar3"))) (; ";")) (expression_statement "uVar2 = puVar3[1];" (assignment_expression "uVar2 = puVar3[1]" (identifier "uVar2") (= "=") (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar6 = uVar1;" (assignment_expression "*puVar6 = uVar1" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "puVar6[1] = uVar2;" (assignment_expression "puVar6[1] = uVar2" (subscript_expression "puVar6[1]" (identifier "puVar6") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (if_statement "if (iVar4 == 0x40) break;" (if "if") (parenthesized_expression "(iVar4 == 0x40)" (( "(") (binary_expression "iVar4 == 0x40" (identifier "iVar4") (== "==") (number_literal "0x40")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar5 = *(int *)(param_1 + 0x68);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x68)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(param_1 + 0x68)" (* "*") (cast_expression "(int *)(param_1 + 0x68)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")"))))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    *(int *)(param_2 + 0x68) = param_2 + 0x24;\n    *(int *)(param_1 + 0x68) = iVar4;\n    uVar1 = *(undefined4 *)(param_2 + 100);\n    *(undefined4 *)(param_2 + 100) = 8;\n    *(undefined4 *)(param_1 + 100) = uVar1;\n  }" (else "else") (compound_statement "{\n    *(int *)(param_2 + 0x68) = param_2 + 0x24;\n    *(int *)(param_1 + 0x68) = iVar4;\n    uVar1 = *(undefined4 *)(param_2 + 100);\n    *(undefined4 *)(param_2 + 100) = 8;\n    *(undefined4 *)(param_1 + 100) = uVar1;\n  }" ({ "{") (expression_statement "*(int *)(param_2 + 0x68) = param_2 + 0x24;" (assignment_expression "*(int *)(param_2 + 0x68) = param_2 + 0x24" (pointer_expression "*(int *)(param_2 + 0x68)" (* "*") (cast_expression "(int *)(param_2 + 0x68)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x68)" (( "(") (binary_expression "param_2 + 0x68" (identifier "param_2") (+ "+") (number_literal "0x68")) () ")")))) (= "=") (binary_expression "param_2 + 0x24" (identifier "param_2") (+ "+") (number_literal "0x24"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x68) = iVar4;" (assignment_expression "*(int *)(param_1 + 0x68) = iVar4" (pointer_expression "*(int *)(param_1 + 0x68)" (* "*") (cast_expression "(int *)(param_1 + 0x68)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")")))) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "uVar1 = *(undefined4 *)(param_2 + 100);" (assignment_expression "uVar1 = *(undefined4 *)(param_2 + 100)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(param_2 + 100)" (* "*") (cast_expression "(undefined4 *)(param_2 + 100)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 100)" (( "(") (binary_expression "param_2 + 100" (identifier "param_2") (+ "+") (number_literal "100")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(param_2 + 100) = 8;" (assignment_expression "*(undefined4 *)(param_2 + 100) = 8" (pointer_expression "*(undefined4 *)(param_2 + 100)" (* "*") (cast_expression "(undefined4 *)(param_2 + 100)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 100)" (( "(") (binary_expression "param_2 + 100" (identifier "param_2") (+ "+") (number_literal "100")) () ")")))) (= "=") (number_literal "8")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 100) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 100) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 100)" (* "*") (cast_expression "(undefined4 *)(param_1 + 100)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 100)" (( "(") (binary_expression "param_1 + 100" (identifier "param_1") (+ "+") (number_literal "100")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (} "}")))) (expression_statement "FUN_00201700(param_1 + 0x6c,param_2 + 0x6c);" (call_expression "FUN_00201700(param_1 + 0x6c,param_2 + 0x6c)" (identifier "FUN_00201700") (argument_list "(param_1 + 0x6c,param_2 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) (, ",") (binary_expression "param_2 + 0x6c" (identifier "param_2") (+ "+") (number_literal "0x6c")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::ios_base::_M_move(std::ios_base&) */

void __thiscall std::type_1::function_1(type_1 *var_1,type_1 *var_2)

{
  type_2 uVar1;
  type_1 *var_3;
  type_2 uVar3;
  type_2 *puVar4;
  int var_6;
  type_1 *var_4;
  
  var_4 = var_1 + 0x24;
  *(type_2 *)(var_1 + 4) = *(type_2 *)(var_2 + 4);
  *(type_2 *)(var_1 + 8) = *(type_2 *)(var_2 + 8);
  *(type_2 *)(var_1 + 0xc) = *(type_2 *)(var_2 + 0xc);
  *(type_2 *)(var_1 + 0x10) = *(type_2 *)(var_2 + 0x10);
  *(type_2 *)(var_1 + 0x14) = *(type_2 *)(var_2 + 0x14);
  uVar1 = *(type_2 *)(var_2 + 0x18);
  *(type_2 *)(var_2 + 0x18) = 0;
  *(type_2 *)(var_1 + 0x18) = uVar1;
  var_3 = *(type_1 **)(var_1 + 0x68);
  if ((var_3 != (type_1 *)0x0) && (var_3 != var_4)) {
    var_5(var_3);
  }
  var_3 = *(type_1 **)(var_2 + 0x68);
  if (var_3 == var_2 + 0x24) {
    *(type_1 **)(var_1 + 0x68) = var_4;
    var_6 = 0;
    *(type_2 *)(var_1 + 100) = 8;
    while( true ) {
      var_4 = var_4 + var_6;
      puVar4 = (type_2 *)(*(int *)(var_2 + 0x68) + var_6);
      var_6 = var_6 + 8;
      uVar1 = *puVar4;
      uVar3 = puVar4[1];
      *puVar4 = 0;
      puVar4[1] = 0;
      *(type_2 *)var_4 = uVar1;
      *(type_2 *)(var_4 + 4) = uVar3;
      if (var_6 == 0x40) break;
      var_4 = *(type_1 **)(var_1 + 0x68);
    }
  }
  else {
    *(type_1 **)(var_2 + 0x68) = var_2 + 0x24;
    *(type_1 **)(var_1 + 0x68) = var_3;
    uVar1 = *(type_2 *)(var_2 + 100);
    *(type_2 *)(var_2 + 100) = 8;
    *(type_2 *)(var_1 + 100) = uVar1;
  }
  locale::operator=((type_3 *)(var_1 + 0x6c),(type_3 *)(var_2 + 0x6c));
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (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: (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))))))) (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: (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))))))) (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: (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))))))) (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: (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))))))) (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: (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))))))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (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))) (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: (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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (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: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (compound_statement (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: (identifier) right: (number_literal))) (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))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) 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: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) 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: (identifier) right: (number_literal)))))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) 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: (identifier) right: (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))))))) (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))) (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: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal))))) (return_statement))))

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

void MASKED(int param_1,int param_2)

{
  undefined4 uVar1;
  undefined4 uVar2;
  undefined4 *puVar3;
  int iVar4;
  int iVar5;
  undefined4 *puVar6;
  
  iVar5 = param_1 + 0x24;
  *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4);
  *(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8);
  *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc);
  *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10);
  *(undefined4 *)(param_1 + 0x14) = *(undefined4 *)(param_2 + 0x14);
  uVar1 = *(undefined4 *)(param_2 + 0x18);
  *(undefined4 *)(param_2 + 0x18) = 0;
  *(undefined4 *)(param_1 + 0x18) = uVar1;
  iVar4 = *(int *)(param_1 + 0x68);
  if ((iVar4 != 0) && (iVar4 != iVar5)) {
    FUN_001fefd0(iVar4);
  }
  iVar4 = *(int *)(param_2 + 0x68);
  if (iVar4 == param_2 + 0x24) {
    *(int *)(param_1 + 0x68) = iVar5;
    iVar4 = 0;
    *(undefined4 *)(param_1 + 100) = 8;
    while( true ) {
      puVar6 = (undefined4 *)(iVar5 + iVar4);
      puVar3 = (undefined4 *)(*(int *)(param_2 + 0x68) + iVar4);
      iVar4 = iVar4 + 8;
      uVar1 = *puVar3;
      uVar2 = puVar3[1];
      *puVar3 = 0;
      puVar3[1] = 0;
      *puVar6 = uVar1;
      puVar6[1] = uVar2;
      if (iVar4 == 0x40) break;
      iVar5 = *(int *)(param_1 + 0x68);
    }
  }
  else {
    *(int *)(param_2 + 0x68) = param_2 + 0x24;
    *(int *)(param_1 + 0x68) = iVar4;
    uVar1 = *(undefined4 *)(param_2 + 100);
    *(undefined4 *)(param_2 + 100) = 8;
    *(undefined4 *)(param_1 + 100) = uVar1;
  }
  FUN_00201700(param_1 + 0x6c,param_2 + 0x6c);
  return;
}

