
DOHcode __regparm3 cnameappend(cnamestore *c,uchar *src,size_t len)

{
  int *piVar1;
  int iVar2;
  uchar *puVar3;
  uint extraout_ECX;
  int iVar4;
  uint uVar5;
  uint uVar6;
  int unaff_EDI;
  undefined8 uVar7;
  
  uVar7 = __x86_get_pc_thunk_di();
  iVar4 = (int)((ulonglong)uVar7 >> 0x20);
  piVar1 = (int *)uVar7;
  iVar2 = piVar1[1];
  if (iVar2 == 0) {
    piVar1[2] = iVar4;
    iVar2 = (**(code **)(unaff_EDI + 0x43784))(iVar4);
    piVar1[1] = iVar2;
    if (iVar2 == 0) {
      return DOH_OUT_OF_MEM;
    }
  }
  else {
    uVar5 = iVar4 + piVar1[2];
    if ((uint)piVar1[2] < uVar5) {
      piVar1[2] = uVar5;
      iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);
      if (iVar2 == 0) {
        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);
        return DOH_OUT_OF_MEM;
      }
      piVar1[1] = iVar2;
    }
  }
  iVar4 = *piVar1;
  puVar3 = (uchar *)(iVar2 + iVar4);
  if (extraout_ECX < 4) {
    if (extraout_ECX == 0) goto LAB_0007396c;
    *puVar3 = *src;
    if ((extraout_ECX & 2) != 0) {
      *(undefined2 *)(puVar3 + (extraout_ECX - 2)) = *(undefined2 *)(src + (extraout_ECX - 2));
      iVar4 = *piVar1;
      goto LAB_0007396c;
    }
  }
  else {
    *(undefined4 *)puVar3 = *(undefined4 *)src;
    *(undefined4 *)(puVar3 + (extraout_ECX - 4)) = *(undefined4 *)(src + (extraout_ECX - 4));
    iVar2 = (int)puVar3 - ((uint)(puVar3 + 4) & 0xfffffffc);
    uVar5 = iVar2 + extraout_ECX & 0xfffffffc;
    if (3 < uVar5) {
      uVar6 = 0;
      do {
        *(undefined4 *)(((uint)(puVar3 + 4) & 0xfffffffc) + uVar6) =
             *(undefined4 *)(src + (uVar6 - iVar2));
        uVar6 = uVar6 + 4;
      } while (uVar6 < uVar5);
    }
  }
  iVar4 = *piVar1;
LAB_0007396c:
  *piVar1 = extraout_ECX + iVar4;
  *(undefined1 *)(piVar1[1] + extraout_ECX + iVar4) = 0;
  return DOH_OK;
}



undefined4 __regparm3 FUN_000738e0(undefined4 param_1,undefined4 *param_2)

{
  int *piVar1;
  int iVar2;
  undefined4 *puVar3;
  uint extraout_ECX;
  int iVar4;
  uint uVar5;
  uint uVar6;
  int unaff_EDI;
  undefined8 uVar7;
  
  uVar7 = FUN_0002eb2c();
  iVar4 = (int)((ulonglong)uVar7 >> 0x20);
  piVar1 = (int *)uVar7;
  iVar2 = piVar1[1];
  if (iVar2 == 0) {
    piVar1[2] = iVar4;
    iVar2 = (**(code **)(unaff_EDI + 0x43784))(iVar4);
    piVar1[1] = iVar2;
    if (iVar2 == 0) {
      return 5;
    }
  }
  else {
    uVar5 = iVar4 + piVar1[2];
    if ((uint)piVar1[2] < uVar5) {
      piVar1[2] = uVar5;
      iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);
      if (iVar2 == 0) {
        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);
        return 5;
      }
      piVar1[1] = iVar2;
    }
  }
  iVar4 = *piVar1;
  puVar3 = (undefined4 *)(iVar2 + iVar4);
  if (extraout_ECX < 4) {
    if (extraout_ECX == 0) goto LAB_0007396c;
    *(undefined1 *)puVar3 = *(undefined1 *)param_2;
    if ((extraout_ECX & 2) != 0) {
      *(undefined2 *)((int)puVar3 + (extraout_ECX - 2)) =
           *(undefined2 *)((int)param_2 + (extraout_ECX - 2));
      iVar4 = *piVar1;
      goto LAB_0007396c;
    }
  }
  else {
    *puVar3 = *param_2;
    *(undefined4 *)((int)puVar3 + (extraout_ECX - 4)) =
         *(undefined4 *)((int)param_2 + (extraout_ECX - 4));
    iVar2 = (int)puVar3 - ((uint)(puVar3 + 1) & 0xfffffffc);
    uVar5 = iVar2 + extraout_ECX & 0xfffffffc;
    if (3 < uVar5) {
      uVar6 = 0;
      do {
        *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =
             *(undefined4 *)((int)param_2 + (uVar6 - iVar2));
        uVar6 = uVar6 + 4;
      } while (uVar6 < uVar5);
    }
  }
  iVar4 = *piVar1;
LAB_0007396c:
  *piVar1 = extraout_ECX + iVar4;
  *(undefined1 *)(piVar1[1] + extraout_ECX + iVar4) = 0;
  return 0;
}


