
/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */
/* std::collate<char>::do_transform(char const*, char const*) const */

char * std::collate<char>::do_transform(char *param_1,char *param_2)

{
  char *pcVar1;
  char *pcVar2;
  char *pcVar3;
  uint uVar4;
  size_t sVar5;
  uint uVar6;
  int in_stack_0000000c;
  int in_stack_00000010;
  uint local_48;
  anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9
  *local_44;
  basic_string<char,_std::char_traits<char>,_std::allocator<char>_> local_34;
  
  param_1[4] = '\0';
  param_1[5] = '\0';
  param_1[6] = '\0';
  param_1[7] = '\0';
  *(char **)param_1 = param_1 + 8;
  param_1[8] = '\0';
  local_34._M_dataplus._M_p = (pointer)&local_34.field_2;
                    /* try { // try from 0025a7c5 to 0025a7c9 has its CatchHandler @ 0025a991 */
  __cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::
  _M_construct<char_const*>(&local_34);
  local_44 = (anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9
              *)local_34._M_dataplus._M_p;
  pcVar1 = local_34._M_dataplus._M_p + local_34._M_string_length;
  local_48 = (in_stack_00000010 - in_stack_0000000c) * 2;
                    /* try { // try from 0025a7e5 to 0025a7e9 has its CatchHandler @ 0025a935 */
  pcVar2 = (char *)operator_new__(local_48);
  while( true ) {
    uVar4 = _M_transform((collate<char> *)param_2,pcVar2,local_44->_M_local_buf,local_48);
    if (local_48 <= uVar4) {
      local_48 = uVar4 + 1;
      operator_delete__(pcVar2);
                    /* try { // try from 0025a841 to 0025a845 has its CatchHandler @ 0025a933 */
      pcVar2 = (char *)operator_new__(local_48);
      uVar4 = _M_transform((collate<char> *)param_2,pcVar2,local_44->_M_local_buf,local_48);
    }
    if (0x7fffffffU - *(int *)(param_1 + 4) < uVar4) break;
                    /* try { // try from 0025a879 to 0025a932 has its CatchHandler @ 0025a995 */
    std::string::_M_append((string *)param_1,pcVar2,uVar4);
    sVar5 = strlen(local_44->_M_local_buf);
    if (pcVar1 == local_44->_M_local_buf + sVar5) {
      operator_delete__(pcVar2);
      if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9
           *)local_34._M_dataplus._M_p != &local_34.field_2) {
        operator_delete(local_34._M_dataplus._M_p);
      }
      return param_1;
    }
    local_44 = (anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9
                *)(local_44->_M_local_buf + sVar5 + 1);
    uVar4 = *(uint *)(param_1 + 4);
    pcVar3 = *(char **)param_1;
    if (param_1 + 8 == pcVar3) {
      uVar6 = 0xf;
    }
    else {
      uVar6 = *(uint *)(param_1 + 8);
    }
    if (uVar6 < uVar4 + 1) {
      std::string::_M_mutate((string *)param_1,uVar4,0,(char *)0x0,1);
      pcVar3 = *(char **)param_1;
    }
    pcVar3[uVar4] = '\0';
    *(uint *)(param_1 + 4) = uVar4 + 1;
    *(undefined1 *)(*(int *)param_1 + 1 + uVar4) = 0;
  }
                    /* WARNING: Subroutine does not return */
  __throw_length_error("basic_string::append");
}



/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

int * FUN_0025a780(int *param_1,undefined4 param_2,int param_3,int param_4)

{
  int iVar1;
  char *pcVar2;
  undefined4 uVar3;
  int *piVar4;
  uint uVar5;
  size_t sVar6;
  uint local_48;
  char *local_44;
  char *local_34;
  int local_30;
  char local_2c [28];
  
  param_1[1] = 0;
  *param_1 = (int)(param_1 + 2);
  *(undefined1 *)(param_1 + 2) = 0;
  local_34 = local_2c;
                    /* try { // try from 0025a7c5 to 0025a7c9 has its CatchHandler @ 0025a991 */
  FUN_00050e40(&local_34,param_3,param_4,0);
  local_44 = local_34;
  pcVar2 = local_34 + local_30;
  local_48 = (param_4 - param_3) * 2;
                    /* try { // try from 0025a7e5 to 0025a7e9 has its CatchHandler @ 0025a935 */
  uVar3 = FUN_001e5180(local_48);
  while( true ) {
    uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);
    if (local_48 <= uVar5) {
      local_48 = uVar5 + 1;
      FUN_001e6d50(uVar3);
                    /* try { // try from 0025a841 to 0025a845 has its CatchHandler @ 0025a933 */
      uVar3 = FUN_001e5180(local_48);
      uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);
    }
    if (0x7fffffffU - param_1[1] < uVar5) break;
                    /* try { // try from 0025a879 to 0025a932 has its CatchHandler @ 0025a995 */
    FUN_001f05c0(param_1,uVar3,uVar5);
    sVar6 = strlen(local_44);
    if (pcVar2 == local_44 + sVar6) {
      FUN_001e6d50(uVar3);
      if (local_34 != local_2c) {
        FUN_001e6db0(local_34);
      }
      return param_1;
    }
    local_44 = local_44 + sVar6 + 1;
    iVar1 = param_1[1];
    piVar4 = (int *)*param_1;
    if (param_1 + 2 == piVar4) {
      uVar5 = 0xf;
    }
    else {
      uVar5 = param_1[2];
    }
    if (uVar5 < iVar1 + 1U) {
      FUN_001eeaa0(param_1,iVar1,0,0,1);
      piVar4 = (int *)*param_1;
    }
    *(undefined1 *)((int)piVar4 + iVar1) = 0;
    param_1[1] = iVar1 + 1U;
    *(undefined1 *)(*param_1 + 1 + iVar1) = 0;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0022c7a0("basic_string::append");
}


