
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::string::_M_create(unsigned int&, unsigned int) */

void __thiscall std::string::_M_create(string *this,uint *param_1,uint param_2)

{
  uint uVar1;
  uint uVar2;
  
  uVar1 = *param_1;
  if ((int)uVar1 < 0) {
                    /* WARNING: Subroutine does not return */
    __throw_length_error("basic_string::_M_create");
  }
  if ((param_2 < uVar1) && (uVar2 = param_2 * 2, uVar1 < uVar2)) {
    if (-1 < (int)uVar2) {
      *param_1 = uVar2;
      operator_new(uVar2 + 1);
      return;
    }
    *param_1 = 0x7fffffff;
    operator_new(0x80000000);
    return;
  }
  operator_new(uVar1 + 1);
  return;
}



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

void FUN_001ee4d0(undefined4 param_1,uint *param_2,uint param_3)

{
  uint uVar1;
  
  uVar1 = *param_2;
  if ((int)uVar1 < 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0022c7b0("basic_string::_M_create");
  }
  if ((param_3 < uVar1) && (param_3 = param_3 * 2, uVar1 < param_3)) {
    if (-1 < (int)param_3) {
      *param_2 = param_3;
      FUN_001e5210(param_3 + 1);
      return;
    }
    *param_2 = 0x7fffffff;
    FUN_001e5210(0x80000000);
    return;
  }
  FUN_001e5210(uVar1 + 1);
  return;
}


