
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::wstring::_Rep::_S_create(unsigned int, unsigned int, std::allocator<wchar_t> const&) */

void std::wstring::_Rep::_S_create(uint param_1,uint param_2,allocator *param_3)

{
  uint uVar1;
  void *pvVar2;
  uint uVar3;
  
  if (param_1 < 0xfffffff) {
    if (param_2 < param_1) {
      if (param_1 < param_2 * 2) {
        param_1 = param_2 * 2;
      }
      uVar3 = param_1 * 4 + 0x10;
      uVar1 = param_1 * 4 + 0x20;
      if ((0x1000 < uVar1) && (param_2 < param_1)) {
        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);
        if (0xffffffe < param_1) {
          param_1 = 0xffffffe;
        }
        uVar3 = param_1 * 4 + 0x10;
      }
    }
    else {
      uVar3 = param_1 * 4 + 0x10;
    }
    pvVar2 = operator_new(uVar3);
    *(uint *)((int)pvVar2 + 4) = param_1;
    *(undefined4 *)((int)pvVar2 + 8) = 0;
    return;
  }
                    /* WARNING: Subroutine does not return */
  __throw_length_error("basic_string::_S_create");
}



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

void FUN_00269ac0(uint param_1,uint param_2)

{
  uint uVar1;
  int iVar2;
  
  if (param_1 < 0xfffffff) {
    if (param_2 < param_1) {
      if (param_1 < param_2 * 2) {
        param_1 = param_2 * 2;
      }
      iVar2 = param_1 * 4 + 0x10;
      uVar1 = param_1 * 4 + 0x20;
      if ((0x1000 < uVar1) && (param_2 < param_1)) {
        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);
        if (0xffffffe < param_1) {
          param_1 = 0xffffffe;
        }
        iVar2 = param_1 * 4 + 0x10;
      }
    }
    else {
      iVar2 = param_1 * 4 + 0x10;
    }
    iVar2 = FUN_001e5210(iVar2);
    *(uint *)(iVar2 + 4) = param_1;
    *(undefined4 *)(iVar2 + 8) = 0;
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0022c7b0("basic_string::_S_create");
}


PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x125539
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [ESP + 0x14]
CMP ESI,0xffffffe
JA 0x00269b50
CMP ESI,EAX
JBE 0x00269b30
LEA EDX,[EAX + EAX*0x1]
CMP ESI,EDX
CMOVC ESI,EDX
LEA EDX,[ESI*0x4 + 0x10]
LEA ECX,[EDX + 0x10]
CMP ECX,0x1000
JBE 0x00269b37
CMP EAX,ESI
JNC 0x00269b37
AND ECX,0xfff
MOV EAX,0x1000
SUB EAX,ECX
SHR EAX,0x2
ADD ESI,EAX
MOV EAX,0xffffffe
CMP ESI,0xffffffe
CMOVA ESI,EAX
LEA EDX,[ESI*0x4 + 0x10]
JMP 0x00269b37
LEA EDX,[ESI*0x4 + 0x10]
SUB ESP,0xc
PUSH EDX
CALL 0x001e5210
MOV dword ptr [EAX + 0x4],ESI
MOV dword ptr [EAX + 0x8],0x0
ADD ESP,0x14
POP EBX
POP ESI
RET
SUB ESP,0xc
LEA EAX,[EBX + 0xfff159b1]
PUSH EAX
CALL 0x0022c7b0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00269ac0(uint param_1,uint param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  if (param_1 < 0xfffffff) {\n    if (param_2 < param_1) {\n      if (param_1 < param_2 * 2) {\n        param_1 = param_2 * 2;\n      }\n      iVar2 = param_1 * 4 + 0x10;\n      uVar1 = param_1 * 4 + 0x20;\n      if ((0x1000 < uVar1) && (param_2 < param_1)) {\n        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);\n        if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }\n        iVar2 = param_1 * 4 + 0x10;\n      }\n    }\n    else {\n      iVar2 = param_1 * 4 + 0x10;\n    }\n    iVar2 = FUN_001e5210(iVar2);\n    *(uint *)(iVar2 + 4) = param_1;\n    *(undefined4 *)(iVar2 + 8) = 0;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0022c7b0("basic_string::_S_create");\n}\n\n" comment (function_definition "void FUN_00269ac0(uint param_1,uint param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  if (param_1 < 0xfffffff) {\n    if (param_2 < param_1) {\n      if (param_1 < param_2 * 2) {\n        param_1 = param_2 * 2;\n      }\n      iVar2 = param_1 * 4 + 0x10;\n      uVar1 = param_1 * 4 + 0x20;\n      if ((0x1000 < uVar1) && (param_2 < param_1)) {\n        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);\n        if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }\n        iVar2 = param_1 * 4 + 0x10;\n      }\n    }\n    else {\n      iVar2 = param_1 * 4 + 0x10;\n    }\n    iVar2 = FUN_001e5210(iVar2);\n    *(uint *)(iVar2 + 4) = param_1;\n    *(undefined4 *)(iVar2 + 8) = 0;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0022c7b0("basic_string::_S_create");\n}" primitive_type (function_declarator "FUN_00269ac0(uint param_1,uint param_2)" identifier (parameter_list "(uint param_1,uint param_2)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  \n  if (param_1 < 0xfffffff) {\n    if (param_2 < param_1) {\n      if (param_1 < param_2 * 2) {\n        param_1 = param_2 * 2;\n      }\n      iVar2 = param_1 * 4 + 0x10;\n      uVar1 = param_1 * 4 + 0x20;\n      if ((0x1000 < uVar1) && (param_2 < param_1)) {\n        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);\n        if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }\n        iVar2 = param_1 * 4 + 0x10;\n      }\n    }\n    else {\n      iVar2 = param_1 * 4 + 0x10;\n    }\n    iVar2 = FUN_001e5210(iVar2);\n    *(uint *)(iVar2 + 4) = param_1;\n    *(undefined4 *)(iVar2 + 8) = 0;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0022c7b0("basic_string::_S_create");\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (param_1 < 0xfffffff) {\n    if (param_2 < param_1) {\n      if (param_1 < param_2 * 2) {\n        param_1 = param_2 * 2;\n      }\n      iVar2 = param_1 * 4 + 0x10;\n      uVar1 = param_1 * 4 + 0x20;\n      if ((0x1000 < uVar1) && (param_2 < param_1)) {\n        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);\n        if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }\n        iVar2 = param_1 * 4 + 0x10;\n      }\n    }\n    else {\n      iVar2 = param_1 * 4 + 0x10;\n    }\n    iVar2 = FUN_001e5210(iVar2);\n    *(uint *)(iVar2 + 4) = param_1;\n    *(undefined4 *)(iVar2 + 8) = 0;\n    return;\n  }" if (parenthesized_expression "(param_1 < 0xfffffff)" ( (binary_expression "param_1 < 0xfffffff" identifier < number_literal) )) (compound_statement "{\n    if (param_2 < param_1) {\n      if (param_1 < param_2 * 2) {\n        param_1 = param_2 * 2;\n      }\n      iVar2 = param_1 * 4 + 0x10;\n      uVar1 = param_1 * 4 + 0x20;\n      if ((0x1000 < uVar1) && (param_2 < param_1)) {\n        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);\n        if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }\n        iVar2 = param_1 * 4 + 0x10;\n      }\n    }\n    else {\n      iVar2 = param_1 * 4 + 0x10;\n    }\n    iVar2 = FUN_001e5210(iVar2);\n    *(uint *)(iVar2 + 4) = param_1;\n    *(undefined4 *)(iVar2 + 8) = 0;\n    return;\n  }" { (if_statement "if (param_2 < param_1) {\n      if (param_1 < param_2 * 2) {\n        param_1 = param_2 * 2;\n      }\n      iVar2 = param_1 * 4 + 0x10;\n      uVar1 = param_1 * 4 + 0x20;\n      if ((0x1000 < uVar1) && (param_2 < param_1)) {\n        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);\n        if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }\n        iVar2 = param_1 * 4 + 0x10;\n      }\n    }\n    else {\n      iVar2 = param_1 * 4 + 0x10;\n    }" if (parenthesized_expression "(param_2 < param_1)" ( (binary_expression "param_2 < param_1" identifier < identifier) )) (compound_statement "{\n      if (param_1 < param_2 * 2) {\n        param_1 = param_2 * 2;\n      }\n      iVar2 = param_1 * 4 + 0x10;\n      uVar1 = param_1 * 4 + 0x20;\n      if ((0x1000 < uVar1) && (param_2 < param_1)) {\n        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);\n        if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }\n        iVar2 = param_1 * 4 + 0x10;\n      }\n    }" { (if_statement "if (param_1 < param_2 * 2) {\n        param_1 = param_2 * 2;\n      }" if (parenthesized_expression "(param_1 < param_2 * 2)" ( (binary_expression "param_1 < param_2 * 2" identifier < (binary_expression "param_2 * 2" identifier * number_literal)) )) (compound_statement "{\n        param_1 = param_2 * 2;\n      }" { (expression_statement "param_1 = param_2 * 2;" (assignment_expression "param_1 = param_2 * 2" identifier = (binary_expression "param_2 * 2" identifier * number_literal)) ;) })) (expression_statement "iVar2 = param_1 * 4 + 0x10;" (assignment_expression "iVar2 = param_1 * 4 + 0x10" identifier = (binary_expression "param_1 * 4 + 0x10" (binary_expression "param_1 * 4" identifier * number_literal) + number_literal)) ;) (expression_statement "uVar1 = param_1 * 4 + 0x20;" (assignment_expression "uVar1 = param_1 * 4 + 0x20" identifier = (binary_expression "param_1 * 4 + 0x20" (binary_expression "param_1 * 4" identifier * number_literal) + number_literal)) ;) (if_statement "if ((0x1000 < uVar1) && (param_2 < param_1)) {\n        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);\n        if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }\n        iVar2 = param_1 * 4 + 0x10;\n      }" if (parenthesized_expression "((0x1000 < uVar1) && (param_2 < param_1))" ( (binary_expression "(0x1000 < uVar1) && (param_2 < param_1)" (parenthesized_expression "(0x1000 < uVar1)" ( (binary_expression "0x1000 < uVar1" number_literal < identifier) )) && (parenthesized_expression "(param_2 < param_1)" ( (binary_expression "param_2 < param_1" identifier < identifier) ))) )) (compound_statement "{\n        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);\n        if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }\n        iVar2 = param_1 * 4 + 0x10;\n      }" { (expression_statement "param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);" (assignment_expression "param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2)" identifier = (binary_expression "param_1 + (0x1000 - (uVar1 & 0xfff) >> 2)" identifier + (parenthesized_expression "(0x1000 - (uVar1 & 0xfff) >> 2)" ( (binary_expression "0x1000 - (uVar1 & 0xfff) >> 2" (binary_expression "0x1000 - (uVar1 & 0xfff)" number_literal - (parenthesized_expression "(uVar1 & 0xfff)" ( (binary_expression "uVar1 & 0xfff" identifier & number_literal) ))) >> number_literal) )))) ;) (if_statement "if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }" if (parenthesized_expression "(0xffffffe < param_1)" ( (binary_expression "0xffffffe < param_1" number_literal < identifier) )) (compound_statement "{\n          param_1 = 0xffffffe;\n        }" { (expression_statement "param_1 = 0xffffffe;" (assignment_expression "param_1 = 0xffffffe" identifier = number_literal) ;) })) (expression_statement "iVar2 = param_1 * 4 + 0x10;" (assignment_expression "iVar2 = param_1 * 4 + 0x10" identifier = (binary_expression "param_1 * 4 + 0x10" (binary_expression "param_1 * 4" identifier * number_literal) + number_literal)) ;) })) }) (else_clause "else {\n      iVar2 = param_1 * 4 + 0x10;\n    }" else (compound_statement "{\n      iVar2 = param_1 * 4 + 0x10;\n    }" { (expression_statement "iVar2 = param_1 * 4 + 0x10;" (assignment_expression "iVar2 = param_1 * 4 + 0x10" identifier = (binary_expression "param_1 * 4 + 0x10" (binary_expression "param_1 * 4" identifier * number_literal) + number_literal)) ;) }))) (expression_statement "iVar2 = FUN_001e5210(iVar2);" (assignment_expression "iVar2 = FUN_001e5210(iVar2)" identifier = (call_expression "FUN_001e5210(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) (expression_statement "*(uint *)(iVar2 + 4) = param_1;" (assignment_expression "*(uint *)(iVar2 + 4) = param_1" (pointer_expression "*(uint *)(iVar2 + 4)" * (cast_expression "(uint *)(iVar2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar2 + 8) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 8) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 8)" * (cast_expression "(undefined4 *)(iVar2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) comment (expression_statement "FUN_0022c7b0("basic_string::_S_create");" (call_expression "FUN_0022c7b0("basic_string::_S_create")" identifier (argument_list "("basic_string::_S_create")" ( (string_literal ""basic_string::_S_create"" " string_content ") ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::wstring::_Rep::_S_create(unsigned int, unsigned int, std::allocator<wchar_t> const&) */\n\nvoid std::wstring::_Rep::_S_create(uint param_1,uint param_2,allocator *param_3)\n\n{\n  uint uVar1;\n  void *pvVar2;\n  uint uVar3;\n  \n  if (param_1 < 0xfffffff) {\n    if (param_2 < param_1) {\n      if (param_1 < param_2 * 2) {\n        param_1 = param_2 * 2;\n      }\n      uVar3 = param_1 * 4 + 0x10;\n      uVar1 = param_1 * 4 + 0x20;\n      if ((0x1000 < uVar1) && (param_2 < param_1)) {\n        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);\n        if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }\n        uVar3 = param_1 * 4 + 0x10;\n      }\n    }\n    else {\n      uVar3 = param_1 * 4 + 0x10;\n    }\n    pvVar2 = operator_new(uVar3);\n    *(uint *)((int)pvVar2 + 4) = param_1;\n    *(undefined4 *)((int)pvVar2 + 8) = 0;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_length_error("basic_string::_S_create");\n}\n\n" comment comment (function_definition "void std::wstring::_Rep::_S_create(uint param_1,uint param_2,allocator *param_3)\n\n{\n  uint uVar1;\n  void *pvVar2;\n  uint uVar3;\n  \n  if (param_1 < 0xfffffff) {\n    if (param_2 < param_1) {\n      if (param_1 < param_2 * 2) {\n        param_1 = param_2 * 2;\n      }\n      uVar3 = param_1 * 4 + 0x10;\n      uVar1 = param_1 * 4 + 0x20;\n      if ((0x1000 < uVar1) && (param_2 < param_1)) {\n        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);\n        if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }\n        uVar3 = param_1 * 4 + 0x10;\n      }\n    }\n    else {\n      uVar3 = param_1 * 4 + 0x10;\n    }\n    pvVar2 = operator_new(uVar3);\n    *(uint *)((int)pvVar2 + 4) = param_1;\n    *(undefined4 *)((int)pvVar2 + 8) = 0;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_length_error("basic_string::_S_create");\n}" primitive_type (ERROR "std::wstring::_Rep::" identifier : : identifier : : identifier : :) (function_declarator "_S_create(uint param_1,uint param_2,allocator *param_3)" identifier (parameter_list "(uint param_1,uint param_2,allocator *param_3)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "allocator *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  void *pvVar2;\n  uint uVar3;\n  \n  if (param_1 < 0xfffffff) {\n    if (param_2 < param_1) {\n      if (param_1 < param_2 * 2) {\n        param_1 = param_2 * 2;\n      }\n      uVar3 = param_1 * 4 + 0x10;\n      uVar1 = param_1 * 4 + 0x20;\n      if ((0x1000 < uVar1) && (param_2 < param_1)) {\n        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);\n        if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }\n        uVar3 = param_1 * 4 + 0x10;\n      }\n    }\n    else {\n      uVar3 = param_1 * 4 + 0x10;\n    }\n    pvVar2 = operator_new(uVar3);\n    *(uint *)((int)pvVar2 + 4) = param_1;\n    *(undefined4 *)((int)pvVar2 + 8) = 0;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_length_error("basic_string::_S_create");\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if (param_1 < 0xfffffff) {\n    if (param_2 < param_1) {\n      if (param_1 < param_2 * 2) {\n        param_1 = param_2 * 2;\n      }\n      uVar3 = param_1 * 4 + 0x10;\n      uVar1 = param_1 * 4 + 0x20;\n      if ((0x1000 < uVar1) && (param_2 < param_1)) {\n        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);\n        if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }\n        uVar3 = param_1 * 4 + 0x10;\n      }\n    }\n    else {\n      uVar3 = param_1 * 4 + 0x10;\n    }\n    pvVar2 = operator_new(uVar3);\n    *(uint *)((int)pvVar2 + 4) = param_1;\n    *(undefined4 *)((int)pvVar2 + 8) = 0;\n    return;\n  }" if (parenthesized_expression "(param_1 < 0xfffffff)" ( (binary_expression "param_1 < 0xfffffff" identifier < number_literal) )) (compound_statement "{\n    if (param_2 < param_1) {\n      if (param_1 < param_2 * 2) {\n        param_1 = param_2 * 2;\n      }\n      uVar3 = param_1 * 4 + 0x10;\n      uVar1 = param_1 * 4 + 0x20;\n      if ((0x1000 < uVar1) && (param_2 < param_1)) {\n        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);\n        if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }\n        uVar3 = param_1 * 4 + 0x10;\n      }\n    }\n    else {\n      uVar3 = param_1 * 4 + 0x10;\n    }\n    pvVar2 = operator_new(uVar3);\n    *(uint *)((int)pvVar2 + 4) = param_1;\n    *(undefined4 *)((int)pvVar2 + 8) = 0;\n    return;\n  }" { (if_statement "if (param_2 < param_1) {\n      if (param_1 < param_2 * 2) {\n        param_1 = param_2 * 2;\n      }\n      uVar3 = param_1 * 4 + 0x10;\n      uVar1 = param_1 * 4 + 0x20;\n      if ((0x1000 < uVar1) && (param_2 < param_1)) {\n        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);\n        if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }\n        uVar3 = param_1 * 4 + 0x10;\n      }\n    }\n    else {\n      uVar3 = param_1 * 4 + 0x10;\n    }" if (parenthesized_expression "(param_2 < param_1)" ( (binary_expression "param_2 < param_1" identifier < identifier) )) (compound_statement "{\n      if (param_1 < param_2 * 2) {\n        param_1 = param_2 * 2;\n      }\n      uVar3 = param_1 * 4 + 0x10;\n      uVar1 = param_1 * 4 + 0x20;\n      if ((0x1000 < uVar1) && (param_2 < param_1)) {\n        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);\n        if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }\n        uVar3 = param_1 * 4 + 0x10;\n      }\n    }" { (if_statement "if (param_1 < param_2 * 2) {\n        param_1 = param_2 * 2;\n      }" if (parenthesized_expression "(param_1 < param_2 * 2)" ( (binary_expression "param_1 < param_2 * 2" identifier < (binary_expression "param_2 * 2" identifier * number_literal)) )) (compound_statement "{\n        param_1 = param_2 * 2;\n      }" { (expression_statement "param_1 = param_2 * 2;" (assignment_expression "param_1 = param_2 * 2" identifier = (binary_expression "param_2 * 2" identifier * number_literal)) ;) })) (expression_statement "uVar3 = param_1 * 4 + 0x10;" (assignment_expression "uVar3 = param_1 * 4 + 0x10" identifier = (binary_expression "param_1 * 4 + 0x10" (binary_expression "param_1 * 4" identifier * number_literal) + number_literal)) ;) (expression_statement "uVar1 = param_1 * 4 + 0x20;" (assignment_expression "uVar1 = param_1 * 4 + 0x20" identifier = (binary_expression "param_1 * 4 + 0x20" (binary_expression "param_1 * 4" identifier * number_literal) + number_literal)) ;) (if_statement "if ((0x1000 < uVar1) && (param_2 < param_1)) {\n        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);\n        if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }\n        uVar3 = param_1 * 4 + 0x10;\n      }" if (parenthesized_expression "((0x1000 < uVar1) && (param_2 < param_1))" ( (binary_expression "(0x1000 < uVar1) && (param_2 < param_1)" (parenthesized_expression "(0x1000 < uVar1)" ( (binary_expression "0x1000 < uVar1" number_literal < identifier) )) && (parenthesized_expression "(param_2 < param_1)" ( (binary_expression "param_2 < param_1" identifier < identifier) ))) )) (compound_statement "{\n        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);\n        if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }\n        uVar3 = param_1 * 4 + 0x10;\n      }" { (expression_statement "param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);" (assignment_expression "param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2)" identifier = (binary_expression "param_1 + (0x1000 - (uVar1 & 0xfff) >> 2)" identifier + (parenthesized_expression "(0x1000 - (uVar1 & 0xfff) >> 2)" ( (binary_expression "0x1000 - (uVar1 & 0xfff) >> 2" (binary_expression "0x1000 - (uVar1 & 0xfff)" number_literal - (parenthesized_expression "(uVar1 & 0xfff)" ( (binary_expression "uVar1 & 0xfff" identifier & number_literal) ))) >> number_literal) )))) ;) (if_statement "if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }" if (parenthesized_expression "(0xffffffe < param_1)" ( (binary_expression "0xffffffe < param_1" number_literal < identifier) )) (compound_statement "{\n          param_1 = 0xffffffe;\n        }" { (expression_statement "param_1 = 0xffffffe;" (assignment_expression "param_1 = 0xffffffe" identifier = number_literal) ;) })) (expression_statement "uVar3 = param_1 * 4 + 0x10;" (assignment_expression "uVar3 = param_1 * 4 + 0x10" identifier = (binary_expression "param_1 * 4 + 0x10" (binary_expression "param_1 * 4" identifier * number_literal) + number_literal)) ;) })) }) (else_clause "else {\n      uVar3 = param_1 * 4 + 0x10;\n    }" else (compound_statement "{\n      uVar3 = param_1 * 4 + 0x10;\n    }" { (expression_statement "uVar3 = param_1 * 4 + 0x10;" (assignment_expression "uVar3 = param_1 * 4 + 0x10" identifier = (binary_expression "param_1 * 4 + 0x10" (binary_expression "param_1 * 4" identifier * number_literal) + number_literal)) ;) }))) (expression_statement "pvVar2 = operator_new(uVar3);" (assignment_expression "pvVar2 = operator_new(uVar3)" identifier = (call_expression "operator_new(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (expression_statement "*(uint *)((int)pvVar2 + 4) = param_1;" (assignment_expression "*(uint *)((int)pvVar2 + 4) = param_1" (pointer_expression "*(uint *)((int)pvVar2 + 4)" * (cast_expression "(uint *)((int)pvVar2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar2 + 4)" ( (binary_expression "(int)pvVar2 + 4" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)pvVar2 + 8) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar2 + 8) = 0" (pointer_expression "*(undefined4 *)((int)pvVar2 + 8)" * (cast_expression "(undefined4 *)((int)pvVar2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar2 + 8)" ( (binary_expression "(int)pvVar2 + 8" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) comment (expression_statement "__throw_length_error("basic_string::_S_create");" (call_expression "__throw_length_error("basic_string::_S_create")" identifier (argument_list "("basic_string::_S_create")" ( (string_literal ""basic_string::_S_create"" " string_content ") ))) ;) })))
(translation_unit "void FUN_00269ac0(uint param_1,uint param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  if (param_1 < 0xfffffff) {\n    if (param_2 < param_1) {\n      if (param_1 < param_2 * 2) {\n        param_1 = param_2 * 2;\n      }\n      iVar2 = param_1 * 4 + 0x10;\n      uVar1 = param_1 * 4 + 0x20;\n      if ((0x1000 < uVar1) && (param_2 < param_1)) {\n        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);\n        if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }\n        iVar2 = param_1 * 4 + 0x10;\n      }\n    }\n    else {\n      iVar2 = param_1 * 4 + 0x10;\n    }\n    iVar2 = FUN_001e5210(iVar2);\n    *(uint *)(iVar2 + 4) = param_1;\n    *(undefined4 *)(iVar2 + 8) = 0;\n    return;\n  }\n                    \n  FUN_0022c7b0("basic_string::_S_create");\n}\n\n" (function_definition "void FUN_00269ac0(uint param_1,uint param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  if (param_1 < 0xfffffff) {\n    if (param_2 < param_1) {\n      if (param_1 < param_2 * 2) {\n        param_1 = param_2 * 2;\n      }\n      iVar2 = param_1 * 4 + 0x10;\n      uVar1 = param_1 * 4 + 0x20;\n      if ((0x1000 < uVar1) && (param_2 < param_1)) {\n        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);\n        if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }\n        iVar2 = param_1 * 4 + 0x10;\n      }\n    }\n    else {\n      iVar2 = param_1 * 4 + 0x10;\n    }\n    iVar2 = FUN_001e5210(iVar2);\n    *(uint *)(iVar2 + 4) = param_1;\n    *(undefined4 *)(iVar2 + 8) = 0;\n    return;\n  }\n                    \n  FUN_0022c7b0("basic_string::_S_create");\n}" primitive_type (function_declarator "FUN_00269ac0(uint param_1,uint param_2)" identifier (parameter_list "(uint param_1,uint param_2)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  \n  if (param_1 < 0xfffffff) {\n    if (param_2 < param_1) {\n      if (param_1 < param_2 * 2) {\n        param_1 = param_2 * 2;\n      }\n      iVar2 = param_1 * 4 + 0x10;\n      uVar1 = param_1 * 4 + 0x20;\n      if ((0x1000 < uVar1) && (param_2 < param_1)) {\n        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);\n        if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }\n        iVar2 = param_1 * 4 + 0x10;\n      }\n    }\n    else {\n      iVar2 = param_1 * 4 + 0x10;\n    }\n    iVar2 = FUN_001e5210(iVar2);\n    *(uint *)(iVar2 + 4) = param_1;\n    *(undefined4 *)(iVar2 + 8) = 0;\n    return;\n  }\n                    \n  FUN_0022c7b0("basic_string::_S_create");\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (param_1 < 0xfffffff) {\n    if (param_2 < param_1) {\n      if (param_1 < param_2 * 2) {\n        param_1 = param_2 * 2;\n      }\n      iVar2 = param_1 * 4 + 0x10;\n      uVar1 = param_1 * 4 + 0x20;\n      if ((0x1000 < uVar1) && (param_2 < param_1)) {\n        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);\n        if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }\n        iVar2 = param_1 * 4 + 0x10;\n      }\n    }\n    else {\n      iVar2 = param_1 * 4 + 0x10;\n    }\n    iVar2 = FUN_001e5210(iVar2);\n    *(uint *)(iVar2 + 4) = param_1;\n    *(undefined4 *)(iVar2 + 8) = 0;\n    return;\n  }" if (parenthesized_expression "(param_1 < 0xfffffff)" ( (binary_expression "param_1 < 0xfffffff" identifier < number_literal) )) (compound_statement "{\n    if (param_2 < param_1) {\n      if (param_1 < param_2 * 2) {\n        param_1 = param_2 * 2;\n      }\n      iVar2 = param_1 * 4 + 0x10;\n      uVar1 = param_1 * 4 + 0x20;\n      if ((0x1000 < uVar1) && (param_2 < param_1)) {\n        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);\n        if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }\n        iVar2 = param_1 * 4 + 0x10;\n      }\n    }\n    else {\n      iVar2 = param_1 * 4 + 0x10;\n    }\n    iVar2 = FUN_001e5210(iVar2);\n    *(uint *)(iVar2 + 4) = param_1;\n    *(undefined4 *)(iVar2 + 8) = 0;\n    return;\n  }" { (if_statement "if (param_2 < param_1) {\n      if (param_1 < param_2 * 2) {\n        param_1 = param_2 * 2;\n      }\n      iVar2 = param_1 * 4 + 0x10;\n      uVar1 = param_1 * 4 + 0x20;\n      if ((0x1000 < uVar1) && (param_2 < param_1)) {\n        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);\n        if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }\n        iVar2 = param_1 * 4 + 0x10;\n      }\n    }\n    else {\n      iVar2 = param_1 * 4 + 0x10;\n    }" if (parenthesized_expression "(param_2 < param_1)" ( (binary_expression "param_2 < param_1" identifier < identifier) )) (compound_statement "{\n      if (param_1 < param_2 * 2) {\n        param_1 = param_2 * 2;\n      }\n      iVar2 = param_1 * 4 + 0x10;\n      uVar1 = param_1 * 4 + 0x20;\n      if ((0x1000 < uVar1) && (param_2 < param_1)) {\n        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);\n        if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }\n        iVar2 = param_1 * 4 + 0x10;\n      }\n    }" { (if_statement "if (param_1 < param_2 * 2) {\n        param_1 = param_2 * 2;\n      }" if (parenthesized_expression "(param_1 < param_2 * 2)" ( (binary_expression "param_1 < param_2 * 2" identifier < (binary_expression "param_2 * 2" identifier * number_literal)) )) (compound_statement "{\n        param_1 = param_2 * 2;\n      }" { (expression_statement "param_1 = param_2 * 2;" (assignment_expression "param_1 = param_2 * 2" identifier = (binary_expression "param_2 * 2" identifier * number_literal)) ;) })) (expression_statement "iVar2 = param_1 * 4 + 0x10;" (assignment_expression "iVar2 = param_1 * 4 + 0x10" identifier = (binary_expression "param_1 * 4 + 0x10" (binary_expression "param_1 * 4" identifier * number_literal) + number_literal)) ;) (expression_statement "uVar1 = param_1 * 4 + 0x20;" (assignment_expression "uVar1 = param_1 * 4 + 0x20" identifier = (binary_expression "param_1 * 4 + 0x20" (binary_expression "param_1 * 4" identifier * number_literal) + number_literal)) ;) (if_statement "if ((0x1000 < uVar1) && (param_2 < param_1)) {\n        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);\n        if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }\n        iVar2 = param_1 * 4 + 0x10;\n      }" if (parenthesized_expression "((0x1000 < uVar1) && (param_2 < param_1))" ( (binary_expression "(0x1000 < uVar1) && (param_2 < param_1)" (parenthesized_expression "(0x1000 < uVar1)" ( (binary_expression "0x1000 < uVar1" number_literal < identifier) )) && (parenthesized_expression "(param_2 < param_1)" ( (binary_expression "param_2 < param_1" identifier < identifier) ))) )) (compound_statement "{\n        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);\n        if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }\n        iVar2 = param_1 * 4 + 0x10;\n      }" { (expression_statement "param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);" (assignment_expression "param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2)" identifier = (binary_expression "param_1 + (0x1000 - (uVar1 & 0xfff) >> 2)" identifier + (parenthesized_expression "(0x1000 - (uVar1 & 0xfff) >> 2)" ( (binary_expression "0x1000 - (uVar1 & 0xfff) >> 2" (binary_expression "0x1000 - (uVar1 & 0xfff)" number_literal - (parenthesized_expression "(uVar1 & 0xfff)" ( (binary_expression "uVar1 & 0xfff" identifier & number_literal) ))) >> number_literal) )))) ;) (if_statement "if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }" if (parenthesized_expression "(0xffffffe < param_1)" ( (binary_expression "0xffffffe < param_1" number_literal < identifier) )) (compound_statement "{\n          param_1 = 0xffffffe;\n        }" { (expression_statement "param_1 = 0xffffffe;" (assignment_expression "param_1 = 0xffffffe" identifier = number_literal) ;) })) (expression_statement "iVar2 = param_1 * 4 + 0x10;" (assignment_expression "iVar2 = param_1 * 4 + 0x10" identifier = (binary_expression "param_1 * 4 + 0x10" (binary_expression "param_1 * 4" identifier * number_literal) + number_literal)) ;) })) }) (else_clause "else {\n      iVar2 = param_1 * 4 + 0x10;\n    }" else (compound_statement "{\n      iVar2 = param_1 * 4 + 0x10;\n    }" { (expression_statement "iVar2 = param_1 * 4 + 0x10;" (assignment_expression "iVar2 = param_1 * 4 + 0x10" identifier = (binary_expression "param_1 * 4 + 0x10" (binary_expression "param_1 * 4" identifier * number_literal) + number_literal)) ;) }))) (expression_statement "iVar2 = FUN_001e5210(iVar2);" (assignment_expression "iVar2 = FUN_001e5210(iVar2)" identifier = (call_expression "FUN_001e5210(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) (expression_statement "*(uint *)(iVar2 + 4) = param_1;" (assignment_expression "*(uint *)(iVar2 + 4) = param_1" (pointer_expression "*(uint *)(iVar2 + 4)" * (cast_expression "(uint *)(iVar2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar2 + 8) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 8) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 8)" * (cast_expression "(undefined4 *)(iVar2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_0022c7b0("basic_string::_S_create");" (call_expression "FUN_0022c7b0("basic_string::_S_create")" identifier (argument_list "("basic_string::_S_create")" ( (string_literal ""basic_string::_S_create"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT * LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT * LIT) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT * LIT) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) && (parenthesized_expression ( (binary_expression IDENT < IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression (binary_expression LIT - (parenthesized_expression ( (binary_expression IDENT & LIT) ))) >> LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT * LIT) + LIT)) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT * LIT) + LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })))
(function_definition "void FUN_00269ac0(uint param_1,uint param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  if (param_1 < 0xfffffff) {\n    if (param_2 < param_1) {\n      if (param_1 < param_2 * 2) {\n        param_1 = param_2 * 2;\n      }\n      iVar2 = param_1 * 4 + 0x10;\n      uVar1 = param_1 * 4 + 0x20;\n      if ((0x1000 < uVar1) && (param_2 < param_1)) {\n        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);\n        if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }\n        iVar2 = param_1 * 4 + 0x10;\n      }\n    }\n    else {\n      iVar2 = param_1 * 4 + 0x10;\n    }\n    iVar2 = FUN_001e5210(iVar2);\n    *(uint *)(iVar2 + 4) = param_1;\n    *(undefined4 *)(iVar2 + 8) = 0;\n    return;\n  }\n                    \n  FUN_0022c7b0("basic_string::_S_create");\n}" (primitive_type "void") (function_declarator "FUN_00269ac0(uint param_1,uint param_2)" (identifier "FUN_00269ac0") (parameter_list "(uint param_1,uint param_2)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  \n  if (param_1 < 0xfffffff) {\n    if (param_2 < param_1) {\n      if (param_1 < param_2 * 2) {\n        param_1 = param_2 * 2;\n      }\n      iVar2 = param_1 * 4 + 0x10;\n      uVar1 = param_1 * 4 + 0x20;\n      if ((0x1000 < uVar1) && (param_2 < param_1)) {\n        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);\n        if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }\n        iVar2 = param_1 * 4 + 0x10;\n      }\n    }\n    else {\n      iVar2 = param_1 * 4 + 0x10;\n    }\n    iVar2 = FUN_001e5210(iVar2);\n    *(uint *)(iVar2 + 4) = param_1;\n    *(undefined4 *)(iVar2 + 8) = 0;\n    return;\n  }\n                    \n  FUN_0022c7b0("basic_string::_S_create");\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (if_statement "if (param_1 < 0xfffffff) {\n    if (param_2 < param_1) {\n      if (param_1 < param_2 * 2) {\n        param_1 = param_2 * 2;\n      }\n      iVar2 = param_1 * 4 + 0x10;\n      uVar1 = param_1 * 4 + 0x20;\n      if ((0x1000 < uVar1) && (param_2 < param_1)) {\n        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);\n        if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }\n        iVar2 = param_1 * 4 + 0x10;\n      }\n    }\n    else {\n      iVar2 = param_1 * 4 + 0x10;\n    }\n    iVar2 = FUN_001e5210(iVar2);\n    *(uint *)(iVar2 + 4) = param_1;\n    *(undefined4 *)(iVar2 + 8) = 0;\n    return;\n  }" (if "if") (parenthesized_expression "(param_1 < 0xfffffff)" (( "(") (binary_expression "param_1 < 0xfffffff" (identifier "param_1") (< "<") (number_literal "0xfffffff")) () ")")) (compound_statement "{\n    if (param_2 < param_1) {\n      if (param_1 < param_2 * 2) {\n        param_1 = param_2 * 2;\n      }\n      iVar2 = param_1 * 4 + 0x10;\n      uVar1 = param_1 * 4 + 0x20;\n      if ((0x1000 < uVar1) && (param_2 < param_1)) {\n        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);\n        if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }\n        iVar2 = param_1 * 4 + 0x10;\n      }\n    }\n    else {\n      iVar2 = param_1 * 4 + 0x10;\n    }\n    iVar2 = FUN_001e5210(iVar2);\n    *(uint *)(iVar2 + 4) = param_1;\n    *(undefined4 *)(iVar2 + 8) = 0;\n    return;\n  }" ({ "{") (if_statement "if (param_2 < param_1) {\n      if (param_1 < param_2 * 2) {\n        param_1 = param_2 * 2;\n      }\n      iVar2 = param_1 * 4 + 0x10;\n      uVar1 = param_1 * 4 + 0x20;\n      if ((0x1000 < uVar1) && (param_2 < param_1)) {\n        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);\n        if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }\n        iVar2 = param_1 * 4 + 0x10;\n      }\n    }\n    else {\n      iVar2 = param_1 * 4 + 0x10;\n    }" (if "if") (parenthesized_expression "(param_2 < param_1)" (( "(") (binary_expression "param_2 < param_1" (identifier "param_2") (< "<") (identifier "param_1")) () ")")) (compound_statement "{\n      if (param_1 < param_2 * 2) {\n        param_1 = param_2 * 2;\n      }\n      iVar2 = param_1 * 4 + 0x10;\n      uVar1 = param_1 * 4 + 0x20;\n      if ((0x1000 < uVar1) && (param_2 < param_1)) {\n        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);\n        if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }\n        iVar2 = param_1 * 4 + 0x10;\n      }\n    }" ({ "{") (if_statement "if (param_1 < param_2 * 2) {\n        param_1 = param_2 * 2;\n      }" (if "if") (parenthesized_expression "(param_1 < param_2 * 2)" (( "(") (binary_expression "param_1 < param_2 * 2" (identifier "param_1") (< "<") (binary_expression "param_2 * 2" (identifier "param_2") (* "*") (number_literal "2"))) () ")")) (compound_statement "{\n        param_1 = param_2 * 2;\n      }" ({ "{") (expression_statement "param_1 = param_2 * 2;" (assignment_expression "param_1 = param_2 * 2" (identifier "param_1") (= "=") (binary_expression "param_2 * 2" (identifier "param_2") (* "*") (number_literal "2"))) (; ";")) (} "}"))) (expression_statement "iVar2 = param_1 * 4 + 0x10;" (assignment_expression "iVar2 = param_1 * 4 + 0x10" (identifier "iVar2") (= "=") (binary_expression "param_1 * 4 + 0x10" (binary_expression "param_1 * 4" (identifier "param_1") (* "*") (number_literal "4")) (+ "+") (number_literal "0x10"))) (; ";")) (expression_statement "uVar1 = param_1 * 4 + 0x20;" (assignment_expression "uVar1 = param_1 * 4 + 0x20" (identifier "uVar1") (= "=") (binary_expression "param_1 * 4 + 0x20" (binary_expression "param_1 * 4" (identifier "param_1") (* "*") (number_literal "4")) (+ "+") (number_literal "0x20"))) (; ";")) (if_statement "if ((0x1000 < uVar1) && (param_2 < param_1)) {\n        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);\n        if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }\n        iVar2 = param_1 * 4 + 0x10;\n      }" (if "if") (parenthesized_expression "((0x1000 < uVar1) && (param_2 < param_1))" (( "(") (binary_expression "(0x1000 < uVar1) && (param_2 < param_1)" (parenthesized_expression "(0x1000 < uVar1)" (( "(") (binary_expression "0x1000 < uVar1" (number_literal "0x1000") (< "<") (identifier "uVar1")) () ")")) (&& "&&") (parenthesized_expression "(param_2 < param_1)" (( "(") (binary_expression "param_2 < param_1" (identifier "param_2") (< "<") (identifier "param_1")) () ")"))) () ")")) (compound_statement "{\n        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);\n        if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }\n        iVar2 = param_1 * 4 + 0x10;\n      }" ({ "{") (expression_statement "param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);" (assignment_expression "param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2)" (identifier "param_1") (= "=") (binary_expression "param_1 + (0x1000 - (uVar1 & 0xfff) >> 2)" (identifier "param_1") (+ "+") (parenthesized_expression "(0x1000 - (uVar1 & 0xfff) >> 2)" (( "(") (binary_expression "0x1000 - (uVar1 & 0xfff) >> 2" (binary_expression "0x1000 - (uVar1 & 0xfff)" (number_literal "0x1000") (- "-") (parenthesized_expression "(uVar1 & 0xfff)" (( "(") (binary_expression "uVar1 & 0xfff" (identifier "uVar1") (& "&") (number_literal "0xfff")) () ")"))) (>> ">>") (number_literal "2")) () ")")))) (; ";")) (if_statement "if (0xffffffe < param_1) {\n          param_1 = 0xffffffe;\n        }" (if "if") (parenthesized_expression "(0xffffffe < param_1)" (( "(") (binary_expression "0xffffffe < param_1" (number_literal "0xffffffe") (< "<") (identifier "param_1")) () ")")) (compound_statement "{\n          param_1 = 0xffffffe;\n        }" ({ "{") (expression_statement "param_1 = 0xffffffe;" (assignment_expression "param_1 = 0xffffffe" (identifier "param_1") (= "=") (number_literal "0xffffffe")) (; ";")) (} "}"))) (expression_statement "iVar2 = param_1 * 4 + 0x10;" (assignment_expression "iVar2 = param_1 * 4 + 0x10" (identifier "iVar2") (= "=") (binary_expression "param_1 * 4 + 0x10" (binary_expression "param_1 * 4" (identifier "param_1") (* "*") (number_literal "4")) (+ "+") (number_literal "0x10"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      iVar2 = param_1 * 4 + 0x10;\n    }" (else "else") (compound_statement "{\n      iVar2 = param_1 * 4 + 0x10;\n    }" ({ "{") (expression_statement "iVar2 = param_1 * 4 + 0x10;" (assignment_expression "iVar2 = param_1 * 4 + 0x10" (identifier "iVar2") (= "=") (binary_expression "param_1 * 4 + 0x10" (binary_expression "param_1 * 4" (identifier "param_1") (* "*") (number_literal "4")) (+ "+") (number_literal "0x10"))) (; ";")) (} "}")))) (expression_statement "iVar2 = FUN_001e5210(iVar2);" (assignment_expression "iVar2 = FUN_001e5210(iVar2)" (identifier "iVar2") (= "=") (call_expression "FUN_001e5210(iVar2)" (identifier "FUN_001e5210") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")")))) (; ";")) (expression_statement "*(uint *)(iVar2 + 4) = param_1;" (assignment_expression "*(uint *)(iVar2 + 4) = param_1" (pointer_expression "*(uint *)(iVar2 + 4)" (* "*") (cast_expression "(uint *)(iVar2 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + 8) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 8) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 8)" (( "(") (binary_expression "iVar2 + 8" (identifier "iVar2") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0022c7b0("basic_string::_S_create");" (call_expression "FUN_0022c7b0("basic_string::_S_create")" (identifier "FUN_0022c7b0") (argument_list "("basic_string::_S_create")" (( "(") (string_literal ""basic_string::_S_create"" (" """) (string_content "basic_string::_S_create") (" """)) () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::wstring::_Rep::_S_create(unsigned int, unsigned int, std::allocator<wchar_t> const&) */

void std::wstring::_Rep::function_1(type_1 var_1,type_1 var_2,type_2 *param_3)

{
  type_1 var_3;
  void *pvVar2;
  type_1 uVar3;
  
  if (var_1 < 0xfffffff) {
    if (var_2 < var_1) {
      if (var_1 < var_2 * 2) {
        var_1 = var_2 * 2;
      }
      uVar3 = var_1 * 4 + 0x10;
      var_3 = var_1 * 4 + 0x20;
      if ((0x1000 < var_3) && (var_2 < var_1)) {
        var_1 = var_1 + (0x1000 - (var_3 & 0xfff) >> 2);
        if (0xffffffe < var_1) {
          var_1 = 0xffffffe;
        }
        uVar3 = var_1 * 4 + 0x10;
      }
    }
    else {
      uVar3 = var_1 * 4 + 0x10;
    }
    pvVar2 = var_4(uVar3);
    *(type_1 *)((int)pvVar2 + 4) = var_1;
    *(type_3 *)((int)pvVar2 + 8) = 0;
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_5("basic_string::_S_create");
}


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

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

void MASKED(uint param_1,uint param_2)

{
  uint uVar1;
  int iVar2;
  
  if (param_1 < 0xfffffff) {
    if (param_2 < param_1) {
      if (param_1 < param_2 * 2) {
        param_1 = param_2 * 2;
      }
      iVar2 = param_1 * 4 + 0x10;
      uVar1 = param_1 * 4 + 0x20;
      if ((0x1000 < uVar1) && (param_2 < param_1)) {
        param_1 = param_1 + (0x1000 - (uVar1 & 0xfff) >> 2);
        if (0xffffffe < param_1) {
          param_1 = 0xffffffe;
        }
        iVar2 = param_1 * 4 + 0x10;
      }
    }
    else {
      iVar2 = param_1 * 4 + 0x10;
    }
    iVar2 = FUN_001e5210(iVar2);
    *(uint *)(iVar2 + 4) = param_1;
    *(undefined4 *)(iVar2 + 8) = 0;
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0022c7b0("basic_string::_S_create");
}