CALL 0x00035975
ADD EDX,0x13487b
PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
PUSH EBX
LEA EBX,[EBP + -0x28]
SUB ESP,0x4c
MOV ESI,dword ptr [EBP + 0x8]
MOV EDI,dword ptr [EBP + 0x14]
MOV dword ptr [EBP + -0x58],EBX
MOV dword ptr [EBP + -0x30],EBX
MOV EBX,EDX
LEA EAX,[ESI + 0x8]
MOV dword ptr [ESI + 0x4],0x0
MOV dword ptr [ESI],EAX
MOV dword ptr [EBP + -0x54],EAX
LEA EAX,[EBP + -0x30]
MOV byte ptr [ESI + 0x8],0x0
PUSH 0x0
PUSH EDI
PUSH dword ptr [EBP + 0x10]
PUSH EAX
MOV dword ptr [EBP + -0x3c],EDX
CALL 0x00050e40
MOV EAX,dword ptr [EBP + -0x30]
SUB EDI,dword ptr [EBP + 0x10]
MOV EBX,dword ptr [EBP + -0x3c]
MOV dword ptr [EBP + -0x40],EAX
ADD EAX,dword ptr [EBP + -0x2c]
MOV dword ptr [EBP + -0x50],EAX
LEA EAX,[EDI + EDI*0x1]
MOV dword ptr [EBP + -0x44],EAX
MOV dword ptr [ESP],EAX
CALL 0x001e5180
MOV EDI,EAX
ADD ESP,0x10
JMP 0x0025a80c
MOV ECX,dword ptr [EBP + -0x4c]
MOV byte ptr [EAX + ECX*0x1],0x0
MOV EAX,dword ptr [EBP + -0x48]
MOV dword ptr [ESI + 0x4],EAX
MOV EAX,dword ptr [ESI]
MOV byte ptr [EAX + ECX*0x1 + 0x1],0x0
PUSH dword ptr [EBP + -0x44]
MOV EBX,dword ptr [EBP + -0x3c]
PUSH dword ptr [EBP + -0x40]
PUSH EDI
PUSH dword ptr [EBP + 0xc]
CALL 0x0027aec0
ADD ESP,0x10
CMP dword ptr [EBP + -0x44],EAX
JA 0x0025a860
SUB ESP,0xc
ADD EAX,0x1
PUSH EDI
MOV EDI,dword ptr [EBP + -0x3c]
MOV dword ptr [EBP + -0x44],EAX
MOV EBX,EDI
CALL 0x001e6d50
POP EDX
PUSH dword ptr [EBP + -0x44]
MOV dword ptr [EBP + -0x3c],EDI
CALL 0x001e5180
ADD ESP,0x10
PUSH dword ptr [EBP + -0x44]
MOV EBX,dword ptr [EBP + -0x3c]
MOV EDI,EAX
PUSH dword ptr [EBP + -0x40]
PUSH EAX
PUSH dword ptr [EBP + 0xc]
CALL 0x0027aec0
ADD ESP,0x10
MOV EDX,0x7fffffff
SUB EDX,dword ptr [ESI + 0x4]
CMP EAX,EDX
JA 0x0025a921
SUB ESP,0x4
MOV EBX,dword ptr [EBP + -0x3c]
PUSH EAX
PUSH EDI
PUSH ESI
CALL 0x001f05c0
POP EAX
MOV EBX,dword ptr [EBP + -0x3c]
PUSH dword ptr [EBP + -0x40]
CALL 0x000295f0
ADD ESP,0x10
ADD EAX,dword ptr [EBP + -0x40]
CMP dword ptr [EBP + -0x50],EAX
JZ 0x0025a8f0
ADD EAX,0x1
MOV dword ptr [EBP + -0x40],EAX
MOV EAX,dword ptr [ESI + 0x4]
MOV dword ptr [EBP + -0x4c],EAX
ADD EAX,0x1
MOV dword ptr [EBP + -0x48],EAX
MOV EAX,dword ptr [ESI]
CMP dword ptr [EBP + -0x54],EAX
JZ 0x0025a8e0
MOV EDX,dword ptr [ESI + 0x8]
CMP dword ptr [EBP + -0x48],EDX
JBE 0x0025a7f8
SUB ESP,0xc
MOV EBX,dword ptr [EBP + -0x3c]
PUSH 0x1
PUSH 0x0
PUSH 0x0
PUSH dword ptr [EBP + -0x4c]
PUSH ESI
CALL 0x001eeaa0
ADD ESP,0x20
MOV EAX,dword ptr [ESI]
JMP 0x0025a7f8
MOV EDX,0xf
JMP 0x0025a8b1
SUB ESP,0xc
PUSH EDI
MOV EDI,dword ptr [EBP + -0x3c]
MOV EBX,EDI
CALL 0x001e6d50
MOV EAX,dword ptr [EBP + -0x30]
ADD ESP,0x10
CMP EAX,dword ptr [EBP + -0x58]
JZ 0x0025a915
SUB ESP,0xc
PUSH EAX
CALL 0x001e6db0
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
MOV EBX,dword ptr [EBP + -0x3c]
SUB ESP,0xc
LEA EAX,[EBX + 0xffef7be2]
PUSH EAX
CALL 0x0022c7a0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nint * FUN_0025a780(int *param_1,undefined4 param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  uint uVar5;\n  size_t sVar6;\n  uint local_48;\n  char *local_44;\n  char *local_34;\n  int local_30;\n  char local_2c [28];\n  \n  param_1[1] = 0;\n  *param_1 = (int)(param_1 + 2);\n  *(undefined1 *)(param_1 + 2) = 0;\n  local_34 = local_2c;\n                    /* try { // try from 0025a7c5 to 0025a7c9 has its CatchHandler @ 0025a991 */\n  FUN_00050e40(&local_34,param_3,param_4,0);\n  local_44 = local_34;\n  pcVar2 = local_34 + local_30;\n  local_48 = (param_4 - param_3) * 2;\n                    /* try { // try from 0025a7e5 to 0025a7e9 has its CatchHandler @ 0025a935 */\n  uVar3 = FUN_001e5180(local_48);\n  while( true ) {\n    uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);\n    if (local_48 <= uVar5) {\n      local_48 = uVar5 + 1;\n      FUN_001e6d50(uVar3);\n                    /* try { // try from 0025a841 to 0025a845 has its CatchHandler @ 0025a933 */\n      uVar3 = FUN_001e5180(local_48);\n      uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);\n    }\n    if (0x7fffffffU - param_1[1] < uVar5) break;\n                    /* try { // try from 0025a879 to 0025a932 has its CatchHandler @ 0025a995 */\n    FUN_001f05c0(param_1,uVar3,uVar5);\n    sVar6 = strlen(local_44);\n    if (pcVar2 == local_44 + sVar6) {\n      FUN_001e6d50(uVar3);\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      return param_1;\n    }\n    local_44 = local_44 + sVar6 + 1;\n    iVar1 = param_1[1];\n    piVar4 = (int *)*param_1;\n    if (param_1 + 2 == piVar4) {\n      uVar5 = 0xf;\n    }\n    else {\n      uVar5 = param_1[2];\n    }\n    if (uVar5 < iVar1 + 1U) {\n      FUN_001eeaa0(param_1,iVar1,0,0,1);\n      piVar4 = (int *)*param_1;\n    }\n    *(undefined1 *)((int)piVar4 + iVar1) = 0;\n    param_1[1] = iVar1 + 1U;\n    *(undefined1 *)(*param_1 + 1 + iVar1) = 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0022c7a0("basic_string::append");\n}\n\n" comment (function_definition "int * FUN_0025a780(int *param_1,undefined4 param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  uint uVar5;\n  size_t sVar6;\n  uint local_48;\n  char *local_44;\n  char *local_34;\n  int local_30;\n  char local_2c [28];\n  \n  param_1[1] = 0;\n  *param_1 = (int)(param_1 + 2);\n  *(undefined1 *)(param_1 + 2) = 0;\n  local_34 = local_2c;\n                    /* try { // try from 0025a7c5 to 0025a7c9 has its CatchHandler @ 0025a991 */\n  FUN_00050e40(&local_34,param_3,param_4,0);\n  local_44 = local_34;\n  pcVar2 = local_34 + local_30;\n  local_48 = (param_4 - param_3) * 2;\n                    /* try { // try from 0025a7e5 to 0025a7e9 has its CatchHandler @ 0025a935 */\n  uVar3 = FUN_001e5180(local_48);\n  while( true ) {\n    uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);\n    if (local_48 <= uVar5) {\n      local_48 = uVar5 + 1;\n      FUN_001e6d50(uVar3);\n                    /* try { // try from 0025a841 to 0025a845 has its CatchHandler @ 0025a933 */\n      uVar3 = FUN_001e5180(local_48);\n      uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);\n    }\n    if (0x7fffffffU - param_1[1] < uVar5) break;\n                    /* try { // try from 0025a879 to 0025a932 has its CatchHandler @ 0025a995 */\n    FUN_001f05c0(param_1,uVar3,uVar5);\n    sVar6 = strlen(local_44);\n    if (pcVar2 == local_44 + sVar6) {\n      FUN_001e6d50(uVar3);\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      return param_1;\n    }\n    local_44 = local_44 + sVar6 + 1;\n    iVar1 = param_1[1];\n    piVar4 = (int *)*param_1;\n    if (param_1 + 2 == piVar4) {\n      uVar5 = 0xf;\n    }\n    else {\n      uVar5 = param_1[2];\n    }\n    if (uVar5 < iVar1 + 1U) {\n      FUN_001eeaa0(param_1,iVar1,0,0,1);\n      piVar4 = (int *)*param_1;\n    }\n    *(undefined1 *)((int)piVar4 + iVar1) = 0;\n    param_1[1] = iVar1 + 1U;\n    *(undefined1 *)(*param_1 + 1 + iVar1) = 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0022c7a0("basic_string::append");\n}" primitive_type (pointer_declarator "* FUN_0025a780(int *param_1,undefined4 param_2,int param_3,int param_4)" * (function_declarator "FUN_0025a780(int *param_1,undefined4 param_2,int param_3,int param_4)" identifier (parameter_list "(int *param_1,undefined4 param_2,int param_3,int param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  uint uVar5;\n  size_t sVar6;\n  uint local_48;\n  char *local_44;\n  char *local_34;\n  int local_30;\n  char local_2c [28];\n  \n  param_1[1] = 0;\n  *param_1 = (int)(param_1 + 2);\n  *(undefined1 *)(param_1 + 2) = 0;\n  local_34 = local_2c;\n                    /* try { // try from 0025a7c5 to 0025a7c9 has its CatchHandler @ 0025a991 */\n  FUN_00050e40(&local_34,param_3,param_4,0);\n  local_44 = local_34;\n  pcVar2 = local_34 + local_30;\n  local_48 = (param_4 - param_3) * 2;\n                    /* try { // try from 0025a7e5 to 0025a7e9 has its CatchHandler @ 0025a935 */\n  uVar3 = FUN_001e5180(local_48);\n  while( true ) {\n    uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);\n    if (local_48 <= uVar5) {\n      local_48 = uVar5 + 1;\n      FUN_001e6d50(uVar3);\n                    /* try { // try from 0025a841 to 0025a845 has its CatchHandler @ 0025a933 */\n      uVar3 = FUN_001e5180(local_48);\n      uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);\n    }\n    if (0x7fffffffU - param_1[1] < uVar5) break;\n                    /* try { // try from 0025a879 to 0025a932 has its CatchHandler @ 0025a995 */\n    FUN_001f05c0(param_1,uVar3,uVar5);\n    sVar6 = strlen(local_44);\n    if (pcVar2 == local_44 + sVar6) {\n      FUN_001e6d50(uVar3);\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      return param_1;\n    }\n    local_44 = local_44 + sVar6 + 1;\n    iVar1 = param_1[1];\n    piVar4 = (int *)*param_1;\n    if (param_1 + 2 == piVar4) {\n      uVar5 = 0xf;\n    }\n    else {\n      uVar5 = param_1[2];\n    }\n    if (uVar5 < iVar1 + 1U) {\n      FUN_001eeaa0(param_1,iVar1,0,0,1);\n      piVar4 = (int *)*param_1;\n    }\n    *(undefined1 *)((int)piVar4 + iVar1) = 0;\n    param_1[1] = iVar1 + 1U;\n    *(undefined1 *)(*param_1 + 1 + iVar1) = 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0022c7a0("basic_string::append");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "uint local_48;" type_identifier identifier ;) (declaration "char *local_44;" primitive_type (pointer_declarator "*local_44" * identifier) ;) (declaration "char *local_34;" primitive_type (pointer_declarator "*local_34" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "char local_2c [28];" primitive_type (array_declarator "local_2c [28]" identifier [ number_literal ]) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = (int)(param_1 + 2);" (assignment_expression "*param_1 = (int)(param_1 + 2)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(param_1 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ;) (expression_statement "*(undefined1 *)(param_1 + 2) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 2) = 0" (pointer_expression "*(undefined1 *)(param_1 + 2)" * (cast_expression "(undefined1 *)(param_1 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "local_34 = local_2c;" (assignment_expression "local_34 = local_2c" identifier = identifier) ;) comment (expression_statement "FUN_00050e40(&local_34,param_3,param_4,0);" (call_expression "FUN_00050e40(&local_34,param_3,param_4,0)" identifier (argument_list "(&local_34,param_3,param_4,0)" ( (pointer_expression "&local_34" & identifier) , identifier , identifier , number_literal ))) ;) (expression_statement "local_44 = local_34;" (assignment_expression "local_44 = local_34" identifier = identifier) ;) (expression_statement "pcVar2 = local_34 + local_30;" (assignment_expression "pcVar2 = local_34 + local_30" identifier = (binary_expression "local_34 + local_30" identifier + identifier)) ;) (expression_statement "local_48 = (param_4 - param_3) * 2;" (assignment_expression "local_48 = (param_4 - param_3) * 2" identifier = (binary_expression "(param_4 - param_3) * 2" (parenthesized_expression "(param_4 - param_3)" ( (binary_expression "param_4 - param_3" identifier - identifier) )) * number_literal)) ;) comment (expression_statement "uVar3 = FUN_001e5180(local_48);" (assignment_expression "uVar3 = FUN_001e5180(local_48)" identifier = (call_expression "FUN_001e5180(local_48)" identifier (argument_list "(local_48)" ( identifier )))) ;) (while_statement "while( true ) {\n    uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);\n    if (local_48 <= uVar5) {\n      local_48 = uVar5 + 1;\n      FUN_001e6d50(uVar3);\n                    /* try { // try from 0025a841 to 0025a845 has its CatchHandler @ 0025a933 */\n      uVar3 = FUN_001e5180(local_48);\n      uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);\n    }\n    if (0x7fffffffU - param_1[1] < uVar5) break;\n                    /* try { // try from 0025a879 to 0025a932 has its CatchHandler @ 0025a995 */\n    FUN_001f05c0(param_1,uVar3,uVar5);\n    sVar6 = strlen(local_44);\n    if (pcVar2 == local_44 + sVar6) {\n      FUN_001e6d50(uVar3);\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      return param_1;\n    }\n    local_44 = local_44 + sVar6 + 1;\n    iVar1 = param_1[1];\n    piVar4 = (int *)*param_1;\n    if (param_1 + 2 == piVar4) {\n      uVar5 = 0xf;\n    }\n    else {\n      uVar5 = param_1[2];\n    }\n    if (uVar5 < iVar1 + 1U) {\n      FUN_001eeaa0(param_1,iVar1,0,0,1);\n      piVar4 = (int *)*param_1;\n    }\n    *(undefined1 *)((int)piVar4 + iVar1) = 0;\n    param_1[1] = iVar1 + 1U;\n    *(undefined1 *)(*param_1 + 1 + iVar1) = 0;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);\n    if (local_48 <= uVar5) {\n      local_48 = uVar5 + 1;\n      FUN_001e6d50(uVar3);\n                    /* try { // try from 0025a841 to 0025a845 has its CatchHandler @ 0025a933 */\n      uVar3 = FUN_001e5180(local_48);\n      uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);\n    }\n    if (0x7fffffffU - param_1[1] < uVar5) break;\n                    /* try { // try from 0025a879 to 0025a932 has its CatchHandler @ 0025a995 */\n    FUN_001f05c0(param_1,uVar3,uVar5);\n    sVar6 = strlen(local_44);\n    if (pcVar2 == local_44 + sVar6) {\n      FUN_001e6d50(uVar3);\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      return param_1;\n    }\n    local_44 = local_44 + sVar6 + 1;\n    iVar1 = param_1[1];\n    piVar4 = (int *)*param_1;\n    if (param_1 + 2 == piVar4) {\n      uVar5 = 0xf;\n    }\n    else {\n      uVar5 = param_1[2];\n    }\n    if (uVar5 < iVar1 + 1U) {\n      FUN_001eeaa0(param_1,iVar1,0,0,1);\n      piVar4 = (int *)*param_1;\n    }\n    *(undefined1 *)((int)piVar4 + iVar1) = 0;\n    param_1[1] = iVar1 + 1U;\n    *(undefined1 *)(*param_1 + 1 + iVar1) = 0;\n  }" { (expression_statement "uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);" (assignment_expression "uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48)" identifier = (call_expression "FUN_0027aec0(param_2,uVar3,local_44,local_48)" identifier (argument_list "(param_2,uVar3,local_44,local_48)" ( identifier , identifier , identifier , identifier )))) ;) (if_statement "if (local_48 <= uVar5) {\n      local_48 = uVar5 + 1;\n      FUN_001e6d50(uVar3);\n                    /* try { // try from 0025a841 to 0025a845 has its CatchHandler @ 0025a933 */\n      uVar3 = FUN_001e5180(local_48);\n      uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);\n    }" if (parenthesized_expression "(local_48 <= uVar5)" ( (binary_expression "local_48 <= uVar5" identifier <= identifier) )) (compound_statement "{\n      local_48 = uVar5 + 1;\n      FUN_001e6d50(uVar3);\n                    /* try { // try from 0025a841 to 0025a845 has its CatchHandler @ 0025a933 */\n      uVar3 = FUN_001e5180(local_48);\n      uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);\n    }" { (expression_statement "local_48 = uVar5 + 1;" (assignment_expression "local_48 = uVar5 + 1" identifier = (binary_expression "uVar5 + 1" identifier + number_literal)) ;) (expression_statement "FUN_001e6d50(uVar3);" (call_expression "FUN_001e6d50(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) comment (expression_statement "uVar3 = FUN_001e5180(local_48);" (assignment_expression "uVar3 = FUN_001e5180(local_48)" identifier = (call_expression "FUN_001e5180(local_48)" identifier (argument_list "(local_48)" ( identifier )))) ;) (expression_statement "uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);" (assignment_expression "uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48)" identifier = (call_expression "FUN_0027aec0(param_2,uVar3,local_44,local_48)" identifier (argument_list "(param_2,uVar3,local_44,local_48)" ( identifier , identifier , identifier , identifier )))) ;) })) (if_statement "if (0x7fffffffU - param_1[1] < uVar5) break;" if (parenthesized_expression "(0x7fffffffU - param_1[1] < uVar5)" ( (binary_expression "0x7fffffffU - param_1[1] < uVar5" (binary_expression "0x7fffffffU - param_1[1]" number_literal - (subscript_expression "param_1[1]" identifier [ number_literal ])) < identifier) )) (break_statement "break;" break ;)) comment (expression_statement "FUN_001f05c0(param_1,uVar3,uVar5);" (call_expression "FUN_001f05c0(param_1,uVar3,uVar5)" identifier (argument_list "(param_1,uVar3,uVar5)" ( identifier , identifier , identifier ))) ;) (expression_statement "sVar6 = strlen(local_44);" (assignment_expression "sVar6 = strlen(local_44)" identifier = (call_expression "strlen(local_44)" identifier (argument_list "(local_44)" ( identifier )))) ;) (if_statement "if (pcVar2 == local_44 + sVar6) {\n      FUN_001e6d50(uVar3);\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      return param_1;\n    }" if (parenthesized_expression "(pcVar2 == local_44 + sVar6)" ( (binary_expression "pcVar2 == local_44 + sVar6" identifier == (binary_expression "local_44 + sVar6" identifier + identifier)) )) (compound_statement "{\n      FUN_001e6d50(uVar3);\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      return param_1;\n    }" { (expression_statement "FUN_001e6d50(uVar3);" (call_expression "FUN_001e6d50(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (if_statement "if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }" if (parenthesized_expression "(local_34 != local_2c)" ( (binary_expression "local_34 != local_2c" identifier != identifier) )) (compound_statement "{\n        FUN_001e6db0(local_34);\n      }" { (expression_statement "FUN_001e6db0(local_34);" (call_expression "FUN_001e6db0(local_34)" identifier (argument_list "(local_34)" ( identifier ))) ;) })) (return_statement "return param_1;" return identifier ;) })) (expression_statement "local_44 = local_44 + sVar6 + 1;" (assignment_expression "local_44 = local_44 + sVar6 + 1" identifier = (binary_expression "local_44 + sVar6 + 1" (binary_expression "local_44 + sVar6" identifier + identifier) + number_literal)) ;) (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "piVar4 = (int *)*param_1;" (assignment_expression "piVar4 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (param_1 + 2 == piVar4) {\n      uVar5 = 0xf;\n    }\n    else {\n      uVar5 = param_1[2];\n    }" if (parenthesized_expression "(param_1 + 2 == piVar4)" ( (binary_expression "param_1 + 2 == piVar4" (binary_expression "param_1 + 2" identifier + number_literal) == identifier) )) (compound_statement "{\n      uVar5 = 0xf;\n    }" { (expression_statement "uVar5 = 0xf;" (assignment_expression "uVar5 = 0xf" identifier = number_literal) ;) }) (else_clause "else {\n      uVar5 = param_1[2];\n    }" else (compound_statement "{\n      uVar5 = param_1[2];\n    }" { (expression_statement "uVar5 = param_1[2];" (assignment_expression "uVar5 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) }))) (if_statement "if (uVar5 < iVar1 + 1U) {\n      FUN_001eeaa0(param_1,iVar1,0,0,1);\n      piVar4 = (int *)*param_1;\n    }" if (parenthesized_expression "(uVar5 < iVar1 + 1U)" ( (binary_expression "uVar5 < iVar1 + 1U" identifier < (binary_expression "iVar1 + 1U" identifier + number_literal)) )) (compound_statement "{\n      FUN_001eeaa0(param_1,iVar1,0,0,1);\n      piVar4 = (int *)*param_1;\n    }" { (expression_statement "FUN_001eeaa0(param_1,iVar1,0,0,1);" (call_expression "FUN_001eeaa0(param_1,iVar1,0,0,1)" identifier (argument_list "(param_1,iVar1,0,0,1)" ( identifier , identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "piVar4 = (int *)*param_1;" (assignment_expression "piVar4 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) })) (expression_statement "*(undefined1 *)((int)piVar4 + iVar1) = 0;" (assignment_expression "*(undefined1 *)((int)piVar4 + iVar1) = 0" (pointer_expression "*(undefined1 *)((int)piVar4 + iVar1)" * (cast_expression "(undefined1 *)((int)piVar4 + iVar1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar4 + iVar1)" ( (binary_expression "(int)piVar4 + iVar1" (cast_expression "(int)piVar4" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "param_1[1] = iVar1 + 1U;" (assignment_expression "param_1[1] = iVar1 + 1U" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar1 + 1U" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(*param_1 + 1 + iVar1) = 0;" (assignment_expression "*(undefined1 *)(*param_1 + 1 + iVar1) = 0" (pointer_expression "*(undefined1 *)(*param_1 + 1 + iVar1)" * (cast_expression "(undefined1 *)(*param_1 + 1 + iVar1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 1 + iVar1)" ( (binary_expression "*param_1 + 1 + iVar1" (binary_expression "*param_1 + 1" (pointer_expression "*param_1" * identifier) + number_literal) + identifier) )))) = number_literal) ;) })) comment (expression_statement "FUN_0022c7a0("basic_string::append");" (call_expression "FUN_0022c7a0("basic_string::append")" identifier (argument_list "("basic_string::append")" ( (string_literal ""basic_string::append"" " string_content ") ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n/* std::collate<char>::do_transform(char const*, char const*) const */\n\nchar * std::collate<char>::do_transform(char *param_1,char *param_2)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  uint uVar4;\n  size_t sVar5;\n  uint uVar6;\n  int in_stack_0000000c;\n  int in_stack_00000010;\n  uint local_48;\n  anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n  *local_44;\n  basic_string<char,_std::char_traits<char>,_std::allocator<char>_> local_34;\n  \n  param_1[4] = '\0';\n  param_1[5] = '\0';\n  param_1[6] = '\0';\n  param_1[7] = '\0';\n  *(char **)param_1 = param_1 + 8;\n  param_1[8] = '\0';\n  local_34._M_dataplus._M_p = (pointer)&local_34.field_2;\n                    /* try { // try from 0025a7c5 to 0025a7c9 has its CatchHandler @ 0025a991 */\n  __cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n  _M_construct<char_const*>(&local_34);\n  local_44 = (anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n              *)local_34._M_dataplus._M_p;\n  pcVar1 = local_34._M_dataplus._M_p + local_34._M_string_length;\n  local_48 = (in_stack_00000010 - in_stack_0000000c) * 2;\n                    /* try { // try from 0025a7e5 to 0025a7e9 has its CatchHandler @ 0025a935 */\n  pcVar2 = (char *)operator_new__(local_48);\n  while( true ) {\n    uVar4 = _M_transform((collate<char> *)param_2,pcVar2,local_44->_M_local_buf,local_48);\n    if (local_48 <= uVar4) {\n      local_48 = uVar4 + 1;\n      operator_delete__(pcVar2);\n                    /* try { // try from 0025a841 to 0025a845 has its CatchHandler @ 0025a933 */\n      pcVar2 = (char *)operator_new__(local_48);\n      uVar4 = _M_transform((collate<char> *)param_2,pcVar2,local_44->_M_local_buf,local_48);\n    }\n    if (0x7fffffffU - *(int *)(param_1 + 4) < uVar4) break;\n                    /* try { // try from 0025a879 to 0025a932 has its CatchHandler @ 0025a995 */\n    std::string::_M_append((string *)param_1,pcVar2,uVar4);\n    sVar5 = strlen(local_44->_M_local_buf);\n    if (pcVar1 == local_44->_M_local_buf + sVar5) {\n      operator_delete__(pcVar2);\n      if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n           *)local_34._M_dataplus._M_p != &local_34.field_2) {\n        operator_delete(local_34._M_dataplus._M_p);\n      }\n      return param_1;\n    }\n    local_44 = (anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n                *)(local_44->_M_local_buf + sVar5 + 1);\n    uVar4 = *(uint *)(param_1 + 4);\n    pcVar3 = *(char **)param_1;\n    if (param_1 + 8 == pcVar3) {\n      uVar6 = 0xf;\n    }\n    else {\n      uVar6 = *(uint *)(param_1 + 8);\n    }\n    if (uVar6 < uVar4 + 1) {\n      std::string::_M_mutate((string *)param_1,uVar4,0,(char *)0x0,1);\n      pcVar3 = *(char **)param_1;\n    }\n    pcVar3[uVar4] = '\0';\n    *(uint *)(param_1 + 4) = uVar4 + 1;\n    *(undefined1 *)(*(int *)param_1 + 1 + uVar4) = 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_length_error("basic_string::append");\n}\n\n" comment comment (function_definition "char * std::collate<char>::do_transform(char *param_1,char *param_2)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  uint uVar4;\n  size_t sVar5;\n  uint uVar6;\n  int in_stack_0000000c;\n  int in_stack_00000010;\n  uint local_48;\n  anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n  *local_44;\n  basic_string<char,_std::char_traits<char>,_std::allocator<char>_> local_34;\n  \n  param_1[4] = '\0';\n  param_1[5] = '\0';\n  param_1[6] = '\0';\n  param_1[7] = '\0';\n  *(char **)param_1 = param_1 + 8;\n  param_1[8] = '\0';\n  local_34._M_dataplus._M_p = (pointer)&local_34.field_2;\n                    /* try { // try from 0025a7c5 to 0025a7c9 has its CatchHandler @ 0025a991 */\n  __cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n  _M_construct<char_const*>(&local_34);\n  local_44 = (anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n              *)local_34._M_dataplus._M_p;\n  pcVar1 = local_34._M_dataplus._M_p + local_34._M_string_length;\n  local_48 = (in_stack_00000010 - in_stack_0000000c) * 2;\n                    /* try { // try from 0025a7e5 to 0025a7e9 has its CatchHandler @ 0025a935 */\n  pcVar2 = (char *)operator_new__(local_48);\n  while( true ) {\n    uVar4 = _M_transform((collate<char> *)param_2,pcVar2,local_44->_M_local_buf,local_48);\n    if (local_48 <= uVar4) {\n      local_48 = uVar4 + 1;\n      operator_delete__(pcVar2);\n                    /* try { // try from 0025a841 to 0025a845 has its CatchHandler @ 0025a933 */\n      pcVar2 = (char *)operator_new__(local_48);\n      uVar4 = _M_transform((collate<char> *)param_2,pcVar2,local_44->_M_local_buf,local_48);\n    }\n    if (0x7fffffffU - *(int *)(param_1 + 4) < uVar4) break;\n                    /* try { // try from 0025a879 to 0025a932 has its CatchHandler @ 0025a995 */\n    std::string::_M_append((string *)param_1,pcVar2,uVar4);\n    sVar5 = strlen(local_44->_M_local_buf);\n    if (pcVar1 == local_44->_M_local_buf + sVar5) {\n      operator_delete__(pcVar2);\n      if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n           *)local_34._M_dataplus._M_p != &local_34.field_2) {\n        operator_delete(local_34._M_dataplus._M_p);\n      }\n      return param_1;\n    }\n    local_44 = (anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n                *)(local_44->_M_local_buf + sVar5 + 1);\n    uVar4 = *(uint *)(param_1 + 4);\n    pcVar3 = *(char **)param_1;\n    if (param_1 + 8 == pcVar3) {\n      uVar6 = 0xf;\n    }\n    else {\n      uVar6 = *(uint *)(param_1 + 8);\n    }\n    if (uVar6 < uVar4 + 1) {\n      std::string::_M_mutate((string *)param_1,uVar4,0,(char *)0x0,1);\n      pcVar3 = *(char **)param_1;\n    }\n    pcVar3[uVar4] = '\0';\n    *(uint *)(param_1 + 4) = uVar4 + 1;\n    *(undefined1 *)(*(int *)param_1 + 1 + uVar4) = 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_length_error("basic_string::append");\n}" primitive_type (pointer_declarator "* std::collate<char>::do_transform(char *param_1,char *param_2)" * (ERROR "std::collate<char>::" identifier : : identifier < primitive_type > : :) (function_declarator "do_transform(char *param_1,char *param_2)" identifier (parameter_list "(char *param_1,char *param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  char *pcVar2;\n  char *pcVar3;\n  uint uVar4;\n  size_t sVar5;\n  uint uVar6;\n  int in_stack_0000000c;\n  int in_stack_00000010;\n  uint local_48;\n  anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n  *local_44;\n  basic_string<char,_std::char_traits<char>,_std::allocator<char>_> local_34;\n  \n  param_1[4] = '\0';\n  param_1[5] = '\0';\n  param_1[6] = '\0';\n  param_1[7] = '\0';\n  *(char **)param_1 = param_1 + 8;\n  param_1[8] = '\0';\n  local_34._M_dataplus._M_p = (pointer)&local_34.field_2;\n                    /* try { // try from 0025a7c5 to 0025a7c9 has its CatchHandler @ 0025a991 */\n  __cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n  _M_construct<char_const*>(&local_34);\n  local_44 = (anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n              *)local_34._M_dataplus._M_p;\n  pcVar1 = local_34._M_dataplus._M_p + local_34._M_string_length;\n  local_48 = (in_stack_00000010 - in_stack_0000000c) * 2;\n                    /* try { // try from 0025a7e5 to 0025a7e9 has its CatchHandler @ 0025a935 */\n  pcVar2 = (char *)operator_new__(local_48);\n  while( true ) {\n    uVar4 = _M_transform((collate<char> *)param_2,pcVar2,local_44->_M_local_buf,local_48);\n    if (local_48 <= uVar4) {\n      local_48 = uVar4 + 1;\n      operator_delete__(pcVar2);\n                    /* try { // try from 0025a841 to 0025a845 has its CatchHandler @ 0025a933 */\n      pcVar2 = (char *)operator_new__(local_48);\n      uVar4 = _M_transform((collate<char> *)param_2,pcVar2,local_44->_M_local_buf,local_48);\n    }\n    if (0x7fffffffU - *(int *)(param_1 + 4) < uVar4) break;\n                    /* try { // try from 0025a879 to 0025a932 has its CatchHandler @ 0025a995 */\n    std::string::_M_append((string *)param_1,pcVar2,uVar4);\n    sVar5 = strlen(local_44->_M_local_buf);\n    if (pcVar1 == local_44->_M_local_buf + sVar5) {\n      operator_delete__(pcVar2);\n      if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n           *)local_34._M_dataplus._M_p != &local_34.field_2) {\n        operator_delete(local_34._M_dataplus._M_p);\n      }\n      return param_1;\n    }\n    local_44 = (anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n                *)(local_44->_M_local_buf + sVar5 + 1);\n    uVar4 = *(uint *)(param_1 + 4);\n    pcVar3 = *(char **)param_1;\n    if (param_1 + 8 == pcVar3) {\n      uVar6 = 0xf;\n    }\n    else {\n      uVar6 = *(uint *)(param_1 + 8);\n    }\n    if (uVar6 < uVar4 + 1) {\n      std::string::_M_mutate((string *)param_1,uVar4,0,(char *)0x0,1);\n      pcVar3 = *(char **)param_1;\n    }\n    pcVar3[uVar4] = '\0';\n    *(uint *)(param_1 + 4) = uVar4 + 1;\n    *(undefined1 *)(*(int *)param_1 + 1 + uVar4) = 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_length_error("basic_string::append");\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int in_stack_0000000c;" primitive_type identifier ;) (declaration "int in_stack_00000010;" primitive_type identifier ;) (declaration "uint local_48;" type_identifier identifier ;) (ERROR "anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::" (comma_expression "anon_union_16_2_edb7204a_for_basic_string<char,_std" (binary_expression "anon_union_16_2_edb7204a_for_basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char>,_std" (binary_expression "char_traits<char" identifier < identifier) > (ERROR "," ,) identifier) : :) (expression_statement "allocator<char>_>_9\n  *local_44;" (binary_expression "allocator<char>_>_9\n  *local_44" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > (binary_expression "_9\n  *local_44" identifier * identifier)) ;) (ERROR "basic_string<char,_std::char_traits<char>,_std::" (comma_expression "basic_string<char,_std" (binary_expression "basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char>,_std" (binary_expression "char_traits<char" identifier < identifier) > (ERROR "," ,) identifier) : :) (expression_statement "allocator<char>_> local_34;" (binary_expression "allocator<char>_> local_34" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > identifier) ;) (expression_statement "param_1[4] = '\0';" (assignment_expression "param_1[4] = '\0'" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "param_1[5] = '\0';" (assignment_expression "param_1[5] = '\0'" (subscript_expression "param_1[5]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "param_1[6] = '\0';" (assignment_expression "param_1[6] = '\0'" (subscript_expression "param_1[6]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "param_1[7] = '\0';" (assignment_expression "param_1[7] = '\0'" (subscript_expression "param_1[7]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "*(char **)param_1 = param_1 + 8;" (assignment_expression "*(char **)param_1 = param_1 + 8" (pointer_expression "*(char **)param_1" * (cast_expression "(char **)param_1" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (binary_expression "param_1 + 8" identifier + number_literal)) ;) (expression_statement "param_1[8] = '\0';" (assignment_expression "param_1[8] = '\0'" (subscript_expression "param_1[8]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "local_34._M_dataplus._M_p = (pointer)&local_34.field_2;" (assignment_expression "local_34._M_dataplus._M_p = (pointer)&local_34.field_2" (field_expression "local_34._M_dataplus._M_p" (field_expression "local_34._M_dataplus" identifier . field_identifier) . field_identifier) = (binary_expression "(pointer)&local_34.field_2" (parenthesized_expression "(pointer)" ( identifier )) & (field_expression "local_34.field_2" identifier . field_identifier))) ;) comment (ERROR "__cxx11::basic_string<char,_std::char_traits<char>,_std::" (comma_expression "__cxx11::basic_string<char,_std::char_traits<char>,_std" identifier (ERROR "::basic_string<char,_std::char_traits<char>" : : (comma_expression "basic_string<char,_std" (binary_expression "basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char" identifier < identifier) >) , identifier) : :) (expression_statement "allocator<char>_>::\n  _M_construct<char_const*>(&local_34);" (binary_expression "allocator<char>_>::\n  _M_construct<char_const*>(&local_34)" (binary_expression "allocator<char>_>::\n  _M_construct<char_const" (binary_expression "allocator<char>_>::\n  _M_construct" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > (ERROR "::" : :) identifier) < identifier) (ERROR "*" *) > (parenthesized_expression "(&local_34)" ( (pointer_expression "&local_34" & identifier) ))) ;) (expression_statement "local_44 = (anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n              *)local_34._M_dataplus._M_p;\n  pcVar1 = local_34._M_dataplus._M_p + local_34._M_string_length;\n  local_48 = (in_stack_00000010 - in_stack_0000000c) * 2;" (assignment_expression "local_44 = (anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n              *)local_34._M_dataplus._M_p;\n  pcVar1 = local_34._M_dataplus._M_p + local_34._M_string_length;\n  local_48 = (in_stack_00000010 - in_stack_0000000c) * 2" identifier = (parenthesized_expression "(anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n              *)local_34._M_dataplus._M_p;\n  pcVar1 = local_34._M_dataplus._M_p + local_34._M_string_length;\n  local_48 = (in_stack_00000010 - in_stack_0000000c) * 2" ( (ERROR "anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n              *)local_34._M_dataplus._M_p;\n  pcVar1 = local_34._M_dataplus._M_p + local_34._M_string_length;" (comma_expression "anon_union_16_2_edb7204a_for_basic_string<char,_std" (binary_expression "anon_union_16_2_edb7204a_for_basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char>,_std" (binary_expression "char_traits<char" identifier < identifier) > (ERROR "," ,) identifier) : : (binary_expression "allocator<char>_>_9\n              *)local_34._M_dataplus._M_p" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > (binary_expression "_9\n              *)local_34._M_dataplus._M_p" identifier * (ERROR ")" )) (field_expression "local_34._M_dataplus._M_p" (field_expression "local_34._M_dataplus" identifier . field_identifier) . field_identifier))) ; (assignment_expression "pcVar1 = local_34._M_dataplus._M_p + local_34._M_string_length" identifier = (binary_expression "local_34._M_dataplus._M_p + local_34._M_string_length" (field_expression "local_34._M_dataplus._M_p" (field_expression "local_34._M_dataplus" identifier . field_identifier) . field_identifier) + (field_expression "local_34._M_string_length" identifier . field_identifier))) ;) (assignment_expression "local_48 = (in_stack_00000010 - in_stack_0000000c) * 2" identifier = (binary_expression "(in_stack_00000010 - in_stack_0000000c) * 2" (parenthesized_expression "(in_stack_00000010 - in_stack_0000000c)" ( (binary_expression "in_stack_00000010 - in_stack_0000000c" identifier - identifier) )) * number_literal)) ))) ;) comment (expression_statement "pcVar2 = (char *)operator_new__(local_48);" (assignment_expression "pcVar2 = (char *)operator_new__(local_48)" identifier = (cast_expression "(char *)operator_new__(local_48)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new__(local_48)" identifier (argument_list "(local_48)" ( identifier ))))) ;) (while_statement "while( true ) {\n    uVar4 = _M_transform((collate<char> *)param_2,pcVar2,local_44->_M_local_buf,local_48);\n    if (local_48 <= uVar4) {\n      local_48 = uVar4 + 1;\n      operator_delete__(pcVar2);\n                    /* try { // try from 0025a841 to 0025a845 has its CatchHandler @ 0025a933 */\n      pcVar2 = (char *)operator_new__(local_48);\n      uVar4 = _M_transform((collate<char> *)param_2,pcVar2,local_44->_M_local_buf,local_48);\n    }\n    if (0x7fffffffU - *(int *)(param_1 + 4) < uVar4) break;\n                    /* try { // try from 0025a879 to 0025a932 has its CatchHandler @ 0025a995 */\n    std::string::_M_append((string *)param_1,pcVar2,uVar4);\n    sVar5 = strlen(local_44->_M_local_buf);\n    if (pcVar1 == local_44->_M_local_buf + sVar5) {\n      operator_delete__(pcVar2);\n      if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n           *)local_34._M_dataplus._M_p != &local_34.field_2) {\n        operator_delete(local_34._M_dataplus._M_p);\n      }\n      return param_1;\n    }\n    local_44 = (anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n                *)(local_44->_M_local_buf + sVar5 + 1);\n    uVar4 = *(uint *)(param_1 + 4);\n    pcVar3 = *(char **)param_1;\n    if (param_1 + 8 == pcVar3) {\n      uVar6 = 0xf;\n    }\n    else {\n      uVar6 = *(uint *)(param_1 + 8);\n    }\n    if (uVar6 < uVar4 + 1) {\n      std::string::_M_mutate((string *)param_1,uVar4,0,(char *)0x0,1);\n      pcVar3 = *(char **)param_1;\n    }\n    pcVar3[uVar4] = '\0';\n    *(uint *)(param_1 + 4) = uVar4 + 1;\n    *(undefined1 *)(*(int *)param_1 + 1 + uVar4) = 0;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    uVar4 = _M_transform((collate<char> *)param_2,pcVar2,local_44->_M_local_buf,local_48);\n    if (local_48 <= uVar4) {\n      local_48 = uVar4 + 1;\n      operator_delete__(pcVar2);\n                    /* try { // try from 0025a841 to 0025a845 has its CatchHandler @ 0025a933 */\n      pcVar2 = (char *)operator_new__(local_48);\n      uVar4 = _M_transform((collate<char> *)param_2,pcVar2,local_44->_M_local_buf,local_48);\n    }\n    if (0x7fffffffU - *(int *)(param_1 + 4) < uVar4) break;\n                    /* try { // try from 0025a879 to 0025a932 has its CatchHandler @ 0025a995 */\n    std::string::_M_append((string *)param_1,pcVar2,uVar4);\n    sVar5 = strlen(local_44->_M_local_buf);\n    if (pcVar1 == local_44->_M_local_buf + sVar5) {\n      operator_delete__(pcVar2);\n      if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n           *)local_34._M_dataplus._M_p != &local_34.field_2) {\n        operator_delete(local_34._M_dataplus._M_p);\n      }\n      return param_1;\n    }\n    local_44 = (anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n                *)(local_44->_M_local_buf + sVar5 + 1);\n    uVar4 = *(uint *)(param_1 + 4);\n    pcVar3 = *(char **)param_1;\n    if (param_1 + 8 == pcVar3) {\n      uVar6 = 0xf;\n    }\n    else {\n      uVar6 = *(uint *)(param_1 + 8);\n    }\n    if (uVar6 < uVar4 + 1) {\n      std::string::_M_mutate((string *)param_1,uVar4,0,(char *)0x0,1);\n      pcVar3 = *(char **)param_1;\n    }\n    pcVar3[uVar4] = '\0';\n    *(uint *)(param_1 + 4) = uVar4 + 1;\n    *(undefined1 *)(*(int *)param_1 + 1 + uVar4) = 0;\n  }" { (expression_statement "uVar4 = _M_transform((collate<char> *)param_2,pcVar2,local_44->_M_local_buf,local_48);" (assignment_expression "uVar4 = _M_transform((collate<char> *)param_2,pcVar2,local_44->_M_local_buf,local_48)" identifier = (call_expression "_M_transform((collate<char> *)param_2,pcVar2,local_44->_M_local_buf,local_48)" identifier (argument_list "((collate<char> *)param_2,pcVar2,local_44->_M_local_buf,local_48)" ( (parenthesized_expression "(collate<char> *)param_2,pcVar2,local_44->_M_local_buf,local_48)" ( (comma_expression "collate<char> *)param_2,pcVar2,local_44->_M_local_buf,local_48" (binary_expression "collate<char> *)param_2" (binary_expression "collate<char" identifier < identifier) > (pointer_expression "*)param_2" * (ERROR ")" )) identifier)) , (comma_expression "pcVar2,local_44->_M_local_buf,local_48" identifier , (comma_expression "local_44->_M_local_buf,local_48" (field_expression "local_44->_M_local_buf" identifier -> field_identifier) , identifier))) )) )))) ;) (if_statement "if (local_48 <= uVar4) {\n      local_48 = uVar4 + 1;\n      operator_delete__(pcVar2);\n                    /* try { // try from 0025a841 to 0025a845 has its CatchHandler @ 0025a933 */\n      pcVar2 = (char *)operator_new__(local_48);\n      uVar4 = _M_transform((collate<char> *)param_2,pcVar2,local_44->_M_local_buf,local_48);\n    }" if (parenthesized_expression "(local_48 <= uVar4)" ( (binary_expression "local_48 <= uVar4" identifier <= identifier) )) (compound_statement "{\n      local_48 = uVar4 + 1;\n      operator_delete__(pcVar2);\n                    /* try { // try from 0025a841 to 0025a845 has its CatchHandler @ 0025a933 */\n      pcVar2 = (char *)operator_new__(local_48);\n      uVar4 = _M_transform((collate<char> *)param_2,pcVar2,local_44->_M_local_buf,local_48);\n    }" { (expression_statement "local_48 = uVar4 + 1;" (assignment_expression "local_48 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (expression_statement "operator_delete__(pcVar2);" (call_expression "operator_delete__(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))) ;) comment (expression_statement "pcVar2 = (char *)operator_new__(local_48);" (assignment_expression "pcVar2 = (char *)operator_new__(local_48)" identifier = (cast_expression "(char *)operator_new__(local_48)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new__(local_48)" identifier (argument_list "(local_48)" ( identifier ))))) ;) (expression_statement "uVar4 = _M_transform((collate<char> *)param_2,pcVar2,local_44->_M_local_buf,local_48);" (assignment_expression "uVar4 = _M_transform((collate<char> *)param_2,pcVar2,local_44->_M_local_buf,local_48)" identifier = (call_expression "_M_transform((collate<char> *)param_2,pcVar2,local_44->_M_local_buf,local_48)" identifier (argument_list "((collate<char> *)param_2,pcVar2,local_44->_M_local_buf,local_48)" ( (parenthesized_expression "(collate<char> *)param_2,pcVar2,local_44->_M_local_buf,local_48)" ( (comma_expression "collate<char> *)param_2,pcVar2,local_44->_M_local_buf,local_48" (binary_expression "collate<char> *)param_2" (binary_expression "collate<char" identifier < identifier) > (pointer_expression "*)param_2" * (ERROR ")" )) identifier)) , (comma_expression "pcVar2,local_44->_M_local_buf,local_48" identifier , (comma_expression "local_44->_M_local_buf,local_48" (field_expression "local_44->_M_local_buf" identifier -> field_identifier) , identifier))) )) )))) ;) })) (if_statement "if (0x7fffffffU - *(int *)(param_1 + 4) < uVar4) break;" if (parenthesized_expression "(0x7fffffffU - *(int *)(param_1 + 4) < uVar4)" ( (binary_expression "0x7fffffffU - *(int *)(param_1 + 4) < uVar4" (binary_expression "0x7fffffffU - *(int *)(param_1 + 4)" number_literal - (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) < identifier) )) (break_statement "break;" break ;)) comment (labeled_statement "std::string::_M_append((string *)param_1,pcVar2,uVar4);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_append((string *)param_1,pcVar2,uVar4);" statement_identifier : (ERROR ":" :) (expression_statement "_M_append((string *)param_1,pcVar2,uVar4);" (call_expression "_M_append((string *)param_1,pcVar2,uVar4)" identifier (argument_list "((string *)param_1,pcVar2,uVar4)" ( (cast_expression "(string *)param_1" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier ))) ;))) (expression_statement "sVar5 = strlen(local_44->_M_local_buf);" (assignment_expression "sVar5 = strlen(local_44->_M_local_buf)" identifier = (call_expression "strlen(local_44->_M_local_buf)" identifier (argument_list "(local_44->_M_local_buf)" ( (field_expression "local_44->_M_local_buf" identifier -> field_identifier) )))) ;) (if_statement "if (pcVar1 == local_44->_M_local_buf + sVar5) {\n      operator_delete__(pcVar2);\n      if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n           *)local_34._M_dataplus._M_p != &local_34.field_2) {\n        operator_delete(local_34._M_dataplus._M_p);\n      }\n      return param_1;\n    }" if (parenthesized_expression "(pcVar1 == local_44->_M_local_buf + sVar5)" ( (binary_expression "pcVar1 == local_44->_M_local_buf + sVar5" identifier == (binary_expression "local_44->_M_local_buf + sVar5" (field_expression "local_44->_M_local_buf" identifier -> field_identifier) + identifier)) )) (compound_statement "{\n      operator_delete__(pcVar2);\n      if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n           *)local_34._M_dataplus._M_p != &local_34.field_2) {\n        operator_delete(local_34._M_dataplus._M_p);\n      }\n      return param_1;\n    }" { (expression_statement "operator_delete__(pcVar2);" (call_expression "operator_delete__(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))) ;) (if_statement "if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n           *)local_34._M_dataplus._M_p != &local_34.field_2) {\n        operator_delete(local_34._M_dataplus._M_p);\n      }" if (parenthesized_expression "((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n           *)local_34._M_dataplus._M_p != &local_34.field_2)" ( (parenthesized_expression "(anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n           *)local_34._M_dataplus._M_p != &local_34.field_2)" ( (ERROR "anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::" (comma_expression "anon_union_16_2_edb7204a_for_basic_string<char,_std" (binary_expression "anon_union_16_2_edb7204a_for_basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char>,_std" (binary_expression "char_traits<char" identifier < identifier) > (ERROR "," ,) identifier) : :) (binary_expression "allocator<char>_>_9\n           *)local_34._M_dataplus._M_p != &local_34.field_2" (binary_expression "allocator<char>_>_9\n           *)local_34._M_dataplus._M_p" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > (binary_expression "_9\n           *)local_34._M_dataplus._M_p" identifier * (ERROR ")" )) (field_expression "local_34._M_dataplus._M_p" (field_expression "local_34._M_dataplus" identifier . field_identifier) . field_identifier))) != (pointer_expression "&local_34.field_2" & (field_expression "local_34.field_2" identifier . field_identifier))) )) )) (compound_statement "{\n        operator_delete(local_34._M_dataplus._M_p);\n      }" { (expression_statement "operator_delete(local_34._M_dataplus._M_p);" (call_expression "operator_delete(local_34._M_dataplus._M_p)" identifier (argument_list "(local_34._M_dataplus._M_p)" ( (field_expression "local_34._M_dataplus._M_p" (field_expression "local_34._M_dataplus" identifier . field_identifier) . field_identifier) ))) ;) })) (return_statement "return param_1;" return identifier ;) })) (expression_statement "local_44 = (anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n                *)(local_44->_M_local_buf + sVar5 + 1);" (assignment_expression "local_44 = (anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n                *)(local_44->_M_local_buf + sVar5 + 1)" identifier = (call_expression "(anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n                *)(local_44->_M_local_buf + sVar5 + 1)" (parenthesized_expression "(anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n                *)" ( (ERROR "anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::" (comma_expression "anon_union_16_2_edb7204a_for_basic_string<char,_std" (binary_expression "anon_union_16_2_edb7204a_for_basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char>,_std" (binary_expression "char_traits<char" identifier < identifier) > (ERROR "," ,) identifier) : :) (binary_expression "allocator<char>_>_9" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > identifier) (ERROR "*" *) )) (argument_list "(local_44->_M_local_buf + sVar5 + 1)" ( (binary_expression "local_44->_M_local_buf + sVar5 + 1" (binary_expression "local_44->_M_local_buf + sVar5" (field_expression "local_44->_M_local_buf" identifier -> field_identifier) + identifier) + number_literal) )))) ;) (expression_statement "uVar4 = *(uint *)(param_1 + 4);" (assignment_expression "uVar4 = *(uint *)(param_1 + 4)" identifier = (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "pcVar3 = *(char **)param_1;" (assignment_expression "pcVar3 = *(char **)param_1" identifier = (pointer_expression "*(char **)param_1" * (cast_expression "(char **)param_1" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (param_1 + 8 == pcVar3) {\n      uVar6 = 0xf;\n    }\n    else {\n      uVar6 = *(uint *)(param_1 + 8);\n    }" if (parenthesized_expression "(param_1 + 8 == pcVar3)" ( (binary_expression "param_1 + 8 == pcVar3" (binary_expression "param_1 + 8" identifier + number_literal) == identifier) )) (compound_statement "{\n      uVar6 = 0xf;\n    }" { (expression_statement "uVar6 = 0xf;" (assignment_expression "uVar6 = 0xf" identifier = number_literal) ;) }) (else_clause "else {\n      uVar6 = *(uint *)(param_1 + 8);\n    }" else (compound_statement "{\n      uVar6 = *(uint *)(param_1 + 8);\n    }" { (expression_statement "uVar6 = *(uint *)(param_1 + 8);" (assignment_expression "uVar6 = *(uint *)(param_1 + 8)" identifier = (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) }))) (if_statement "if (uVar6 < uVar4 + 1) {\n      std::string::_M_mutate((string *)param_1,uVar4,0,(char *)0x0,1);\n      pcVar3 = *(char **)param_1;\n    }" if (parenthesized_expression "(uVar6 < uVar4 + 1)" ( (binary_expression "uVar6 < uVar4 + 1" identifier < (binary_expression "uVar4 + 1" identifier + number_literal)) )) (compound_statement "{\n      std::string::_M_mutate((string *)param_1,uVar4,0,(char *)0x0,1);\n      pcVar3 = *(char **)param_1;\n    }" { (labeled_statement "std::string::_M_mutate((string *)param_1,uVar4,0,(char *)0x0,1);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_mutate((string *)param_1,uVar4,0,(char *)0x0,1);" statement_identifier : (ERROR ":" :) (expression_statement "_M_mutate((string *)param_1,uVar4,0,(char *)0x0,1);" (call_expression "_M_mutate((string *)param_1,uVar4,0,(char *)0x0,1)" identifier (argument_list "((string *)param_1,uVar4,0,(char *)0x0,1)" ( (cast_expression "(string *)param_1" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , number_literal , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , number_literal ))) ;))) (expression_statement "pcVar3 = *(char **)param_1;" (assignment_expression "pcVar3 = *(char **)param_1" identifier = (pointer_expression "*(char **)param_1" * (cast_expression "(char **)param_1" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) })) (expression_statement "pcVar3[uVar4] = '\0';" (assignment_expression "pcVar3[uVar4] = '\0'" (subscript_expression "pcVar3[uVar4]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "*(uint *)(param_1 + 4) = uVar4 + 1;" (assignment_expression "*(uint *)(param_1 + 4) = uVar4 + 1" (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(*(int *)param_1 + 1 + uVar4) = 0;" (assignment_expression "*(undefined1 *)(*(int *)param_1 + 1 + uVar4) = 0" (pointer_expression "*(undefined1 *)(*(int *)param_1 + 1 + uVar4)" * (cast_expression "(undefined1 *)(*(int *)param_1 + 1 + uVar4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + 1 + uVar4)" ( (binary_expression "*(int *)param_1 + 1 + uVar4" (binary_expression "*(int *)param_1 + 1" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) + identifier) )))) = number_literal) ;) })) comment (expression_statement "__throw_length_error("basic_string::append");" (call_expression "__throw_length_error("basic_string::append")" identifier (argument_list "("basic_string::append")" ( (string_literal ""basic_string::append"" " string_content ") ))) ;) })))
(translation_unit "int * FUN_0025a780(int *param_1,undefined4 param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  uint uVar5;\n  size_t sVar6;\n  uint local_48;\n  char *local_44;\n  char *local_34;\n  int local_30;\n  char local_2c [28];\n  \n  param_1[1] = 0;\n  *param_1 = (int)(param_1 + 2);\n  *(undefined1 *)(param_1 + 2) = 0;\n  local_34 = local_2c;\n                    \n  FUN_00050e40(&local_34,param_3,param_4,0);\n  local_44 = local_34;\n  pcVar2 = local_34 + local_30;\n  local_48 = (param_4 - param_3) * 2;\n                    \n  uVar3 = FUN_001e5180(local_48);\n  while( true ) {\n    uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);\n    if (local_48 <= uVar5) {\n      local_48 = uVar5 + 1;\n      FUN_001e6d50(uVar3);\n                    \n      uVar3 = FUN_001e5180(local_48);\n      uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);\n    }\n    if (0x7fffffffU - param_1[1] < uVar5) break;\n                    \n    FUN_001f05c0(param_1,uVar3,uVar5);\n    sVar6 = strlen(local_44);\n    if (pcVar2 == local_44 + sVar6) {\n      FUN_001e6d50(uVar3);\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      return param_1;\n    }\n    local_44 = local_44 + sVar6 + 1;\n    iVar1 = param_1[1];\n    piVar4 = (int *)*param_1;\n    if (param_1 + 2 == piVar4) {\n      uVar5 = 0xf;\n    }\n    else {\n      uVar5 = param_1[2];\n    }\n    if (uVar5 < iVar1 + 1U) {\n      FUN_001eeaa0(param_1,iVar1,0,0,1);\n      piVar4 = (int *)*param_1;\n    }\n    *(undefined1 *)((int)piVar4 + iVar1) = 0;\n    param_1[1] = iVar1 + 1U;\n    *(undefined1 *)(*param_1 + 1 + iVar1) = 0;\n  }\n                    \n  FUN_0022c7a0("basic_string::append");\n}\n\n" (function_definition "int * FUN_0025a780(int *param_1,undefined4 param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  uint uVar5;\n  size_t sVar6;\n  uint local_48;\n  char *local_44;\n  char *local_34;\n  int local_30;\n  char local_2c [28];\n  \n  param_1[1] = 0;\n  *param_1 = (int)(param_1 + 2);\n  *(undefined1 *)(param_1 + 2) = 0;\n  local_34 = local_2c;\n                    \n  FUN_00050e40(&local_34,param_3,param_4,0);\n  local_44 = local_34;\n  pcVar2 = local_34 + local_30;\n  local_48 = (param_4 - param_3) * 2;\n                    \n  uVar3 = FUN_001e5180(local_48);\n  while( true ) {\n    uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);\n    if (local_48 <= uVar5) {\n      local_48 = uVar5 + 1;\n      FUN_001e6d50(uVar3);\n                    \n      uVar3 = FUN_001e5180(local_48);\n      uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);\n    }\n    if (0x7fffffffU - param_1[1] < uVar5) break;\n                    \n    FUN_001f05c0(param_1,uVar3,uVar5);\n    sVar6 = strlen(local_44);\n    if (pcVar2 == local_44 + sVar6) {\n      FUN_001e6d50(uVar3);\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      return param_1;\n    }\n    local_44 = local_44 + sVar6 + 1;\n    iVar1 = param_1[1];\n    piVar4 = (int *)*param_1;\n    if (param_1 + 2 == piVar4) {\n      uVar5 = 0xf;\n    }\n    else {\n      uVar5 = param_1[2];\n    }\n    if (uVar5 < iVar1 + 1U) {\n      FUN_001eeaa0(param_1,iVar1,0,0,1);\n      piVar4 = (int *)*param_1;\n    }\n    *(undefined1 *)((int)piVar4 + iVar1) = 0;\n    param_1[1] = iVar1 + 1U;\n    *(undefined1 *)(*param_1 + 1 + iVar1) = 0;\n  }\n                    \n  FUN_0022c7a0("basic_string::append");\n}" primitive_type (pointer_declarator "* FUN_0025a780(int *param_1,undefined4 param_2,int param_3,int param_4)" * (function_declarator "FUN_0025a780(int *param_1,undefined4 param_2,int param_3,int param_4)" identifier (parameter_list "(int *param_1,undefined4 param_2,int param_3,int param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  uint uVar5;\n  size_t sVar6;\n  uint local_48;\n  char *local_44;\n  char *local_34;\n  int local_30;\n  char local_2c [28];\n  \n  param_1[1] = 0;\n  *param_1 = (int)(param_1 + 2);\n  *(undefined1 *)(param_1 + 2) = 0;\n  local_34 = local_2c;\n                    \n  FUN_00050e40(&local_34,param_3,param_4,0);\n  local_44 = local_34;\n  pcVar2 = local_34 + local_30;\n  local_48 = (param_4 - param_3) * 2;\n                    \n  uVar3 = FUN_001e5180(local_48);\n  while( true ) {\n    uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);\n    if (local_48 <= uVar5) {\n      local_48 = uVar5 + 1;\n      FUN_001e6d50(uVar3);\n                    \n      uVar3 = FUN_001e5180(local_48);\n      uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);\n    }\n    if (0x7fffffffU - param_1[1] < uVar5) break;\n                    \n    FUN_001f05c0(param_1,uVar3,uVar5);\n    sVar6 = strlen(local_44);\n    if (pcVar2 == local_44 + sVar6) {\n      FUN_001e6d50(uVar3);\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      return param_1;\n    }\n    local_44 = local_44 + sVar6 + 1;\n    iVar1 = param_1[1];\n    piVar4 = (int *)*param_1;\n    if (param_1 + 2 == piVar4) {\n      uVar5 = 0xf;\n    }\n    else {\n      uVar5 = param_1[2];\n    }\n    if (uVar5 < iVar1 + 1U) {\n      FUN_001eeaa0(param_1,iVar1,0,0,1);\n      piVar4 = (int *)*param_1;\n    }\n    *(undefined1 *)((int)piVar4 + iVar1) = 0;\n    param_1[1] = iVar1 + 1U;\n    *(undefined1 *)(*param_1 + 1 + iVar1) = 0;\n  }\n                    \n  FUN_0022c7a0("basic_string::append");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "uint local_48;" type_identifier identifier ;) (declaration "char *local_44;" primitive_type (pointer_declarator "*local_44" * identifier) ;) (declaration "char *local_34;" primitive_type (pointer_declarator "*local_34" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "char local_2c [28];" primitive_type (array_declarator "local_2c [28]" identifier [ number_literal ]) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = (int)(param_1 + 2);" (assignment_expression "*param_1 = (int)(param_1 + 2)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(param_1 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ;) (expression_statement "*(undefined1 *)(param_1 + 2) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 2) = 0" (pointer_expression "*(undefined1 *)(param_1 + 2)" * (cast_expression "(undefined1 *)(param_1 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "local_34 = local_2c;" (assignment_expression "local_34 = local_2c" identifier = identifier) ;) (expression_statement "FUN_00050e40(&local_34,param_3,param_4,0);" (call_expression "FUN_00050e40(&local_34,param_3,param_4,0)" identifier (argument_list "(&local_34,param_3,param_4,0)" ( (pointer_expression "&local_34" & identifier) , identifier , identifier , number_literal ))) ;) (expression_statement "local_44 = local_34;" (assignment_expression "local_44 = local_34" identifier = identifier) ;) (expression_statement "pcVar2 = local_34 + local_30;" (assignment_expression "pcVar2 = local_34 + local_30" identifier = (binary_expression "local_34 + local_30" identifier + identifier)) ;) (expression_statement "local_48 = (param_4 - param_3) * 2;" (assignment_expression "local_48 = (param_4 - param_3) * 2" identifier = (binary_expression "(param_4 - param_3) * 2" (parenthesized_expression "(param_4 - param_3)" ( (binary_expression "param_4 - param_3" identifier - identifier) )) * number_literal)) ;) (expression_statement "uVar3 = FUN_001e5180(local_48);" (assignment_expression "uVar3 = FUN_001e5180(local_48)" identifier = (call_expression "FUN_001e5180(local_48)" identifier (argument_list "(local_48)" ( identifier )))) ;) (while_statement "while( true ) {\n    uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);\n    if (local_48 <= uVar5) {\n      local_48 = uVar5 + 1;\n      FUN_001e6d50(uVar3);\n                    \n      uVar3 = FUN_001e5180(local_48);\n      uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);\n    }\n    if (0x7fffffffU - param_1[1] < uVar5) break;\n                    \n    FUN_001f05c0(param_1,uVar3,uVar5);\n    sVar6 = strlen(local_44);\n    if (pcVar2 == local_44 + sVar6) {\n      FUN_001e6d50(uVar3);\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      return param_1;\n    }\n    local_44 = local_44 + sVar6 + 1;\n    iVar1 = param_1[1];\n    piVar4 = (int *)*param_1;\n    if (param_1 + 2 == piVar4) {\n      uVar5 = 0xf;\n    }\n    else {\n      uVar5 = param_1[2];\n    }\n    if (uVar5 < iVar1 + 1U) {\n      FUN_001eeaa0(param_1,iVar1,0,0,1);\n      piVar4 = (int *)*param_1;\n    }\n    *(undefined1 *)((int)piVar4 + iVar1) = 0;\n    param_1[1] = iVar1 + 1U;\n    *(undefined1 *)(*param_1 + 1 + iVar1) = 0;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);\n    if (local_48 <= uVar5) {\n      local_48 = uVar5 + 1;\n      FUN_001e6d50(uVar3);\n                    \n      uVar3 = FUN_001e5180(local_48);\n      uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);\n    }\n    if (0x7fffffffU - param_1[1] < uVar5) break;\n                    \n    FUN_001f05c0(param_1,uVar3,uVar5);\n    sVar6 = strlen(local_44);\n    if (pcVar2 == local_44 + sVar6) {\n      FUN_001e6d50(uVar3);\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      return param_1;\n    }\n    local_44 = local_44 + sVar6 + 1;\n    iVar1 = param_1[1];\n    piVar4 = (int *)*param_1;\n    if (param_1 + 2 == piVar4) {\n      uVar5 = 0xf;\n    }\n    else {\n      uVar5 = param_1[2];\n    }\n    if (uVar5 < iVar1 + 1U) {\n      FUN_001eeaa0(param_1,iVar1,0,0,1);\n      piVar4 = (int *)*param_1;\n    }\n    *(undefined1 *)((int)piVar4 + iVar1) = 0;\n    param_1[1] = iVar1 + 1U;\n    *(undefined1 *)(*param_1 + 1 + iVar1) = 0;\n  }" { (expression_statement "uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);" (assignment_expression "uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48)" identifier = (call_expression "FUN_0027aec0(param_2,uVar3,local_44,local_48)" identifier (argument_list "(param_2,uVar3,local_44,local_48)" ( identifier , identifier , identifier , identifier )))) ;) (if_statement "if (local_48 <= uVar5) {\n      local_48 = uVar5 + 1;\n      FUN_001e6d50(uVar3);\n                    \n      uVar3 = FUN_001e5180(local_48);\n      uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);\n    }" if (parenthesized_expression "(local_48 <= uVar5)" ( (binary_expression "local_48 <= uVar5" identifier <= identifier) )) (compound_statement "{\n      local_48 = uVar5 + 1;\n      FUN_001e6d50(uVar3);\n                    \n      uVar3 = FUN_001e5180(local_48);\n      uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);\n    }" { (expression_statement "local_48 = uVar5 + 1;" (assignment_expression "local_48 = uVar5 + 1" identifier = (binary_expression "uVar5 + 1" identifier + number_literal)) ;) (expression_statement "FUN_001e6d50(uVar3);" (call_expression "FUN_001e6d50(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (expression_statement "uVar3 = FUN_001e5180(local_48);" (assignment_expression "uVar3 = FUN_001e5180(local_48)" identifier = (call_expression "FUN_001e5180(local_48)" identifier (argument_list "(local_48)" ( identifier )))) ;) (expression_statement "uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);" (assignment_expression "uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48)" identifier = (call_expression "FUN_0027aec0(param_2,uVar3,local_44,local_48)" identifier (argument_list "(param_2,uVar3,local_44,local_48)" ( identifier , identifier , identifier , identifier )))) ;) })) (if_statement "if (0x7fffffffU - param_1[1] < uVar5) break;" if (parenthesized_expression "(0x7fffffffU - param_1[1] < uVar5)" ( (binary_expression "0x7fffffffU - param_1[1] < uVar5" (binary_expression "0x7fffffffU - param_1[1]" number_literal - (subscript_expression "param_1[1]" identifier [ number_literal ])) < identifier) )) (break_statement "break;" break ;)) (expression_statement "FUN_001f05c0(param_1,uVar3,uVar5);" (call_expression "FUN_001f05c0(param_1,uVar3,uVar5)" identifier (argument_list "(param_1,uVar3,uVar5)" ( identifier , identifier , identifier ))) ;) (expression_statement "sVar6 = strlen(local_44);" (assignment_expression "sVar6 = strlen(local_44)" identifier = (call_expression "strlen(local_44)" identifier (argument_list "(local_44)" ( identifier )))) ;) (if_statement "if (pcVar2 == local_44 + sVar6) {\n      FUN_001e6d50(uVar3);\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      return param_1;\n    }" if (parenthesized_expression "(pcVar2 == local_44 + sVar6)" ( (binary_expression "pcVar2 == local_44 + sVar6" identifier == (binary_expression "local_44 + sVar6" identifier + identifier)) )) (compound_statement "{\n      FUN_001e6d50(uVar3);\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      return param_1;\n    }" { (expression_statement "FUN_001e6d50(uVar3);" (call_expression "FUN_001e6d50(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (if_statement "if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }" if (parenthesized_expression "(local_34 != local_2c)" ( (binary_expression "local_34 != local_2c" identifier != identifier) )) (compound_statement "{\n        FUN_001e6db0(local_34);\n      }" { (expression_statement "FUN_001e6db0(local_34);" (call_expression "FUN_001e6db0(local_34)" identifier (argument_list "(local_34)" ( identifier ))) ;) })) (return_statement "return param_1;" return identifier ;) })) (expression_statement "local_44 = local_44 + sVar6 + 1;" (assignment_expression "local_44 = local_44 + sVar6 + 1" identifier = (binary_expression "local_44 + sVar6 + 1" (binary_expression "local_44 + sVar6" identifier + identifier) + number_literal)) ;) (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "piVar4 = (int *)*param_1;" (assignment_expression "piVar4 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (param_1 + 2 == piVar4) {\n      uVar5 = 0xf;\n    }\n    else {\n      uVar5 = param_1[2];\n    }" if (parenthesized_expression "(param_1 + 2 == piVar4)" ( (binary_expression "param_1 + 2 == piVar4" (binary_expression "param_1 + 2" identifier + number_literal) == identifier) )) (compound_statement "{\n      uVar5 = 0xf;\n    }" { (expression_statement "uVar5 = 0xf;" (assignment_expression "uVar5 = 0xf" identifier = number_literal) ;) }) (else_clause "else {\n      uVar5 = param_1[2];\n    }" else (compound_statement "{\n      uVar5 = param_1[2];\n    }" { (expression_statement "uVar5 = param_1[2];" (assignment_expression "uVar5 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) }))) (if_statement "if (uVar5 < iVar1 + 1U) {\n      FUN_001eeaa0(param_1,iVar1,0,0,1);\n      piVar4 = (int *)*param_1;\n    }" if (parenthesized_expression "(uVar5 < iVar1 + 1U)" ( (binary_expression "uVar5 < iVar1 + 1U" identifier < (binary_expression "iVar1 + 1U" identifier + number_literal)) )) (compound_statement "{\n      FUN_001eeaa0(param_1,iVar1,0,0,1);\n      piVar4 = (int *)*param_1;\n    }" { (expression_statement "FUN_001eeaa0(param_1,iVar1,0,0,1);" (call_expression "FUN_001eeaa0(param_1,iVar1,0,0,1)" identifier (argument_list "(param_1,iVar1,0,0,1)" ( identifier , identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "piVar4 = (int *)*param_1;" (assignment_expression "piVar4 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) })) (expression_statement "*(undefined1 *)((int)piVar4 + iVar1) = 0;" (assignment_expression "*(undefined1 *)((int)piVar4 + iVar1) = 0" (pointer_expression "*(undefined1 *)((int)piVar4 + iVar1)" * (cast_expression "(undefined1 *)((int)piVar4 + iVar1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar4 + iVar1)" ( (binary_expression "(int)piVar4 + iVar1" (cast_expression "(int)piVar4" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "param_1[1] = iVar1 + 1U;" (assignment_expression "param_1[1] = iVar1 + 1U" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar1 + 1U" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(*param_1 + 1 + iVar1) = 0;" (assignment_expression "*(undefined1 *)(*param_1 + 1 + iVar1) = 0" (pointer_expression "*(undefined1 *)(*param_1 + 1 + iVar1)" * (cast_expression "(undefined1 *)(*param_1 + 1 + iVar1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 1 + iVar1)" ( (binary_expression "*param_1 + 1 + iVar1" (binary_expression "*param_1 + 1" (pointer_expression "*param_1" * identifier) + number_literal) + identifier) )))) = number_literal) ;) })) (expression_statement "FUN_0022c7a0("basic_string::append");" (call_expression "FUN_0022c7a0("basic_string::append")" identifier (argument_list "("basic_string::append")" ( (string_literal ""basic_string::append"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE 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 ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) * LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT )))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression LIT - (subscript_expression IDENT [ LIT ])) < IDENT) )) (break_statement break ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (binary_expression IDENT + IDENT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * IDENT) + LIT) + IDENT) )))) = LIT) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })))
(function_definition "int * FUN_0025a780(int *param_1,undefined4 param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  uint uVar5;\n  size_t sVar6;\n  uint local_48;\n  char *local_44;\n  char *local_34;\n  int local_30;\n  char local_2c [28];\n  \n  param_1[1] = 0;\n  *param_1 = (int)(param_1 + 2);\n  *(undefined1 *)(param_1 + 2) = 0;\n  local_34 = local_2c;\n                    \n  FUN_00050e40(&local_34,param_3,param_4,0);\n  local_44 = local_34;\n  pcVar2 = local_34 + local_30;\n  local_48 = (param_4 - param_3) * 2;\n                    \n  uVar3 = FUN_001e5180(local_48);\n  while( true ) {\n    uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);\n    if (local_48 <= uVar5) {\n      local_48 = uVar5 + 1;\n      FUN_001e6d50(uVar3);\n                    \n      uVar3 = FUN_001e5180(local_48);\n      uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);\n    }\n    if (0x7fffffffU - param_1[1] < uVar5) break;\n                    \n    FUN_001f05c0(param_1,uVar3,uVar5);\n    sVar6 = strlen(local_44);\n    if (pcVar2 == local_44 + sVar6) {\n      FUN_001e6d50(uVar3);\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      return param_1;\n    }\n    local_44 = local_44 + sVar6 + 1;\n    iVar1 = param_1[1];\n    piVar4 = (int *)*param_1;\n    if (param_1 + 2 == piVar4) {\n      uVar5 = 0xf;\n    }\n    else {\n      uVar5 = param_1[2];\n    }\n    if (uVar5 < iVar1 + 1U) {\n      FUN_001eeaa0(param_1,iVar1,0,0,1);\n      piVar4 = (int *)*param_1;\n    }\n    *(undefined1 *)((int)piVar4 + iVar1) = 0;\n    param_1[1] = iVar1 + 1U;\n    *(undefined1 *)(*param_1 + 1 + iVar1) = 0;\n  }\n                    \n  FUN_0022c7a0("basic_string::append");\n}" (primitive_type "int") (pointer_declarator "* FUN_0025a780(int *param_1,undefined4 param_2,int param_3,int param_4)" (* "*") (function_declarator "FUN_0025a780(int *param_1,undefined4 param_2,int param_3,int param_4)" (identifier "FUN_0025a780") (parameter_list "(int *param_1,undefined4 param_2,int param_3,int param_4)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")")))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  uint uVar5;\n  size_t sVar6;\n  uint local_48;\n  char *local_44;\n  char *local_34;\n  int local_30;\n  char local_2c [28];\n  \n  param_1[1] = 0;\n  *param_1 = (int)(param_1 + 2);\n  *(undefined1 *)(param_1 + 2) = 0;\n  local_34 = local_2c;\n                    \n  FUN_00050e40(&local_34,param_3,param_4,0);\n  local_44 = local_34;\n  pcVar2 = local_34 + local_30;\n  local_48 = (param_4 - param_3) * 2;\n                    \n  uVar3 = FUN_001e5180(local_48);\n  while( true ) {\n    uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);\n    if (local_48 <= uVar5) {\n      local_48 = uVar5 + 1;\n      FUN_001e6d50(uVar3);\n                    \n      uVar3 = FUN_001e5180(local_48);\n      uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);\n    }\n    if (0x7fffffffU - param_1[1] < uVar5) break;\n                    \n    FUN_001f05c0(param_1,uVar3,uVar5);\n    sVar6 = strlen(local_44);\n    if (pcVar2 == local_44 + sVar6) {\n      FUN_001e6d50(uVar3);\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      return param_1;\n    }\n    local_44 = local_44 + sVar6 + 1;\n    iVar1 = param_1[1];\n    piVar4 = (int *)*param_1;\n    if (param_1 + 2 == piVar4) {\n      uVar5 = 0xf;\n    }\n    else {\n      uVar5 = param_1[2];\n    }\n    if (uVar5 < iVar1 + 1U) {\n      FUN_001eeaa0(param_1,iVar1,0,0,1);\n      piVar4 = (int *)*param_1;\n    }\n    *(undefined1 *)((int)piVar4 + iVar1) = 0;\n    param_1[1] = iVar1 + 1U;\n    *(undefined1 *)(*param_1 + 1 + iVar1) = 0;\n  }\n                    \n  FUN_0022c7a0("basic_string::append");\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "size_t sVar6;" (primitive_type "size_t") (identifier "sVar6") (; ";")) (declaration "uint local_48;" (type_identifier "uint") (identifier "local_48") (; ";")) (declaration "char *local_44;" (primitive_type "char") (pointer_declarator "*local_44" (* "*") (identifier "local_44")) (; ";")) (declaration "char *local_34;" (primitive_type "char") (pointer_declarator "*local_34" (* "*") (identifier "local_34")) (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (declaration "char local_2c [28];" (primitive_type "char") (array_declarator "local_2c [28]" (identifier "local_2c") ([ "[") (number_literal "28") (] "]")) (; ";")) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_1 = (int)(param_1 + 2);" (assignment_expression "*param_1 = (int)(param_1 + 2)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(param_1 + 2)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 2) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 2) = 0" (pointer_expression "*(undefined1 *)(param_1 + 2)" (* "*") (cast_expression "(undefined1 *)(param_1 + 2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_34 = local_2c;" (assignment_expression "local_34 = local_2c" (identifier "local_34") (= "=") (identifier "local_2c")) (; ";")) (expression_statement "FUN_00050e40(&local_34,param_3,param_4,0);" (call_expression "FUN_00050e40(&local_34,param_3,param_4,0)" (identifier "FUN_00050e40") (argument_list "(&local_34,param_3,param_4,0)" (( "(") (pointer_expression "&local_34" (& "&") (identifier "local_34")) (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "local_44 = local_34;" (assignment_expression "local_44 = local_34" (identifier "local_44") (= "=") (identifier "local_34")) (; ";")) (expression_statement "pcVar2 = local_34 + local_30;" (assignment_expression "pcVar2 = local_34 + local_30" (identifier "pcVar2") (= "=") (binary_expression "local_34 + local_30" (identifier "local_34") (+ "+") (identifier "local_30"))) (; ";")) (expression_statement "local_48 = (param_4 - param_3) * 2;" (assignment_expression "local_48 = (param_4 - param_3) * 2" (identifier "local_48") (= "=") (binary_expression "(param_4 - param_3) * 2" (parenthesized_expression "(param_4 - param_3)" (( "(") (binary_expression "param_4 - param_3" (identifier "param_4") (- "-") (identifier "param_3")) () ")")) (* "*") (number_literal "2"))) (; ";")) (expression_statement "uVar3 = FUN_001e5180(local_48);" (assignment_expression "uVar3 = FUN_001e5180(local_48)" (identifier "uVar3") (= "=") (call_expression "FUN_001e5180(local_48)" (identifier "FUN_001e5180") (argument_list "(local_48)" (( "(") (identifier "local_48") () ")")))) (; ";")) (while_statement "while( true ) {\n    uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);\n    if (local_48 <= uVar5) {\n      local_48 = uVar5 + 1;\n      FUN_001e6d50(uVar3);\n                    \n      uVar3 = FUN_001e5180(local_48);\n      uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);\n    }\n    if (0x7fffffffU - param_1[1] < uVar5) break;\n                    \n    FUN_001f05c0(param_1,uVar3,uVar5);\n    sVar6 = strlen(local_44);\n    if (pcVar2 == local_44 + sVar6) {\n      FUN_001e6d50(uVar3);\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      return param_1;\n    }\n    local_44 = local_44 + sVar6 + 1;\n    iVar1 = param_1[1];\n    piVar4 = (int *)*param_1;\n    if (param_1 + 2 == piVar4) {\n      uVar5 = 0xf;\n    }\n    else {\n      uVar5 = param_1[2];\n    }\n    if (uVar5 < iVar1 + 1U) {\n      FUN_001eeaa0(param_1,iVar1,0,0,1);\n      piVar4 = (int *)*param_1;\n    }\n    *(undefined1 *)((int)piVar4 + iVar1) = 0;\n    param_1[1] = iVar1 + 1U;\n    *(undefined1 *)(*param_1 + 1 + iVar1) = 0;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);\n    if (local_48 <= uVar5) {\n      local_48 = uVar5 + 1;\n      FUN_001e6d50(uVar3);\n                    \n      uVar3 = FUN_001e5180(local_48);\n      uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);\n    }\n    if (0x7fffffffU - param_1[1] < uVar5) break;\n                    \n    FUN_001f05c0(param_1,uVar3,uVar5);\n    sVar6 = strlen(local_44);\n    if (pcVar2 == local_44 + sVar6) {\n      FUN_001e6d50(uVar3);\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      return param_1;\n    }\n    local_44 = local_44 + sVar6 + 1;\n    iVar1 = param_1[1];\n    piVar4 = (int *)*param_1;\n    if (param_1 + 2 == piVar4) {\n      uVar5 = 0xf;\n    }\n    else {\n      uVar5 = param_1[2];\n    }\n    if (uVar5 < iVar1 + 1U) {\n      FUN_001eeaa0(param_1,iVar1,0,0,1);\n      piVar4 = (int *)*param_1;\n    }\n    *(undefined1 *)((int)piVar4 + iVar1) = 0;\n    param_1[1] = iVar1 + 1U;\n    *(undefined1 *)(*param_1 + 1 + iVar1) = 0;\n  }" ({ "{") (expression_statement "uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);" (assignment_expression "uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48)" (identifier "uVar5") (= "=") (call_expression "FUN_0027aec0(param_2,uVar3,local_44,local_48)" (identifier "FUN_0027aec0") (argument_list "(param_2,uVar3,local_44,local_48)" (( "(") (identifier "param_2") (, ",") (identifier "uVar3") (, ",") (identifier "local_44") (, ",") (identifier "local_48") () ")")))) (; ";")) (if_statement "if (local_48 <= uVar5) {\n      local_48 = uVar5 + 1;\n      FUN_001e6d50(uVar3);\n                    \n      uVar3 = FUN_001e5180(local_48);\n      uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);\n    }" (if "if") (parenthesized_expression "(local_48 <= uVar5)" (( "(") (binary_expression "local_48 <= uVar5" (identifier "local_48") (<= "<=") (identifier "uVar5")) () ")")) (compound_statement "{\n      local_48 = uVar5 + 1;\n      FUN_001e6d50(uVar3);\n                    \n      uVar3 = FUN_001e5180(local_48);\n      uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);\n    }" ({ "{") (expression_statement "local_48 = uVar5 + 1;" (assignment_expression "local_48 = uVar5 + 1" (identifier "local_48") (= "=") (binary_expression "uVar5 + 1" (identifier "uVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "FUN_001e6d50(uVar3);" (call_expression "FUN_001e6d50(uVar3)" (identifier "FUN_001e6d50") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (expression_statement "uVar3 = FUN_001e5180(local_48);" (assignment_expression "uVar3 = FUN_001e5180(local_48)" (identifier "uVar3") (= "=") (call_expression "FUN_001e5180(local_48)" (identifier "FUN_001e5180") (argument_list "(local_48)" (( "(") (identifier "local_48") () ")")))) (; ";")) (expression_statement "uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);" (assignment_expression "uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48)" (identifier "uVar5") (= "=") (call_expression "FUN_0027aec0(param_2,uVar3,local_44,local_48)" (identifier "FUN_0027aec0") (argument_list "(param_2,uVar3,local_44,local_48)" (( "(") (identifier "param_2") (, ",") (identifier "uVar3") (, ",") (identifier "local_44") (, ",") (identifier "local_48") () ")")))) (; ";")) (} "}"))) (if_statement "if (0x7fffffffU - param_1[1] < uVar5) break;" (if "if") (parenthesized_expression "(0x7fffffffU - param_1[1] < uVar5)" (( "(") (binary_expression "0x7fffffffU - param_1[1] < uVar5" (binary_expression "0x7fffffffU - param_1[1]" (number_literal "0x7fffffffU") (- "-") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (< "<") (identifier "uVar5")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "FUN_001f05c0(param_1,uVar3,uVar5);" (call_expression "FUN_001f05c0(param_1,uVar3,uVar5)" (identifier "FUN_001f05c0") (argument_list "(param_1,uVar3,uVar5)" (( "(") (identifier "param_1") (, ",") (identifier "uVar3") (, ",") (identifier "uVar5") () ")"))) (; ";")) (expression_statement "sVar6 = strlen(local_44);" (assignment_expression "sVar6 = strlen(local_44)" (identifier "sVar6") (= "=") (call_expression "strlen(local_44)" (identifier "strlen") (argument_list "(local_44)" (( "(") (identifier "local_44") () ")")))) (; ";")) (if_statement "if (pcVar2 == local_44 + sVar6) {\n      FUN_001e6d50(uVar3);\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      return param_1;\n    }" (if "if") (parenthesized_expression "(pcVar2 == local_44 + sVar6)" (( "(") (binary_expression "pcVar2 == local_44 + sVar6" (identifier "pcVar2") (== "==") (binary_expression "local_44 + sVar6" (identifier "local_44") (+ "+") (identifier "sVar6"))) () ")")) (compound_statement "{\n      FUN_001e6d50(uVar3);\n      if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }\n      return param_1;\n    }" ({ "{") (expression_statement "FUN_001e6d50(uVar3);" (call_expression "FUN_001e6d50(uVar3)" (identifier "FUN_001e6d50") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (if_statement "if (local_34 != local_2c) {\n        FUN_001e6db0(local_34);\n      }" (if "if") (parenthesized_expression "(local_34 != local_2c)" (( "(") (binary_expression "local_34 != local_2c" (identifier "local_34") (!= "!=") (identifier "local_2c")) () ")")) (compound_statement "{\n        FUN_001e6db0(local_34);\n      }" ({ "{") (expression_statement "FUN_001e6db0(local_34);" (call_expression "FUN_001e6db0(local_34)" (identifier "FUN_001e6db0") (argument_list "(local_34)" (( "(") (identifier "local_34") () ")"))) (; ";")) (} "}"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "local_44 = local_44 + sVar6 + 1;" (assignment_expression "local_44 = local_44 + sVar6 + 1" (identifier "local_44") (= "=") (binary_expression "local_44 + sVar6 + 1" (binary_expression "local_44 + sVar6" (identifier "local_44") (+ "+") (identifier "sVar6")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" (identifier "iVar1") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "piVar4 = (int *)*param_1;" (assignment_expression "piVar4 = (int *)*param_1" (identifier "piVar4") (= "=") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (param_1 + 2 == piVar4) {\n      uVar5 = 0xf;\n    }\n    else {\n      uVar5 = param_1[2];\n    }" (if "if") (parenthesized_expression "(param_1 + 2 == piVar4)" (( "(") (binary_expression "param_1 + 2 == piVar4" (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) (== "==") (identifier "piVar4")) () ")")) (compound_statement "{\n      uVar5 = 0xf;\n    }" ({ "{") (expression_statement "uVar5 = 0xf;" (assignment_expression "uVar5 = 0xf" (identifier "uVar5") (= "=") (number_literal "0xf")) (; ";")) (} "}")) (else_clause "else {\n      uVar5 = param_1[2];\n    }" (else "else") (compound_statement "{\n      uVar5 = param_1[2];\n    }" ({ "{") (expression_statement "uVar5 = param_1[2];" (assignment_expression "uVar5 = param_1[2]" (identifier "uVar5") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (} "}")))) (if_statement "if (uVar5 < iVar1 + 1U) {\n      FUN_001eeaa0(param_1,iVar1,0,0,1);\n      piVar4 = (int *)*param_1;\n    }" (if "if") (parenthesized_expression "(uVar5 < iVar1 + 1U)" (( "(") (binary_expression "uVar5 < iVar1 + 1U" (identifier "uVar5") (< "<") (binary_expression "iVar1 + 1U" (identifier "iVar1") (+ "+") (number_literal "1U"))) () ")")) (compound_statement "{\n      FUN_001eeaa0(param_1,iVar1,0,0,1);\n      piVar4 = (int *)*param_1;\n    }" ({ "{") (expression_statement "FUN_001eeaa0(param_1,iVar1,0,0,1);" (call_expression "FUN_001eeaa0(param_1,iVar1,0,0,1)" (identifier "FUN_001eeaa0") (argument_list "(param_1,iVar1,0,0,1)" (( "(") (identifier "param_1") (, ",") (identifier "iVar1") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "piVar4 = (int *)*param_1;" (assignment_expression "piVar4 = (int *)*param_1" (identifier "piVar4") (= "=") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (} "}"))) (expression_statement "*(undefined1 *)((int)piVar4 + iVar1) = 0;" (assignment_expression "*(undefined1 *)((int)piVar4 + iVar1) = 0" (pointer_expression "*(undefined1 *)((int)piVar4 + iVar1)" (* "*") (cast_expression "(undefined1 *)((int)piVar4 + iVar1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar4 + iVar1)" (( "(") (binary_expression "(int)piVar4 + iVar1" (cast_expression "(int)piVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar4")) (+ "+") (identifier "iVar1")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[1] = iVar1 + 1U;" (assignment_expression "param_1[1] = iVar1 + 1U" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar1 + 1U" (identifier "iVar1") (+ "+") (number_literal "1U"))) (; ";")) (expression_statement "*(undefined1 *)(*param_1 + 1 + iVar1) = 0;" (assignment_expression "*(undefined1 *)(*param_1 + 1 + iVar1) = 0" (pointer_expression "*(undefined1 *)(*param_1 + 1 + iVar1)" (* "*") (cast_expression "(undefined1 *)(*param_1 + 1 + iVar1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 1 + iVar1)" (( "(") (binary_expression "*param_1 + 1 + iVar1" (binary_expression "*param_1 + 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "1")) (+ "+") (identifier "iVar1")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "FUN_0022c7a0("basic_string::append");" (call_expression "FUN_0022c7a0("basic_string::append")" (identifier "FUN_0022c7a0") (argument_list "("basic_string::append")" (( "(") (string_literal ""basic_string::append"" (" """) (string_content "basic_string::append") (" """)) () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */
/* std::collate<char>::do_transform(char const*, char const*) const */

char * std::var_14<char>::function_1(char *var_7,char *param_2)

{
  char *var_20;
  char *pcVar2;
  char *var_23;
  type_1 var_16;
  size_t var_21;
  type_1 var_24;
  int var_11;
  int var_10;
  type_1 var_15;
  anon_union_16_2_edb7204a_for_basic_string<var_2,_std::char_traits<var_2>,_std::var_1<var_2>var_3>var_4
  *var_5;
  basic_string<var_2,_std::char_traits<var_2>,_std::var_1<var_2>var_3> var_6;
  
  var_7[4] = '\0';
  var_7[5] = '\0';
  var_7[6] = '\0';
  var_7[7] = '\0';
  *(char **)var_7 = var_7 + 8;
  var_7[8] = '\0';
  var_6._M_dataplus._M_p = (pointer)&var_6.field_2;
                    /* try { // try from 0025a7c5 to 0025a7c9 has its CatchHandler @ 0025a991 */
  __cxx11::basic_string<var_2,_std::char_traits<var_2>,_std::var_1<var_2>var_3>::
  var_8<var_9*>(&var_6);
  var_5 = (anon_union_16_2_edb7204a_for_basic_string<var_2,_std::char_traits<var_2>,_std::var_1<var_2>var_3>var_4
              *)var_6._M_dataplus._M_p;
  var_20 = var_6._M_dataplus._M_p + var_6._M_string_length;
  var_15 = (var_10 - var_11) * 2;
                    /* try { // try from 0025a7e5 to 0025a7e9 has its CatchHandler @ 0025a935 */
  pcVar2 = (char *)var_12(var_15);
  while( true ) {
    var_16 = var_13((var_14<var_2> *)param_2,pcVar2,var_5->_M_local_buf,var_15);
    if (var_15 <= var_16) {
      var_15 = var_16 + 1;
      var_17(pcVar2);
                    /* try { // try from 0025a841 to 0025a845 has its CatchHandler @ 0025a933 */
      pcVar2 = (char *)var_12(var_15);
      var_16 = var_13((var_14<var_2> *)param_2,pcVar2,var_5->_M_local_buf,var_15);
    }
    if (0x7fffffffU - *(int *)(var_7 + 4) < var_16) break;
                    /* try { // try from 0025a879 to 0025a932 has its CatchHandler @ 0025a995 */
    std::string::var_18((type_2 *)var_7,pcVar2,var_16);
    var_21 = var_19(var_5->_M_local_buf);
    if (var_20 == var_5->_M_local_buf + var_21) {
      var_17(pcVar2);
      if ((anon_union_16_2_edb7204a_for_basic_string<var_2,_std::char_traits<var_2>,_std::var_1<var_2>var_3>var_4
           *)var_6._M_dataplus._M_p != &var_6.field_2) {
        var_22(var_6._M_dataplus._M_p);
      }
      return var_7;
    }
    var_5 = (anon_union_16_2_edb7204a_for_basic_string<var_2,_std::char_traits<var_2>,_std::var_1<var_2>var_3>var_4
                *)(var_5->_M_local_buf + var_21 + 1);
    var_16 = *(type_1 *)(var_7 + 4);
    var_23 = *(char **)var_7;
    if (var_7 + 8 == var_23) {
      var_24 = 0xf;
    }
    else {
      var_24 = *(type_1 *)(var_7 + 8);
    }
    if (var_24 < var_16 + 1) {
      std::string::var_25((type_2 *)var_7,var_16,0,(char *)0x0,1);
      var_23 = *(char **)var_7;
    }
    var_23[var_16] = '\0';
    *(type_1 *)(var_7 + 4) = var_16 + 1;
    *(type_3 *)(*(int *)var_7 + 1 + var_16) = 0;
  }
                    /* WARNING: Subroutine does not return */
  var_26("basic_string::append");
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier) (identifier) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (number_literal) right: (subscript_expression argument: (identifier) index: (number_literal))) right: (identifier))) consequence: (break_statement)) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal) (number_literal) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier))))) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)) right: (identifier))))) right: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content))))))))

/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

int * MASKED(int *param_1,undefined4 param_2,int param_3,int param_4)

{
  int iVar1;
  char *pcVar2;
  undefined4 uVar3;
  int *piVar4;
  uint uVar5;
  size_t sVar6;
  uint local_48;
  char *local_44;
  char *local_34;
  int local_30;
  char local_2c [28];
  
  param_1[1] = 0;
  *param_1 = (int)(param_1 + 2);
  *(undefined1 *)(param_1 + 2) = 0;
  local_34 = local_2c;
                    /* try { // try from 0025a7c5 to 0025a7c9 has its CatchHandler @ 0025a991 */
  FUN_00050e40(&local_34,param_3,param_4,0);
  local_44 = local_34;
  pcVar2 = local_34 + local_30;
  local_48 = (param_4 - param_3) * 2;
                    /* try { // try from 0025a7e5 to 0025a7e9 has its CatchHandler @ 0025a935 */
  uVar3 = FUN_001e5180(local_48);
  while( true ) {
    uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);
    if (local_48 <= uVar5) {
      local_48 = uVar5 + 1;
      FUN_001e6d50(uVar3);
                    /* try { // try from 0025a841 to 0025a845 has its CatchHandler @ 0025a933 */
      uVar3 = FUN_001e5180(local_48);
      uVar5 = FUN_0027aec0(param_2,uVar3,local_44,local_48);
    }
    if (0x7fffffffU - param_1[1] < uVar5) break;
                    /* try { // try from 0025a879 to 0025a932 has its CatchHandler @ 0025a995 */
    FUN_001f05c0(param_1,uVar3,uVar5);
    sVar6 = strlen(local_44);
    if (pcVar2 == local_44 + sVar6) {
      FUN_001e6d50(uVar3);
      if (local_34 != local_2c) {
        FUN_001e6db0(local_34);
      }
      return param_1;
    }
    local_44 = local_44 + sVar6 + 1;
    iVar1 = param_1[1];
    piVar4 = (int *)*param_1;
    if (param_1 + 2 == piVar4) {
      uVar5 = 0xf;
    }
    else {
      uVar5 = param_1[2];
    }
    if (uVar5 < iVar1 + 1U) {
      FUN_001eeaa0(param_1,iVar1,0,0,1);
      piVar4 = (int *)*param_1;
    }
    *(undefined1 *)((int)piVar4 + iVar1) = 0;
    param_1[1] = iVar1 + 1U;
    *(undefined1 *)(*param_1 + 1 + iVar1) = 0;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0022c7a0("basic_string::append");
}