PUSH EBX
CALL 0x00035840
ADD EBX,0x1a0b2a
SUB ESP,0x8
MOV ECX,dword ptr [ESP + 0x14]
MOV EDX,dword ptr [ESP + 0x18]
MOV EAX,dword ptr [ECX]
TEST EAX,EAX
JS 0x001ee541
CMP EAX,EDX
JBE 0x001ee510
ADD EDX,EDX
CMP EAX,EDX
JNC 0x001ee510
TEST EDX,EDX
JS 0x001ee528
SUB ESP,0xc
LEA EAX,[EDX + 0x1]
MOV dword ptr [ECX],EDX
PUSH EAX
CALL 0x001e5210
ADD ESP,0x18
POP EBX
RET
SUB ESP,0xc
ADD EAX,0x1
PUSH EAX
CALL 0x001e5210
ADD ESP,0x18
POP EBX
RET
SUB ESP,0xc
MOV EAX,0x80000000
MOV dword ptr [ECX],0x7fffffff
PUSH EAX
CALL 0x001e5210
ADD ESP,0x18
POP EBX
RET
SUB ESP,0xc
LEA EAX,[EBX + 0xfff14cc4]
PUSH EAX
CALL 0x0022c7b0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_001ee4d0(undefined4 param_1,uint *param_2,uint param_3)\n\n{\n  uint uVar1;\n  \n  uVar1 = *param_2;\n  if ((int)uVar1 < 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c7b0("basic_string::_M_create");\n  }\n  if ((param_3 < uVar1) && (param_3 = param_3 * 2, uVar1 < param_3)) {\n    if (-1 < (int)param_3) {\n      *param_2 = param_3;\n      FUN_001e5210(param_3 + 1);\n      return;\n    }\n    *param_2 = 0x7fffffff;\n    FUN_001e5210(0x80000000);\n    return;\n  }\n  FUN_001e5210(uVar1 + 1);\n  return;\n}\n\n" comment (function_definition "void FUN_001ee4d0(undefined4 param_1,uint *param_2,uint param_3)\n\n{\n  uint uVar1;\n  \n  uVar1 = *param_2;\n  if ((int)uVar1 < 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c7b0("basic_string::_M_create");\n  }\n  if ((param_3 < uVar1) && (param_3 = param_3 * 2, uVar1 < param_3)) {\n    if (-1 < (int)param_3) {\n      *param_2 = param_3;\n      FUN_001e5210(param_3 + 1);\n      return;\n    }\n    *param_2 = 0x7fffffff;\n    FUN_001e5210(0x80000000);\n    return;\n  }\n  FUN_001e5210(uVar1 + 1);\n  return;\n}" primitive_type (function_declarator "FUN_001ee4d0(undefined4 param_1,uint *param_2,uint param_3)" identifier (parameter_list "(undefined4 param_1,uint *param_2,uint param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = *param_2;\n  if ((int)uVar1 < 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c7b0("basic_string::_M_create");\n  }\n  if ((param_3 < uVar1) && (param_3 = param_3 * 2, uVar1 < param_3)) {\n    if (-1 < (int)param_3) {\n      *param_2 = param_3;\n      FUN_001e5210(param_3 + 1);\n      return;\n    }\n    *param_2 = 0x7fffffff;\n    FUN_001e5210(0x80000000);\n    return;\n  }\n  FUN_001e5210(uVar1 + 1);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = *param_2;" (assignment_expression "uVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if ((int)uVar1 < 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c7b0("basic_string::_M_create");\n  }" if (parenthesized_expression "((int)uVar1 < 0)" ( (binary_expression "(int)uVar1 < 0" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0022c7b0("basic_string::_M_create");\n  }" { comment (expression_statement "FUN_0022c7b0("basic_string::_M_create");" (call_expression "FUN_0022c7b0("basic_string::_M_create")" identifier (argument_list "("basic_string::_M_create")" ( (string_literal ""basic_string::_M_create"" " string_content ") ))) ;) })) (if_statement "if ((param_3 < uVar1) && (param_3 = param_3 * 2, uVar1 < param_3)) {\n    if (-1 < (int)param_3) {\n      *param_2 = param_3;\n      FUN_001e5210(param_3 + 1);\n      return;\n    }\n    *param_2 = 0x7fffffff;\n    FUN_001e5210(0x80000000);\n    return;\n  }" if (parenthesized_expression "((param_3 < uVar1) && (param_3 = param_3 * 2, uVar1 < param_3))" ( (binary_expression "(param_3 < uVar1) && (param_3 = param_3 * 2, uVar1 < param_3)" (parenthesized_expression "(param_3 < uVar1)" ( (binary_expression "param_3 < uVar1" identifier < identifier) )) && (parenthesized_expression "(param_3 = param_3 * 2, uVar1 < param_3)" ( (comma_expression "param_3 = param_3 * 2, uVar1 < param_3" (assignment_expression "param_3 = param_3 * 2" identifier = (binary_expression "param_3 * 2" identifier * number_literal)) , (binary_expression "uVar1 < param_3" identifier < identifier)) ))) )) (compound_statement "{\n    if (-1 < (int)param_3) {\n      *param_2 = param_3;\n      FUN_001e5210(param_3 + 1);\n      return;\n    }\n    *param_2 = 0x7fffffff;\n    FUN_001e5210(0x80000000);\n    return;\n  }" { (if_statement "if (-1 < (int)param_3) {\n      *param_2 = param_3;\n      FUN_001e5210(param_3 + 1);\n      return;\n    }" if (parenthesized_expression "(-1 < (int)param_3)" ( (binary_expression "-1 < (int)param_3" number_literal < (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      *param_2 = param_3;\n      FUN_001e5210(param_3 + 1);\n      return;\n    }" { (expression_statement "*param_2 = param_3;" (assignment_expression "*param_2 = param_3" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "FUN_001e5210(param_3 + 1);" (call_expression "FUN_001e5210(param_3 + 1)" identifier (argument_list "(param_3 + 1)" ( (binary_expression "param_3 + 1" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "*param_2 = 0x7fffffff;" (assignment_expression "*param_2 = 0x7fffffff" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "FUN_001e5210(0x80000000);" (call_expression "FUN_001e5210(0x80000000)" identifier (argument_list "(0x80000000)" ( number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_001e5210(uVar1 + 1);" (call_expression "FUN_001e5210(uVar1 + 1)" identifier (argument_list "(uVar1 + 1)" ( (binary_expression "uVar1 + 1" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::string::_M_create(unsigned int&, unsigned int) */\n\nvoid __thiscall std::string::_M_create(string *this,uint *param_1,uint param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = *param_1;\n  if ((int)uVar1 < 0) {\n                    /* WARNING: Subroutine does not return */\n    __throw_length_error("basic_string::_M_create");\n  }\n  if ((param_2 < uVar1) && (uVar2 = param_2 * 2, uVar1 < uVar2)) {\n    if (-1 < (int)uVar2) {\n      *param_1 = uVar2;\n      operator_new(uVar2 + 1);\n      return;\n    }\n    *param_1 = 0x7fffffff;\n    operator_new(0x80000000);\n    return;\n  }\n  operator_new(uVar1 + 1);\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::string::_M_create(string *this,uint *param_1,uint param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = *param_1;\n  if ((int)uVar1 < 0) {\n                    /* WARNING: Subroutine does not return */\n    __throw_length_error("basic_string::_M_create");\n  }\n  if ((param_2 < uVar1) && (uVar2 = param_2 * 2, uVar1 < uVar2)) {\n    if (-1 < (int)uVar2) {\n      *param_1 = uVar2;\n      operator_new(uVar2 + 1);\n      return;\n    }\n    *param_1 = 0x7fffffff;\n    operator_new(0x80000000);\n    return;\n  }\n  operator_new(uVar1 + 1);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::string::" identifier : : identifier : :) (function_declarator "_M_create(string *this,uint *param_1,uint param_2)" identifier (parameter_list "(string *this,uint *param_1,uint param_2)" ( (parameter_declaration "string *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = *param_1;\n  if ((int)uVar1 < 0) {\n                    /* WARNING: Subroutine does not return */\n    __throw_length_error("basic_string::_M_create");\n  }\n  if ((param_2 < uVar1) && (uVar2 = param_2 * 2, uVar1 < uVar2)) {\n    if (-1 < (int)uVar2) {\n      *param_1 = uVar2;\n      operator_new(uVar2 + 1);\n      return;\n    }\n    *param_1 = 0x7fffffff;\n    operator_new(0x80000000);\n    return;\n  }\n  operator_new(uVar1 + 1);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if ((int)uVar1 < 0) {\n                    /* WARNING: Subroutine does not return */\n    __throw_length_error("basic_string::_M_create");\n  }" if (parenthesized_expression "((int)uVar1 < 0)" ( (binary_expression "(int)uVar1 < 0" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __throw_length_error("basic_string::_M_create");\n  }" { comment (expression_statement "__throw_length_error("basic_string::_M_create");" (call_expression "__throw_length_error("basic_string::_M_create")" identifier (argument_list "("basic_string::_M_create")" ( (string_literal ""basic_string::_M_create"" " string_content ") ))) ;) })) (if_statement "if ((param_2 < uVar1) && (uVar2 = param_2 * 2, uVar1 < uVar2)) {\n    if (-1 < (int)uVar2) {\n      *param_1 = uVar2;\n      operator_new(uVar2 + 1);\n      return;\n    }\n    *param_1 = 0x7fffffff;\n    operator_new(0x80000000);\n    return;\n  }" if (parenthesized_expression "((param_2 < uVar1) && (uVar2 = param_2 * 2, uVar1 < uVar2))" ( (binary_expression "(param_2 < uVar1) && (uVar2 = param_2 * 2, uVar1 < uVar2)" (parenthesized_expression "(param_2 < uVar1)" ( (binary_expression "param_2 < uVar1" identifier < identifier) )) && (parenthesized_expression "(uVar2 = param_2 * 2, uVar1 < uVar2)" ( (comma_expression "uVar2 = param_2 * 2, uVar1 < uVar2" (assignment_expression "uVar2 = param_2 * 2" identifier = (binary_expression "param_2 * 2" identifier * number_literal)) , (binary_expression "uVar1 < uVar2" identifier < identifier)) ))) )) (compound_statement "{\n    if (-1 < (int)uVar2) {\n      *param_1 = uVar2;\n      operator_new(uVar2 + 1);\n      return;\n    }\n    *param_1 = 0x7fffffff;\n    operator_new(0x80000000);\n    return;\n  }" { (if_statement "if (-1 < (int)uVar2) {\n      *param_1 = uVar2;\n      operator_new(uVar2 + 1);\n      return;\n    }" if (parenthesized_expression "(-1 < (int)uVar2)" ( (binary_expression "-1 < (int)uVar2" number_literal < (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      *param_1 = uVar2;\n      operator_new(uVar2 + 1);\n      return;\n    }" { (expression_statement "*param_1 = uVar2;" (assignment_expression "*param_1 = uVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "operator_new(uVar2 + 1);" (call_expression "operator_new(uVar2 + 1)" identifier (argument_list "(uVar2 + 1)" ( (binary_expression "uVar2 + 1" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "*param_1 = 0x7fffffff;" (assignment_expression "*param_1 = 0x7fffffff" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "operator_new(0x80000000);" (call_expression "operator_new(0x80000000)" identifier (argument_list "(0x80000000)" ( number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "operator_new(uVar1 + 1);" (call_expression "operator_new(uVar1 + 1)" identifier (argument_list "(uVar1 + 1)" ( (binary_expression "uVar1 + 1" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001ee4d0(undefined4 param_1,uint *param_2,uint param_3)\n\n{\n  uint uVar1;\n  \n  uVar1 = *param_2;\n  if ((int)uVar1 < 0) {\n                    \n    FUN_0022c7b0("basic_string::_M_create");\n  }\n  if ((param_3 < uVar1) && (param_3 = param_3 * 2, uVar1 < param_3)) {\n    if (-1 < (int)param_3) {\n      *param_2 = param_3;\n      FUN_001e5210(param_3 + 1);\n      return;\n    }\n    *param_2 = 0x7fffffff;\n    FUN_001e5210(0x80000000);\n    return;\n  }\n  FUN_001e5210(uVar1 + 1);\n  return;\n}\n\n" (function_definition "void FUN_001ee4d0(undefined4 param_1,uint *param_2,uint param_3)\n\n{\n  uint uVar1;\n  \n  uVar1 = *param_2;\n  if ((int)uVar1 < 0) {\n                    \n    FUN_0022c7b0("basic_string::_M_create");\n  }\n  if ((param_3 < uVar1) && (param_3 = param_3 * 2, uVar1 < param_3)) {\n    if (-1 < (int)param_3) {\n      *param_2 = param_3;\n      FUN_001e5210(param_3 + 1);\n      return;\n    }\n    *param_2 = 0x7fffffff;\n    FUN_001e5210(0x80000000);\n    return;\n  }\n  FUN_001e5210(uVar1 + 1);\n  return;\n}" primitive_type (function_declarator "FUN_001ee4d0(undefined4 param_1,uint *param_2,uint param_3)" identifier (parameter_list "(undefined4 param_1,uint *param_2,uint param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = *param_2;\n  if ((int)uVar1 < 0) {\n                    \n    FUN_0022c7b0("basic_string::_M_create");\n  }\n  if ((param_3 < uVar1) && (param_3 = param_3 * 2, uVar1 < param_3)) {\n    if (-1 < (int)param_3) {\n      *param_2 = param_3;\n      FUN_001e5210(param_3 + 1);\n      return;\n    }\n    *param_2 = 0x7fffffff;\n    FUN_001e5210(0x80000000);\n    return;\n  }\n  FUN_001e5210(uVar1 + 1);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = *param_2;" (assignment_expression "uVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if ((int)uVar1 < 0) {\n                    \n    FUN_0022c7b0("basic_string::_M_create");\n  }" if (parenthesized_expression "((int)uVar1 < 0)" ( (binary_expression "(int)uVar1 < 0" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n                    \n    FUN_0022c7b0("basic_string::_M_create");\n  }" { (expression_statement "FUN_0022c7b0("basic_string::_M_create");" (call_expression "FUN_0022c7b0("basic_string::_M_create")" identifier (argument_list "("basic_string::_M_create")" ( (string_literal ""basic_string::_M_create"" " string_content ") ))) ;) })) (if_statement "if ((param_3 < uVar1) && (param_3 = param_3 * 2, uVar1 < param_3)) {\n    if (-1 < (int)param_3) {\n      *param_2 = param_3;\n      FUN_001e5210(param_3 + 1);\n      return;\n    }\n    *param_2 = 0x7fffffff;\n    FUN_001e5210(0x80000000);\n    return;\n  }" if (parenthesized_expression "((param_3 < uVar1) && (param_3 = param_3 * 2, uVar1 < param_3))" ( (binary_expression "(param_3 < uVar1) && (param_3 = param_3 * 2, uVar1 < param_3)" (parenthesized_expression "(param_3 < uVar1)" ( (binary_expression "param_3 < uVar1" identifier < identifier) )) && (parenthesized_expression "(param_3 = param_3 * 2, uVar1 < param_3)" ( (comma_expression "param_3 = param_3 * 2, uVar1 < param_3" (assignment_expression "param_3 = param_3 * 2" identifier = (binary_expression "param_3 * 2" identifier * number_literal)) , (binary_expression "uVar1 < param_3" identifier < identifier)) ))) )) (compound_statement "{\n    if (-1 < (int)param_3) {\n      *param_2 = param_3;\n      FUN_001e5210(param_3 + 1);\n      return;\n    }\n    *param_2 = 0x7fffffff;\n    FUN_001e5210(0x80000000);\n    return;\n  }" { (if_statement "if (-1 < (int)param_3) {\n      *param_2 = param_3;\n      FUN_001e5210(param_3 + 1);\n      return;\n    }" if (parenthesized_expression "(-1 < (int)param_3)" ( (binary_expression "-1 < (int)param_3" number_literal < (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      *param_2 = param_3;\n      FUN_001e5210(param_3 + 1);\n      return;\n    }" { (expression_statement "*param_2 = param_3;" (assignment_expression "*param_2 = param_3" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "FUN_001e5210(param_3 + 1);" (call_expression "FUN_001e5210(param_3 + 1)" identifier (argument_list "(param_3 + 1)" ( (binary_expression "param_3 + 1" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "*param_2 = 0x7fffffff;" (assignment_expression "*param_2 = 0x7fffffff" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "FUN_001e5210(0x80000000);" (call_expression "FUN_001e5210(0x80000000)" identifier (argument_list "(0x80000000)" ( number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_001e5210(uVar1 + 1);" (call_expression "FUN_001e5210(uVar1 + 1)" identifier (argument_list "(uVar1 + 1)" ( (binary_expression "uVar1 + 1" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < IDENT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT * LIT)) , (binary_expression IDENT < IDENT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_001ee4d0(undefined4 param_1,uint *param_2,uint param_3)\n\n{\n  uint uVar1;\n  \n  uVar1 = *param_2;\n  if ((int)uVar1 < 0) {\n                    \n    FUN_0022c7b0("basic_string::_M_create");\n  }\n  if ((param_3 < uVar1) && (param_3 = param_3 * 2, uVar1 < param_3)) {\n    if (-1 < (int)param_3) {\n      *param_2 = param_3;\n      FUN_001e5210(param_3 + 1);\n      return;\n    }\n    *param_2 = 0x7fffffff;\n    FUN_001e5210(0x80000000);\n    return;\n  }\n  FUN_001e5210(uVar1 + 1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001ee4d0(undefined4 param_1,uint *param_2,uint param_3)" (identifier "FUN_001ee4d0") (parameter_list "(undefined4 param_1,uint *param_2,uint param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "uint *param_2" (type_identifier "uint") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = *param_2;\n  if ((int)uVar1 < 0) {\n                    \n    FUN_0022c7b0("basic_string::_M_create");\n  }\n  if ((param_3 < uVar1) && (param_3 = param_3 * 2, uVar1 < param_3)) {\n    if (-1 < (int)param_3) {\n      *param_2 = param_3;\n      FUN_001e5210(param_3 + 1);\n      return;\n    }\n    *param_2 = 0x7fffffff;\n    FUN_001e5210(0x80000000);\n    return;\n  }\n  FUN_001e5210(uVar1 + 1);\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (expression_statement "uVar1 = *param_2;" (assignment_expression "uVar1 = *param_2" (identifier "uVar1") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (if_statement "if ((int)uVar1 < 0) {\n                    \n    FUN_0022c7b0("basic_string::_M_create");\n  }" (if "if") (parenthesized_expression "((int)uVar1 < 0)" (( "(") (binary_expression "(int)uVar1 < 0" (cast_expression "(int)uVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar1")) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_0022c7b0("basic_string::_M_create");\n  }" ({ "{") (expression_statement "FUN_0022c7b0("basic_string::_M_create");" (call_expression "FUN_0022c7b0("basic_string::_M_create")" (identifier "FUN_0022c7b0") (argument_list "("basic_string::_M_create")" (( "(") (string_literal ""basic_string::_M_create"" (" """) (string_content "basic_string::_M_create") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if ((param_3 < uVar1) && (param_3 = param_3 * 2, uVar1 < param_3)) {\n    if (-1 < (int)param_3) {\n      *param_2 = param_3;\n      FUN_001e5210(param_3 + 1);\n      return;\n    }\n    *param_2 = 0x7fffffff;\n    FUN_001e5210(0x80000000);\n    return;\n  }" (if "if") (parenthesized_expression "((param_3 < uVar1) && (param_3 = param_3 * 2, uVar1 < param_3))" (( "(") (binary_expression "(param_3 < uVar1) && (param_3 = param_3 * 2, uVar1 < param_3)" (parenthesized_expression "(param_3 < uVar1)" (( "(") (binary_expression "param_3 < uVar1" (identifier "param_3") (< "<") (identifier "uVar1")) () ")")) (&& "&&") (parenthesized_expression "(param_3 = param_3 * 2, uVar1 < param_3)" (( "(") (comma_expression "param_3 = param_3 * 2, uVar1 < param_3" (assignment_expression "param_3 = param_3 * 2" (identifier "param_3") (= "=") (binary_expression "param_3 * 2" (identifier "param_3") (* "*") (number_literal "2"))) (, ",") (binary_expression "uVar1 < param_3" (identifier "uVar1") (< "<") (identifier "param_3"))) () ")"))) () ")")) (compound_statement "{\n    if (-1 < (int)param_3) {\n      *param_2 = param_3;\n      FUN_001e5210(param_3 + 1);\n      return;\n    }\n    *param_2 = 0x7fffffff;\n    FUN_001e5210(0x80000000);\n    return;\n  }" ({ "{") (if_statement "if (-1 < (int)param_3) {\n      *param_2 = param_3;\n      FUN_001e5210(param_3 + 1);\n      return;\n    }" (if "if") (parenthesized_expression "(-1 < (int)param_3)" (( "(") (binary_expression "-1 < (int)param_3" (number_literal "-1") (< "<") (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3"))) () ")")) (compound_statement "{\n      *param_2 = param_3;\n      FUN_001e5210(param_3 + 1);\n      return;\n    }" ({ "{") (expression_statement "*param_2 = param_3;" (assignment_expression "*param_2 = param_3" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "FUN_001e5210(param_3 + 1);" (call_expression "FUN_001e5210(param_3 + 1)" (identifier "FUN_001e5210") (argument_list "(param_3 + 1)" (( "(") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*param_2 = 0x7fffffff;" (assignment_expression "*param_2 = 0x7fffffff" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0x7fffffff")) (; ";")) (expression_statement "FUN_001e5210(0x80000000);" (call_expression "FUN_001e5210(0x80000000)" (identifier "FUN_001e5210") (argument_list "(0x80000000)" (( "(") (number_literal "0x80000000") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_001e5210(uVar1 + 1);" (call_expression "FUN_001e5210(uVar1 + 1)" (identifier "FUN_001e5210") (argument_list "(uVar1 + 1)" (( "(") (binary_expression "uVar1 + 1" (identifier "uVar1") (+ "+") (number_literal "1")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::string::_M_create(unsigned int&, unsigned int) */

void __thiscall std::type_1::function_1(type_1 *this,type_2 *param_1,type_2 var_2)

{
  type_2 var_3;
  type_2 var_4;
  
  var_3 = *param_1;
  if ((int)var_3 < 0) {
                    /* WARNING: Subroutine does not return */
    var_1("basic_string::_M_create");
  }
  if ((var_2 < var_3) && (var_4 = var_2 * 2, var_3 < var_4)) {
    if (-1 < (int)var_4) {
      *param_1 = var_4;
      var_5(var_4 + 1);
      return;
    }
    *param_1 = 0x7fffffff;
    var_5(0x80000000);
    return;
  }
  var_5(var_3 + 1);
  return;
}


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

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

void MASKED(undefined4 param_1,uint *param_2,uint param_3)

{
  uint uVar1;
  
  uVar1 = *param_2;
  if ((int)uVar1 < 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0022c7b0("basic_string::_M_create");
  }
  if ((param_3 < uVar1) && (param_3 = param_3 * 2, uVar1 < param_3)) {
    if (-1 < (int)param_3) {
      *param_2 = param_3;
      FUN_001e5210(param_3 + 1);
      return;
    }
    *param_2 = 0x7fffffff;
    FUN_001e5210(0x80000000);
    return;
  }
  FUN_001e5210(uVar1 + 1);
  return;
}

