
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::__pad<wchar_t, std::char_traits<wchar_t> >::_S_pad(std::ios_base&, wchar_t, wchar_t*,
   wchar_t const*, int, int) */

void std::__pad<wchar_t,std::char_traits<wchar_t>>::_S_pad
               (ios_base *param_1,wchar_t param_2,wchar_t *param_3,wchar_t *param_4,int param_5,
               int param_6)

{
  ctype *pcVar1;
  wchar_t wVar2;
  wchar_t *__s1;
  size_t __n;
  
  __n = param_5 - param_6;
  if ((*(uint *)(param_1 + 0xc) & 0xb0) == 0x20) {
    if (param_6 != 0) {
      wmemcpy(param_3,param_4,param_6);
    }
    if (__n == 0) {
      return;
    }
    wmemset(param_3 + param_6,param_2,__n);
    return;
  }
  if ((*(uint *)(param_1 + 0xc) & 0xb0) == 0x10) {
    pcVar1 = use_facet<std::ctype<wchar_t>>((locale *)(param_1 + 0x6c));
    wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x2d);
    if ((*param_4 == wVar2) ||
       (wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x2b), *param_4 == wVar2)) {
      param_4 = param_4 + 1;
      *param_3 = wVar2;
      param_6 = param_6 - 1;
      param_3 = param_3 + 1;
      goto LAB_001d8e4f;
    }
    wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x30);
    if ((*param_4 != wVar2) || (param_6 < 2)) goto LAB_001d8e4f;
    wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x78);
    if ((param_4[1] == wVar2) ||
       (wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x58), param_4[1] == wVar2)) {
      *param_3 = *param_4;
      param_3[1] = param_4[1];
      param_6 = param_6 - 2;
      param_3 = param_3 + 2;
      param_4 = param_4 + 2;
      goto LAB_001d8e4f;
    }
    __s1 = param_3 + __n;
    if (__n == 0) goto LAB_001d8f6c;
LAB_001d8f50:
    wmemset(param_3,param_2,__n);
  }
  else {
LAB_001d8e4f:
    __s1 = param_3 + __n;
    if (__n != 0) goto LAB_001d8f50;
  }
  if (param_6 == 0) {
    return;
  }
LAB_001d8f6c:
  wmemcpy(__s1,param_4,param_6);
  return;
}



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

void FUN_001d8e10(int param_1,wchar_t param_2,wchar_t *param_3,wchar_t *param_4,int param_5,
                 size_t param_6)

{
  uint uVar1;
  int *piVar2;
  wchar_t wVar3;
  wchar_t *__s1;
  size_t __n;
  
  __n = param_5 - param_6;
  uVar1 = *(uint *)(param_1 + 0xc) & 0xb0;
  if (uVar1 == 0x20) {
    if (param_6 != 0) {
      wmemcpy(param_3,param_4,param_6);
    }
    if (__n == 0) {
      return;
    }
    wmemset(param_3 + param_6,param_2,__n);
    return;
  }
  if (uVar1 == 0x10) {
    piVar2 = (int *)FUN_001d5bc0(param_1 + 0x6c);
    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2d);
    if ((*param_4 == wVar3) ||
       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2b), *param_4 == wVar3)) {
      param_4 = param_4 + 1;
      *param_3 = wVar3;
      param_6 = param_6 - 1;
      param_3 = param_3 + 1;
      goto LAB_001d8e4f;
    }
    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x30);
    if ((*param_4 != wVar3) || ((int)param_6 < 2)) goto LAB_001d8e4f;
    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x78);
    if ((param_4[1] == wVar3) ||
       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x58), param_4[1] == wVar3)) {
      *param_3 = *param_4;
      param_3[1] = param_4[1];
      param_6 = param_6 - 2;
      param_3 = param_3 + 2;
      param_4 = param_4 + 2;
      goto LAB_001d8e4f;
    }
    __s1 = param_3 + __n;
    if (__n == 0) goto LAB_001d8f6c;
LAB_001d8f50:
    wmemset(param_3,param_2,__n);
  }
  else {
LAB_001d8e4f:
    __s1 = param_3 + __n;
    if (__n != 0) goto LAB_001d8f50;
  }
  if (param_6 == 0) {
    return;
  }