PUSH EBP
MOV EBP,EDX
LEA EDX,[ECX + 0x1]
PUSH EDI
CALL 0x0002eb2c
ADD EDI,0x42ef4
PUSH ESI
MOV ESI,EAX
PUSH EBX
MOV EBX,ECX
SUB ESP,0xc
MOV EAX,dword ptr [EAX + 0x4]
TEST EAX,EAX
JZ 0x000739a8
MOV ECX,dword ptr [ESI + 0x8]
ADD EDX,ECX
CMP ECX,EDX
JNC 0x0007392d
SUB ESP,0x8
MOV dword ptr [ESI + 0x8],EDX
PUSH EDX
PUSH EAX
LEA EAX,[EDI + 0x888]
CALL dword ptr [EAX]
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000739d0
MOV dword ptr [ESI + 0x4],EAX
MOV ECX,dword ptr [ESI]
ADD EAX,ECX
CMP EBX,0x4
JC 0x00073988
MOV EDX,dword ptr [EBP]
LEA ECX,[EAX + 0x4]
AND ECX,0xfffffffc
MOV dword ptr [EAX],EDX
MOV EDX,dword ptr [EBP + EBX*0x1 + -0x4]
MOV dword ptr [EAX + EBX*0x1 + -0x4],EDX
SUB EAX,ECX
SUB EBP,EAX
ADD EAX,EBX
AND EAX,0xfffffffc
CMP EAX,0x4
JC 0x0007396a
AND EAX,0xfffffffc
XOR EDX,EDX
MOV EDI,dword ptr [EBP + EDX*0x1]
MOV dword ptr [ECX + EDX*0x1],EDI
ADD EDX,0x4
CMP EDX,EAX
JC 0x0007395c
MOV ECX,dword ptr [ESI]
MOV EAX,dword ptr [ESI + 0x4]
ADD EBX,ECX
MOV dword ptr [ESI],EBX
MOV byte ptr [EAX + EBX*0x1],0x0
XOR EAX,EAX
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
TEST EBX,EBX
JZ 0x0007396c
MOVZX EDX,byte ptr [EBP]
MOV byte ptr [EAX],DL
TEST BL,0x2
JZ 0x0007396a
MOVZX EDX,word ptr [EBP + EBX*0x1 + -0x2]
MOV word ptr [EAX + EBX*0x1 + -0x2],DX
MOV ECX,dword ptr [ESI]
JMP 0x0007396c
SUB ESP,0xc
LEA EAX,[EDI + 0x890]
MOV dword ptr [ESI + 0x8],EDX
PUSH EDX
CALL dword ptr [EAX]
MOV dword ptr [ESI + 0x4],EAX
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0007392d
MOV EAX,0x5
JMP 0x00073979
SUB ESP,0xc
PUSH dword ptr [ESI + 0x4]
LEA EAX,[EDI + 0x88c]
CALL dword ptr [EAX]
MOV EAX,0x5
ADD ESP,0x10
JMP 0x00073979
(translation_unit "undefined4 __regparm3 FUN_000738e0(undefined4 param_1,undefined4 *param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  uint extraout_ECX;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  int unaff_EDI;\n  undefined8 uVar7;\n  \n  uVar7 = FUN_0002eb2c();\n  iVar4 = (int)((ulonglong)uVar7 >> 0x20);\n  piVar1 = (int *)uVar7;\n  iVar2 = piVar1[1];\n  if (iVar2 == 0) {\n    piVar1[2] = iVar4;\n    iVar2 = (**(code **)(unaff_EDI + 0x43784))(iVar4);\n    piVar1[1] = iVar2;\n    if (iVar2 == 0) {\n      return 5;\n    }\n  }\n  else {\n    uVar5 = iVar4 + piVar1[2];\n    if ((uint)piVar1[2] < uVar5) {\n      piVar1[2] = uVar5;\n      iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);\n      if (iVar2 == 0) {\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return 5;\n      }\n      piVar1[1] = iVar2;\n    }\n  }\n  iVar4 = *piVar1;\n  puVar3 = (undefined4 *)(iVar2 + iVar4);\n  if (extraout_ECX < 4) {\n    if (extraout_ECX == 0) goto LAB_0007396c;\n    *(undefined1 *)puVar3 = *(undefined1 *)param_2;\n    if ((extraout_ECX & 2) != 0) {\n      *(undefined2 *)((int)puVar3 + (extraout_ECX - 2)) =\n           *(undefined2 *)((int)param_2 + (extraout_ECX - 2));\n      iVar4 = *piVar1;\n      goto LAB_0007396c;\n    }\n  }\n  else {\n    *puVar3 = *param_2;\n    *(undefined4 *)((int)puVar3 + (extraout_ECX - 4)) =\n         *(undefined4 *)((int)param_2 + (extraout_ECX - 4));\n    iVar2 = (int)puVar3 - ((uint)(puVar3 + 1) & 0xfffffffc);\n    uVar5 = iVar2 + extraout_ECX & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar6 = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)((int)param_2 + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      } while (uVar6 < uVar5);\n    }\n  }\n  iVar4 = *piVar1;\nLAB_0007396c:\n  *piVar1 = extraout_ECX + iVar4;\n  *(undefined1 *)(piVar1[1] + extraout_ECX + iVar4) = 0;\n  return 0;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_000738e0(undefined4 param_1,undefined4 *param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  uint extraout_ECX;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  int unaff_EDI;\n  undefined8 uVar7;\n  \n  uVar7 = FUN_0002eb2c();\n  iVar4 = (int)((ulonglong)uVar7 >> 0x20);\n  piVar1 = (int *)uVar7;\n  iVar2 = piVar1[1];\n  if (iVar2 == 0) {\n    piVar1[2] = iVar4;\n    iVar2 = (**(code **)(unaff_EDI + 0x43784))(iVar4);\n    piVar1[1] = iVar2;\n    if (iVar2 == 0) {\n      return 5;\n    }\n  }\n  else {\n    uVar5 = iVar4 + piVar1[2];\n    if ((uint)piVar1[2] < uVar5) {\n      piVar1[2] = uVar5;\n      iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);\n      if (iVar2 == 0) {\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return 5;\n      }\n      piVar1[1] = iVar2;\n    }\n  }\n  iVar4 = *piVar1;\n  puVar3 = (undefined4 *)(iVar2 + iVar4);\n  if (extraout_ECX < 4) {\n    if (extraout_ECX == 0) goto LAB_0007396c;\n    *(undefined1 *)puVar3 = *(undefined1 *)param_2;\n    if ((extraout_ECX & 2) != 0) {\n      *(undefined2 *)((int)puVar3 + (extraout_ECX - 2)) =\n           *(undefined2 *)((int)param_2 + (extraout_ECX - 2));\n      iVar4 = *piVar1;\n      goto LAB_0007396c;\n    }\n  }\n  else {\n    *puVar3 = *param_2;\n    *(undefined4 *)((int)puVar3 + (extraout_ECX - 4)) =\n         *(undefined4 *)((int)param_2 + (extraout_ECX - 4));\n    iVar2 = (int)puVar3 - ((uint)(puVar3 + 1) & 0xfffffffc);\n    uVar5 = iVar2 + extraout_ECX & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar6 = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)((int)param_2 + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      } while (uVar6 < uVar5);\n    }\n  }\n  iVar4 = *piVar1;\nLAB_0007396c:\n  *piVar1 = extraout_ECX + iVar4;\n  *(undefined1 *)(piVar1[1] + extraout_ECX + iVar4) = 0;\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_000738e0(undefined4 param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  uint extraout_ECX;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  int unaff_EDI;\n  undefined8 uVar7;\n  \n  uVar7 = FUN_0002eb2c();\n  iVar4 = (int)((ulonglong)uVar7 >> 0x20);\n  piVar1 = (int *)uVar7;\n  iVar2 = piVar1[1];\n  if (iVar2 == 0) {\n    piVar1[2] = iVar4;\n    iVar2 = (**(code **)(unaff_EDI + 0x43784))(iVar4);\n    piVar1[1] = iVar2;\n    if (iVar2 == 0) {\n      return 5;\n    }\n  }\n  else {\n    uVar5 = iVar4 + piVar1[2];\n    if ((uint)piVar1[2] < uVar5) {\n      piVar1[2] = uVar5;\n      iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);\n      if (iVar2 == 0) {\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return 5;\n      }\n      piVar1[1] = iVar2;\n    }\n  }\n  iVar4 = *piVar1;\n  puVar3 = (undefined4 *)(iVar2 + iVar4);\n  if (extraout_ECX < 4) {\n    if (extraout_ECX == 0) goto LAB_0007396c;\n    *(undefined1 *)puVar3 = *(undefined1 *)param_2;\n    if ((extraout_ECX & 2) != 0) {\n      *(undefined2 *)((int)puVar3 + (extraout_ECX - 2)) =\n           *(undefined2 *)((int)param_2 + (extraout_ECX - 2));\n      iVar4 = *piVar1;\n      goto LAB_0007396c;\n    }\n  }\n  else {\n    *puVar3 = *param_2;\n    *(undefined4 *)((int)puVar3 + (extraout_ECX - 4)) =\n         *(undefined4 *)((int)param_2 + (extraout_ECX - 4));\n    iVar2 = (int)puVar3 - ((uint)(puVar3 + 1) & 0xfffffffc);\n    uVar5 = iVar2 + extraout_ECX & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar6 = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)((int)param_2 + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      } while (uVar6 < uVar5);\n    }\n  }\n  iVar4 = *piVar1;\nLAB_0007396c:\n  *piVar1 = extraout_ECX + iVar4;\n  *(undefined1 *)(piVar1[1] + extraout_ECX + iVar4) = 0;\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint extraout_ECX;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined8 uVar7;" type_identifier identifier ;) (expression_statement "uVar7 = FUN_0002eb2c();" (assignment_expression "uVar7 = FUN_0002eb2c()" identifier = (call_expression "FUN_0002eb2c()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar4 = (int)((ulonglong)uVar7 >> 0x20);" (assignment_expression "iVar4 = (int)((ulonglong)uVar7 >> 0x20)" identifier = (cast_expression "(int)((ulonglong)uVar7 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar7 >> 0x20)" ( (binary_expression "(ulonglong)uVar7 >> 0x20" (cast_expression "(ulonglong)uVar7" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "piVar1 = (int *)uVar7;" (assignment_expression "piVar1 = (int *)uVar7" identifier = (cast_expression "(int *)uVar7" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "iVar2 = piVar1[1];" (assignment_expression "iVar2 = piVar1[1]" identifier = (subscript_expression "piVar1[1]" identifier [ number_literal ])) ;) (if_statement "if (iVar2 == 0) {\n    piVar1[2] = iVar4;\n    iVar2 = (**(code **)(unaff_EDI + 0x43784))(iVar4);\n    piVar1[1] = iVar2;\n    if (iVar2 == 0) {\n      return 5;\n    }\n  }\n  else {\n    uVar5 = iVar4 + piVar1[2];\n    if ((uint)piVar1[2] < uVar5) {\n      piVar1[2] = uVar5;\n      iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);\n      if (iVar2 == 0) {\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return 5;\n      }\n      piVar1[1] = iVar2;\n    }\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    piVar1[2] = iVar4;\n    iVar2 = (**(code **)(unaff_EDI + 0x43784))(iVar4);\n    piVar1[1] = iVar2;\n    if (iVar2 == 0) {\n      return 5;\n    }\n  }" { (expression_statement "piVar1[2] = iVar4;" (assignment_expression "piVar1[2] = iVar4" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar2 = (**(code **)(unaff_EDI + 0x43784))(iVar4);" (assignment_expression "iVar2 = (**(code **)(unaff_EDI + 0x43784))(iVar4)" identifier = (call_expression "(**(code **)(unaff_EDI + 0x43784))(iVar4)" (parenthesized_expression "(**(code **)(unaff_EDI + 0x43784))" ( (pointer_expression "**(code **)(unaff_EDI + 0x43784)" * (pointer_expression "*(code **)(unaff_EDI + 0x43784)" * (cast_expression "(code **)(unaff_EDI + 0x43784)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0x43784)" ( (binary_expression "unaff_EDI + 0x43784" identifier + number_literal) ))))) )) (argument_list "(iVar4)" ( identifier )))) ;) (expression_statement "piVar1[1] = iVar2;" (assignment_expression "piVar1[1] = iVar2" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar2 == 0) {\n      return 5;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return 5;\n    }" { (return_statement "return 5;" return number_literal ;) })) }) (else_clause "else {\n    uVar5 = iVar4 + piVar1[2];\n    if ((uint)piVar1[2] < uVar5) {\n      piVar1[2] = uVar5;\n      iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);\n      if (iVar2 == 0) {\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return 5;\n      }\n      piVar1[1] = iVar2;\n    }\n  }" else (compound_statement "{\n    uVar5 = iVar4 + piVar1[2];\n    if ((uint)piVar1[2] < uVar5) {\n      piVar1[2] = uVar5;\n      iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);\n      if (iVar2 == 0) {\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return 5;\n      }\n      piVar1[1] = iVar2;\n    }\n  }" { (expression_statement "uVar5 = iVar4 + piVar1[2];" (assignment_expression "uVar5 = iVar4 + piVar1[2]" identifier = (binary_expression "iVar4 + piVar1[2]" identifier + (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if ((uint)piVar1[2] < uVar5) {\n      piVar1[2] = uVar5;\n      iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);\n      if (iVar2 == 0) {\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return 5;\n      }\n      piVar1[1] = iVar2;\n    }" if (parenthesized_expression "((uint)piVar1[2] < uVar5)" ( (binary_expression "(uint)piVar1[2] < uVar5" (cast_expression "(uint)piVar1[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])) < identifier) )) (compound_statement "{\n      piVar1[2] = uVar5;\n      iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);\n      if (iVar2 == 0) {\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return 5;\n      }\n      piVar1[1] = iVar2;\n    }" { (expression_statement "piVar1[2] = uVar5;" (assignment_expression "piVar1[2] = uVar5" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);" (assignment_expression "iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5)" identifier = (call_expression "(**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5)" (parenthesized_expression "(**(code **)(unaff_EDI + 0x4377c))" ( (pointer_expression "**(code **)(unaff_EDI + 0x4377c)" * (pointer_expression "*(code **)(unaff_EDI + 0x4377c)" * (cast_expression "(code **)(unaff_EDI + 0x4377c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0x4377c)" ( (binary_expression "unaff_EDI + 0x4377c" identifier + number_literal) ))))) )) (argument_list "(iVar2,uVar5)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return 5;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return 5;\n      }" { (expression_statement "(**(code **)(unaff_EDI + 0x43780))(piVar1[1]);" (call_expression "(**(code **)(unaff_EDI + 0x43780))(piVar1[1])" (parenthesized_expression "(**(code **)(unaff_EDI + 0x43780))" ( (pointer_expression "**(code **)(unaff_EDI + 0x43780)" * (pointer_expression "*(code **)(unaff_EDI + 0x43780)" * (cast_expression "(code **)(unaff_EDI + 0x43780)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0x43780)" ( (binary_expression "unaff_EDI + 0x43780" identifier + number_literal) ))))) )) (argument_list "(piVar1[1])" ( (subscript_expression "piVar1[1]" identifier [ number_literal ]) ))) ;) (return_statement "return 5;" return number_literal ;) })) (expression_statement "piVar1[1] = iVar2;" (assignment_expression "piVar1[1] = iVar2" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) })) }))) (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "puVar3 = (undefined4 *)(iVar2 + iVar4);" (assignment_expression "puVar3 = (undefined4 *)(iVar2 + iVar4)" identifier = (cast_expression "(undefined4 *)(iVar2 + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar4)" ( (binary_expression "iVar2 + iVar4" identifier + identifier) )))) ;) (if_statement "if (extraout_ECX < 4) {\n    if (extraout_ECX == 0) goto LAB_0007396c;\n    *(undefined1 *)puVar3 = *(undefined1 *)param_2;\n    if ((extraout_ECX & 2) != 0) {\n      *(undefined2 *)((int)puVar3 + (extraout_ECX - 2)) =\n           *(undefined2 *)((int)param_2 + (extraout_ECX - 2));\n      iVar4 = *piVar1;\n      goto LAB_0007396c;\n    }\n  }\n  else {\n    *puVar3 = *param_2;\n    *(undefined4 *)((int)puVar3 + (extraout_ECX - 4)) =\n         *(undefined4 *)((int)param_2 + (extraout_ECX - 4));\n    iVar2 = (int)puVar3 - ((uint)(puVar3 + 1) & 0xfffffffc);\n    uVar5 = iVar2 + extraout_ECX & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar6 = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)((int)param_2 + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      } while (uVar6 < uVar5);\n    }\n  }" if (parenthesized_expression "(extraout_ECX < 4)" ( (binary_expression "extraout_ECX < 4" identifier < number_literal) )) (compound_statement "{\n    if (extraout_ECX == 0) goto LAB_0007396c;\n    *(undefined1 *)puVar3 = *(undefined1 *)param_2;\n    if ((extraout_ECX & 2) != 0) {\n      *(undefined2 *)((int)puVar3 + (extraout_ECX - 2)) =\n           *(undefined2 *)((int)param_2 + (extraout_ECX - 2));\n      iVar4 = *piVar1;\n      goto LAB_0007396c;\n    }\n  }" { (if_statement "if (extraout_ECX == 0) goto LAB_0007396c;" if (parenthesized_expression "(extraout_ECX == 0)" ( (binary_expression "extraout_ECX == 0" identifier == number_literal) )) (goto_statement "goto LAB_0007396c;" goto statement_identifier ;)) (expression_statement "*(undefined1 *)puVar3 = *(undefined1 *)param_2;" (assignment_expression "*(undefined1 *)puVar3 = *(undefined1 *)param_2" (pointer_expression "*(undefined1 *)puVar3" * (cast_expression "(undefined1 *)puVar3" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*(undefined1 *)param_2" * (cast_expression "(undefined1 *)param_2" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if ((extraout_ECX & 2) != 0) {\n      *(undefined2 *)((int)puVar3 + (extraout_ECX - 2)) =\n           *(undefined2 *)((int)param_2 + (extraout_ECX - 2));\n      iVar4 = *piVar1;\n      goto LAB_0007396c;\n    }" if (parenthesized_expression "((extraout_ECX & 2) != 0)" ( (binary_expression "(extraout_ECX & 2) != 0" (parenthesized_expression "(extraout_ECX & 2)" ( (binary_expression "extraout_ECX & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      *(undefined2 *)((int)puVar3 + (extraout_ECX - 2)) =\n           *(undefined2 *)((int)param_2 + (extraout_ECX - 2));\n      iVar4 = *piVar1;\n      goto LAB_0007396c;\n    }" { (expression_statement "*(undefined2 *)((int)puVar3 + (extraout_ECX - 2)) =\n           *(undefined2 *)((int)param_2 + (extraout_ECX - 2));" (assignment_expression "*(undefined2 *)((int)puVar3 + (extraout_ECX - 2)) =\n           *(undefined2 *)((int)param_2 + (extraout_ECX - 2))" (pointer_expression "*(undefined2 *)((int)puVar3 + (extraout_ECX - 2))" * (cast_expression "(undefined2 *)((int)puVar3 + (extraout_ECX - 2))" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar3 + (extraout_ECX - 2))" ( (binary_expression "(int)puVar3 + (extraout_ECX - 2)" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(extraout_ECX - 2)" ( (binary_expression "extraout_ECX - 2" identifier - number_literal) ))) )))) = (pointer_expression "*(undefined2 *)((int)param_2 + (extraout_ECX - 2))" * (cast_expression "(undefined2 *)((int)param_2 + (extraout_ECX - 2))" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + (extraout_ECX - 2))" ( (binary_expression "(int)param_2 + (extraout_ECX - 2)" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(extraout_ECX - 2)" ( (binary_expression "extraout_ECX - 2" identifier - number_literal) ))) ))))) ;) (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (goto_statement "goto LAB_0007396c;" goto statement_identifier ;) })) }) (else_clause "else {\n    *puVar3 = *param_2;\n    *(undefined4 *)((int)puVar3 + (extraout_ECX - 4)) =\n         *(undefined4 *)((int)param_2 + (extraout_ECX - 4));\n    iVar2 = (int)puVar3 - ((uint)(puVar3 + 1) & 0xfffffffc);\n    uVar5 = iVar2 + extraout_ECX & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar6 = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)((int)param_2 + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      } while (uVar6 < uVar5);\n    }\n  }" else (compound_statement "{\n    *puVar3 = *param_2;\n    *(undefined4 *)((int)puVar3 + (extraout_ECX - 4)) =\n         *(undefined4 *)((int)param_2 + (extraout_ECX - 4));\n    iVar2 = (int)puVar3 - ((uint)(puVar3 + 1) & 0xfffffffc);\n    uVar5 = iVar2 + extraout_ECX & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar6 = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)((int)param_2 + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      } while (uVar6 < uVar5);\n    }\n  }" { (expression_statement "*puVar3 = *param_2;" (assignment_expression "*puVar3 = *param_2" (pointer_expression "*puVar3" * identifier) = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*(undefined4 *)((int)puVar3 + (extraout_ECX - 4)) =\n         *(undefined4 *)((int)param_2 + (extraout_ECX - 4));" (assignment_expression "*(undefined4 *)((int)puVar3 + (extraout_ECX - 4)) =\n         *(undefined4 *)((int)param_2 + (extraout_ECX - 4))" (pointer_expression "*(undefined4 *)((int)puVar3 + (extraout_ECX - 4))" * (cast_expression "(undefined4 *)((int)puVar3 + (extraout_ECX - 4))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar3 + (extraout_ECX - 4))" ( (binary_expression "(int)puVar3 + (extraout_ECX - 4)" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(extraout_ECX - 4)" ( (binary_expression "extraout_ECX - 4" identifier - number_literal) ))) )))) = (pointer_expression "*(undefined4 *)((int)param_2 + (extraout_ECX - 4))" * (cast_expression "(undefined4 *)((int)param_2 + (extraout_ECX - 4))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + (extraout_ECX - 4))" ( (binary_expression "(int)param_2 + (extraout_ECX - 4)" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(extraout_ECX - 4)" ( (binary_expression "extraout_ECX - 4" identifier - number_literal) ))) ))))) ;) (expression_statement "iVar2 = (int)puVar3 - ((uint)(puVar3 + 1) & 0xfffffffc);" (assignment_expression "iVar2 = (int)puVar3 - ((uint)(puVar3 + 1) & 0xfffffffc)" identifier = (binary_expression "(int)puVar3 - ((uint)(puVar3 + 1) & 0xfffffffc)" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) - (parenthesized_expression "((uint)(puVar3 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar3 + 1) & 0xfffffffc" (call_expression "(uint)(puVar3 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar3 + 1)" ( (binary_expression "puVar3 + 1" identifier + number_literal) ))) & number_literal) )))) ;) (expression_statement "uVar5 = iVar2 + extraout_ECX & 0xfffffffc;" (assignment_expression "uVar5 = iVar2 + extraout_ECX & 0xfffffffc" identifier = (binary_expression "iVar2 + extraout_ECX & 0xfffffffc" (binary_expression "iVar2 + extraout_ECX" identifier + identifier) & number_literal)) ;) (if_statement "if (3 < uVar5) {\n      uVar6 = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)((int)param_2 + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      } while (uVar6 < uVar5);\n    }" if (parenthesized_expression "(3 < uVar5)" ( (binary_expression "3 < uVar5" number_literal < identifier) )) (compound_statement "{\n      uVar6 = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)((int)param_2 + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      } while (uVar6 < uVar5);\n    }" { (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n        *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)((int)param_2 + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      } while (uVar6 < uVar5);" do (compound_statement "{\n        *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)((int)param_2 + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      }" { (expression_statement "*(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)((int)param_2 + (uVar6 - iVar2));" (assignment_expression "*(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)((int)param_2 + (uVar6 - iVar2))" (pointer_expression "*(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6)" * (cast_expression "(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6)" ( (binary_expression "((uint)(puVar3 + 1) & 0xfffffffc) + uVar6" (parenthesized_expression "((uint)(puVar3 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar3 + 1) & 0xfffffffc" (call_expression "(uint)(puVar3 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar3 + 1)" ( (binary_expression "puVar3 + 1" identifier + number_literal) ))) & number_literal) )) + identifier) )))) = (pointer_expression "*(undefined4 *)((int)param_2 + (uVar6 - iVar2))" * (cast_expression "(undefined4 *)((int)param_2 + (uVar6 - iVar2))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + (uVar6 - iVar2))" ( (binary_expression "(int)param_2 + (uVar6 - iVar2)" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(uVar6 - iVar2)" ( (binary_expression "uVar6 - iVar2" identifier - identifier) ))) ))))) ;) (expression_statement "uVar6 = uVar6 + 4;" (assignment_expression "uVar6 = uVar6 + 4" identifier = (binary_expression "uVar6 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar6 < uVar5)" ( (binary_expression "uVar6 < uVar5" identifier < identifier) )) ;) })) }))) (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (labeled_statement "LAB_0007396c:\n  *piVar1 = extraout_ECX + iVar4;" statement_identifier : (expression_statement "*piVar1 = extraout_ECX + iVar4;" (assignment_expression "*piVar1 = extraout_ECX + iVar4" (pointer_expression "*piVar1" * identifier) = (binary_expression "extraout_ECX + iVar4" identifier + identifier)) ;)) (expression_statement "*(undefined1 *)(piVar1[1] + extraout_ECX + iVar4) = 0;" (assignment_expression "*(undefined1 *)(piVar1[1] + extraout_ECX + iVar4) = 0" (pointer_expression "*(undefined1 *)(piVar1[1] + extraout_ECX + iVar4)" * (cast_expression "(undefined1 *)(piVar1[1] + extraout_ECX + iVar4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1[1] + extraout_ECX + iVar4)" ( (binary_expression "piVar1[1] + extraout_ECX + iVar4" (binary_expression "piVar1[1] + extraout_ECX" (subscript_expression "piVar1[1]" identifier [ number_literal ]) + identifier) + identifier) )))) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "DOHcode __regparm3 cnameappend(cnamestore *c,uchar *src,size_t len)\n\n{\n  int *piVar1;\n  int iVar2;\n  uchar *puVar3;\n  uint extraout_ECX;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  int unaff_EDI;\n  undefined8 uVar7;\n  \n  uVar7 = __x86_get_pc_thunk_di();\n  iVar4 = (int)((ulonglong)uVar7 >> 0x20);\n  piVar1 = (int *)uVar7;\n  iVar2 = piVar1[1];\n  if (iVar2 == 0) {\n    piVar1[2] = iVar4;\n    iVar2 = (**(code **)(unaff_EDI + 0x43784))(iVar4);\n    piVar1[1] = iVar2;\n    if (iVar2 == 0) {\n      return DOH_OUT_OF_MEM;\n    }\n  }\n  else {\n    uVar5 = iVar4 + piVar1[2];\n    if ((uint)piVar1[2] < uVar5) {\n      piVar1[2] = uVar5;\n      iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);\n      if (iVar2 == 0) {\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return DOH_OUT_OF_MEM;\n      }\n      piVar1[1] = iVar2;\n    }\n  }\n  iVar4 = *piVar1;\n  puVar3 = (uchar *)(iVar2 + iVar4);\n  if (extraout_ECX < 4) {\n    if (extraout_ECX == 0) goto LAB_0007396c;\n    *puVar3 = *src;\n    if ((extraout_ECX & 2) != 0) {\n      *(undefined2 *)(puVar3 + (extraout_ECX - 2)) = *(undefined2 *)(src + (extraout_ECX - 2));\n      iVar4 = *piVar1;\n      goto LAB_0007396c;\n    }\n  }\n  else {\n    *(undefined4 *)puVar3 = *(undefined4 *)src;\n    *(undefined4 *)(puVar3 + (extraout_ECX - 4)) = *(undefined4 *)(src + (extraout_ECX - 4));\n    iVar2 = (int)puVar3 - ((uint)(puVar3 + 4) & 0xfffffffc);\n    uVar5 = iVar2 + extraout_ECX & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar6 = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar3 + 4) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)(src + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      } while (uVar6 < uVar5);\n    }\n  }\n  iVar4 = *piVar1;\nLAB_0007396c:\n  *piVar1 = extraout_ECX + iVar4;\n  *(undefined1 *)(piVar1[1] + extraout_ECX + iVar4) = 0;\n  return DOH_OK;\n}\n\n" (function_definition "DOHcode __regparm3 cnameappend(cnamestore *c,uchar *src,size_t len)\n\n{\n  int *piVar1;\n  int iVar2;\n  uchar *puVar3;\n  uint extraout_ECX;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  int unaff_EDI;\n  undefined8 uVar7;\n  \n  uVar7 = __x86_get_pc_thunk_di();\n  iVar4 = (int)((ulonglong)uVar7 >> 0x20);\n  piVar1 = (int *)uVar7;\n  iVar2 = piVar1[1];\n  if (iVar2 == 0) {\n    piVar1[2] = iVar4;\n    iVar2 = (**(code **)(unaff_EDI + 0x43784))(iVar4);\n    piVar1[1] = iVar2;\n    if (iVar2 == 0) {\n      return DOH_OUT_OF_MEM;\n    }\n  }\n  else {\n    uVar5 = iVar4 + piVar1[2];\n    if ((uint)piVar1[2] < uVar5) {\n      piVar1[2] = uVar5;\n      iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);\n      if (iVar2 == 0) {\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return DOH_OUT_OF_MEM;\n      }\n      piVar1[1] = iVar2;\n    }\n  }\n  iVar4 = *piVar1;\n  puVar3 = (uchar *)(iVar2 + iVar4);\n  if (extraout_ECX < 4) {\n    if (extraout_ECX == 0) goto LAB_0007396c;\n    *puVar3 = *src;\n    if ((extraout_ECX & 2) != 0) {\n      *(undefined2 *)(puVar3 + (extraout_ECX - 2)) = *(undefined2 *)(src + (extraout_ECX - 2));\n      iVar4 = *piVar1;\n      goto LAB_0007396c;\n    }\n  }\n  else {\n    *(undefined4 *)puVar3 = *(undefined4 *)src;\n    *(undefined4 *)(puVar3 + (extraout_ECX - 4)) = *(undefined4 *)(src + (extraout_ECX - 4));\n    iVar2 = (int)puVar3 - ((uint)(puVar3 + 4) & 0xfffffffc);\n    uVar5 = iVar2 + extraout_ECX & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar6 = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar3 + 4) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)(src + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      } while (uVar6 < uVar5);\n    }\n  }\n  iVar4 = *piVar1;\nLAB_0007396c:\n  *piVar1 = extraout_ECX + iVar4;\n  *(undefined1 *)(piVar1[1] + extraout_ECX + iVar4) = 0;\n  return DOH_OK;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "cnameappend(cnamestore *c,uchar *src,size_t len)" identifier (parameter_list "(cnamestore *c,uchar *src,size_t len)" ( (parameter_declaration "cnamestore *c" type_identifier (pointer_declarator "*c" * identifier)) , (parameter_declaration "uchar *src" type_identifier (pointer_declarator "*src" * identifier)) , (parameter_declaration "size_t len" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  uchar *puVar3;\n  uint extraout_ECX;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  int unaff_EDI;\n  undefined8 uVar7;\n  \n  uVar7 = __x86_get_pc_thunk_di();\n  iVar4 = (int)((ulonglong)uVar7 >> 0x20);\n  piVar1 = (int *)uVar7;\n  iVar2 = piVar1[1];\n  if (iVar2 == 0) {\n    piVar1[2] = iVar4;\n    iVar2 = (**(code **)(unaff_EDI + 0x43784))(iVar4);\n    piVar1[1] = iVar2;\n    if (iVar2 == 0) {\n      return DOH_OUT_OF_MEM;\n    }\n  }\n  else {\n    uVar5 = iVar4 + piVar1[2];\n    if ((uint)piVar1[2] < uVar5) {\n      piVar1[2] = uVar5;\n      iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);\n      if (iVar2 == 0) {\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return DOH_OUT_OF_MEM;\n      }\n      piVar1[1] = iVar2;\n    }\n  }\n  iVar4 = *piVar1;\n  puVar3 = (uchar *)(iVar2 + iVar4);\n  if (extraout_ECX < 4) {\n    if (extraout_ECX == 0) goto LAB_0007396c;\n    *puVar3 = *src;\n    if ((extraout_ECX & 2) != 0) {\n      *(undefined2 *)(puVar3 + (extraout_ECX - 2)) = *(undefined2 *)(src + (extraout_ECX - 2));\n      iVar4 = *piVar1;\n      goto LAB_0007396c;\n    }\n  }\n  else {\n    *(undefined4 *)puVar3 = *(undefined4 *)src;\n    *(undefined4 *)(puVar3 + (extraout_ECX - 4)) = *(undefined4 *)(src + (extraout_ECX - 4));\n    iVar2 = (int)puVar3 - ((uint)(puVar3 + 4) & 0xfffffffc);\n    uVar5 = iVar2 + extraout_ECX & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar6 = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar3 + 4) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)(src + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      } while (uVar6 < uVar5);\n    }\n  }\n  iVar4 = *piVar1;\nLAB_0007396c:\n  *piVar1 = extraout_ECX + iVar4;\n  *(undefined1 *)(piVar1[1] + extraout_ECX + iVar4) = 0;\n  return DOH_OK;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uchar *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint extraout_ECX;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined8 uVar7;" type_identifier identifier ;) (expression_statement "uVar7 = __x86_get_pc_thunk_di();" (assignment_expression "uVar7 = __x86_get_pc_thunk_di()" identifier = (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar4 = (int)((ulonglong)uVar7 >> 0x20);" (assignment_expression "iVar4 = (int)((ulonglong)uVar7 >> 0x20)" identifier = (cast_expression "(int)((ulonglong)uVar7 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar7 >> 0x20)" ( (binary_expression "(ulonglong)uVar7 >> 0x20" (cast_expression "(ulonglong)uVar7" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "piVar1 = (int *)uVar7;" (assignment_expression "piVar1 = (int *)uVar7" identifier = (cast_expression "(int *)uVar7" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "iVar2 = piVar1[1];" (assignment_expression "iVar2 = piVar1[1]" identifier = (subscript_expression "piVar1[1]" identifier [ number_literal ])) ;) (if_statement "if (iVar2 == 0) {\n    piVar1[2] = iVar4;\n    iVar2 = (**(code **)(unaff_EDI + 0x43784))(iVar4);\n    piVar1[1] = iVar2;\n    if (iVar2 == 0) {\n      return DOH_OUT_OF_MEM;\n    }\n  }\n  else {\n    uVar5 = iVar4 + piVar1[2];\n    if ((uint)piVar1[2] < uVar5) {\n      piVar1[2] = uVar5;\n      iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);\n      if (iVar2 == 0) {\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return DOH_OUT_OF_MEM;\n      }\n      piVar1[1] = iVar2;\n    }\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    piVar1[2] = iVar4;\n    iVar2 = (**(code **)(unaff_EDI + 0x43784))(iVar4);\n    piVar1[1] = iVar2;\n    if (iVar2 == 0) {\n      return DOH_OUT_OF_MEM;\n    }\n  }" { (expression_statement "piVar1[2] = iVar4;" (assignment_expression "piVar1[2] = iVar4" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar2 = (**(code **)(unaff_EDI + 0x43784))(iVar4);" (assignment_expression "iVar2 = (**(code **)(unaff_EDI + 0x43784))(iVar4)" identifier = (call_expression "(**(code **)(unaff_EDI + 0x43784))(iVar4)" (parenthesized_expression "(**(code **)(unaff_EDI + 0x43784))" ( (pointer_expression "**(code **)(unaff_EDI + 0x43784)" * (pointer_expression "*(code **)(unaff_EDI + 0x43784)" * (cast_expression "(code **)(unaff_EDI + 0x43784)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0x43784)" ( (binary_expression "unaff_EDI + 0x43784" identifier + number_literal) ))))) )) (argument_list "(iVar4)" ( identifier )))) ;) (expression_statement "piVar1[1] = iVar2;" (assignment_expression "piVar1[1] = iVar2" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar2 == 0) {\n      return DOH_OUT_OF_MEM;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return DOH_OUT_OF_MEM;\n    }" { (return_statement "return DOH_OUT_OF_MEM;" return identifier ;) })) }) (else_clause "else {\n    uVar5 = iVar4 + piVar1[2];\n    if ((uint)piVar1[2] < uVar5) {\n      piVar1[2] = uVar5;\n      iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);\n      if (iVar2 == 0) {\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return DOH_OUT_OF_MEM;\n      }\n      piVar1[1] = iVar2;\n    }\n  }" else (compound_statement "{\n    uVar5 = iVar4 + piVar1[2];\n    if ((uint)piVar1[2] < uVar5) {\n      piVar1[2] = uVar5;\n      iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);\n      if (iVar2 == 0) {\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return DOH_OUT_OF_MEM;\n      }\n      piVar1[1] = iVar2;\n    }\n  }" { (expression_statement "uVar5 = iVar4 + piVar1[2];" (assignment_expression "uVar5 = iVar4 + piVar1[2]" identifier = (binary_expression "iVar4 + piVar1[2]" identifier + (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if ((uint)piVar1[2] < uVar5) {\n      piVar1[2] = uVar5;\n      iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);\n      if (iVar2 == 0) {\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return DOH_OUT_OF_MEM;\n      }\n      piVar1[1] = iVar2;\n    }" if (parenthesized_expression "((uint)piVar1[2] < uVar5)" ( (binary_expression "(uint)piVar1[2] < uVar5" (cast_expression "(uint)piVar1[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])) < identifier) )) (compound_statement "{\n      piVar1[2] = uVar5;\n      iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);\n      if (iVar2 == 0) {\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return DOH_OUT_OF_MEM;\n      }\n      piVar1[1] = iVar2;\n    }" { (expression_statement "piVar1[2] = uVar5;" (assignment_expression "piVar1[2] = uVar5" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);" (assignment_expression "iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5)" identifier = (call_expression "(**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5)" (parenthesized_expression "(**(code **)(unaff_EDI + 0x4377c))" ( (pointer_expression "**(code **)(unaff_EDI + 0x4377c)" * (pointer_expression "*(code **)(unaff_EDI + 0x4377c)" * (cast_expression "(code **)(unaff_EDI + 0x4377c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0x4377c)" ( (binary_expression "unaff_EDI + 0x4377c" identifier + number_literal) ))))) )) (argument_list "(iVar2,uVar5)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return DOH_OUT_OF_MEM;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return DOH_OUT_OF_MEM;\n      }" { (expression_statement "(**(code **)(unaff_EDI + 0x43780))(piVar1[1]);" (call_expression "(**(code **)(unaff_EDI + 0x43780))(piVar1[1])" (parenthesized_expression "(**(code **)(unaff_EDI + 0x43780))" ( (pointer_expression "**(code **)(unaff_EDI + 0x43780)" * (pointer_expression "*(code **)(unaff_EDI + 0x43780)" * (cast_expression "(code **)(unaff_EDI + 0x43780)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0x43780)" ( (binary_expression "unaff_EDI + 0x43780" identifier + number_literal) ))))) )) (argument_list "(piVar1[1])" ( (subscript_expression "piVar1[1]" identifier [ number_literal ]) ))) ;) (return_statement "return DOH_OUT_OF_MEM;" return identifier ;) })) (expression_statement "piVar1[1] = iVar2;" (assignment_expression "piVar1[1] = iVar2" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) })) }))) (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "puVar3 = (uchar *)(iVar2 + iVar4);" (assignment_expression "puVar3 = (uchar *)(iVar2 + iVar4)" identifier = (cast_expression "(uchar *)(iVar2 + iVar4)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar4)" ( (binary_expression "iVar2 + iVar4" identifier + identifier) )))) ;) (if_statement "if (extraout_ECX < 4) {\n    if (extraout_ECX == 0) goto LAB_0007396c;\n    *puVar3 = *src;\n    if ((extraout_ECX & 2) != 0) {\n      *(undefined2 *)(puVar3 + (extraout_ECX - 2)) = *(undefined2 *)(src + (extraout_ECX - 2));\n      iVar4 = *piVar1;\n      goto LAB_0007396c;\n    }\n  }\n  else {\n    *(undefined4 *)puVar3 = *(undefined4 *)src;\n    *(undefined4 *)(puVar3 + (extraout_ECX - 4)) = *(undefined4 *)(src + (extraout_ECX - 4));\n    iVar2 = (int)puVar3 - ((uint)(puVar3 + 4) & 0xfffffffc);\n    uVar5 = iVar2 + extraout_ECX & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar6 = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar3 + 4) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)(src + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      } while (uVar6 < uVar5);\n    }\n  }" if (parenthesized_expression "(extraout_ECX < 4)" ( (binary_expression "extraout_ECX < 4" identifier < number_literal) )) (compound_statement "{\n    if (extraout_ECX == 0) goto LAB_0007396c;\n    *puVar3 = *src;\n    if ((extraout_ECX & 2) != 0) {\n      *(undefined2 *)(puVar3 + (extraout_ECX - 2)) = *(undefined2 *)(src + (extraout_ECX - 2));\n      iVar4 = *piVar1;\n      goto LAB_0007396c;\n    }\n  }" { (if_statement "if (extraout_ECX == 0) goto LAB_0007396c;" if (parenthesized_expression "(extraout_ECX == 0)" ( (binary_expression "extraout_ECX == 0" identifier == number_literal) )) (goto_statement "goto LAB_0007396c;" goto statement_identifier ;)) (expression_statement "*puVar3 = *src;" (assignment_expression "*puVar3 = *src" (pointer_expression "*puVar3" * identifier) = (pointer_expression "*src" * identifier)) ;) (if_statement "if ((extraout_ECX & 2) != 0) {\n      *(undefined2 *)(puVar3 + (extraout_ECX - 2)) = *(undefined2 *)(src + (extraout_ECX - 2));\n      iVar4 = *piVar1;\n      goto LAB_0007396c;\n    }" if (parenthesized_expression "((extraout_ECX & 2) != 0)" ( (binary_expression "(extraout_ECX & 2) != 0" (parenthesized_expression "(extraout_ECX & 2)" ( (binary_expression "extraout_ECX & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      *(undefined2 *)(puVar3 + (extraout_ECX - 2)) = *(undefined2 *)(src + (extraout_ECX - 2));\n      iVar4 = *piVar1;\n      goto LAB_0007396c;\n    }" { (expression_statement "*(undefined2 *)(puVar3 + (extraout_ECX - 2)) = *(undefined2 *)(src + (extraout_ECX - 2));" (assignment_expression "*(undefined2 *)(puVar3 + (extraout_ECX - 2)) = *(undefined2 *)(src + (extraout_ECX - 2))" (pointer_expression "*(undefined2 *)(puVar3 + (extraout_ECX - 2))" * (cast_expression "(undefined2 *)(puVar3 + (extraout_ECX - 2))" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + (extraout_ECX - 2))" ( (binary_expression "puVar3 + (extraout_ECX - 2)" identifier + (parenthesized_expression "(extraout_ECX - 2)" ( (binary_expression "extraout_ECX - 2" identifier - number_literal) ))) )))) = (pointer_expression "*(undefined2 *)(src + (extraout_ECX - 2))" * (cast_expression "(undefined2 *)(src + (extraout_ECX - 2))" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(src + (extraout_ECX - 2))" ( (binary_expression "src + (extraout_ECX - 2)" identifier + (parenthesized_expression "(extraout_ECX - 2)" ( (binary_expression "extraout_ECX - 2" identifier - number_literal) ))) ))))) ;) (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (goto_statement "goto LAB_0007396c;" goto statement_identifier ;) })) }) (else_clause "else {\n    *(undefined4 *)puVar3 = *(undefined4 *)src;\n    *(undefined4 *)(puVar3 + (extraout_ECX - 4)) = *(undefined4 *)(src + (extraout_ECX - 4));\n    iVar2 = (int)puVar3 - ((uint)(puVar3 + 4) & 0xfffffffc);\n    uVar5 = iVar2 + extraout_ECX & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar6 = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar3 + 4) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)(src + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      } while (uVar6 < uVar5);\n    }\n  }" else (compound_statement "{\n    *(undefined4 *)puVar3 = *(undefined4 *)src;\n    *(undefined4 *)(puVar3 + (extraout_ECX - 4)) = *(undefined4 *)(src + (extraout_ECX - 4));\n    iVar2 = (int)puVar3 - ((uint)(puVar3 + 4) & 0xfffffffc);\n    uVar5 = iVar2 + extraout_ECX & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar6 = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar3 + 4) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)(src + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      } while (uVar6 < uVar5);\n    }\n  }" { (expression_statement "*(undefined4 *)puVar3 = *(undefined4 *)src;" (assignment_expression "*(undefined4 *)puVar3 = *(undefined4 *)src" (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*(undefined4 *)src" * (cast_expression "(undefined4 *)src" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(undefined4 *)(puVar3 + (extraout_ECX - 4)) = *(undefined4 *)(src + (extraout_ECX - 4));" (assignment_expression "*(undefined4 *)(puVar3 + (extraout_ECX - 4)) = *(undefined4 *)(src + (extraout_ECX - 4))" (pointer_expression "*(undefined4 *)(puVar3 + (extraout_ECX - 4))" * (cast_expression "(undefined4 *)(puVar3 + (extraout_ECX - 4))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + (extraout_ECX - 4))" ( (binary_expression "puVar3 + (extraout_ECX - 4)" identifier + (parenthesized_expression "(extraout_ECX - 4)" ( (binary_expression "extraout_ECX - 4" identifier - number_literal) ))) )))) = (pointer_expression "*(undefined4 *)(src + (extraout_ECX - 4))" * (cast_expression "(undefined4 *)(src + (extraout_ECX - 4))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(src + (extraout_ECX - 4))" ( (binary_expression "src + (extraout_ECX - 4)" identifier + (parenthesized_expression "(extraout_ECX - 4)" ( (binary_expression "extraout_ECX - 4" identifier - number_literal) ))) ))))) ;) (expression_statement "iVar2 = (int)puVar3 - ((uint)(puVar3 + 4) & 0xfffffffc);" (assignment_expression "iVar2 = (int)puVar3 - ((uint)(puVar3 + 4) & 0xfffffffc)" identifier = (binary_expression "(int)puVar3 - ((uint)(puVar3 + 4) & 0xfffffffc)" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) - (parenthesized_expression "((uint)(puVar3 + 4) & 0xfffffffc)" ( (binary_expression "(uint)(puVar3 + 4) & 0xfffffffc" (call_expression "(uint)(puVar3 + 4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar3 + 4)" ( (binary_expression "puVar3 + 4" identifier + number_literal) ))) & number_literal) )))) ;) (expression_statement "uVar5 = iVar2 + extraout_ECX & 0xfffffffc;" (assignment_expression "uVar5 = iVar2 + extraout_ECX & 0xfffffffc" identifier = (binary_expression "iVar2 + extraout_ECX & 0xfffffffc" (binary_expression "iVar2 + extraout_ECX" identifier + identifier) & number_literal)) ;) (if_statement "if (3 < uVar5) {\n      uVar6 = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar3 + 4) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)(src + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      } while (uVar6 < uVar5);\n    }" if (parenthesized_expression "(3 < uVar5)" ( (binary_expression "3 < uVar5" number_literal < identifier) )) (compound_statement "{\n      uVar6 = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar3 + 4) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)(src + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      } while (uVar6 < uVar5);\n    }" { (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n        *(undefined4 *)(((uint)(puVar3 + 4) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)(src + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      } while (uVar6 < uVar5);" do (compound_statement "{\n        *(undefined4 *)(((uint)(puVar3 + 4) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)(src + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      }" { (expression_statement "*(undefined4 *)(((uint)(puVar3 + 4) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)(src + (uVar6 - iVar2));" (assignment_expression "*(undefined4 *)(((uint)(puVar3 + 4) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)(src + (uVar6 - iVar2))" (pointer_expression "*(undefined4 *)(((uint)(puVar3 + 4) & 0xfffffffc) + uVar6)" * (cast_expression "(undefined4 *)(((uint)(puVar3 + 4) & 0xfffffffc) + uVar6)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((uint)(puVar3 + 4) & 0xfffffffc) + uVar6)" ( (binary_expression "((uint)(puVar3 + 4) & 0xfffffffc) + uVar6" (parenthesized_expression "((uint)(puVar3 + 4) & 0xfffffffc)" ( (binary_expression "(uint)(puVar3 + 4) & 0xfffffffc" (call_expression "(uint)(puVar3 + 4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar3 + 4)" ( (binary_expression "puVar3 + 4" identifier + number_literal) ))) & number_literal) )) + identifier) )))) = (pointer_expression "*(undefined4 *)(src + (uVar6 - iVar2))" * (cast_expression "(undefined4 *)(src + (uVar6 - iVar2))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(src + (uVar6 - iVar2))" ( (binary_expression "src + (uVar6 - iVar2)" identifier + (parenthesized_expression "(uVar6 - iVar2)" ( (binary_expression "uVar6 - iVar2" identifier - identifier) ))) ))))) ;) (expression_statement "uVar6 = uVar6 + 4;" (assignment_expression "uVar6 = uVar6 + 4" identifier = (binary_expression "uVar6 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar6 < uVar5)" ( (binary_expression "uVar6 < uVar5" identifier < identifier) )) ;) })) }))) (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (labeled_statement "LAB_0007396c:\n  *piVar1 = extraout_ECX + iVar4;" statement_identifier : (expression_statement "*piVar1 = extraout_ECX + iVar4;" (assignment_expression "*piVar1 = extraout_ECX + iVar4" (pointer_expression "*piVar1" * identifier) = (binary_expression "extraout_ECX + iVar4" identifier + identifier)) ;)) (expression_statement "*(undefined1 *)(piVar1[1] + extraout_ECX + iVar4) = 0;" (assignment_expression "*(undefined1 *)(piVar1[1] + extraout_ECX + iVar4) = 0" (pointer_expression "*(undefined1 *)(piVar1[1] + extraout_ECX + iVar4)" * (cast_expression "(undefined1 *)(piVar1[1] + extraout_ECX + iVar4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1[1] + extraout_ECX + iVar4)" ( (binary_expression "piVar1[1] + extraout_ECX + iVar4" (binary_expression "piVar1[1] + extraout_ECX" (subscript_expression "piVar1[1]" identifier [ number_literal ]) + identifier) + identifier) )))) = number_literal) ;) (return_statement "return DOH_OK;" return identifier ;) })))
(translation_unit "undefined4 __regparm3 FUN_000738e0(undefined4 param_1,undefined4 *param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  uint extraout_ECX;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  int unaff_EDI;\n  undefined8 uVar7;\n  \n  uVar7 = FUN_0002eb2c();\n  iVar4 = (int)((ulonglong)uVar7 >> 0x20);\n  piVar1 = (int *)uVar7;\n  iVar2 = piVar1[1];\n  if (iVar2 == 0) {\n    piVar1[2] = iVar4;\n    iVar2 = (**(code **)(unaff_EDI + 0x43784))(iVar4);\n    piVar1[1] = iVar2;\n    if (iVar2 == 0) {\n      return 5;\n    }\n  }\n  else {\n    uVar5 = iVar4 + piVar1[2];\n    if ((uint)piVar1[2] < uVar5) {\n      piVar1[2] = uVar5;\n      iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);\n      if (iVar2 == 0) {\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return 5;\n      }\n      piVar1[1] = iVar2;\n    }\n  }\n  iVar4 = *piVar1;\n  puVar3 = (undefined4 *)(iVar2 + iVar4);\n  if (extraout_ECX < 4) {\n    if (extraout_ECX == 0) goto LAB_0007396c;\n    *(undefined1 *)puVar3 = *(undefined1 *)param_2;\n    if ((extraout_ECX & 2) != 0) {\n      *(undefined2 *)((int)puVar3 + (extraout_ECX - 2)) =\n           *(undefined2 *)((int)param_2 + (extraout_ECX - 2));\n      iVar4 = *piVar1;\n      goto LAB_0007396c;\n    }\n  }\n  else {\n    *puVar3 = *param_2;\n    *(undefined4 *)((int)puVar3 + (extraout_ECX - 4)) =\n         *(undefined4 *)((int)param_2 + (extraout_ECX - 4));\n    iVar2 = (int)puVar3 - ((uint)(puVar3 + 1) & 0xfffffffc);\n    uVar5 = iVar2 + extraout_ECX & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar6 = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)((int)param_2 + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      } while (uVar6 < uVar5);\n    }\n  }\n  iVar4 = *piVar1;\nLAB_0007396c:\n  *piVar1 = extraout_ECX + iVar4;\n  *(undefined1 *)(piVar1[1] + extraout_ECX + iVar4) = 0;\n  return 0;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_000738e0(undefined4 param_1,undefined4 *param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  uint extraout_ECX;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  int unaff_EDI;\n  undefined8 uVar7;\n  \n  uVar7 = FUN_0002eb2c();\n  iVar4 = (int)((ulonglong)uVar7 >> 0x20);\n  piVar1 = (int *)uVar7;\n  iVar2 = piVar1[1];\n  if (iVar2 == 0) {\n    piVar1[2] = iVar4;\n    iVar2 = (**(code **)(unaff_EDI + 0x43784))(iVar4);\n    piVar1[1] = iVar2;\n    if (iVar2 == 0) {\n      return 5;\n    }\n  }\n  else {\n    uVar5 = iVar4 + piVar1[2];\n    if ((uint)piVar1[2] < uVar5) {\n      piVar1[2] = uVar5;\n      iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);\n      if (iVar2 == 0) {\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return 5;\n      }\n      piVar1[1] = iVar2;\n    }\n  }\n  iVar4 = *piVar1;\n  puVar3 = (undefined4 *)(iVar2 + iVar4);\n  if (extraout_ECX < 4) {\n    if (extraout_ECX == 0) goto LAB_0007396c;\n    *(undefined1 *)puVar3 = *(undefined1 *)param_2;\n    if ((extraout_ECX & 2) != 0) {\n      *(undefined2 *)((int)puVar3 + (extraout_ECX - 2)) =\n           *(undefined2 *)((int)param_2 + (extraout_ECX - 2));\n      iVar4 = *piVar1;\n      goto LAB_0007396c;\n    }\n  }\n  else {\n    *puVar3 = *param_2;\n    *(undefined4 *)((int)puVar3 + (extraout_ECX - 4)) =\n         *(undefined4 *)((int)param_2 + (extraout_ECX - 4));\n    iVar2 = (int)puVar3 - ((uint)(puVar3 + 1) & 0xfffffffc);\n    uVar5 = iVar2 + extraout_ECX & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar6 = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)((int)param_2 + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      } while (uVar6 < uVar5);\n    }\n  }\n  iVar4 = *piVar1;\nLAB_0007396c:\n  *piVar1 = extraout_ECX + iVar4;\n  *(undefined1 *)(piVar1[1] + extraout_ECX + iVar4) = 0;\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_000738e0(undefined4 param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  uint extraout_ECX;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  int unaff_EDI;\n  undefined8 uVar7;\n  \n  uVar7 = FUN_0002eb2c();\n  iVar4 = (int)((ulonglong)uVar7 >> 0x20);\n  piVar1 = (int *)uVar7;\n  iVar2 = piVar1[1];\n  if (iVar2 == 0) {\n    piVar1[2] = iVar4;\n    iVar2 = (**(code **)(unaff_EDI + 0x43784))(iVar4);\n    piVar1[1] = iVar2;\n    if (iVar2 == 0) {\n      return 5;\n    }\n  }\n  else {\n    uVar5 = iVar4 + piVar1[2];\n    if ((uint)piVar1[2] < uVar5) {\n      piVar1[2] = uVar5;\n      iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);\n      if (iVar2 == 0) {\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return 5;\n      }\n      piVar1[1] = iVar2;\n    }\n  }\n  iVar4 = *piVar1;\n  puVar3 = (undefined4 *)(iVar2 + iVar4);\n  if (extraout_ECX < 4) {\n    if (extraout_ECX == 0) goto LAB_0007396c;\n    *(undefined1 *)puVar3 = *(undefined1 *)param_2;\n    if ((extraout_ECX & 2) != 0) {\n      *(undefined2 *)((int)puVar3 + (extraout_ECX - 2)) =\n           *(undefined2 *)((int)param_2 + (extraout_ECX - 2));\n      iVar4 = *piVar1;\n      goto LAB_0007396c;\n    }\n  }\n  else {\n    *puVar3 = *param_2;\n    *(undefined4 *)((int)puVar3 + (extraout_ECX - 4)) =\n         *(undefined4 *)((int)param_2 + (extraout_ECX - 4));\n    iVar2 = (int)puVar3 - ((uint)(puVar3 + 1) & 0xfffffffc);\n    uVar5 = iVar2 + extraout_ECX & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar6 = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)((int)param_2 + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      } while (uVar6 < uVar5);\n    }\n  }\n  iVar4 = *piVar1;\nLAB_0007396c:\n  *piVar1 = extraout_ECX + iVar4;\n  *(undefined1 *)(piVar1[1] + extraout_ECX + iVar4) = 0;\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint extraout_ECX;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined8 uVar7;" type_identifier identifier ;) (expression_statement "uVar7 = FUN_0002eb2c();" (assignment_expression "uVar7 = FUN_0002eb2c()" identifier = (call_expression "FUN_0002eb2c()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar4 = (int)((ulonglong)uVar7 >> 0x20);" (assignment_expression "iVar4 = (int)((ulonglong)uVar7 >> 0x20)" identifier = (cast_expression "(int)((ulonglong)uVar7 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar7 >> 0x20)" ( (binary_expression "(ulonglong)uVar7 >> 0x20" (cast_expression "(ulonglong)uVar7" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "piVar1 = (int *)uVar7;" (assignment_expression "piVar1 = (int *)uVar7" identifier = (cast_expression "(int *)uVar7" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "iVar2 = piVar1[1];" (assignment_expression "iVar2 = piVar1[1]" identifier = (subscript_expression "piVar1[1]" identifier [ number_literal ])) ;) (if_statement "if (iVar2 == 0) {\n    piVar1[2] = iVar4;\n    iVar2 = (**(code **)(unaff_EDI + 0x43784))(iVar4);\n    piVar1[1] = iVar2;\n    if (iVar2 == 0) {\n      return 5;\n    }\n  }\n  else {\n    uVar5 = iVar4 + piVar1[2];\n    if ((uint)piVar1[2] < uVar5) {\n      piVar1[2] = uVar5;\n      iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);\n      if (iVar2 == 0) {\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return 5;\n      }\n      piVar1[1] = iVar2;\n    }\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    piVar1[2] = iVar4;\n    iVar2 = (**(code **)(unaff_EDI + 0x43784))(iVar4);\n    piVar1[1] = iVar2;\n    if (iVar2 == 0) {\n      return 5;\n    }\n  }" { (expression_statement "piVar1[2] = iVar4;" (assignment_expression "piVar1[2] = iVar4" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar2 = (**(code **)(unaff_EDI + 0x43784))(iVar4);" (assignment_expression "iVar2 = (**(code **)(unaff_EDI + 0x43784))(iVar4)" identifier = (call_expression "(**(code **)(unaff_EDI + 0x43784))(iVar4)" (parenthesized_expression "(**(code **)(unaff_EDI + 0x43784))" ( (pointer_expression "**(code **)(unaff_EDI + 0x43784)" * (pointer_expression "*(code **)(unaff_EDI + 0x43784)" * (cast_expression "(code **)(unaff_EDI + 0x43784)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0x43784)" ( (binary_expression "unaff_EDI + 0x43784" identifier + number_literal) ))))) )) (argument_list "(iVar4)" ( identifier )))) ;) (expression_statement "piVar1[1] = iVar2;" (assignment_expression "piVar1[1] = iVar2" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar2 == 0) {\n      return 5;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return 5;\n    }" { (return_statement "return 5;" return number_literal ;) })) }) (else_clause "else {\n    uVar5 = iVar4 + piVar1[2];\n    if ((uint)piVar1[2] < uVar5) {\n      piVar1[2] = uVar5;\n      iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);\n      if (iVar2 == 0) {\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return 5;\n      }\n      piVar1[1] = iVar2;\n    }\n  }" else (compound_statement "{\n    uVar5 = iVar4 + piVar1[2];\n    if ((uint)piVar1[2] < uVar5) {\n      piVar1[2] = uVar5;\n      iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);\n      if (iVar2 == 0) {\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return 5;\n      }\n      piVar1[1] = iVar2;\n    }\n  }" { (expression_statement "uVar5 = iVar4 + piVar1[2];" (assignment_expression "uVar5 = iVar4 + piVar1[2]" identifier = (binary_expression "iVar4 + piVar1[2]" identifier + (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if ((uint)piVar1[2] < uVar5) {\n      piVar1[2] = uVar5;\n      iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);\n      if (iVar2 == 0) {\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return 5;\n      }\n      piVar1[1] = iVar2;\n    }" if (parenthesized_expression "((uint)piVar1[2] < uVar5)" ( (binary_expression "(uint)piVar1[2] < uVar5" (cast_expression "(uint)piVar1[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])) < identifier) )) (compound_statement "{\n      piVar1[2] = uVar5;\n      iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);\n      if (iVar2 == 0) {\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return 5;\n      }\n      piVar1[1] = iVar2;\n    }" { (expression_statement "piVar1[2] = uVar5;" (assignment_expression "piVar1[2] = uVar5" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);" (assignment_expression "iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5)" identifier = (call_expression "(**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5)" (parenthesized_expression "(**(code **)(unaff_EDI + 0x4377c))" ( (pointer_expression "**(code **)(unaff_EDI + 0x4377c)" * (pointer_expression "*(code **)(unaff_EDI + 0x4377c)" * (cast_expression "(code **)(unaff_EDI + 0x4377c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0x4377c)" ( (binary_expression "unaff_EDI + 0x4377c" identifier + number_literal) ))))) )) (argument_list "(iVar2,uVar5)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return 5;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return 5;\n      }" { (expression_statement "(**(code **)(unaff_EDI + 0x43780))(piVar1[1]);" (call_expression "(**(code **)(unaff_EDI + 0x43780))(piVar1[1])" (parenthesized_expression "(**(code **)(unaff_EDI + 0x43780))" ( (pointer_expression "**(code **)(unaff_EDI + 0x43780)" * (pointer_expression "*(code **)(unaff_EDI + 0x43780)" * (cast_expression "(code **)(unaff_EDI + 0x43780)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0x43780)" ( (binary_expression "unaff_EDI + 0x43780" identifier + number_literal) ))))) )) (argument_list "(piVar1[1])" ( (subscript_expression "piVar1[1]" identifier [ number_literal ]) ))) ;) (return_statement "return 5;" return number_literal ;) })) (expression_statement "piVar1[1] = iVar2;" (assignment_expression "piVar1[1] = iVar2" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) })) }))) (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "puVar3 = (undefined4 *)(iVar2 + iVar4);" (assignment_expression "puVar3 = (undefined4 *)(iVar2 + iVar4)" identifier = (cast_expression "(undefined4 *)(iVar2 + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar4)" ( (binary_expression "iVar2 + iVar4" identifier + identifier) )))) ;) (if_statement "if (extraout_ECX < 4) {\n    if (extraout_ECX == 0) goto LAB_0007396c;\n    *(undefined1 *)puVar3 = *(undefined1 *)param_2;\n    if ((extraout_ECX & 2) != 0) {\n      *(undefined2 *)((int)puVar3 + (extraout_ECX - 2)) =\n           *(undefined2 *)((int)param_2 + (extraout_ECX - 2));\n      iVar4 = *piVar1;\n      goto LAB_0007396c;\n    }\n  }\n  else {\n    *puVar3 = *param_2;\n    *(undefined4 *)((int)puVar3 + (extraout_ECX - 4)) =\n         *(undefined4 *)((int)param_2 + (extraout_ECX - 4));\n    iVar2 = (int)puVar3 - ((uint)(puVar3 + 1) & 0xfffffffc);\n    uVar5 = iVar2 + extraout_ECX & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar6 = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)((int)param_2 + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      } while (uVar6 < uVar5);\n    }\n  }" if (parenthesized_expression "(extraout_ECX < 4)" ( (binary_expression "extraout_ECX < 4" identifier < number_literal) )) (compound_statement "{\n    if (extraout_ECX == 0) goto LAB_0007396c;\n    *(undefined1 *)puVar3 = *(undefined1 *)param_2;\n    if ((extraout_ECX & 2) != 0) {\n      *(undefined2 *)((int)puVar3 + (extraout_ECX - 2)) =\n           *(undefined2 *)((int)param_2 + (extraout_ECX - 2));\n      iVar4 = *piVar1;\n      goto LAB_0007396c;\n    }\n  }" { (if_statement "if (extraout_ECX == 0) goto LAB_0007396c;" if (parenthesized_expression "(extraout_ECX == 0)" ( (binary_expression "extraout_ECX == 0" identifier == number_literal) )) (goto_statement "goto LAB_0007396c;" goto statement_identifier ;)) (expression_statement "*(undefined1 *)puVar3 = *(undefined1 *)param_2;" (assignment_expression "*(undefined1 *)puVar3 = *(undefined1 *)param_2" (pointer_expression "*(undefined1 *)puVar3" * (cast_expression "(undefined1 *)puVar3" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*(undefined1 *)param_2" * (cast_expression "(undefined1 *)param_2" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if ((extraout_ECX & 2) != 0) {\n      *(undefined2 *)((int)puVar3 + (extraout_ECX - 2)) =\n           *(undefined2 *)((int)param_2 + (extraout_ECX - 2));\n      iVar4 = *piVar1;\n      goto LAB_0007396c;\n    }" if (parenthesized_expression "((extraout_ECX & 2) != 0)" ( (binary_expression "(extraout_ECX & 2) != 0" (parenthesized_expression "(extraout_ECX & 2)" ( (binary_expression "extraout_ECX & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      *(undefined2 *)((int)puVar3 + (extraout_ECX - 2)) =\n           *(undefined2 *)((int)param_2 + (extraout_ECX - 2));\n      iVar4 = *piVar1;\n      goto LAB_0007396c;\n    }" { (expression_statement "*(undefined2 *)((int)puVar3 + (extraout_ECX - 2)) =\n           *(undefined2 *)((int)param_2 + (extraout_ECX - 2));" (assignment_expression "*(undefined2 *)((int)puVar3 + (extraout_ECX - 2)) =\n           *(undefined2 *)((int)param_2 + (extraout_ECX - 2))" (pointer_expression "*(undefined2 *)((int)puVar3 + (extraout_ECX - 2))" * (cast_expression "(undefined2 *)((int)puVar3 + (extraout_ECX - 2))" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar3 + (extraout_ECX - 2))" ( (binary_expression "(int)puVar3 + (extraout_ECX - 2)" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(extraout_ECX - 2)" ( (binary_expression "extraout_ECX - 2" identifier - number_literal) ))) )))) = (pointer_expression "*(undefined2 *)((int)param_2 + (extraout_ECX - 2))" * (cast_expression "(undefined2 *)((int)param_2 + (extraout_ECX - 2))" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + (extraout_ECX - 2))" ( (binary_expression "(int)param_2 + (extraout_ECX - 2)" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(extraout_ECX - 2)" ( (binary_expression "extraout_ECX - 2" identifier - number_literal) ))) ))))) ;) (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (goto_statement "goto LAB_0007396c;" goto statement_identifier ;) })) }) (else_clause "else {\n    *puVar3 = *param_2;\n    *(undefined4 *)((int)puVar3 + (extraout_ECX - 4)) =\n         *(undefined4 *)((int)param_2 + (extraout_ECX - 4));\n    iVar2 = (int)puVar3 - ((uint)(puVar3 + 1) & 0xfffffffc);\n    uVar5 = iVar2 + extraout_ECX & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar6 = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)((int)param_2 + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      } while (uVar6 < uVar5);\n    }\n  }" else (compound_statement "{\n    *puVar3 = *param_2;\n    *(undefined4 *)((int)puVar3 + (extraout_ECX - 4)) =\n         *(undefined4 *)((int)param_2 + (extraout_ECX - 4));\n    iVar2 = (int)puVar3 - ((uint)(puVar3 + 1) & 0xfffffffc);\n    uVar5 = iVar2 + extraout_ECX & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar6 = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)((int)param_2 + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      } while (uVar6 < uVar5);\n    }\n  }" { (expression_statement "*puVar3 = *param_2;" (assignment_expression "*puVar3 = *param_2" (pointer_expression "*puVar3" * identifier) = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*(undefined4 *)((int)puVar3 + (extraout_ECX - 4)) =\n         *(undefined4 *)((int)param_2 + (extraout_ECX - 4));" (assignment_expression "*(undefined4 *)((int)puVar3 + (extraout_ECX - 4)) =\n         *(undefined4 *)((int)param_2 + (extraout_ECX - 4))" (pointer_expression "*(undefined4 *)((int)puVar3 + (extraout_ECX - 4))" * (cast_expression "(undefined4 *)((int)puVar3 + (extraout_ECX - 4))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar3 + (extraout_ECX - 4))" ( (binary_expression "(int)puVar3 + (extraout_ECX - 4)" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(extraout_ECX - 4)" ( (binary_expression "extraout_ECX - 4" identifier - number_literal) ))) )))) = (pointer_expression "*(undefined4 *)((int)param_2 + (extraout_ECX - 4))" * (cast_expression "(undefined4 *)((int)param_2 + (extraout_ECX - 4))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + (extraout_ECX - 4))" ( (binary_expression "(int)param_2 + (extraout_ECX - 4)" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(extraout_ECX - 4)" ( (binary_expression "extraout_ECX - 4" identifier - number_literal) ))) ))))) ;) (expression_statement "iVar2 = (int)puVar3 - ((uint)(puVar3 + 1) & 0xfffffffc);" (assignment_expression "iVar2 = (int)puVar3 - ((uint)(puVar3 + 1) & 0xfffffffc)" identifier = (binary_expression "(int)puVar3 - ((uint)(puVar3 + 1) & 0xfffffffc)" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) - (parenthesized_expression "((uint)(puVar3 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar3 + 1) & 0xfffffffc" (call_expression "(uint)(puVar3 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar3 + 1)" ( (binary_expression "puVar3 + 1" identifier + number_literal) ))) & number_literal) )))) ;) (expression_statement "uVar5 = iVar2 + extraout_ECX & 0xfffffffc;" (assignment_expression "uVar5 = iVar2 + extraout_ECX & 0xfffffffc" identifier = (binary_expression "iVar2 + extraout_ECX & 0xfffffffc" (binary_expression "iVar2 + extraout_ECX" identifier + identifier) & number_literal)) ;) (if_statement "if (3 < uVar5) {\n      uVar6 = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)((int)param_2 + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      } while (uVar6 < uVar5);\n    }" if (parenthesized_expression "(3 < uVar5)" ( (binary_expression "3 < uVar5" number_literal < identifier) )) (compound_statement "{\n      uVar6 = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)((int)param_2 + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      } while (uVar6 < uVar5);\n    }" { (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n        *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)((int)param_2 + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      } while (uVar6 < uVar5);" do (compound_statement "{\n        *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)((int)param_2 + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      }" { (expression_statement "*(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)((int)param_2 + (uVar6 - iVar2));" (assignment_expression "*(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)((int)param_2 + (uVar6 - iVar2))" (pointer_expression "*(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6)" * (cast_expression "(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6)" ( (binary_expression "((uint)(puVar3 + 1) & 0xfffffffc) + uVar6" (parenthesized_expression "((uint)(puVar3 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar3 + 1) & 0xfffffffc" (call_expression "(uint)(puVar3 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar3 + 1)" ( (binary_expression "puVar3 + 1" identifier + number_literal) ))) & number_literal) )) + identifier) )))) = (pointer_expression "*(undefined4 *)((int)param_2 + (uVar6 - iVar2))" * (cast_expression "(undefined4 *)((int)param_2 + (uVar6 - iVar2))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + (uVar6 - iVar2))" ( (binary_expression "(int)param_2 + (uVar6 - iVar2)" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(uVar6 - iVar2)" ( (binary_expression "uVar6 - iVar2" identifier - identifier) ))) ))))) ;) (expression_statement "uVar6 = uVar6 + 4;" (assignment_expression "uVar6 = uVar6 + 4" identifier = (binary_expression "uVar6 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar6 < uVar5)" ( (binary_expression "uVar6 < uVar5" identifier < identifier) )) ;) })) }))) (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (labeled_statement "LAB_0007396c:\n  *piVar1 = extraout_ECX + iVar4;" statement_identifier : (expression_statement "*piVar1 = extraout_ECX + iVar4;" (assignment_expression "*piVar1 = extraout_ECX + iVar4" (pointer_expression "*piVar1" * identifier) = (binary_expression "extraout_ECX + iVar4" identifier + identifier)) ;)) (expression_statement "*(undefined1 *)(piVar1[1] + extraout_ECX + iVar4) = 0;" (assignment_expression "*(undefined1 *)(piVar1[1] + extraout_ECX + iVar4) = 0" (pointer_expression "*(undefined1 *)(piVar1[1] + extraout_ECX + iVar4)" * (cast_expression "(undefined1 *)(piVar1[1] + extraout_ECX + iVar4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1[1] + extraout_ECX + iVar4)" ( (binary_expression "piVar1[1] + extraout_ECX + iVar4" (binary_expression "piVar1[1] + extraout_ECX" (subscript_expression "piVar1[1]" identifier [ number_literal ]) + identifier) + identifier) )))) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) < IDENT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) })) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression IDENT - LIT) ))) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression IDENT - LIT) ))) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression IDENT - LIT) ))) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression IDENT - LIT) ))) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )) + IDENT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression IDENT - IDENT) ))) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) })) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + IDENT)) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT) + IDENT) )))) = LIT) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm3 FUN_000738e0(undefined4 param_1,undefined4 *param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  uint extraout_ECX;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  int unaff_EDI;\n  undefined8 uVar7;\n  \n  uVar7 = FUN_0002eb2c();\n  iVar4 = (int)((ulonglong)uVar7 >> 0x20);\n  piVar1 = (int *)uVar7;\n  iVar2 = piVar1[1];\n  if (iVar2 == 0) {\n    piVar1[2] = iVar4;\n    iVar2 = (**(code **)(unaff_EDI + 0x43784))(iVar4);\n    piVar1[1] = iVar2;\n    if (iVar2 == 0) {\n      return 5;\n    }\n  }\n  else {\n    uVar5 = iVar4 + piVar1[2];\n    if ((uint)piVar1[2] < uVar5) {\n      piVar1[2] = uVar5;\n      iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);\n      if (iVar2 == 0) {\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return 5;\n      }\n      piVar1[1] = iVar2;\n    }\n  }\n  iVar4 = *piVar1;\n  puVar3 = (undefined4 *)(iVar2 + iVar4);\n  if (extraout_ECX < 4) {\n    if (extraout_ECX == 0) goto LAB_0007396c;\n    *(undefined1 *)puVar3 = *(undefined1 *)param_2;\n    if ((extraout_ECX & 2) != 0) {\n      *(undefined2 *)((int)puVar3 + (extraout_ECX - 2)) =\n           *(undefined2 *)((int)param_2 + (extraout_ECX - 2));\n      iVar4 = *piVar1;\n      goto LAB_0007396c;\n    }\n  }\n  else {\n    *puVar3 = *param_2;\n    *(undefined4 *)((int)puVar3 + (extraout_ECX - 4)) =\n         *(undefined4 *)((int)param_2 + (extraout_ECX - 4));\n    iVar2 = (int)puVar3 - ((uint)(puVar3 + 1) & 0xfffffffc);\n    uVar5 = iVar2 + extraout_ECX & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar6 = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)((int)param_2 + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      } while (uVar6 < uVar5);\n    }\n  }\n  iVar4 = *piVar1;\nLAB_0007396c:\n  *piVar1 = extraout_ECX + iVar4;\n  *(undefined1 *)(piVar1[1] + extraout_ECX + iVar4) = 0;\n  return 0;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000738e0(undefined4 param_1,undefined4 *param_2)" (identifier "FUN_000738e0") (parameter_list "(undefined4 param_1,undefined4 *param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  uint extraout_ECX;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  int unaff_EDI;\n  undefined8 uVar7;\n  \n  uVar7 = FUN_0002eb2c();\n  iVar4 = (int)((ulonglong)uVar7 >> 0x20);\n  piVar1 = (int *)uVar7;\n  iVar2 = piVar1[1];\n  if (iVar2 == 0) {\n    piVar1[2] = iVar4;\n    iVar2 = (**(code **)(unaff_EDI + 0x43784))(iVar4);\n    piVar1[1] = iVar2;\n    if (iVar2 == 0) {\n      return 5;\n    }\n  }\n  else {\n    uVar5 = iVar4 + piVar1[2];\n    if ((uint)piVar1[2] < uVar5) {\n      piVar1[2] = uVar5;\n      iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);\n      if (iVar2 == 0) {\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return 5;\n      }\n      piVar1[1] = iVar2;\n    }\n  }\n  iVar4 = *piVar1;\n  puVar3 = (undefined4 *)(iVar2 + iVar4);\n  if (extraout_ECX < 4) {\n    if (extraout_ECX == 0) goto LAB_0007396c;\n    *(undefined1 *)puVar3 = *(undefined1 *)param_2;\n    if ((extraout_ECX & 2) != 0) {\n      *(undefined2 *)((int)puVar3 + (extraout_ECX - 2)) =\n           *(undefined2 *)((int)param_2 + (extraout_ECX - 2));\n      iVar4 = *piVar1;\n      goto LAB_0007396c;\n    }\n  }\n  else {\n    *puVar3 = *param_2;\n    *(undefined4 *)((int)puVar3 + (extraout_ECX - 4)) =\n         *(undefined4 *)((int)param_2 + (extraout_ECX - 4));\n    iVar2 = (int)puVar3 - ((uint)(puVar3 + 1) & 0xfffffffc);\n    uVar5 = iVar2 + extraout_ECX & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar6 = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)((int)param_2 + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      } while (uVar6 < uVar5);\n    }\n  }\n  iVar4 = *piVar1;\nLAB_0007396c:\n  *piVar1 = extraout_ECX + iVar4;\n  *(undefined1 *)(piVar1[1] + extraout_ECX + iVar4) = 0;\n  return 0;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "uint extraout_ECX;" (type_identifier "uint") (identifier "extraout_ECX") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (declaration "undefined8 uVar7;" (type_identifier "undefined8") (identifier "uVar7") (; ";")) (expression_statement "uVar7 = FUN_0002eb2c();" (assignment_expression "uVar7 = FUN_0002eb2c()" (identifier "uVar7") (= "=") (call_expression "FUN_0002eb2c()" (identifier "FUN_0002eb2c") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar4 = (int)((ulonglong)uVar7 >> 0x20);" (assignment_expression "iVar4 = (int)((ulonglong)uVar7 >> 0x20)" (identifier "iVar4") (= "=") (cast_expression "(int)((ulonglong)uVar7 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar7 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar7 >> 0x20" (cast_expression "(ulonglong)uVar7" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar7")) (>> ">>") (number_literal "0x20")) () ")")))) (; ";")) (expression_statement "piVar1 = (int *)uVar7;" (assignment_expression "piVar1 = (int *)uVar7" (identifier "piVar1") (= "=") (cast_expression "(int *)uVar7" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "uVar7"))) (; ";")) (expression_statement "iVar2 = piVar1[1];" (assignment_expression "iVar2 = piVar1[1]" (identifier "iVar2") (= "=") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (iVar2 == 0) {\n    piVar1[2] = iVar4;\n    iVar2 = (**(code **)(unaff_EDI + 0x43784))(iVar4);\n    piVar1[1] = iVar2;\n    if (iVar2 == 0) {\n      return 5;\n    }\n  }\n  else {\n    uVar5 = iVar4 + piVar1[2];\n    if ((uint)piVar1[2] < uVar5) {\n      piVar1[2] = uVar5;\n      iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);\n      if (iVar2 == 0) {\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return 5;\n      }\n      piVar1[1] = iVar2;\n    }\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    piVar1[2] = iVar4;\n    iVar2 = (**(code **)(unaff_EDI + 0x43784))(iVar4);\n    piVar1[1] = iVar2;\n    if (iVar2 == 0) {\n      return 5;\n    }\n  }" ({ "{") (expression_statement "piVar1[2] = iVar4;" (assignment_expression "piVar1[2] = iVar4" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "iVar2 = (**(code **)(unaff_EDI + 0x43784))(iVar4);" (assignment_expression "iVar2 = (**(code **)(unaff_EDI + 0x43784))(iVar4)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(unaff_EDI + 0x43784))(iVar4)" (parenthesized_expression "(**(code **)(unaff_EDI + 0x43784))" (( "(") (pointer_expression "**(code **)(unaff_EDI + 0x43784)" (* "*") (pointer_expression "*(code **)(unaff_EDI + 0x43784)" (* "*") (cast_expression "(code **)(unaff_EDI + 0x43784)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EDI + 0x43784)" (( "(") (binary_expression "unaff_EDI + 0x43784" (identifier "unaff_EDI") (+ "+") (number_literal "0x43784")) () ")"))))) () ")")) (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")")))) (; ";")) (expression_statement "piVar1[1] = iVar2;" (assignment_expression "piVar1[1] = iVar2" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (if_statement "if (iVar2 == 0) {\n      return 5;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 5;\n    }" ({ "{") (return_statement "return 5;" (return "return") (number_literal "5") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    uVar5 = iVar4 + piVar1[2];\n    if ((uint)piVar1[2] < uVar5) {\n      piVar1[2] = uVar5;\n      iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);\n      if (iVar2 == 0) {\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return 5;\n      }\n      piVar1[1] = iVar2;\n    }\n  }" (else "else") (compound_statement "{\n    uVar5 = iVar4 + piVar1[2];\n    if ((uint)piVar1[2] < uVar5) {\n      piVar1[2] = uVar5;\n      iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);\n      if (iVar2 == 0) {\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return 5;\n      }\n      piVar1[1] = iVar2;\n    }\n  }" ({ "{") (expression_statement "uVar5 = iVar4 + piVar1[2];" (assignment_expression "uVar5 = iVar4 + piVar1[2]" (identifier "uVar5") (= "=") (binary_expression "iVar4 + piVar1[2]" (identifier "iVar4") (+ "+") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (if_statement "if ((uint)piVar1[2] < uVar5) {\n      piVar1[2] = uVar5;\n      iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);\n      if (iVar2 == 0) {\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return 5;\n      }\n      piVar1[1] = iVar2;\n    }" (if "if") (parenthesized_expression "((uint)piVar1[2] < uVar5)" (( "(") (binary_expression "(uint)piVar1[2] < uVar5" (cast_expression "(uint)piVar1[2]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]"))) (< "<") (identifier "uVar5")) () ")")) (compound_statement "{\n      piVar1[2] = uVar5;\n      iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);\n      if (iVar2 == 0) {\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return 5;\n      }\n      piVar1[1] = iVar2;\n    }" ({ "{") (expression_statement "piVar1[2] = uVar5;" (assignment_expression "piVar1[2] = uVar5" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar5")) (; ";")) (expression_statement "iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);" (assignment_expression "iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5)" (parenthesized_expression "(**(code **)(unaff_EDI + 0x4377c))" (( "(") (pointer_expression "**(code **)(unaff_EDI + 0x4377c)" (* "*") (pointer_expression "*(code **)(unaff_EDI + 0x4377c)" (* "*") (cast_expression "(code **)(unaff_EDI + 0x4377c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EDI + 0x4377c)" (( "(") (binary_expression "unaff_EDI + 0x4377c" (identifier "unaff_EDI") (+ "+") (number_literal "0x4377c")) () ")"))))) () ")")) (argument_list "(iVar2,uVar5)" (( "(") (identifier "iVar2") (, ",") (identifier "uVar5") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return 5;\n      }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);\n        return 5;\n      }" ({ "{") (expression_statement "(**(code **)(unaff_EDI + 0x43780))(piVar1[1]);" (call_expression "(**(code **)(unaff_EDI + 0x43780))(piVar1[1])" (parenthesized_expression "(**(code **)(unaff_EDI + 0x43780))" (( "(") (pointer_expression "**(code **)(unaff_EDI + 0x43780)" (* "*") (pointer_expression "*(code **)(unaff_EDI + 0x43780)" (* "*") (cast_expression "(code **)(unaff_EDI + 0x43780)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EDI + 0x43780)" (( "(") (binary_expression "unaff_EDI + 0x43780" (identifier "unaff_EDI") (+ "+") (number_literal "0x43780")) () ")"))))) () ")")) (argument_list "(piVar1[1])" (( "(") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) () ")"))) (; ";")) (return_statement "return 5;" (return "return") (number_literal "5") (; ";")) (} "}"))) (expression_statement "piVar1[1] = iVar2;" (assignment_expression "piVar1[1] = iVar2" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (} "}"))) (} "}")))) (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" (identifier "iVar4") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (expression_statement "puVar3 = (undefined4 *)(iVar2 + iVar4);" (assignment_expression "puVar3 = (undefined4 *)(iVar2 + iVar4)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)(iVar2 + iVar4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + iVar4)" (( "(") (binary_expression "iVar2 + iVar4" (identifier "iVar2") (+ "+") (identifier "iVar4")) () ")")))) (; ";")) (if_statement "if (extraout_ECX < 4) {\n    if (extraout_ECX == 0) goto LAB_0007396c;\n    *(undefined1 *)puVar3 = *(undefined1 *)param_2;\n    if ((extraout_ECX & 2) != 0) {\n      *(undefined2 *)((int)puVar3 + (extraout_ECX - 2)) =\n           *(undefined2 *)((int)param_2 + (extraout_ECX - 2));\n      iVar4 = *piVar1;\n      goto LAB_0007396c;\n    }\n  }\n  else {\n    *puVar3 = *param_2;\n    *(undefined4 *)((int)puVar3 + (extraout_ECX - 4)) =\n         *(undefined4 *)((int)param_2 + (extraout_ECX - 4));\n    iVar2 = (int)puVar3 - ((uint)(puVar3 + 1) & 0xfffffffc);\n    uVar5 = iVar2 + extraout_ECX & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar6 = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)((int)param_2 + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      } while (uVar6 < uVar5);\n    }\n  }" (if "if") (parenthesized_expression "(extraout_ECX < 4)" (( "(") (binary_expression "extraout_ECX < 4" (identifier "extraout_ECX") (< "<") (number_literal "4")) () ")")) (compound_statement "{\n    if (extraout_ECX == 0) goto LAB_0007396c;\n    *(undefined1 *)puVar3 = *(undefined1 *)param_2;\n    if ((extraout_ECX & 2) != 0) {\n      *(undefined2 *)((int)puVar3 + (extraout_ECX - 2)) =\n           *(undefined2 *)((int)param_2 + (extraout_ECX - 2));\n      iVar4 = *piVar1;\n      goto LAB_0007396c;\n    }\n  }" ({ "{") (if_statement "if (extraout_ECX == 0) goto LAB_0007396c;" (if "if") (parenthesized_expression "(extraout_ECX == 0)" (( "(") (binary_expression "extraout_ECX == 0" (identifier "extraout_ECX") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0007396c;" (goto "goto") (statement_identifier "LAB_0007396c") (; ";"))) (expression_statement "*(undefined1 *)puVar3 = *(undefined1 *)param_2;" (assignment_expression "*(undefined1 *)puVar3 = *(undefined1 *)param_2" (pointer_expression "*(undefined1 *)puVar3" (* "*") (cast_expression "(undefined1 *)puVar3" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) (= "=") (pointer_expression "*(undefined1 *)param_2" (* "*") (cast_expression "(undefined1 *)param_2" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_2")))) (; ";")) (if_statement "if ((extraout_ECX & 2) != 0) {\n      *(undefined2 *)((int)puVar3 + (extraout_ECX - 2)) =\n           *(undefined2 *)((int)param_2 + (extraout_ECX - 2));\n      iVar4 = *piVar1;\n      goto LAB_0007396c;\n    }" (if "if") (parenthesized_expression "((extraout_ECX & 2) != 0)" (( "(") (binary_expression "(extraout_ECX & 2) != 0" (parenthesized_expression "(extraout_ECX & 2)" (( "(") (binary_expression "extraout_ECX & 2" (identifier "extraout_ECX") (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined2 *)((int)puVar3 + (extraout_ECX - 2)) =\n           *(undefined2 *)((int)param_2 + (extraout_ECX - 2));\n      iVar4 = *piVar1;\n      goto LAB_0007396c;\n    }" ({ "{") (expression_statement "*(undefined2 *)((int)puVar3 + (extraout_ECX - 2)) =\n           *(undefined2 *)((int)param_2 + (extraout_ECX - 2));" (assignment_expression "*(undefined2 *)((int)puVar3 + (extraout_ECX - 2)) =\n           *(undefined2 *)((int)param_2 + (extraout_ECX - 2))" (pointer_expression "*(undefined2 *)((int)puVar3 + (extraout_ECX - 2))" (* "*") (cast_expression "(undefined2 *)((int)puVar3 + (extraout_ECX - 2))" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar3 + (extraout_ECX - 2))" (( "(") (binary_expression "(int)puVar3 + (extraout_ECX - 2)" (cast_expression "(int)puVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar3")) (+ "+") (parenthesized_expression "(extraout_ECX - 2)" (( "(") (binary_expression "extraout_ECX - 2" (identifier "extraout_ECX") (- "-") (number_literal "2")) () ")"))) () ")")))) (= "=") (pointer_expression "*(undefined2 *)((int)param_2 + (extraout_ECX - 2))" (* "*") (cast_expression "(undefined2 *)((int)param_2 + (extraout_ECX - 2))" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + (extraout_ECX - 2))" (( "(") (binary_expression "(int)param_2 + (extraout_ECX - 2)" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (parenthesized_expression "(extraout_ECX - 2)" (( "(") (binary_expression "extraout_ECX - 2" (identifier "extraout_ECX") (- "-") (number_literal "2")) () ")"))) () ")"))))) (; ";")) (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" (identifier "iVar4") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (goto_statement "goto LAB_0007396c;" (goto "goto") (statement_identifier "LAB_0007396c") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    *puVar3 = *param_2;\n    *(undefined4 *)((int)puVar3 + (extraout_ECX - 4)) =\n         *(undefined4 *)((int)param_2 + (extraout_ECX - 4));\n    iVar2 = (int)puVar3 - ((uint)(puVar3 + 1) & 0xfffffffc);\n    uVar5 = iVar2 + extraout_ECX & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar6 = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)((int)param_2 + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      } while (uVar6 < uVar5);\n    }\n  }" (else "else") (compound_statement "{\n    *puVar3 = *param_2;\n    *(undefined4 *)((int)puVar3 + (extraout_ECX - 4)) =\n         *(undefined4 *)((int)param_2 + (extraout_ECX - 4));\n    iVar2 = (int)puVar3 - ((uint)(puVar3 + 1) & 0xfffffffc);\n    uVar5 = iVar2 + extraout_ECX & 0xfffffffc;\n    if (3 < uVar5) {\n      uVar6 = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)((int)param_2 + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      } while (uVar6 < uVar5);\n    }\n  }" ({ "{") (expression_statement "*puVar3 = *param_2;" (assignment_expression "*puVar3 = *param_2" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "*(undefined4 *)((int)puVar3 + (extraout_ECX - 4)) =\n         *(undefined4 *)((int)param_2 + (extraout_ECX - 4));" (assignment_expression "*(undefined4 *)((int)puVar3 + (extraout_ECX - 4)) =\n         *(undefined4 *)((int)param_2 + (extraout_ECX - 4))" (pointer_expression "*(undefined4 *)((int)puVar3 + (extraout_ECX - 4))" (* "*") (cast_expression "(undefined4 *)((int)puVar3 + (extraout_ECX - 4))" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar3 + (extraout_ECX - 4))" (( "(") (binary_expression "(int)puVar3 + (extraout_ECX - 4)" (cast_expression "(int)puVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar3")) (+ "+") (parenthesized_expression "(extraout_ECX - 4)" (( "(") (binary_expression "extraout_ECX - 4" (identifier "extraout_ECX") (- "-") (number_literal "4")) () ")"))) () ")")))) (= "=") (pointer_expression "*(undefined4 *)((int)param_2 + (extraout_ECX - 4))" (* "*") (cast_expression "(undefined4 *)((int)param_2 + (extraout_ECX - 4))" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + (extraout_ECX - 4))" (( "(") (binary_expression "(int)param_2 + (extraout_ECX - 4)" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (parenthesized_expression "(extraout_ECX - 4)" (( "(") (binary_expression "extraout_ECX - 4" (identifier "extraout_ECX") (- "-") (number_literal "4")) () ")"))) () ")"))))) (; ";")) (expression_statement "iVar2 = (int)puVar3 - ((uint)(puVar3 + 1) & 0xfffffffc);" (assignment_expression "iVar2 = (int)puVar3 - ((uint)(puVar3 + 1) & 0xfffffffc)" (identifier "iVar2") (= "=") (binary_expression "(int)puVar3 - ((uint)(puVar3 + 1) & 0xfffffffc)" (cast_expression "(int)puVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar3")) (- "-") (parenthesized_expression "((uint)(puVar3 + 1) & 0xfffffffc)" (( "(") (binary_expression "(uint)(puVar3 + 1) & 0xfffffffc" (call_expression "(uint)(puVar3 + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(puVar3 + 1)" (( "(") (binary_expression "puVar3 + 1" (identifier "puVar3") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")))) (; ";")) (expression_statement "uVar5 = iVar2 + extraout_ECX & 0xfffffffc;" (assignment_expression "uVar5 = iVar2 + extraout_ECX & 0xfffffffc" (identifier "uVar5") (= "=") (binary_expression "iVar2 + extraout_ECX & 0xfffffffc" (binary_expression "iVar2 + extraout_ECX" (identifier "iVar2") (+ "+") (identifier "extraout_ECX")) (& "&") (number_literal "0xfffffffc"))) (; ";")) (if_statement "if (3 < uVar5) {\n      uVar6 = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)((int)param_2 + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      } while (uVar6 < uVar5);\n    }" (if "if") (parenthesized_expression "(3 < uVar5)" (( "(") (binary_expression "3 < uVar5" (number_literal "3") (< "<") (identifier "uVar5")) () ")")) (compound_statement "{\n      uVar6 = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)((int)param_2 + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      } while (uVar6 < uVar5);\n    }" ({ "{") (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)((int)param_2 + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      } while (uVar6 < uVar5);" (do "do") (compound_statement "{\n        *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)((int)param_2 + (uVar6 - iVar2));\n        uVar6 = uVar6 + 4;\n      }" ({ "{") (expression_statement "*(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)((int)param_2 + (uVar6 - iVar2));" (assignment_expression "*(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =\n             *(undefined4 *)((int)param_2 + (uVar6 - iVar2))" (pointer_expression "*(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6)" (* "*") (cast_expression "(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6)" (( "(") (binary_expression "((uint)(puVar3 + 1) & 0xfffffffc) + uVar6" (parenthesized_expression "((uint)(puVar3 + 1) & 0xfffffffc)" (( "(") (binary_expression "(uint)(puVar3 + 1) & 0xfffffffc" (call_expression "(uint)(puVar3 + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(puVar3 + 1)" (( "(") (binary_expression "puVar3 + 1" (identifier "puVar3") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")) (+ "+") (identifier "uVar6")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)((int)param_2 + (uVar6 - iVar2))" (* "*") (cast_expression "(undefined4 *)((int)param_2 + (uVar6 - iVar2))" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + (uVar6 - iVar2))" (( "(") (binary_expression "(int)param_2 + (uVar6 - iVar2)" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (parenthesized_expression "(uVar6 - iVar2)" (( "(") (binary_expression "uVar6 - iVar2" (identifier "uVar6") (- "-") (identifier "iVar2")) () ")"))) () ")"))))) (; ";")) (expression_statement "uVar6 = uVar6 + 4;" (assignment_expression "uVar6 = uVar6 + 4" (identifier "uVar6") (= "=") (binary_expression "uVar6 + 4" (identifier "uVar6") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar6 < uVar5)" (( "(") (binary_expression "uVar6 < uVar5" (identifier "uVar6") (< "<") (identifier "uVar5")) () ")")) (; ";")) (} "}"))) (} "}")))) (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" (identifier "iVar4") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (labeled_statement "LAB_0007396c:\n  *piVar1 = extraout_ECX + iVar4;" (statement_identifier "LAB_0007396c") (: ":") (expression_statement "*piVar1 = extraout_ECX + iVar4;" (assignment_expression "*piVar1 = extraout_ECX + iVar4" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (binary_expression "extraout_ECX + iVar4" (identifier "extraout_ECX") (+ "+") (identifier "iVar4"))) (; ";"))) (expression_statement "*(undefined1 *)(piVar1[1] + extraout_ECX + iVar4) = 0;" (assignment_expression "*(undefined1 *)(piVar1[1] + extraout_ECX + iVar4) = 0" (pointer_expression "*(undefined1 *)(piVar1[1] + extraout_ECX + iVar4)" (* "*") (cast_expression "(undefined1 *)(piVar1[1] + extraout_ECX + iVar4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1[1] + extraout_ECX + iVar4)" (( "(") (binary_expression "piVar1[1] + extraout_ECX + iVar4" (binary_expression "piVar1[1] + extraout_ECX" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (+ "+") (identifier "extraout_ECX")) (+ "+") (identifier "iVar4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

type_1 __regparm3 function_1(type_2 *c,type_3 *var_8,size_t len)

{
  int *piVar1;
  int var_2;
  type_3 *var_7;
  type_4 var_6;
  int var_4;
  type_4 var_5;
  type_4 var_9;
  int var_3;
  type_5 uVar7;
  
  uVar7 = var_1();
  var_4 = (int)((type_6)uVar7 >> 0x20);
  piVar1 = (int *)uVar7;
  var_2 = piVar1[1];
  if (var_2 == 0) {
    piVar1[2] = var_4;
    var_2 = (**(type_7 **)(var_3 + 0x43784))(var_4);
    piVar1[1] = var_2;
    if (var_2 == 0) {
      return DOH_OUT_OF_MEM;
    }
  }
  else {
    var_5 = var_4 + piVar1[2];
    if ((type_4)piVar1[2] < var_5) {
      piVar1[2] = var_5;
      var_2 = (**(type_7 **)(var_3 + 0x4377c))(var_2,var_5);
      if (var_2 == 0) {
        (**(type_7 **)(var_3 + 0x43780))(piVar1[1]);
        return DOH_OUT_OF_MEM;
      }
      piVar1[1] = var_2;
    }
  }
  var_4 = *piVar1;
  var_7 = (type_3 *)(var_2 + var_4);
  if (var_6 < 4) {
    if (var_6 == 0) goto LAB_0007396c;
    *var_7 = *var_8;
    if ((var_6 & 2) != 0) {
      *(type_8 *)(var_7 + (var_6 - 2)) = *(type_8 *)(var_8 + (var_6 - 2));
      var_4 = *piVar1;
      goto LAB_0007396c;
    }
  }
  else {
    *(type_9 *)var_7 = *(type_9 *)var_8;
    *(type_9 *)(var_7 + (var_6 - 4)) = *(type_9 *)(var_8 + (var_6 - 4));
    var_2 = (int)var_7 - ((type_4)(var_7 + 4) & 0xfffffffc);
    var_5 = var_2 + var_6 & 0xfffffffc;
    if (3 < var_5) {
      var_9 = 0;
      do {
        *(type_9 *)(((type_4)(var_7 + 4) & 0xfffffffc) + var_9) =
             *(type_9 *)(var_8 + (var_9 - var_2));
        var_9 = var_9 + 4;
      } while (var_9 < var_5);
    }
  }
  var_4 = *piVar1;
LAB_0007396c:
  *piVar1 = var_6 + var_4;
  *(type_10 *)(piVar1[1] + var_6 + var_4) = 0;
  return DOH_OK;
}


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

undefined4 __regparm3 MASKED(undefined4 param_1,undefined4 *param_2)

{
  int *piVar1;
  int iVar2;
  undefined4 *puVar3;
  uint extraout_ECX;
  int iVar4;
  uint uVar5;
  uint uVar6;
  int unaff_EDI;
  undefined8 uVar7;
  
  uVar7 = FUN_0002eb2c();
  iVar4 = (int)((ulonglong)uVar7 >> 0x20);
  piVar1 = (int *)uVar7;
  iVar2 = piVar1[1];
  if (iVar2 == 0) {
    piVar1[2] = iVar4;
    iVar2 = (**(code **)(unaff_EDI + 0x43784))(iVar4);
    piVar1[1] = iVar2;
    if (iVar2 == 0) {
      return 5;
    }
  }
  else {
    uVar5 = iVar4 + piVar1[2];
    if ((uint)piVar1[2] < uVar5) {
      piVar1[2] = uVar5;
      iVar2 = (**(code **)(unaff_EDI + 0x4377c))(iVar2,uVar5);
      if (iVar2 == 0) {
        (**(code **)(unaff_EDI + 0x43780))(piVar1[1]);
        return 5;
      }
      piVar1[1] = iVar2;
    }
  }
  iVar4 = *piVar1;
  puVar3 = (undefined4 *)(iVar2 + iVar4);
  if (extraout_ECX < 4) {
    if (extraout_ECX == 0) goto LAB_0007396c;
    *(undefined1 *)puVar3 = *(undefined1 *)param_2;
    if ((extraout_ECX & 2) != 0) {
      *(undefined2 *)((int)puVar3 + (extraout_ECX - 2)) =
           *(undefined2 *)((int)param_2 + (extraout_ECX - 2));
      iVar4 = *piVar1;
      goto LAB_0007396c;
    }
  }
  else {
    *puVar3 = *param_2;
    *(undefined4 *)((int)puVar3 + (extraout_ECX - 4)) =
         *(undefined4 *)((int)param_2 + (extraout_ECX - 4));
    iVar2 = (int)puVar3 - ((uint)(puVar3 + 1) & 0xfffffffc);
    uVar5 = iVar2 + extraout_ECX & 0xfffffffc;
    if (3 < uVar5) {
      uVar6 = 0;
      do {
        *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) =
             *(undefined4 *)((int)param_2 + (uVar6 - iVar2));
        uVar6 = uVar6 + 4;
      } while (uVar6 < uVar5);
    }
  }
  iVar4 = *piVar1;
LAB_0007396c:
  *piVar1 = extraout_ECX + iVar4;
  *(undefined1 *)(piVar1[1] + extraout_ECX + iVar4) = 0;
  return 0;
}