LAB_001d8f6c:
  wmemcpy(__s1,param_4,param_6);
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00032730
ADD EBX,0x1291e7
SUB ESP,0x1c
MOV ECX,dword ptr [ESP + 0x30]
MOV EDX,dword ptr [ESP + 0x44]
MOV ESI,dword ptr [ESP + 0x40]
MOV EAX,dword ptr [ECX + 0xc]
SUB ESI,EDX
AND EAX,0xb0
CMP EAX,0x20
JZ 0x001d8f88
MOV EDI,EDX
LEA EBP,[ESI*0x4 + 0x0]
CMP EAX,0x10
JZ 0x001d8e70
ADD EBP,dword ptr [ESP + 0x38]
TEST ESI,ESI
JNZ 0x001d8f50
TEST EDI,EDI
JNZ 0x001d8f6c
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0x44],EDX
ADD ECX,0x6c
SUB ESP,0xc
PUSH ECX
CALL 0x001d5bc0
MOV ECX,EAX
POP EAX
POP EDX
MOV EAX,dword ptr [ECX]
PUSH 0x2d
PUSH ECX
MOV dword ptr [ESP + 0x1c],ECX
CALL dword ptr [EAX + 0x28]
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x3c]
MOV EDX,dword ptr [ESP + 0x44]
CMP dword ptr [ECX],EAX
JZ 0x001d8fe0
SUB ESP,0x8
MOV ECX,dword ptr [ESP + 0x14]
MOV EAX,dword ptr [ECX]
PUSH 0x2b
PUSH ECX
MOV dword ptr [ESP + 0x1c],ECX
CALL dword ptr [EAX + 0x28]
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x3c]
MOV EDX,dword ptr [ESP + 0x44]
CMP dword ptr [ECX],EAX
MOV ECX,dword ptr [ESP + 0xc]
JZ 0x001d8fe0
MOV dword ptr [ESP + 0x44],EDX
SUB ESP,0x8
MOV EAX,dword ptr [ECX]
PUSH 0x30
PUSH ECX
MOV dword ptr [ESP + 0x1c],ECX
CALL dword ptr [EAX + 0x28]
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x3c]
CMP dword ptr [EDX],EAX
JNZ 0x001d8e4f
CMP EDI,0x1
MOV ECX,dword ptr [ESP + 0xc]
JLE 0x001d8e4f
SUB ESP,0x8
MOV EAX,dword ptr [ECX]
PUSH 0x78
PUSH ECX
MOV dword ptr [ESP + 0x1c],ECX
CALL dword ptr [EAX + 0x28]
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x3c]
MOV EDX,dword ptr [ESP + 0x44]
CMP dword ptr [ECX + 0x4],EAX
MOV ECX,dword ptr [ESP + 0xc]
JZ 0x001d8ff8
MOV dword ptr [ESP + 0x44],EDX
SUB ESP,0x8
MOV EAX,dword ptr [ECX]
PUSH 0x58
PUSH ECX
CALL dword ptr [EAX + 0x28]
MOV ECX,dword ptr [ESP + 0x4c]
MOV EDX,dword ptr [ESP + 0x54]
ADD ESP,0x10
CMP dword ptr [ECX + 0x4],EAX
JZ 0x001d8ff8
ADD EBP,dword ptr [ESP + 0x38]
TEST ESI,ESI
JZ 0x001d8f6c
NOP
SUB ESP,0x4
PUSH ESI
PUSH dword ptr [ESP + 0x3c]
PUSH dword ptr [ESP + 0x44]
CALL 0x00026650
ADD ESP,0x10
TEST EDI,EDI
JZ 0x001d8e63
SUB ESP,0x4
PUSH EDI
PUSH dword ptr [ESP + 0x44]
PUSH EBP
CALL 0x00026370
ADD ESP,0x10
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
TEST EDX,EDX
JNZ 0x001d8fb8
TEST ESI,ESI
JZ 0x001d8e63
SUB ESP,0x4
PUSH ESI
PUSH dword ptr [ESP + 0x3c]
MOV EAX,dword ptr [ESP + 0x44]
LEA EAX,[EAX + EDX*0x4]
PUSH EAX
CALL 0x00026650
ADD ESP,0x10
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
PUSH EDX
MOV dword ptr [ESP + 0x4c],EDX
PUSH dword ptr [ESP + 0x44]
PUSH dword ptr [ESP + 0x44]
CALL 0x00026370
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x44]
TEST ESI,ESI
JZ 0x001d8e63
JMP 0x001d8f94
MOV EDI,dword ptr [ESP + 0x38]
ADD dword ptr [ESP + 0x3c],0x4
ADD dword ptr [ESP + 0x38],0x4
MOV dword ptr [EDI],EAX
LEA EDI,[EDX + -0x1]
JMP 0x001d8e4f
MOV EAX,dword ptr [ESP + 0x3c]
MOV EDI,dword ptr [ESP + 0x38]
ADD dword ptr [ESP + 0x38],0x8
MOV EAX,dword ptr [EAX]
MOV dword ptr [EDI],EAX
MOV EAX,dword ptr [ESP + 0x3c]
ADD dword ptr [ESP + 0x3c],0x8
MOV EAX,dword ptr [EAX + 0x4]
MOV dword ptr [EDI + 0x4],EAX
LEA EDI,[EDX + -0x2]
JMP 0x001d8e4f
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_001d8e10(int param_1,wchar_t param_2,wchar_t *param_3,wchar_t *param_4,int param_5,\n                 size_t param_6)\n\n{\n  uint uVar1;\n  int *piVar2;\n  wchar_t wVar3;\n  wchar_t *__s1;\n  size_t __n;\n  \n  __n = param_5 - param_6;\n  uVar1 = *(uint *)(param_1 + 0xc) & 0xb0;\n  if (uVar1 == 0x20) {\n    if (param_6 != 0) {\n      wmemcpy(param_3,param_4,param_6);\n    }\n    if (__n == 0) {\n      return;\n    }\n    wmemset(param_3 + param_6,param_2,__n);\n    return;\n  }\n  if (uVar1 == 0x10) {\n    piVar2 = (int *)FUN_001d5bc0(param_1 + 0x6c);\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2d);\n    if ((*param_4 == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2b), *param_4 == wVar3)) {\n      param_4 = param_4 + 1;\n      *param_3 = wVar3;\n      param_6 = param_6 - 1;\n      param_3 = param_3 + 1;\n      goto LAB_001d8e4f;\n    }\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x30);\n    if ((*param_4 != wVar3) || ((int)param_6 < 2)) goto LAB_001d8e4f;\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x78);\n    if ((param_4[1] == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x58), param_4[1] == wVar3)) {\n      *param_3 = *param_4;\n      param_3[1] = param_4[1];\n      param_6 = param_6 - 2;\n      param_3 = param_3 + 2;\n      param_4 = param_4 + 2;\n      goto LAB_001d8e4f;\n    }\n    __s1 = param_3 + __n;\n    if (__n == 0) goto LAB_001d8f6c;\nLAB_001d8f50:\n    wmemset(param_3,param_2,__n);\n  }\n  else {\nLAB_001d8e4f:\n    __s1 = param_3 + __n;\n    if (__n != 0) goto LAB_001d8f50;\n  }\n  if (param_6 == 0) {\n    return;\n  }\nLAB_001d8f6c:\n  wmemcpy(__s1,param_4,param_6);\n  return;\n}\n\n" comment (function_definition "void FUN_001d8e10(int param_1,wchar_t param_2,wchar_t *param_3,wchar_t *param_4,int param_5,\n                 size_t param_6)\n\n{\n  uint uVar1;\n  int *piVar2;\n  wchar_t wVar3;\n  wchar_t *__s1;\n  size_t __n;\n  \n  __n = param_5 - param_6;\n  uVar1 = *(uint *)(param_1 + 0xc) & 0xb0;\n  if (uVar1 == 0x20) {\n    if (param_6 != 0) {\n      wmemcpy(param_3,param_4,param_6);\n    }\n    if (__n == 0) {\n      return;\n    }\n    wmemset(param_3 + param_6,param_2,__n);\n    return;\n  }\n  if (uVar1 == 0x10) {\n    piVar2 = (int *)FUN_001d5bc0(param_1 + 0x6c);\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2d);\n    if ((*param_4 == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2b), *param_4 == wVar3)) {\n      param_4 = param_4 + 1;\n      *param_3 = wVar3;\n      param_6 = param_6 - 1;\n      param_3 = param_3 + 1;\n      goto LAB_001d8e4f;\n    }\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x30);\n    if ((*param_4 != wVar3) || ((int)param_6 < 2)) goto LAB_001d8e4f;\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x78);\n    if ((param_4[1] == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x58), param_4[1] == wVar3)) {\n      *param_3 = *param_4;\n      param_3[1] = param_4[1];\n      param_6 = param_6 - 2;\n      param_3 = param_3 + 2;\n      param_4 = param_4 + 2;\n      goto LAB_001d8e4f;\n    }\n    __s1 = param_3 + __n;\n    if (__n == 0) goto LAB_001d8f6c;\nLAB_001d8f50:\n    wmemset(param_3,param_2,__n);\n  }\n  else {\nLAB_001d8e4f:\n    __s1 = param_3 + __n;\n    if (__n != 0) goto LAB_001d8f50;\n  }\n  if (param_6 == 0) {\n    return;\n  }\nLAB_001d8f6c:\n  wmemcpy(__s1,param_4,param_6);\n  return;\n}" primitive_type (function_declarator "FUN_001d8e10(int param_1,wchar_t param_2,wchar_t *param_3,wchar_t *param_4,int param_5,\n                 size_t param_6)" identifier (parameter_list "(int param_1,wchar_t param_2,wchar_t *param_3,wchar_t *param_4,int param_5,\n                 size_t param_6)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "wchar_t param_2" type_identifier identifier) , (parameter_declaration "wchar_t *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "wchar_t *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "size_t param_6" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  int *piVar2;\n  wchar_t wVar3;\n  wchar_t *__s1;\n  size_t __n;\n  \n  __n = param_5 - param_6;\n  uVar1 = *(uint *)(param_1 + 0xc) & 0xb0;\n  if (uVar1 == 0x20) {\n    if (param_6 != 0) {\n      wmemcpy(param_3,param_4,param_6);\n    }\n    if (__n == 0) {\n      return;\n    }\n    wmemset(param_3 + param_6,param_2,__n);\n    return;\n  }\n  if (uVar1 == 0x10) {\n    piVar2 = (int *)FUN_001d5bc0(param_1 + 0x6c);\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2d);\n    if ((*param_4 == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2b), *param_4 == wVar3)) {\n      param_4 = param_4 + 1;\n      *param_3 = wVar3;\n      param_6 = param_6 - 1;\n      param_3 = param_3 + 1;\n      goto LAB_001d8e4f;\n    }\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x30);\n    if ((*param_4 != wVar3) || ((int)param_6 < 2)) goto LAB_001d8e4f;\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x78);\n    if ((param_4[1] == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x58), param_4[1] == wVar3)) {\n      *param_3 = *param_4;\n      param_3[1] = param_4[1];\n      param_6 = param_6 - 2;\n      param_3 = param_3 + 2;\n      param_4 = param_4 + 2;\n      goto LAB_001d8e4f;\n    }\n    __s1 = param_3 + __n;\n    if (__n == 0) goto LAB_001d8f6c;\nLAB_001d8f50:\n    wmemset(param_3,param_2,__n);\n  }\n  else {\nLAB_001d8e4f:\n    __s1 = param_3 + __n;\n    if (__n != 0) goto LAB_001d8f50;\n  }\n  if (param_6 == 0) {\n    return;\n  }\nLAB_001d8f6c:\n  wmemcpy(__s1,param_4,param_6);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "wchar_t wVar3;" type_identifier identifier ;) (declaration "wchar_t *__s1;" type_identifier (pointer_declarator "*__s1" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (expression_statement "__n = param_5 - param_6;" (assignment_expression "__n = param_5 - param_6" identifier = (binary_expression "param_5 - param_6" identifier - identifier)) ;) (expression_statement "uVar1 = *(uint *)(param_1 + 0xc) & 0xb0;" (assignment_expression "uVar1 = *(uint *)(param_1 + 0xc) & 0xb0" identifier = (binary_expression "*(uint *)(param_1 + 0xc) & 0xb0" (pointer_expression "*(uint *)(param_1 + 0xc)" * (cast_expression "(uint *)(param_1 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) & number_literal)) ;) (if_statement "if (uVar1 == 0x20) {\n    if (param_6 != 0) {\n      wmemcpy(param_3,param_4,param_6);\n    }\n    if (__n == 0) {\n      return;\n    }\n    wmemset(param_3 + param_6,param_2,__n);\n    return;\n  }" if (parenthesized_expression "(uVar1 == 0x20)" ( (binary_expression "uVar1 == 0x20" identifier == number_literal) )) (compound_statement "{\n    if (param_6 != 0) {\n      wmemcpy(param_3,param_4,param_6);\n    }\n    if (__n == 0) {\n      return;\n    }\n    wmemset(param_3 + param_6,param_2,__n);\n    return;\n  }" { (if_statement "if (param_6 != 0) {\n      wmemcpy(param_3,param_4,param_6);\n    }" if (parenthesized_expression "(param_6 != 0)" ( (binary_expression "param_6 != 0" identifier != number_literal) )) (compound_statement "{\n      wmemcpy(param_3,param_4,param_6);\n    }" { (expression_statement "wmemcpy(param_3,param_4,param_6);" (call_expression "wmemcpy(param_3,param_4,param_6)" identifier (argument_list "(param_3,param_4,param_6)" ( identifier , identifier , identifier ))) ;) })) (if_statement "if (__n == 0) {\n      return;\n    }" if (parenthesized_expression "(__n == 0)" ( (binary_expression "__n == 0" identifier == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "wmemset(param_3 + param_6,param_2,__n);" (call_expression "wmemset(param_3 + param_6,param_2,__n)" identifier (argument_list "(param_3 + param_6,param_2,__n)" ( (binary_expression "param_3 + param_6" identifier + identifier) , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if (uVar1 == 0x10) {\n    piVar2 = (int *)FUN_001d5bc0(param_1 + 0x6c);\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2d);\n    if ((*param_4 == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2b), *param_4 == wVar3)) {\n      param_4 = param_4 + 1;\n      *param_3 = wVar3;\n      param_6 = param_6 - 1;\n      param_3 = param_3 + 1;\n      goto LAB_001d8e4f;\n    }\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x30);\n    if ((*param_4 != wVar3) || ((int)param_6 < 2)) goto LAB_001d8e4f;\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x78);\n    if ((param_4[1] == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x58), param_4[1] == wVar3)) {\n      *param_3 = *param_4;\n      param_3[1] = param_4[1];\n      param_6 = param_6 - 2;\n      param_3 = param_3 + 2;\n      param_4 = param_4 + 2;\n      goto LAB_001d8e4f;\n    }\n    __s1 = param_3 + __n;\n    if (__n == 0) goto LAB_001d8f6c;\nLAB_001d8f50:\n    wmemset(param_3,param_2,__n);\n  }\n  else {\nLAB_001d8e4f:\n    __s1 = param_3 + __n;\n    if (__n != 0) goto LAB_001d8f50;\n  }" if (parenthesized_expression "(uVar1 == 0x10)" ( (binary_expression "uVar1 == 0x10" identifier == number_literal) )) (compound_statement "{\n    piVar2 = (int *)FUN_001d5bc0(param_1 + 0x6c);\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2d);\n    if ((*param_4 == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2b), *param_4 == wVar3)) {\n      param_4 = param_4 + 1;\n      *param_3 = wVar3;\n      param_6 = param_6 - 1;\n      param_3 = param_3 + 1;\n      goto LAB_001d8e4f;\n    }\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x30);\n    if ((*param_4 != wVar3) || ((int)param_6 < 2)) goto LAB_001d8e4f;\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x78);\n    if ((param_4[1] == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x58), param_4[1] == wVar3)) {\n      *param_3 = *param_4;\n      param_3[1] = param_4[1];\n      param_6 = param_6 - 2;\n      param_3 = param_3 + 2;\n      param_4 = param_4 + 2;\n      goto LAB_001d8e4f;\n    }\n    __s1 = param_3 + __n;\n    if (__n == 0) goto LAB_001d8f6c;\nLAB_001d8f50:\n    wmemset(param_3,param_2,__n);\n  }" { (expression_statement "piVar2 = (int *)FUN_001d5bc0(param_1 + 0x6c);" (assignment_expression "piVar2 = (int *)FUN_001d5bc0(param_1 + 0x6c)" identifier = (cast_expression "(int *)FUN_001d5bc0(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001d5bc0(param_1 + 0x6c)" identifier (argument_list "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) ))))) ;) (expression_statement "wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2d);" (assignment_expression "wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2d)" identifier = (call_expression "(**(code **)(*piVar2 + 0x28))(piVar2,0x2d)" (parenthesized_expression "(**(code **)(*piVar2 + 0x28))" ( (pointer_expression "**(code **)(*piVar2 + 0x28)" * (pointer_expression "*(code **)(*piVar2 + 0x28)" * (cast_expression "(code **)(*piVar2 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 0x28)" ( (binary_expression "*piVar2 + 0x28" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2,0x2d)" ( identifier , number_literal )))) ;) (if_statement "if ((*param_4 == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2b), *param_4 == wVar3)) {\n      param_4 = param_4 + 1;\n      *param_3 = wVar3;\n      param_6 = param_6 - 1;\n      param_3 = param_3 + 1;\n      goto LAB_001d8e4f;\n    }" if (parenthesized_expression "((*param_4 == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2b), *param_4 == wVar3))" ( (binary_expression "(*param_4 == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2b), *param_4 == wVar3)" (parenthesized_expression "(*param_4 == wVar3)" ( (binary_expression "*param_4 == wVar3" (pointer_expression "*param_4" * identifier) == identifier) )) || (parenthesized_expression "(wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2b), *param_4 == wVar3)" ( (comma_expression "wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2b), *param_4 == wVar3" (assignment_expression "wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2b)" identifier = (call_expression "(**(code **)(*piVar2 + 0x28))(piVar2,0x2b)" (parenthesized_expression "(**(code **)(*piVar2 + 0x28))" ( (pointer_expression "**(code **)(*piVar2 + 0x28)" * (pointer_expression "*(code **)(*piVar2 + 0x28)" * (cast_expression "(code **)(*piVar2 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 0x28)" ( (binary_expression "*piVar2 + 0x28" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2,0x2b)" ( identifier , number_literal )))) , (binary_expression "*param_4 == wVar3" (pointer_expression "*param_4" * identifier) == identifier)) ))) )) (compound_statement "{\n      param_4 = param_4 + 1;\n      *param_3 = wVar3;\n      param_6 = param_6 - 1;\n      param_3 = param_3 + 1;\n      goto LAB_001d8e4f;\n    }" { (expression_statement "param_4 = param_4 + 1;" (assignment_expression "param_4 = param_4 + 1" identifier = (binary_expression "param_4 + 1" identifier + number_literal)) ;) (expression_statement "*param_3 = wVar3;" (assignment_expression "*param_3 = wVar3" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "param_6 = param_6 - 1;" (assignment_expression "param_6 = param_6 - 1" identifier = (binary_expression "param_6 - 1" identifier - number_literal)) ;) (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) (goto_statement "goto LAB_001d8e4f;" goto statement_identifier ;) })) (expression_statement "wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x30);" (assignment_expression "wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x30)" identifier = (call_expression "(**(code **)(*piVar2 + 0x28))(piVar2,0x30)" (parenthesized_expression "(**(code **)(*piVar2 + 0x28))" ( (pointer_expression "**(code **)(*piVar2 + 0x28)" * (pointer_expression "*(code **)(*piVar2 + 0x28)" * (cast_expression "(code **)(*piVar2 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 0x28)" ( (binary_expression "*piVar2 + 0x28" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2,0x30)" ( identifier , number_literal )))) ;) (if_statement "if ((*param_4 != wVar3) || ((int)param_6 < 2)) goto LAB_001d8e4f;" if (parenthesized_expression "((*param_4 != wVar3) || ((int)param_6 < 2))" ( (binary_expression "(*param_4 != wVar3) || ((int)param_6 < 2)" (parenthesized_expression "(*param_4 != wVar3)" ( (binary_expression "*param_4 != wVar3" (pointer_expression "*param_4" * identifier) != identifier) )) || (parenthesized_expression "((int)param_6 < 2)" ( (binary_expression "(int)param_6 < 2" (cast_expression "(int)param_6" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) ))) )) (goto_statement "goto LAB_001d8e4f;" goto statement_identifier ;)) (expression_statement "wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x78);" (assignment_expression "wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x78)" identifier = (call_expression "(**(code **)(*piVar2 + 0x28))(piVar2,0x78)" (parenthesized_expression "(**(code **)(*piVar2 + 0x28))" ( (pointer_expression "**(code **)(*piVar2 + 0x28)" * (pointer_expression "*(code **)(*piVar2 + 0x28)" * (cast_expression "(code **)(*piVar2 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 0x28)" ( (binary_expression "*piVar2 + 0x28" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2,0x78)" ( identifier , number_literal )))) ;) (if_statement "if ((param_4[1] == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x58), param_4[1] == wVar3)) {\n      *param_3 = *param_4;\n      param_3[1] = param_4[1];\n      param_6 = param_6 - 2;\n      param_3 = param_3 + 2;\n      param_4 = param_4 + 2;\n      goto LAB_001d8e4f;\n    }" if (parenthesized_expression "((param_4[1] == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x58), param_4[1] == wVar3))" ( (binary_expression "(param_4[1] == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x58), param_4[1] == wVar3)" (parenthesized_expression "(param_4[1] == wVar3)" ( (binary_expression "param_4[1] == wVar3" (subscript_expression "param_4[1]" identifier [ number_literal ]) == identifier) )) || (parenthesized_expression "(wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x58), param_4[1] == wVar3)" ( (comma_expression "wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x58), param_4[1] == wVar3" (assignment_expression "wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x58)" identifier = (call_expression "(**(code **)(*piVar2 + 0x28))(piVar2,0x58)" (parenthesized_expression "(**(code **)(*piVar2 + 0x28))" ( (pointer_expression "**(code **)(*piVar2 + 0x28)" * (pointer_expression "*(code **)(*piVar2 + 0x28)" * (cast_expression "(code **)(*piVar2 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 0x28)" ( (binary_expression "*piVar2 + 0x28" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2,0x58)" ( identifier , number_literal )))) , (binary_expression "param_4[1] == wVar3" (subscript_expression "param_4[1]" identifier [ number_literal ]) == identifier)) ))) )) (compound_statement "{\n      *param_3 = *param_4;\n      param_3[1] = param_4[1];\n      param_6 = param_6 - 2;\n      param_3 = param_3 + 2;\n      param_4 = param_4 + 2;\n      goto LAB_001d8e4f;\n    }" { (expression_statement "*param_3 = *param_4;" (assignment_expression "*param_3 = *param_4" (pointer_expression "*param_3" * identifier) = (pointer_expression "*param_4" * identifier)) ;) (expression_statement "param_3[1] = param_4[1];" (assignment_expression "param_3[1] = param_4[1]" (subscript_expression "param_3[1]" identifier [ number_literal ]) = (subscript_expression "param_4[1]" identifier [ number_literal ])) ;) (expression_statement "param_6 = param_6 - 2;" (assignment_expression "param_6 = param_6 - 2" identifier = (binary_expression "param_6 - 2" identifier - number_literal)) ;) (expression_statement "param_3 = param_3 + 2;" (assignment_expression "param_3 = param_3 + 2" identifier = (binary_expression "param_3 + 2" identifier + number_literal)) ;) (expression_statement "param_4 = param_4 + 2;" (assignment_expression "param_4 = param_4 + 2" identifier = (binary_expression "param_4 + 2" identifier + number_literal)) ;) (goto_statement "goto LAB_001d8e4f;" goto statement_identifier ;) })) (expression_statement "__s1 = param_3 + __n;" (assignment_expression "__s1 = param_3 + __n" identifier = (binary_expression "param_3 + __n" identifier + identifier)) ;) (if_statement "if (__n == 0) goto LAB_001d8f6c;" if (parenthesized_expression "(__n == 0)" ( (binary_expression "__n == 0" identifier == number_literal) )) (goto_statement "goto LAB_001d8f6c;" goto statement_identifier ;)) (labeled_statement "LAB_001d8f50:\n    wmemset(param_3,param_2,__n);" statement_identifier : (expression_statement "wmemset(param_3,param_2,__n);" (call_expression "wmemset(param_3,param_2,__n)" identifier (argument_list "(param_3,param_2,__n)" ( identifier , identifier , identifier ))) ;)) }) (else_clause "else {\nLAB_001d8e4f:\n    __s1 = param_3 + __n;\n    if (__n != 0) goto LAB_001d8f50;\n  }" else (compound_statement "{\nLAB_001d8e4f:\n    __s1 = param_3 + __n;\n    if (__n != 0) goto LAB_001d8f50;\n  }" { (labeled_statement "LAB_001d8e4f:\n    __s1 = param_3 + __n;" statement_identifier : (expression_statement "__s1 = param_3 + __n;" (assignment_expression "__s1 = param_3 + __n" identifier = (binary_expression "param_3 + __n" identifier + identifier)) ;)) (if_statement "if (__n != 0) goto LAB_001d8f50;" if (parenthesized_expression "(__n != 0)" ( (binary_expression "__n != 0" identifier != number_literal) )) (goto_statement "goto LAB_001d8f50;" goto statement_identifier ;)) }))) (if_statement "if (param_6 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_6 == 0)" ( (binary_expression "param_6 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (labeled_statement "LAB_001d8f6c:\n  wmemcpy(__s1,param_4,param_6);" statement_identifier : (expression_statement "wmemcpy(__s1,param_4,param_6);" (call_expression "wmemcpy(__s1,param_4,param_6)" identifier (argument_list "(__s1,param_4,param_6)" ( identifier , identifier , identifier ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::__pad<wchar_t, std::char_traits<wchar_t> >::_S_pad(std::ios_base&, wchar_t, wchar_t*,\n   wchar_t const*, int, int) */\n\nvoid std::__pad<wchar_t,std::char_traits<wchar_t>>::_S_pad\n               (ios_base *param_1,wchar_t param_2,wchar_t *param_3,wchar_t *param_4,int param_5,\n               int param_6)\n\n{\n  ctype *pcVar1;\n  wchar_t wVar2;\n  wchar_t *__s1;\n  size_t __n;\n  \n  __n = param_5 - param_6;\n  if ((*(uint *)(param_1 + 0xc) & 0xb0) == 0x20) {\n    if (param_6 != 0) {\n      wmemcpy(param_3,param_4,param_6);\n    }\n    if (__n == 0) {\n      return;\n    }\n    wmemset(param_3 + param_6,param_2,__n);\n    return;\n  }\n  if ((*(uint *)(param_1 + 0xc) & 0xb0) == 0x10) {\n    pcVar1 = use_facet<std::ctype<wchar_t>>((locale *)(param_1 + 0x6c));\n    wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x2d);\n    if ((*param_4 == wVar2) ||\n       (wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x2b), *param_4 == wVar2)) {\n      param_4 = param_4 + 1;\n      *param_3 = wVar2;\n      param_6 = param_6 - 1;\n      param_3 = param_3 + 1;\n      goto LAB_001d8e4f;\n    }\n    wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x30);\n    if ((*param_4 != wVar2) || (param_6 < 2)) goto LAB_001d8e4f;\n    wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x78);\n    if ((param_4[1] == wVar2) ||\n       (wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x58), param_4[1] == wVar2)) {\n      *param_3 = *param_4;\n      param_3[1] = param_4[1];\n      param_6 = param_6 - 2;\n      param_3 = param_3 + 2;\n      param_4 = param_4 + 2;\n      goto LAB_001d8e4f;\n    }\n    __s1 = param_3 + __n;\n    if (__n == 0) goto LAB_001d8f6c;\nLAB_001d8f50:\n    wmemset(param_3,param_2,__n);\n  }\n  else {\nLAB_001d8e4f:\n    __s1 = param_3 + __n;\n    if (__n != 0) goto LAB_001d8f50;\n  }\n  if (param_6 == 0) {\n    return;\n  }\nLAB_001d8f6c:\n  wmemcpy(__s1,param_4,param_6);\n  return;\n}\n\n" comment comment (declaration "void std::__pad<wchar_t,std::char_traits<wchar_t>>::_S_pad\n               (ios_base *param_1,wchar_t param_2,wchar_t *param_3,wchar_t *param_4,int param_5,\n               int param_6)\n\n{\n  ctype *pcVar1;" primitive_type (ERROR "std::__pad<" identifier : : identifier <) identifier , (ERROR "std::char_traits<wchar_t>>::_S_pad\n               (ios_base *param_1,wchar_t param_2,wchar_t *param_3,wchar_t *param_4,int param_5,\n               int param_6)\n\n{\n  ctype" identifier : : identifier < identifier >> : : (function_declarator "_S_pad\n               (ios_base *param_1,wchar_t param_2,wchar_t *param_3,wchar_t *param_4,int param_5,\n               int param_6)" identifier (parameter_list "(ios_base *param_1,wchar_t param_2,wchar_t *param_3,wchar_t *param_4,int param_5,\n               int param_6)" ( (parameter_declaration "ios_base *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "wchar_t param_2" type_identifier identifier) , (parameter_declaration "wchar_t *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "wchar_t *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "int param_6" primitive_type identifier) ))) { identifier) (pointer_declarator "*pcVar1" * identifier) ;) (declaration "wchar_t wVar2;" type_identifier identifier ;) (declaration "wchar_t *__s1;" type_identifier (pointer_declarator "*__s1" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (expression_statement "__n = param_5 - param_6;" (assignment_expression "__n = param_5 - param_6" identifier = (binary_expression "param_5 - param_6" identifier - identifier)) ;) (if_statement "if ((*(uint *)(param_1 + 0xc) & 0xb0) == 0x20) {\n    if (param_6 != 0) {\n      wmemcpy(param_3,param_4,param_6);\n    }\n    if (__n == 0) {\n      return;\n    }\n    wmemset(param_3 + param_6,param_2,__n);\n    return;\n  }" if (parenthesized_expression "((*(uint *)(param_1 + 0xc) & 0xb0) == 0x20)" ( (binary_expression "(*(uint *)(param_1 + 0xc) & 0xb0) == 0x20" (parenthesized_expression "(*(uint *)(param_1 + 0xc) & 0xb0)" ( (binary_expression "*(uint *)(param_1 + 0xc) & 0xb0" (pointer_expression "*(uint *)(param_1 + 0xc)" * (cast_expression "(uint *)(param_1 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    if (param_6 != 0) {\n      wmemcpy(param_3,param_4,param_6);\n    }\n    if (__n == 0) {\n      return;\n    }\n    wmemset(param_3 + param_6,param_2,__n);\n    return;\n  }" { (if_statement "if (param_6 != 0) {\n      wmemcpy(param_3,param_4,param_6);\n    }" if (parenthesized_expression "(param_6 != 0)" ( (binary_expression "param_6 != 0" identifier != number_literal) )) (compound_statement "{\n      wmemcpy(param_3,param_4,param_6);\n    }" { (expression_statement "wmemcpy(param_3,param_4,param_6);" (call_expression "wmemcpy(param_3,param_4,param_6)" identifier (argument_list "(param_3,param_4,param_6)" ( identifier , identifier , identifier ))) ;) })) (if_statement "if (__n == 0) {\n      return;\n    }" if (parenthesized_expression "(__n == 0)" ( (binary_expression "__n == 0" identifier == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "wmemset(param_3 + param_6,param_2,__n);" (call_expression "wmemset(param_3 + param_6,param_2,__n)" identifier (argument_list "(param_3 + param_6,param_2,__n)" ( (binary_expression "param_3 + param_6" identifier + identifier) , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if ((*(uint *)(param_1 + 0xc) & 0xb0) == 0x10) {\n    pcVar1 = use_facet<std::ctype<wchar_t>>((locale *)(param_1 + 0x6c));\n    wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x2d);\n    if ((*param_4 == wVar2) ||\n       (wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x2b), *param_4 == wVar2)) {\n      param_4 = param_4 + 1;\n      *param_3 = wVar2;\n      param_6 = param_6 - 1;\n      param_3 = param_3 + 1;\n      goto LAB_001d8e4f;\n    }\n    wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x30);\n    if ((*param_4 != wVar2) || (param_6 < 2)) goto LAB_001d8e4f;\n    wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x78);\n    if ((param_4[1] == wVar2) ||\n       (wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x58), param_4[1] == wVar2)) {\n      *param_3 = *param_4;\n      param_3[1] = param_4[1];\n      param_6 = param_6 - 2;\n      param_3 = param_3 + 2;\n      param_4 = param_4 + 2;\n      goto LAB_001d8e4f;\n    }\n    __s1 = param_3 + __n;\n    if (__n == 0) goto LAB_001d8f6c;\nLAB_001d8f50:\n    wmemset(param_3,param_2,__n);\n  }\n  else {\nLAB_001d8e4f:\n    __s1 = param_3 + __n;\n    if (__n != 0) goto LAB_001d8f50;\n  }" if (parenthesized_expression "((*(uint *)(param_1 + 0xc) & 0xb0) == 0x10)" ( (binary_expression "(*(uint *)(param_1 + 0xc) & 0xb0) == 0x10" (parenthesized_expression "(*(uint *)(param_1 + 0xc) & 0xb0)" ( (binary_expression "*(uint *)(param_1 + 0xc) & 0xb0" (pointer_expression "*(uint *)(param_1 + 0xc)" * (cast_expression "(uint *)(param_1 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    pcVar1 = use_facet<std::ctype<wchar_t>>((locale *)(param_1 + 0x6c));\n    wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x2d);\n    if ((*param_4 == wVar2) ||\n       (wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x2b), *param_4 == wVar2)) {\n      param_4 = param_4 + 1;\n      *param_3 = wVar2;\n      param_6 = param_6 - 1;\n      param_3 = param_3 + 1;\n      goto LAB_001d8e4f;\n    }\n    wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x30);\n    if ((*param_4 != wVar2) || (param_6 < 2)) goto LAB_001d8e4f;\n    wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x78);\n    if ((param_4[1] == wVar2) ||\n       (wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x58), param_4[1] == wVar2)) {\n      *param_3 = *param_4;\n      param_3[1] = param_4[1];\n      param_6 = param_6 - 2;\n      param_3 = param_3 + 2;\n      param_4 = param_4 + 2;\n      goto LAB_001d8e4f;\n    }\n    __s1 = param_3 + __n;\n    if (__n == 0) goto LAB_001d8f6c;\nLAB_001d8f50:\n    wmemset(param_3,param_2,__n);\n  }" { (expression_statement "pcVar1 = use_facet<std::ctype<wchar_t>>((locale *)(param_1 + 0x6c));" (binary_expression "pcVar1 = use_facet<std::ctype<wchar_t>>((locale *)(param_1 + 0x6c))" (assignment_expression "pcVar1 = use_facet<std" identifier = (binary_expression "use_facet<std" identifier < identifier)) (ERROR "::ctype" : : identifier) < (binary_expression "wchar_t>>((locale *)(param_1 + 0x6c))" identifier >> (parenthesized_expression "((locale *)(param_1 + 0x6c))" ( (cast_expression "(locale *)(param_1 + 0x6c)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) ))) )))) ;) (expression_statement "wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x2d);" (assignment_expression "wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x2d)" identifier = (call_expression "(**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x2d)" (parenthesized_expression "(**(code **)(*(int *)pcVar1 + 0x28))" ( (pointer_expression "**(code **)(*(int *)pcVar1 + 0x28)" * (pointer_expression "*(code **)(*(int *)pcVar1 + 0x28)" * (cast_expression "(code **)(*(int *)pcVar1 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)pcVar1 + 0x28)" ( (binary_expression "*(int *)pcVar1 + 0x28" (pointer_expression "*(int *)pcVar1" * (cast_expression "(int *)pcVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(pcVar1,0x2d)" ( identifier , number_literal )))) ;) (if_statement "if ((*param_4 == wVar2) ||\n       (wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x2b), *param_4 == wVar2)) {\n      param_4 = param_4 + 1;\n      *param_3 = wVar2;\n      param_6 = param_6 - 1;\n      param_3 = param_3 + 1;\n      goto LAB_001d8e4f;\n    }" if (parenthesized_expression "((*param_4 == wVar2) ||\n       (wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x2b), *param_4 == wVar2))" ( (binary_expression "(*param_4 == wVar2) ||\n       (wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x2b), *param_4 == wVar2)" (parenthesized_expression "(*param_4 == wVar2)" ( (binary_expression "*param_4 == wVar2" (pointer_expression "*param_4" * identifier) == identifier) )) || (parenthesized_expression "(wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x2b), *param_4 == wVar2)" ( (comma_expression "wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x2b), *param_4 == wVar2" (assignment_expression "wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x2b)" identifier = (call_expression "(**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x2b)" (parenthesized_expression "(**(code **)(*(int *)pcVar1 + 0x28))" ( (pointer_expression "**(code **)(*(int *)pcVar1 + 0x28)" * (pointer_expression "*(code **)(*(int *)pcVar1 + 0x28)" * (cast_expression "(code **)(*(int *)pcVar1 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)pcVar1 + 0x28)" ( (binary_expression "*(int *)pcVar1 + 0x28" (pointer_expression "*(int *)pcVar1" * (cast_expression "(int *)pcVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(pcVar1,0x2b)" ( identifier , number_literal )))) , (binary_expression "*param_4 == wVar2" (pointer_expression "*param_4" * identifier) == identifier)) ))) )) (compound_statement "{\n      param_4 = param_4 + 1;\n      *param_3 = wVar2;\n      param_6 = param_6 - 1;\n      param_3 = param_3 + 1;\n      goto LAB_001d8e4f;\n    }" { (expression_statement "param_4 = param_4 + 1;" (assignment_expression "param_4 = param_4 + 1" identifier = (binary_expression "param_4 + 1" identifier + number_literal)) ;) (expression_statement "*param_3 = wVar2;" (assignment_expression "*param_3 = wVar2" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "param_6 = param_6 - 1;" (assignment_expression "param_6 = param_6 - 1" identifier = (binary_expression "param_6 - 1" identifier - number_literal)) ;) (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) (goto_statement "goto LAB_001d8e4f;" goto statement_identifier ;) })) (expression_statement "wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x30);" (assignment_expression "wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x30)" identifier = (call_expression "(**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x30)" (parenthesized_expression "(**(code **)(*(int *)pcVar1 + 0x28))" ( (pointer_expression "**(code **)(*(int *)pcVar1 + 0x28)" * (pointer_expression "*(code **)(*(int *)pcVar1 + 0x28)" * (cast_expression "(code **)(*(int *)pcVar1 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)pcVar1 + 0x28)" ( (binary_expression "*(int *)pcVar1 + 0x28" (pointer_expression "*(int *)pcVar1" * (cast_expression "(int *)pcVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(pcVar1,0x30)" ( identifier , number_literal )))) ;) (if_statement "if ((*param_4 != wVar2) || (param_6 < 2)) goto LAB_001d8e4f;" if (parenthesized_expression "((*param_4 != wVar2) || (param_6 < 2))" ( (binary_expression "(*param_4 != wVar2) || (param_6 < 2)" (parenthesized_expression "(*param_4 != wVar2)" ( (binary_expression "*param_4 != wVar2" (pointer_expression "*param_4" * identifier) != identifier) )) || (parenthesized_expression "(param_6 < 2)" ( (binary_expression "param_6 < 2" identifier < number_literal) ))) )) (goto_statement "goto LAB_001d8e4f;" goto statement_identifier ;)) (expression_statement "wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x78);" (assignment_expression "wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x78)" identifier = (call_expression "(**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x78)" (parenthesized_expression "(**(code **)(*(int *)pcVar1 + 0x28))" ( (pointer_expression "**(code **)(*(int *)pcVar1 + 0x28)" * (pointer_expression "*(code **)(*(int *)pcVar1 + 0x28)" * (cast_expression "(code **)(*(int *)pcVar1 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)pcVar1 + 0x28)" ( (binary_expression "*(int *)pcVar1 + 0x28" (pointer_expression "*(int *)pcVar1" * (cast_expression "(int *)pcVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(pcVar1,0x78)" ( identifier , number_literal )))) ;) (if_statement "if ((param_4[1] == wVar2) ||\n       (wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x58), param_4[1] == wVar2)) {\n      *param_3 = *param_4;\n      param_3[1] = param_4[1];\n      param_6 = param_6 - 2;\n      param_3 = param_3 + 2;\n      param_4 = param_4 + 2;\n      goto LAB_001d8e4f;\n    }" if (parenthesized_expression "((param_4[1] == wVar2) ||\n       (wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x58), param_4[1] == wVar2))" ( (binary_expression "(param_4[1] == wVar2) ||\n       (wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x58), param_4[1] == wVar2)" (parenthesized_expression "(param_4[1] == wVar2)" ( (binary_expression "param_4[1] == wVar2" (subscript_expression "param_4[1]" identifier [ number_literal ]) == identifier) )) || (parenthesized_expression "(wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x58), param_4[1] == wVar2)" ( (comma_expression "wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x58), param_4[1] == wVar2" (assignment_expression "wVar2 = (**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x58)" identifier = (call_expression "(**(code **)(*(int *)pcVar1 + 0x28))(pcVar1,0x58)" (parenthesized_expression "(**(code **)(*(int *)pcVar1 + 0x28))" ( (pointer_expression "**(code **)(*(int *)pcVar1 + 0x28)" * (pointer_expression "*(code **)(*(int *)pcVar1 + 0x28)" * (cast_expression "(code **)(*(int *)pcVar1 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)pcVar1 + 0x28)" ( (binary_expression "*(int *)pcVar1 + 0x28" (pointer_expression "*(int *)pcVar1" * (cast_expression "(int *)pcVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(pcVar1,0x58)" ( identifier , number_literal )))) , (binary_expression "param_4[1] == wVar2" (subscript_expression "param_4[1]" identifier [ number_literal ]) == identifier)) ))) )) (compound_statement "{\n      *param_3 = *param_4;\n      param_3[1] = param_4[1];\n      param_6 = param_6 - 2;\n      param_3 = param_3 + 2;\n      param_4 = param_4 + 2;\n      goto LAB_001d8e4f;\n    }" { (expression_statement "*param_3 = *param_4;" (assignment_expression "*param_3 = *param_4" (pointer_expression "*param_3" * identifier) = (pointer_expression "*param_4" * identifier)) ;) (expression_statement "param_3[1] = param_4[1];" (assignment_expression "param_3[1] = param_4[1]" (subscript_expression "param_3[1]" identifier [ number_literal ]) = (subscript_expression "param_4[1]" identifier [ number_literal ])) ;) (expression_statement "param_6 = param_6 - 2;" (assignment_expression "param_6 = param_6 - 2" identifier = (binary_expression "param_6 - 2" identifier - number_literal)) ;) (expression_statement "param_3 = param_3 + 2;" (assignment_expression "param_3 = param_3 + 2" identifier = (binary_expression "param_3 + 2" identifier + number_literal)) ;) (expression_statement "param_4 = param_4 + 2;" (assignment_expression "param_4 = param_4 + 2" identifier = (binary_expression "param_4 + 2" identifier + number_literal)) ;) (goto_statement "goto LAB_001d8e4f;" goto statement_identifier ;) })) (expression_statement "__s1 = param_3 + __n;" (assignment_expression "__s1 = param_3 + __n" identifier = (binary_expression "param_3 + __n" identifier + identifier)) ;) (if_statement "if (__n == 0) goto LAB_001d8f6c;" if (parenthesized_expression "(__n == 0)" ( (binary_expression "__n == 0" identifier == number_literal) )) (goto_statement "goto LAB_001d8f6c;" goto statement_identifier ;)) (labeled_statement "LAB_001d8f50:\n    wmemset(param_3,param_2,__n);" statement_identifier : (expression_statement "wmemset(param_3,param_2,__n);" (call_expression "wmemset(param_3,param_2,__n)" identifier (argument_list "(param_3,param_2,__n)" ( identifier , identifier , identifier ))) ;)) }) (else_clause "else {\nLAB_001d8e4f:\n    __s1 = param_3 + __n;\n    if (__n != 0) goto LAB_001d8f50;\n  }" else (compound_statement "{\nLAB_001d8e4f:\n    __s1 = param_3 + __n;\n    if (__n != 0) goto LAB_001d8f50;\n  }" { (labeled_statement "LAB_001d8e4f:\n    __s1 = param_3 + __n;" statement_identifier : (expression_statement "__s1 = param_3 + __n;" (assignment_expression "__s1 = param_3 + __n" identifier = (binary_expression "param_3 + __n" identifier + identifier)) ;)) (if_statement "if (__n != 0) goto LAB_001d8f50;" if (parenthesized_expression "(__n != 0)" ( (binary_expression "__n != 0" identifier != number_literal) )) (goto_statement "goto LAB_001d8f50;" goto statement_identifier ;)) }))) (if_statement "if (param_6 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_6 == 0)" ( (binary_expression "param_6 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (labeled_statement "LAB_001d8f6c:\n  wmemcpy(__s1,param_4,param_6);" statement_identifier : (expression_statement "wmemcpy(__s1,param_4,param_6);" (call_expression "wmemcpy(__s1,param_4,param_6)" identifier (argument_list "(__s1,param_4,param_6)" ( identifier , identifier , identifier ))) ;)) (return_statement "return;" return ;) (ERROR "}" }))
(translation_unit "void FUN_001d8e10(int param_1,wchar_t param_2,wchar_t *param_3,wchar_t *param_4,int param_5,\n                 size_t param_6)\n\n{\n  uint uVar1;\n  int *piVar2;\n  wchar_t wVar3;\n  wchar_t *__s1;\n  size_t __n;\n  \n  __n = param_5 - param_6;\n  uVar1 = *(uint *)(param_1 + 0xc) & 0xb0;\n  if (uVar1 == 0x20) {\n    if (param_6 != 0) {\n      wmemcpy(param_3,param_4,param_6);\n    }\n    if (__n == 0) {\n      return;\n    }\n    wmemset(param_3 + param_6,param_2,__n);\n    return;\n  }\n  if (uVar1 == 0x10) {\n    piVar2 = (int *)FUN_001d5bc0(param_1 + 0x6c);\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2d);\n    if ((*param_4 == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2b), *param_4 == wVar3)) {\n      param_4 = param_4 + 1;\n      *param_3 = wVar3;\n      param_6 = param_6 - 1;\n      param_3 = param_3 + 1;\n      goto LAB_001d8e4f;\n    }\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x30);\n    if ((*param_4 != wVar3) || ((int)param_6 < 2)) goto LAB_001d8e4f;\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x78);\n    if ((param_4[1] == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x58), param_4[1] == wVar3)) {\n      *param_3 = *param_4;\n      param_3[1] = param_4[1];\n      param_6 = param_6 - 2;\n      param_3 = param_3 + 2;\n      param_4 = param_4 + 2;\n      goto LAB_001d8e4f;\n    }\n    __s1 = param_3 + __n;\n    if (__n == 0) goto LAB_001d8f6c;\nLAB_001d8f50:\n    wmemset(param_3,param_2,__n);\n  }\n  else {\nLAB_001d8e4f:\n    __s1 = param_3 + __n;\n    if (__n != 0) goto LAB_001d8f50;\n  }\n  if (param_6 == 0) {\n    return;\n  }\nLAB_001d8f6c:\n  wmemcpy(__s1,param_4,param_6);\n  return;\n}\n\n" (function_definition "void FUN_001d8e10(int param_1,wchar_t param_2,wchar_t *param_3,wchar_t *param_4,int param_5,\n                 size_t param_6)\n\n{\n  uint uVar1;\n  int *piVar2;\n  wchar_t wVar3;\n  wchar_t *__s1;\n  size_t __n;\n  \n  __n = param_5 - param_6;\n  uVar1 = *(uint *)(param_1 + 0xc) & 0xb0;\n  if (uVar1 == 0x20) {\n    if (param_6 != 0) {\n      wmemcpy(param_3,param_4,param_6);\n    }\n    if (__n == 0) {\n      return;\n    }\n    wmemset(param_3 + param_6,param_2,__n);\n    return;\n  }\n  if (uVar1 == 0x10) {\n    piVar2 = (int *)FUN_001d5bc0(param_1 + 0x6c);\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2d);\n    if ((*param_4 == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2b), *param_4 == wVar3)) {\n      param_4 = param_4 + 1;\n      *param_3 = wVar3;\n      param_6 = param_6 - 1;\n      param_3 = param_3 + 1;\n      goto LAB_001d8e4f;\n    }\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x30);\n    if ((*param_4 != wVar3) || ((int)param_6 < 2)) goto LAB_001d8e4f;\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x78);\n    if ((param_4[1] == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x58), param_4[1] == wVar3)) {\n      *param_3 = *param_4;\n      param_3[1] = param_4[1];\n      param_6 = param_6 - 2;\n      param_3 = param_3 + 2;\n      param_4 = param_4 + 2;\n      goto LAB_001d8e4f;\n    }\n    __s1 = param_3 + __n;\n    if (__n == 0) goto LAB_001d8f6c;\nLAB_001d8f50:\n    wmemset(param_3,param_2,__n);\n  }\n  else {\nLAB_001d8e4f:\n    __s1 = param_3 + __n;\n    if (__n != 0) goto LAB_001d8f50;\n  }\n  if (param_6 == 0) {\n    return;\n  }\nLAB_001d8f6c:\n  wmemcpy(__s1,param_4,param_6);\n  return;\n}" primitive_type (function_declarator "FUN_001d8e10(int param_1,wchar_t param_2,wchar_t *param_3,wchar_t *param_4,int param_5,\n                 size_t param_6)" identifier (parameter_list "(int param_1,wchar_t param_2,wchar_t *param_3,wchar_t *param_4,int param_5,\n                 size_t param_6)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "wchar_t param_2" type_identifier identifier) , (parameter_declaration "wchar_t *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "wchar_t *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "size_t param_6" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  int *piVar2;\n  wchar_t wVar3;\n  wchar_t *__s1;\n  size_t __n;\n  \n  __n = param_5 - param_6;\n  uVar1 = *(uint *)(param_1 + 0xc) & 0xb0;\n  if (uVar1 == 0x20) {\n    if (param_6 != 0) {\n      wmemcpy(param_3,param_4,param_6);\n    }\n    if (__n == 0) {\n      return;\n    }\n    wmemset(param_3 + param_6,param_2,__n);\n    return;\n  }\n  if (uVar1 == 0x10) {\n    piVar2 = (int *)FUN_001d5bc0(param_1 + 0x6c);\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2d);\n    if ((*param_4 == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2b), *param_4 == wVar3)) {\n      param_4 = param_4 + 1;\n      *param_3 = wVar3;\n      param_6 = param_6 - 1;\n      param_3 = param_3 + 1;\n      goto LAB_001d8e4f;\n    }\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x30);\n    if ((*param_4 != wVar3) || ((int)param_6 < 2)) goto LAB_001d8e4f;\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x78);\n    if ((param_4[1] == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x58), param_4[1] == wVar3)) {\n      *param_3 = *param_4;\n      param_3[1] = param_4[1];\n      param_6 = param_6 - 2;\n      param_3 = param_3 + 2;\n      param_4 = param_4 + 2;\n      goto LAB_001d8e4f;\n    }\n    __s1 = param_3 + __n;\n    if (__n == 0) goto LAB_001d8f6c;\nLAB_001d8f50:\n    wmemset(param_3,param_2,__n);\n  }\n  else {\nLAB_001d8e4f:\n    __s1 = param_3 + __n;\n    if (__n != 0) goto LAB_001d8f50;\n  }\n  if (param_6 == 0) {\n    return;\n  }\nLAB_001d8f6c:\n  wmemcpy(__s1,param_4,param_6);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "wchar_t wVar3;" type_identifier identifier ;) (declaration "wchar_t *__s1;" type_identifier (pointer_declarator "*__s1" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (expression_statement "__n = param_5 - param_6;" (assignment_expression "__n = param_5 - param_6" identifier = (binary_expression "param_5 - param_6" identifier - identifier)) ;) (expression_statement "uVar1 = *(uint *)(param_1 + 0xc) & 0xb0;" (assignment_expression "uVar1 = *(uint *)(param_1 + 0xc) & 0xb0" identifier = (binary_expression "*(uint *)(param_1 + 0xc) & 0xb0" (pointer_expression "*(uint *)(param_1 + 0xc)" * (cast_expression "(uint *)(param_1 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) & number_literal)) ;) (if_statement "if (uVar1 == 0x20) {\n    if (param_6 != 0) {\n      wmemcpy(param_3,param_4,param_6);\n    }\n    if (__n == 0) {\n      return;\n    }\n    wmemset(param_3 + param_6,param_2,__n);\n    return;\n  }" if (parenthesized_expression "(uVar1 == 0x20)" ( (binary_expression "uVar1 == 0x20" identifier == number_literal) )) (compound_statement "{\n    if (param_6 != 0) {\n      wmemcpy(param_3,param_4,param_6);\n    }\n    if (__n == 0) {\n      return;\n    }\n    wmemset(param_3 + param_6,param_2,__n);\n    return;\n  }" { (if_statement "if (param_6 != 0) {\n      wmemcpy(param_3,param_4,param_6);\n    }" if (parenthesized_expression "(param_6 != 0)" ( (binary_expression "param_6 != 0" identifier != number_literal) )) (compound_statement "{\n      wmemcpy(param_3,param_4,param_6);\n    }" { (expression_statement "wmemcpy(param_3,param_4,param_6);" (call_expression "wmemcpy(param_3,param_4,param_6)" identifier (argument_list "(param_3,param_4,param_6)" ( identifier , identifier , identifier ))) ;) })) (if_statement "if (__n == 0) {\n      return;\n    }" if (parenthesized_expression "(__n == 0)" ( (binary_expression "__n == 0" identifier == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "wmemset(param_3 + param_6,param_2,__n);" (call_expression "wmemset(param_3 + param_6,param_2,__n)" identifier (argument_list "(param_3 + param_6,param_2,__n)" ( (binary_expression "param_3 + param_6" identifier + identifier) , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if (uVar1 == 0x10) {\n    piVar2 = (int *)FUN_001d5bc0(param_1 + 0x6c);\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2d);\n    if ((*param_4 == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2b), *param_4 == wVar3)) {\n      param_4 = param_4 + 1;\n      *param_3 = wVar3;\n      param_6 = param_6 - 1;\n      param_3 = param_3 + 1;\n      goto LAB_001d8e4f;\n    }\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x30);\n    if ((*param_4 != wVar3) || ((int)param_6 < 2)) goto LAB_001d8e4f;\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x78);\n    if ((param_4[1] == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x58), param_4[1] == wVar3)) {\n      *param_3 = *param_4;\n      param_3[1] = param_4[1];\n      param_6 = param_6 - 2;\n      param_3 = param_3 + 2;\n      param_4 = param_4 + 2;\n      goto LAB_001d8e4f;\n    }\n    __s1 = param_3 + __n;\n    if (__n == 0) goto LAB_001d8f6c;\nLAB_001d8f50:\n    wmemset(param_3,param_2,__n);\n  }\n  else {\nLAB_001d8e4f:\n    __s1 = param_3 + __n;\n    if (__n != 0) goto LAB_001d8f50;\n  }" if (parenthesized_expression "(uVar1 == 0x10)" ( (binary_expression "uVar1 == 0x10" identifier == number_literal) )) (compound_statement "{\n    piVar2 = (int *)FUN_001d5bc0(param_1 + 0x6c);\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2d);\n    if ((*param_4 == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2b), *param_4 == wVar3)) {\n      param_4 = param_4 + 1;\n      *param_3 = wVar3;\n      param_6 = param_6 - 1;\n      param_3 = param_3 + 1;\n      goto LAB_001d8e4f;\n    }\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x30);\n    if ((*param_4 != wVar3) || ((int)param_6 < 2)) goto LAB_001d8e4f;\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x78);\n    if ((param_4[1] == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x58), param_4[1] == wVar3)) {\n      *param_3 = *param_4;\n      param_3[1] = param_4[1];\n      param_6 = param_6 - 2;\n      param_3 = param_3 + 2;\n      param_4 = param_4 + 2;\n      goto LAB_001d8e4f;\n    }\n    __s1 = param_3 + __n;\n    if (__n == 0) goto LAB_001d8f6c;\nLAB_001d8f50:\n    wmemset(param_3,param_2,__n);\n  }" { (expression_statement "piVar2 = (int *)FUN_001d5bc0(param_1 + 0x6c);" (assignment_expression "piVar2 = (int *)FUN_001d5bc0(param_1 + 0x6c)" identifier = (cast_expression "(int *)FUN_001d5bc0(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001d5bc0(param_1 + 0x6c)" identifier (argument_list "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) ))))) ;) (expression_statement "wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2d);" (assignment_expression "wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2d)" identifier = (call_expression "(**(code **)(*piVar2 + 0x28))(piVar2,0x2d)" (parenthesized_expression "(**(code **)(*piVar2 + 0x28))" ( (pointer_expression "**(code **)(*piVar2 + 0x28)" * (pointer_expression "*(code **)(*piVar2 + 0x28)" * (cast_expression "(code **)(*piVar2 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 0x28)" ( (binary_expression "*piVar2 + 0x28" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2,0x2d)" ( identifier , number_literal )))) ;) (if_statement "if ((*param_4 == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2b), *param_4 == wVar3)) {\n      param_4 = param_4 + 1;\n      *param_3 = wVar3;\n      param_6 = param_6 - 1;\n      param_3 = param_3 + 1;\n      goto LAB_001d8e4f;\n    }" if (parenthesized_expression "((*param_4 == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2b), *param_4 == wVar3))" ( (binary_expression "(*param_4 == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2b), *param_4 == wVar3)" (parenthesized_expression "(*param_4 == wVar3)" ( (binary_expression "*param_4 == wVar3" (pointer_expression "*param_4" * identifier) == identifier) )) || (parenthesized_expression "(wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2b), *param_4 == wVar3)" ( (comma_expression "wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2b), *param_4 == wVar3" (assignment_expression "wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2b)" identifier = (call_expression "(**(code **)(*piVar2 + 0x28))(piVar2,0x2b)" (parenthesized_expression "(**(code **)(*piVar2 + 0x28))" ( (pointer_expression "**(code **)(*piVar2 + 0x28)" * (pointer_expression "*(code **)(*piVar2 + 0x28)" * (cast_expression "(code **)(*piVar2 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 0x28)" ( (binary_expression "*piVar2 + 0x28" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2,0x2b)" ( identifier , number_literal )))) , (binary_expression "*param_4 == wVar3" (pointer_expression "*param_4" * identifier) == identifier)) ))) )) (compound_statement "{\n      param_4 = param_4 + 1;\n      *param_3 = wVar3;\n      param_6 = param_6 - 1;\n      param_3 = param_3 + 1;\n      goto LAB_001d8e4f;\n    }" { (expression_statement "param_4 = param_4 + 1;" (assignment_expression "param_4 = param_4 + 1" identifier = (binary_expression "param_4 + 1" identifier + number_literal)) ;) (expression_statement "*param_3 = wVar3;" (assignment_expression "*param_3 = wVar3" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "param_6 = param_6 - 1;" (assignment_expression "param_6 = param_6 - 1" identifier = (binary_expression "param_6 - 1" identifier - number_literal)) ;) (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) (goto_statement "goto LAB_001d8e4f;" goto statement_identifier ;) })) (expression_statement "wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x30);" (assignment_expression "wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x30)" identifier = (call_expression "(**(code **)(*piVar2 + 0x28))(piVar2,0x30)" (parenthesized_expression "(**(code **)(*piVar2 + 0x28))" ( (pointer_expression "**(code **)(*piVar2 + 0x28)" * (pointer_expression "*(code **)(*piVar2 + 0x28)" * (cast_expression "(code **)(*piVar2 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 0x28)" ( (binary_expression "*piVar2 + 0x28" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2,0x30)" ( identifier , number_literal )))) ;) (if_statement "if ((*param_4 != wVar3) || ((int)param_6 < 2)) goto LAB_001d8e4f;" if (parenthesized_expression "((*param_4 != wVar3) || ((int)param_6 < 2))" ( (binary_expression "(*param_4 != wVar3) || ((int)param_6 < 2)" (parenthesized_expression "(*param_4 != wVar3)" ( (binary_expression "*param_4 != wVar3" (pointer_expression "*param_4" * identifier) != identifier) )) || (parenthesized_expression "((int)param_6 < 2)" ( (binary_expression "(int)param_6 < 2" (cast_expression "(int)param_6" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) ))) )) (goto_statement "goto LAB_001d8e4f;" goto statement_identifier ;)) (expression_statement "wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x78);" (assignment_expression "wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x78)" identifier = (call_expression "(**(code **)(*piVar2 + 0x28))(piVar2,0x78)" (parenthesized_expression "(**(code **)(*piVar2 + 0x28))" ( (pointer_expression "**(code **)(*piVar2 + 0x28)" * (pointer_expression "*(code **)(*piVar2 + 0x28)" * (cast_expression "(code **)(*piVar2 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 0x28)" ( (binary_expression "*piVar2 + 0x28" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2,0x78)" ( identifier , number_literal )))) ;) (if_statement "if ((param_4[1] == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x58), param_4[1] == wVar3)) {\n      *param_3 = *param_4;\n      param_3[1] = param_4[1];\n      param_6 = param_6 - 2;\n      param_3 = param_3 + 2;\n      param_4 = param_4 + 2;\n      goto LAB_001d8e4f;\n    }" if (parenthesized_expression "((param_4[1] == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x58), param_4[1] == wVar3))" ( (binary_expression "(param_4[1] == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x58), param_4[1] == wVar3)" (parenthesized_expression "(param_4[1] == wVar3)" ( (binary_expression "param_4[1] == wVar3" (subscript_expression "param_4[1]" identifier [ number_literal ]) == identifier) )) || (parenthesized_expression "(wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x58), param_4[1] == wVar3)" ( (comma_expression "wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x58), param_4[1] == wVar3" (assignment_expression "wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x58)" identifier = (call_expression "(**(code **)(*piVar2 + 0x28))(piVar2,0x58)" (parenthesized_expression "(**(code **)(*piVar2 + 0x28))" ( (pointer_expression "**(code **)(*piVar2 + 0x28)" * (pointer_expression "*(code **)(*piVar2 + 0x28)" * (cast_expression "(code **)(*piVar2 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 0x28)" ( (binary_expression "*piVar2 + 0x28" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2,0x58)" ( identifier , number_literal )))) , (binary_expression "param_4[1] == wVar3" (subscript_expression "param_4[1]" identifier [ number_literal ]) == identifier)) ))) )) (compound_statement "{\n      *param_3 = *param_4;\n      param_3[1] = param_4[1];\n      param_6 = param_6 - 2;\n      param_3 = param_3 + 2;\n      param_4 = param_4 + 2;\n      goto LAB_001d8e4f;\n    }" { (expression_statement "*param_3 = *param_4;" (assignment_expression "*param_3 = *param_4" (pointer_expression "*param_3" * identifier) = (pointer_expression "*param_4" * identifier)) ;) (expression_statement "param_3[1] = param_4[1];" (assignment_expression "param_3[1] = param_4[1]" (subscript_expression "param_3[1]" identifier [ number_literal ]) = (subscript_expression "param_4[1]" identifier [ number_literal ])) ;) (expression_statement "param_6 = param_6 - 2;" (assignment_expression "param_6 = param_6 - 2" identifier = (binary_expression "param_6 - 2" identifier - number_literal)) ;) (expression_statement "param_3 = param_3 + 2;" (assignment_expression "param_3 = param_3 + 2" identifier = (binary_expression "param_3 + 2" identifier + number_literal)) ;) (expression_statement "param_4 = param_4 + 2;" (assignment_expression "param_4 = param_4 + 2" identifier = (binary_expression "param_4 + 2" identifier + number_literal)) ;) (goto_statement "goto LAB_001d8e4f;" goto statement_identifier ;) })) (expression_statement "__s1 = param_3 + __n;" (assignment_expression "__s1 = param_3 + __n" identifier = (binary_expression "param_3 + __n" identifier + identifier)) ;) (if_statement "if (__n == 0) goto LAB_001d8f6c;" if (parenthesized_expression "(__n == 0)" ( (binary_expression "__n == 0" identifier == number_literal) )) (goto_statement "goto LAB_001d8f6c;" goto statement_identifier ;)) (labeled_statement "LAB_001d8f50:\n    wmemset(param_3,param_2,__n);" statement_identifier : (expression_statement "wmemset(param_3,param_2,__n);" (call_expression "wmemset(param_3,param_2,__n)" identifier (argument_list "(param_3,param_2,__n)" ( identifier , identifier , identifier ))) ;)) }) (else_clause "else {\nLAB_001d8e4f:\n    __s1 = param_3 + __n;\n    if (__n != 0) goto LAB_001d8f50;\n  }" else (compound_statement "{\nLAB_001d8e4f:\n    __s1 = param_3 + __n;\n    if (__n != 0) goto LAB_001d8f50;\n  }" { (labeled_statement "LAB_001d8e4f:\n    __s1 = param_3 + __n;" statement_identifier : (expression_statement "__s1 = param_3 + __n;" (assignment_expression "__s1 = param_3 + __n" identifier = (binary_expression "param_3 + __n" identifier + identifier)) ;)) (if_statement "if (__n != 0) goto LAB_001d8f50;" if (parenthesized_expression "(__n != 0)" ( (binary_expression "__n != 0" identifier != number_literal) )) (goto_statement "goto LAB_001d8f50;" goto statement_identifier ;)) }))) (if_statement "if (param_6 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_6 == 0)" ( (binary_expression "param_6 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (labeled_statement "LAB_001d8f6c:\n  wmemcpy(__s1,param_4,param_6);" statement_identifier : (expression_statement "wmemcpy(__s1,param_4,param_6);" (call_expression "wmemcpy(__s1,param_4,param_6)" identifier (argument_list "(__s1,param_4,param_6)" ( identifier , identifier , identifier ))) ;)) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + IDENT) , IDENT , IDENT ))) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (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 (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == IDENT) )) || (parenthesized_expression ( (comma_expression (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 (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , LIT )))) , (binary_expression (pointer_expression * IDENT) == IDENT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (goto_statement goto statement_identifier ;) })) (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 (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != IDENT) )) || (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) ))) )) (goto_statement goto statement_identifier ;)) (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 (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == IDENT) )) || (parenthesized_expression ( (comma_expression (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 (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , LIT )))) , (binary_expression (subscript_expression IDENT [ LIT ]) == IDENT)) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;)) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;)) (return_statement return ;) })))
(function_definition "void FUN_001d8e10(int param_1,wchar_t param_2,wchar_t *param_3,wchar_t *param_4,int param_5,\n                 size_t param_6)\n\n{\n  uint uVar1;\n  int *piVar2;\n  wchar_t wVar3;\n  wchar_t *__s1;\n  size_t __n;\n  \n  __n = param_5 - param_6;\n  uVar1 = *(uint *)(param_1 + 0xc) & 0xb0;\n  if (uVar1 == 0x20) {\n    if (param_6 != 0) {\n      wmemcpy(param_3,param_4,param_6);\n    }\n    if (__n == 0) {\n      return;\n    }\n    wmemset(param_3 + param_6,param_2,__n);\n    return;\n  }\n  if (uVar1 == 0x10) {\n    piVar2 = (int *)FUN_001d5bc0(param_1 + 0x6c);\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2d);\n    if ((*param_4 == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2b), *param_4 == wVar3)) {\n      param_4 = param_4 + 1;\n      *param_3 = wVar3;\n      param_6 = param_6 - 1;\n      param_3 = param_3 + 1;\n      goto LAB_001d8e4f;\n    }\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x30);\n    if ((*param_4 != wVar3) || ((int)param_6 < 2)) goto LAB_001d8e4f;\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x78);\n    if ((param_4[1] == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x58), param_4[1] == wVar3)) {\n      *param_3 = *param_4;\n      param_3[1] = param_4[1];\n      param_6 = param_6 - 2;\n      param_3 = param_3 + 2;\n      param_4 = param_4 + 2;\n      goto LAB_001d8e4f;\n    }\n    __s1 = param_3 + __n;\n    if (__n == 0) goto LAB_001d8f6c;\nLAB_001d8f50:\n    wmemset(param_3,param_2,__n);\n  }\n  else {\nLAB_001d8e4f:\n    __s1 = param_3 + __n;\n    if (__n != 0) goto LAB_001d8f50;\n  }\n  if (param_6 == 0) {\n    return;\n  }\nLAB_001d8f6c:\n  wmemcpy(__s1,param_4,param_6);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001d8e10(int param_1,wchar_t param_2,wchar_t *param_3,wchar_t *param_4,int param_5,\n                 size_t param_6)" (identifier "FUN_001d8e10") (parameter_list "(int param_1,wchar_t param_2,wchar_t *param_3,wchar_t *param_4,int param_5,\n                 size_t param_6)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "wchar_t param_2" (type_identifier "wchar_t") (identifier "param_2")) (, ",") (parameter_declaration "wchar_t *param_3" (type_identifier "wchar_t") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "wchar_t *param_4" (type_identifier "wchar_t") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) (, ",") (parameter_declaration "size_t param_6" (primitive_type "size_t") (identifier "param_6")) () ")"))) (compound_statement "{\n  uint uVar1;\n  int *piVar2;\n  wchar_t wVar3;\n  wchar_t *__s1;\n  size_t __n;\n  \n  __n = param_5 - param_6;\n  uVar1 = *(uint *)(param_1 + 0xc) & 0xb0;\n  if (uVar1 == 0x20) {\n    if (param_6 != 0) {\n      wmemcpy(param_3,param_4,param_6);\n    }\n    if (__n == 0) {\n      return;\n    }\n    wmemset(param_3 + param_6,param_2,__n);\n    return;\n  }\n  if (uVar1 == 0x10) {\n    piVar2 = (int *)FUN_001d5bc0(param_1 + 0x6c);\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2d);\n    if ((*param_4 == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2b), *param_4 == wVar3)) {\n      param_4 = param_4 + 1;\n      *param_3 = wVar3;\n      param_6 = param_6 - 1;\n      param_3 = param_3 + 1;\n      goto LAB_001d8e4f;\n    }\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x30);\n    if ((*param_4 != wVar3) || ((int)param_6 < 2)) goto LAB_001d8e4f;\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x78);\n    if ((param_4[1] == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x58), param_4[1] == wVar3)) {\n      *param_3 = *param_4;\n      param_3[1] = param_4[1];\n      param_6 = param_6 - 2;\n      param_3 = param_3 + 2;\n      param_4 = param_4 + 2;\n      goto LAB_001d8e4f;\n    }\n    __s1 = param_3 + __n;\n    if (__n == 0) goto LAB_001d8f6c;\nLAB_001d8f50:\n    wmemset(param_3,param_2,__n);\n  }\n  else {\nLAB_001d8e4f:\n    __s1 = param_3 + __n;\n    if (__n != 0) goto LAB_001d8f50;\n  }\n  if (param_6 == 0) {\n    return;\n  }\nLAB_001d8f6c:\n  wmemcpy(__s1,param_4,param_6);\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "wchar_t wVar3;" (type_identifier "wchar_t") (identifier "wVar3") (; ";")) (declaration "wchar_t *__s1;" (type_identifier "wchar_t") (pointer_declarator "*__s1" (* "*") (identifier "__s1")) (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (expression_statement "__n = param_5 - param_6;" (assignment_expression "__n = param_5 - param_6" (identifier "__n") (= "=") (binary_expression "param_5 - param_6" (identifier "param_5") (- "-") (identifier "param_6"))) (; ";")) (expression_statement "uVar1 = *(uint *)(param_1 + 0xc) & 0xb0;" (assignment_expression "uVar1 = *(uint *)(param_1 + 0xc) & 0xb0" (identifier "uVar1") (= "=") (binary_expression "*(uint *)(param_1 + 0xc) & 0xb0" (pointer_expression "*(uint *)(param_1 + 0xc)" (* "*") (cast_expression "(uint *)(param_1 + 0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (& "&") (number_literal "0xb0"))) (; ";")) (if_statement "if (uVar1 == 0x20) {\n    if (param_6 != 0) {\n      wmemcpy(param_3,param_4,param_6);\n    }\n    if (__n == 0) {\n      return;\n    }\n    wmemset(param_3 + param_6,param_2,__n);\n    return;\n  }" (if "if") (parenthesized_expression "(uVar1 == 0x20)" (( "(") (binary_expression "uVar1 == 0x20" (identifier "uVar1") (== "==") (number_literal "0x20")) () ")")) (compound_statement "{\n    if (param_6 != 0) {\n      wmemcpy(param_3,param_4,param_6);\n    }\n    if (__n == 0) {\n      return;\n    }\n    wmemset(param_3 + param_6,param_2,__n);\n    return;\n  }" ({ "{") (if_statement "if (param_6 != 0) {\n      wmemcpy(param_3,param_4,param_6);\n    }" (if "if") (parenthesized_expression "(param_6 != 0)" (( "(") (binary_expression "param_6 != 0" (identifier "param_6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      wmemcpy(param_3,param_4,param_6);\n    }" ({ "{") (expression_statement "wmemcpy(param_3,param_4,param_6);" (call_expression "wmemcpy(param_3,param_4,param_6)" (identifier "wmemcpy") (argument_list "(param_3,param_4,param_6)" (( "(") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_6") () ")"))) (; ";")) (} "}"))) (if_statement "if (__n == 0) {\n      return;\n    }" (if "if") (parenthesized_expression "(__n == 0)" (( "(") (binary_expression "__n == 0" (identifier "__n") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "wmemset(param_3 + param_6,param_2,__n);" (call_expression "wmemset(param_3 + param_6,param_2,__n)" (identifier "wmemset") (argument_list "(param_3 + param_6,param_2,__n)" (( "(") (binary_expression "param_3 + param_6" (identifier "param_3") (+ "+") (identifier "param_6")) (, ",") (identifier "param_2") (, ",") (identifier "__n") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (uVar1 == 0x10) {\n    piVar2 = (int *)FUN_001d5bc0(param_1 + 0x6c);\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2d);\n    if ((*param_4 == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2b), *param_4 == wVar3)) {\n      param_4 = param_4 + 1;\n      *param_3 = wVar3;\n      param_6 = param_6 - 1;\n      param_3 = param_3 + 1;\n      goto LAB_001d8e4f;\n    }\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x30);\n    if ((*param_4 != wVar3) || ((int)param_6 < 2)) goto LAB_001d8e4f;\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x78);\n    if ((param_4[1] == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x58), param_4[1] == wVar3)) {\n      *param_3 = *param_4;\n      param_3[1] = param_4[1];\n      param_6 = param_6 - 2;\n      param_3 = param_3 + 2;\n      param_4 = param_4 + 2;\n      goto LAB_001d8e4f;\n    }\n    __s1 = param_3 + __n;\n    if (__n == 0) goto LAB_001d8f6c;\nLAB_001d8f50:\n    wmemset(param_3,param_2,__n);\n  }\n  else {\nLAB_001d8e4f:\n    __s1 = param_3 + __n;\n    if (__n != 0) goto LAB_001d8f50;\n  }" (if "if") (parenthesized_expression "(uVar1 == 0x10)" (( "(") (binary_expression "uVar1 == 0x10" (identifier "uVar1") (== "==") (number_literal "0x10")) () ")")) (compound_statement "{\n    piVar2 = (int *)FUN_001d5bc0(param_1 + 0x6c);\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2d);\n    if ((*param_4 == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2b), *param_4 == wVar3)) {\n      param_4 = param_4 + 1;\n      *param_3 = wVar3;\n      param_6 = param_6 - 1;\n      param_3 = param_3 + 1;\n      goto LAB_001d8e4f;\n    }\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x30);\n    if ((*param_4 != wVar3) || ((int)param_6 < 2)) goto LAB_001d8e4f;\n    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x78);\n    if ((param_4[1] == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x58), param_4[1] == wVar3)) {\n      *param_3 = *param_4;\n      param_3[1] = param_4[1];\n      param_6 = param_6 - 2;\n      param_3 = param_3 + 2;\n      param_4 = param_4 + 2;\n      goto LAB_001d8e4f;\n    }\n    __s1 = param_3 + __n;\n    if (__n == 0) goto LAB_001d8f6c;\nLAB_001d8f50:\n    wmemset(param_3,param_2,__n);\n  }" ({ "{") (expression_statement "piVar2 = (int *)FUN_001d5bc0(param_1 + 0x6c);" (assignment_expression "piVar2 = (int *)FUN_001d5bc0(param_1 + 0x6c)" (identifier "piVar2") (= "=") (cast_expression "(int *)FUN_001d5bc0(param_1 + 0x6c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001d5bc0(param_1 + 0x6c)" (identifier "FUN_001d5bc0") (argument_list "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")"))))) (; ";")) (expression_statement "wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2d);" (assignment_expression "wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2d)" (identifier "wVar3") (= "=") (call_expression "(**(code **)(*piVar2 + 0x28))(piVar2,0x2d)" (parenthesized_expression "(**(code **)(*piVar2 + 0x28))" (( "(") (pointer_expression "**(code **)(*piVar2 + 0x28)" (* "*") (pointer_expression "*(code **)(*piVar2 + 0x28)" (* "*") (cast_expression "(code **)(*piVar2 + 0x28)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar2 + 0x28)" (( "(") (binary_expression "*piVar2 + 0x28" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (argument_list "(piVar2,0x2d)" (( "(") (identifier "piVar2") (, ",") (number_literal "0x2d") () ")")))) (; ";")) (if_statement "if ((*param_4 == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2b), *param_4 == wVar3)) {\n      param_4 = param_4 + 1;\n      *param_3 = wVar3;\n      param_6 = param_6 - 1;\n      param_3 = param_3 + 1;\n      goto LAB_001d8e4f;\n    }" (if "if") (parenthesized_expression "((*param_4 == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2b), *param_4 == wVar3))" (( "(") (binary_expression "(*param_4 == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2b), *param_4 == wVar3)" (parenthesized_expression "(*param_4 == wVar3)" (( "(") (binary_expression "*param_4 == wVar3" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (== "==") (identifier "wVar3")) () ")")) (|| "||") (parenthesized_expression "(wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2b), *param_4 == wVar3)" (( "(") (comma_expression "wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2b), *param_4 == wVar3" (assignment_expression "wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2b)" (identifier "wVar3") (= "=") (call_expression "(**(code **)(*piVar2 + 0x28))(piVar2,0x2b)" (parenthesized_expression "(**(code **)(*piVar2 + 0x28))" (( "(") (pointer_expression "**(code **)(*piVar2 + 0x28)" (* "*") (pointer_expression "*(code **)(*piVar2 + 0x28)" (* "*") (cast_expression "(code **)(*piVar2 + 0x28)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar2 + 0x28)" (( "(") (binary_expression "*piVar2 + 0x28" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (argument_list "(piVar2,0x2b)" (( "(") (identifier "piVar2") (, ",") (number_literal "0x2b") () ")")))) (, ",") (binary_expression "*param_4 == wVar3" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (== "==") (identifier "wVar3"))) () ")"))) () ")")) (compound_statement "{\n      param_4 = param_4 + 1;\n      *param_3 = wVar3;\n      param_6 = param_6 - 1;\n      param_3 = param_3 + 1;\n      goto LAB_001d8e4f;\n    }" ({ "{") (expression_statement "param_4 = param_4 + 1;" (assignment_expression "param_4 = param_4 + 1" (identifier "param_4") (= "=") (binary_expression "param_4 + 1" (identifier "param_4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*param_3 = wVar3;" (assignment_expression "*param_3 = wVar3" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "wVar3")) (; ";")) (expression_statement "param_6 = param_6 - 1;" (assignment_expression "param_6 = param_6 - 1" (identifier "param_6") (= "=") (binary_expression "param_6 - 1" (identifier "param_6") (- "-") (number_literal "1"))) (; ";")) (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" (identifier "param_3") (= "=") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1"))) (; ";")) (goto_statement "goto LAB_001d8e4f;" (goto "goto") (statement_identifier "LAB_001d8e4f") (; ";")) (} "}"))) (expression_statement "wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x30);" (assignment_expression "wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x30)" (identifier "wVar3") (= "=") (call_expression "(**(code **)(*piVar2 + 0x28))(piVar2,0x30)" (parenthesized_expression "(**(code **)(*piVar2 + 0x28))" (( "(") (pointer_expression "**(code **)(*piVar2 + 0x28)" (* "*") (pointer_expression "*(code **)(*piVar2 + 0x28)" (* "*") (cast_expression "(code **)(*piVar2 + 0x28)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar2 + 0x28)" (( "(") (binary_expression "*piVar2 + 0x28" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (argument_list "(piVar2,0x30)" (( "(") (identifier "piVar2") (, ",") (number_literal "0x30") () ")")))) (; ";")) (if_statement "if ((*param_4 != wVar3) || ((int)param_6 < 2)) goto LAB_001d8e4f;" (if "if") (parenthesized_expression "((*param_4 != wVar3) || ((int)param_6 < 2))" (( "(") (binary_expression "(*param_4 != wVar3) || ((int)param_6 < 2)" (parenthesized_expression "(*param_4 != wVar3)" (( "(") (binary_expression "*param_4 != wVar3" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (!= "!=") (identifier "wVar3")) () ")")) (|| "||") (parenthesized_expression "((int)param_6 < 2)" (( "(") (binary_expression "(int)param_6 < 2" (cast_expression "(int)param_6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_6")) (< "<") (number_literal "2")) () ")"))) () ")")) (goto_statement "goto LAB_001d8e4f;" (goto "goto") (statement_identifier "LAB_001d8e4f") (; ";"))) (expression_statement "wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x78);" (assignment_expression "wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x78)" (identifier "wVar3") (= "=") (call_expression "(**(code **)(*piVar2 + 0x28))(piVar2,0x78)" (parenthesized_expression "(**(code **)(*piVar2 + 0x28))" (( "(") (pointer_expression "**(code **)(*piVar2 + 0x28)" (* "*") (pointer_expression "*(code **)(*piVar2 + 0x28)" (* "*") (cast_expression "(code **)(*piVar2 + 0x28)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar2 + 0x28)" (( "(") (binary_expression "*piVar2 + 0x28" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (argument_list "(piVar2,0x78)" (( "(") (identifier "piVar2") (, ",") (number_literal "0x78") () ")")))) (; ";")) (if_statement "if ((param_4[1] == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x58), param_4[1] == wVar3)) {\n      *param_3 = *param_4;\n      param_3[1] = param_4[1];\n      param_6 = param_6 - 2;\n      param_3 = param_3 + 2;\n      param_4 = param_4 + 2;\n      goto LAB_001d8e4f;\n    }" (if "if") (parenthesized_expression "((param_4[1] == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x58), param_4[1] == wVar3))" (( "(") (binary_expression "(param_4[1] == wVar3) ||\n       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x58), param_4[1] == wVar3)" (parenthesized_expression "(param_4[1] == wVar3)" (( "(") (binary_expression "param_4[1] == wVar3" (subscript_expression "param_4[1]" (identifier "param_4") ([ "[") (number_literal "1") (] "]")) (== "==") (identifier "wVar3")) () ")")) (|| "||") (parenthesized_expression "(wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x58), param_4[1] == wVar3)" (( "(") (comma_expression "wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x58), param_4[1] == wVar3" (assignment_expression "wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x58)" (identifier "wVar3") (= "=") (call_expression "(**(code **)(*piVar2 + 0x28))(piVar2,0x58)" (parenthesized_expression "(**(code **)(*piVar2 + 0x28))" (( "(") (pointer_expression "**(code **)(*piVar2 + 0x28)" (* "*") (pointer_expression "*(code **)(*piVar2 + 0x28)" (* "*") (cast_expression "(code **)(*piVar2 + 0x28)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar2 + 0x28)" (( "(") (binary_expression "*piVar2 + 0x28" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (argument_list "(piVar2,0x58)" (( "(") (identifier "piVar2") (, ",") (number_literal "0x58") () ")")))) (, ",") (binary_expression "param_4[1] == wVar3" (subscript_expression "param_4[1]" (identifier "param_4") ([ "[") (number_literal "1") (] "]")) (== "==") (identifier "wVar3"))) () ")"))) () ")")) (compound_statement "{\n      *param_3 = *param_4;\n      param_3[1] = param_4[1];\n      param_6 = param_6 - 2;\n      param_3 = param_3 + 2;\n      param_4 = param_4 + 2;\n      goto LAB_001d8e4f;\n    }" ({ "{") (expression_statement "*param_3 = *param_4;" (assignment_expression "*param_3 = *param_4" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (pointer_expression "*param_4" (* "*") (identifier "param_4"))) (; ";")) (expression_statement "param_3[1] = param_4[1];" (assignment_expression "param_3[1] = param_4[1]" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "param_4[1]" (identifier "param_4") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "param_6 = param_6 - 2;" (assignment_expression "param_6 = param_6 - 2" (identifier "param_6") (= "=") (binary_expression "param_6 - 2" (identifier "param_6") (- "-") (number_literal "2"))) (; ";")) (expression_statement "param_3 = param_3 + 2;" (assignment_expression "param_3 = param_3 + 2" (identifier "param_3") (= "=") (binary_expression "param_3 + 2" (identifier "param_3") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "param_4 = param_4 + 2;" (assignment_expression "param_4 = param_4 + 2" (identifier "param_4") (= "=") (binary_expression "param_4 + 2" (identifier "param_4") (+ "+") (number_literal "2"))) (; ";")) (goto_statement "goto LAB_001d8e4f;" (goto "goto") (statement_identifier "LAB_001d8e4f") (; ";")) (} "}"))) (expression_statement "__s1 = param_3 + __n;" (assignment_expression "__s1 = param_3 + __n" (identifier "__s1") (= "=") (binary_expression "param_3 + __n" (identifier "param_3") (+ "+") (identifier "__n"))) (; ";")) (if_statement "if (__n == 0) goto LAB_001d8f6c;" (if "if") (parenthesized_expression "(__n == 0)" (( "(") (binary_expression "__n == 0" (identifier "__n") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_001d8f6c;" (goto "goto") (statement_identifier "LAB_001d8f6c") (; ";"))) (labeled_statement "LAB_001d8f50:\n    wmemset(param_3,param_2,__n);" (statement_identifier "LAB_001d8f50") (: ":") (expression_statement "wmemset(param_3,param_2,__n);" (call_expression "wmemset(param_3,param_2,__n)" (identifier "wmemset") (argument_list "(param_3,param_2,__n)" (( "(") (identifier "param_3") (, ",") (identifier "param_2") (, ",") (identifier "__n") () ")"))) (; ";"))) (} "}")) (else_clause "else {\nLAB_001d8e4f:\n    __s1 = param_3 + __n;\n    if (__n != 0) goto LAB_001d8f50;\n  }" (else "else") (compound_statement "{\nLAB_001d8e4f:\n    __s1 = param_3 + __n;\n    if (__n != 0) goto LAB_001d8f50;\n  }" ({ "{") (labeled_statement "LAB_001d8e4f:\n    __s1 = param_3 + __n;" (statement_identifier "LAB_001d8e4f") (: ":") (expression_statement "__s1 = param_3 + __n;" (assignment_expression "__s1 = param_3 + __n" (identifier "__s1") (= "=") (binary_expression "param_3 + __n" (identifier "param_3") (+ "+") (identifier "__n"))) (; ";"))) (if_statement "if (__n != 0) goto LAB_001d8f50;" (if "if") (parenthesized_expression "(__n != 0)" (( "(") (binary_expression "__n != 0" (identifier "__n") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_001d8f50;" (goto "goto") (statement_identifier "LAB_001d8f50") (; ";"))) (} "}")))) (if_statement "if (param_6 == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(param_6 == 0)" (( "(") (binary_expression "param_6 == 0" (identifier "param_6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (labeled_statement "LAB_001d8f6c:\n  wmemcpy(__s1,param_4,param_6);" (statement_identifier "LAB_001d8f6c") (: ":") (expression_statement "wmemcpy(__s1,param_4,param_6);" (call_expression "wmemcpy(__s1,param_4,param_6)" (identifier "wmemcpy") (argument_list "(__s1,param_4,param_6)" (( "(") (identifier "__s1") (, ",") (identifier "param_4") (, ",") (identifier "param_6") () ")"))) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::__pad<wchar_t, std::char_traits<wchar_t> >::_S_pad(std::ios_base&, wchar_t, wchar_t*,
   wchar_t const*, int, int) */

void var_9::__pad<type_1,var_9::char_traits<type_1>>::_S_pad
               (ios_base *var_3,type_1 param_2,type_1 *var_7,type_1 *var_11,int var_1,
               int var_2)

{
  ctype *pcVar1;
  type_1 var_10;
  type_1 *__s1;
  size_t var_5;
  
  var_5 = var_1 - var_2;
  if ((*(type_2 *)(var_3 + 0xc) & 0xb0) == 0x20) {
    if (var_2 != 0) {
      var_4(var_7,var_11,var_2);
    }
    if (var_5 == 0) {
      return;
    }
    var_6(var_7 + var_2,param_2,var_5);
    return;
  }
  if ((*(type_2 *)(var_3 + 0xc) & 0xb0) == 0x10) {
    pcVar1 = var_8<var_9::ctype<type_1>>((type_3 *)(var_3 + 0x6c));
    var_10 = (**(type_4 **)(*(int *)pcVar1 + 0x28))(pcVar1,0x2d);
    if ((*var_11 == var_10) ||
       (var_10 = (**(type_4 **)(*(int *)pcVar1 + 0x28))(pcVar1,0x2b), *var_11 == var_10)) {
      var_11 = var_11 + 1;
      *var_7 = var_10;
      var_2 = var_2 - 1;
      var_7 = var_7 + 1;
      goto LAB_001d8e4f;
    }
    var_10 = (**(type_4 **)(*(int *)pcVar1 + 0x28))(pcVar1,0x30);
    if ((*var_11 != var_10) || (var_2 < 2)) goto LAB_001d8e4f;
    var_10 = (**(type_4 **)(*(int *)pcVar1 + 0x28))(pcVar1,0x78);
    if ((var_11[1] == var_10) ||
       (var_10 = (**(type_4 **)(*(int *)pcVar1 + 0x28))(pcVar1,0x58), var_11[1] == var_10)) {
      *var_7 = *var_11;
      var_7[1] = var_11[1];
      var_2 = var_2 - 2;
      var_7 = var_7 + 2;
      var_11 = var_11 + 2;
      goto LAB_001d8e4f;
    }
    __s1 = var_7 + var_5;
    if (var_5 == 0) goto LAB_001d8f6c;
LAB_001d8f50:
    var_6(var_7,param_2,var_5);
  }
  else {
LAB_001d8e4f:
    __s1 = var_7 + var_5;
    if (var_5 != 0) goto LAB_001d8f50;
  }
  if (var_2 == 0) {
    return;
  }
LAB_001d8f6c:
  var_4(__s1,var_11,var_2);
  return;
}


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

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

void MASKED(int param_1,wchar_t param_2,wchar_t *param_3,wchar_t *param_4,int param_5,
                 size_t param_6)

{
  uint uVar1;
  int *piVar2;
  wchar_t wVar3;
  wchar_t *__s1;
  size_t __n;
  
  __n = param_5 - param_6;
  uVar1 = *(uint *)(param_1 + 0xc) & 0xb0;
  if (uVar1 == 0x20) {
    if (param_6 != 0) {
      wmemcpy(param_3,param_4,param_6);
    }
    if (__n == 0) {
      return;
    }
    wmemset(param_3 + param_6,param_2,__n);
    return;
  }
  if (uVar1 == 0x10) {
    piVar2 = (int *)FUN_001d5bc0(param_1 + 0x6c);
    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2d);
    if ((*param_4 == wVar3) ||
       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x2b), *param_4 == wVar3)) {
      param_4 = param_4 + 1;
      *param_3 = wVar3;
      param_6 = param_6 - 1;
      param_3 = param_3 + 1;
      goto LAB_001d8e4f;
    }
    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x30);
    if ((*param_4 != wVar3) || ((int)param_6 < 2)) goto LAB_001d8e4f;
    wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x78);
    if ((param_4[1] == wVar3) ||
       (wVar3 = (**(code **)(*piVar2 + 0x28))(piVar2,0x58), param_4[1] == wVar3)) {
      *param_3 = *param_4;
      param_3[1] = param_4[1];
      param_6 = param_6 - 2;
      param_3 = param_3 + 2;
      param_4 = param_4 + 2;
      goto LAB_001d8e4f;
    }
    __s1 = param_3 + __n;
    if (__n == 0) goto LAB_001d8f6c;
LAB_001d8f50:
    wmemset(param_3,param_2,__n);
  }
  else {
LAB_001d8e4f:
    __s1 = param_3 + __n;
    if (__n != 0) goto LAB_001d8f50;
  }
  if (param_6 == 0) {
    return;
  }
LAB_001d8f6c:
  wmemcpy(__s1,param_4,param_6);
  return;
}

