
/* std::string::string(char const*, std::allocator<char> const&) */

void __thiscall std::string::string(string *this,char *param_1,allocator *param_2)

{
  size_t sVar1;
  char *pcVar2;
  
  pcVar2 = (char *)0xffffffffffffffff;
  if (param_1 != (char *)0x0) {
    sVar1 = strlen(param_1);
    pcVar2 = param_1 + sVar1;
  }
  pcVar2 = _S_construct<char_const*>(param_1,pcVar2,param_2);
  *(char **)this = pcVar2;
  return;
}



void FUN_002ab6f0(undefined8 *param_1,char *param_2,undefined8 param_3)

{
  size_t sVar1;
  undefined8 uVar2;
  char *pcVar3;
  
  pcVar3 = (char *)0xffffffffffffffff;
  if (param_2 != (char *)0x0) {
    sVar1 = strlen(param_2);
    pcVar3 = param_2 + sVar1;
  }
  uVar2 = FUN_002ab360(param_2,pcVar3,param_3);
  *param_1 = uVar2;
  return;
}


PUSH R12
MOV R12,RDX
PUSH RBP
MOV RBP,RDI
PUSH RBX
MOV RBX,RSI
MOV RSI,-0x1
TEST RBX,RBX
JZ 0x002ab715
MOV RDI,RBX
CALL 0x0013e490
LEA RSI,[RBX + RAX*0x1]
MOV RDX,R12
MOV RDI,RBX
CALL 0x002ab360
POP RBX
MOV qword ptr [RBP],RAX
POP RBP
POP R12
RET
(translation_unit "void FUN_002ab6f0(undefined8 *param_1,char *param_2,undefined8 param_3)\n\n{\n  size_t sVar1;\n  undefined8 uVar2;\n  char *pcVar3;\n  \n  pcVar3 = (char *)0xffffffffffffffff;\n  if (param_2 != (char *)0x0) {\n    sVar1 = strlen(param_2);\n    pcVar3 = param_2 + sVar1;\n  }\n  uVar2 = FUN_002ab360(param_2,pcVar3,param_3);\n  *param_1 = uVar2;\n  return;\n}\n\n" (function_definition "void FUN_002ab6f0(undefined8 *param_1,char *param_2,undefined8 param_3)\n\n{\n  size_t sVar1;\n  undefined8 uVar2;\n  char *pcVar3;\n  \n  pcVar3 = (char *)0xffffffffffffffff;\n  if (param_2 != (char *)0x0) {\n    sVar1 = strlen(param_2);\n    pcVar3 = param_2 + sVar1;\n  }\n  uVar2 = FUN_002ab360(param_2,pcVar3,param_3);\n  *param_1 = uVar2;\n  return;\n}" primitive_type (function_declarator "FUN_002ab6f0(undefined8 *param_1,char *param_2,undefined8 param_3)" identifier (parameter_list "(undefined8 *param_1,char *param_2,undefined8 param_3)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined8 param_3" type_identifier identifier) ))) (compound_statement "{\n  size_t sVar1;\n  undefined8 uVar2;\n  char *pcVar3;\n  \n  pcVar3 = (char *)0xffffffffffffffff;\n  if (param_2 != (char *)0x0) {\n    sVar1 = strlen(param_2);\n    pcVar3 = param_2 + sVar1;\n  }\n  uVar2 = FUN_002ab360(param_2,pcVar3,param_3);\n  *param_1 = uVar2;\n  return;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "pcVar3 = (char *)0xffffffffffffffff;" (assignment_expression "pcVar3 = (char *)0xffffffffffffffff" identifier = (cast_expression "(char *)0xffffffffffffffff" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (param_2 != (char *)0x0) {\n    sVar1 = strlen(param_2);\n    pcVar3 = param_2 + sVar1;\n  }" if (parenthesized_expression "(param_2 != (char *)0x0)" ( (binary_expression "param_2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar1 = strlen(param_2);\n    pcVar3 = param_2 + sVar1;\n  }" { (expression_statement "sVar1 = strlen(param_2);" (assignment_expression "sVar1 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "pcVar3 = param_2 + sVar1;" (assignment_expression "pcVar3 = param_2 + sVar1" identifier = (binary_expression "param_2 + sVar1" identifier + identifier)) ;) })) (expression_statement "uVar2 = FUN_002ab360(param_2,pcVar3,param_3);" (assignment_expression "uVar2 = FUN_002ab360(param_2,pcVar3,param_3)" identifier = (call_expression "FUN_002ab360(param_2,pcVar3,param_3)" identifier (argument_list "(param_2,pcVar3,param_3)" ( identifier , identifier , identifier )))) ;) (expression_statement "*param_1 = uVar2;" (assignment_expression "*param_1 = uVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::string::string(char const*, std::allocator<char> const&) */\n\nvoid __thiscall std::string::string(string *this,char *param_1,allocator *param_2)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  \n  pcVar2 = (char *)0xffffffffffffffff;\n  if (param_1 != (char *)0x0) {\n    sVar1 = strlen(param_1);\n    pcVar2 = param_1 + sVar1;\n  }\n  pcVar2 = _S_construct<char_const*>(param_1,pcVar2,param_2);\n  *(char **)this = pcVar2;\n  return;\n}\n\n" comment (function_definition "void __thiscall std::string::string(string *this,char *param_1,allocator *param_2)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  \n  pcVar2 = (char *)0xffffffffffffffff;\n  if (param_1 != (char *)0x0) {\n    sVar1 = strlen(param_1);\n    pcVar2 = param_1 + sVar1;\n  }\n  pcVar2 = _S_construct<char_const*>(param_1,pcVar2,param_2);\n  *(char **)this = pcVar2;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::string::" identifier : : identifier : :) (function_declarator "string(string *this,char *param_1,allocator *param_2)" identifier (parameter_list "(string *this,char *param_1,allocator *param_2)" ( (parameter_declaration "string *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "allocator *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  char *pcVar2;\n  \n  pcVar2 = (char *)0xffffffffffffffff;\n  if (param_1 != (char *)0x0) {\n    sVar1 = strlen(param_1);\n    pcVar2 = param_1 + sVar1;\n  }\n  pcVar2 = _S_construct<char_const*>(param_1,pcVar2,param_2);\n  *(char **)this = pcVar2;\n  return;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "pcVar2 = (char *)0xffffffffffffffff;" (assignment_expression "pcVar2 = (char *)0xffffffffffffffff" identifier = (cast_expression "(char *)0xffffffffffffffff" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (param_1 != (char *)0x0) {\n    sVar1 = strlen(param_1);\n    pcVar2 = param_1 + sVar1;\n  }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar1 = strlen(param_1);\n    pcVar2 = param_1 + sVar1;\n  }" { (expression_statement "sVar1 = strlen(param_1);" (assignment_expression "sVar1 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "pcVar2 = param_1 + sVar1;" (assignment_expression "pcVar2 = param_1 + sVar1" identifier = (binary_expression "param_1 + sVar1" identifier + identifier)) ;) })) (expression_statement "pcVar2 = _S_construct<char_const*>(param_1,pcVar2,param_2);" (assignment_expression "pcVar2 = _S_construct<char_const*>(param_1,pcVar2,param_2)" identifier = (binary_expression "_S_construct<char_const*>(param_1,pcVar2,param_2)" (binary_expression "_S_construct<char_const" identifier < identifier) (ERROR "*" *) > (parenthesized_expression "(param_1,pcVar2,param_2)" ( (comma_expression "param_1,pcVar2,param_2" identifier , (comma_expression "pcVar2,param_2" identifier , identifier)) )))) ;) (expression_statement "*(char **)this = pcVar2;" (assignment_expression "*(char **)this = pcVar2" (pointer_expression "*(char **)this" * (cast_expression "(char **)this" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_002ab6f0(undefined8 *param_1,char *param_2,undefined8 param_3)\n\n{\n  size_t sVar1;\n  undefined8 uVar2;\n  char *pcVar3;\n  \n  pcVar3 = (char *)0xffffffffffffffff;\n  if (param_2 != (char *)0x0) {\n    sVar1 = strlen(param_2);\n    pcVar3 = param_2 + sVar1;\n  }\n  uVar2 = FUN_002ab360(param_2,pcVar3,param_3);\n  *param_1 = uVar2;\n  return;\n}\n\n" (function_definition "void FUN_002ab6f0(undefined8 *param_1,char *param_2,undefined8 param_3)\n\n{\n  size_t sVar1;\n  undefined8 uVar2;\n  char *pcVar3;\n  \n  pcVar3 = (char *)0xffffffffffffffff;\n  if (param_2 != (char *)0x0) {\n    sVar1 = strlen(param_2);\n    pcVar3 = param_2 + sVar1;\n  }\n  uVar2 = FUN_002ab360(param_2,pcVar3,param_3);\n  *param_1 = uVar2;\n  return;\n}" primitive_type (function_declarator "FUN_002ab6f0(undefined8 *param_1,char *param_2,undefined8 param_3)" identifier (parameter_list "(undefined8 *param_1,char *param_2,undefined8 param_3)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined8 param_3" type_identifier identifier) ))) (compound_statement "{\n  size_t sVar1;\n  undefined8 uVar2;\n  char *pcVar3;\n  \n  pcVar3 = (char *)0xffffffffffffffff;\n  if (param_2 != (char *)0x0) {\n    sVar1 = strlen(param_2);\n    pcVar3 = param_2 + sVar1;\n  }\n  uVar2 = FUN_002ab360(param_2,pcVar3,param_3);\n  *param_1 = uVar2;\n  return;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "pcVar3 = (char *)0xffffffffffffffff;" (assignment_expression "pcVar3 = (char *)0xffffffffffffffff" identifier = (cast_expression "(char *)0xffffffffffffffff" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (param_2 != (char *)0x0) {\n    sVar1 = strlen(param_2);\n    pcVar3 = param_2 + sVar1;\n  }" if (parenthesized_expression "(param_2 != (char *)0x0)" ( (binary_expression "param_2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar1 = strlen(param_2);\n    pcVar3 = param_2 + sVar1;\n  }" { (expression_statement "sVar1 = strlen(param_2);" (assignment_expression "sVar1 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "pcVar3 = param_2 + sVar1;" (assignment_expression "pcVar3 = param_2 + sVar1" identifier = (binary_expression "param_2 + sVar1" identifier + identifier)) ;) })) (expression_statement "uVar2 = FUN_002ab360(param_2,pcVar3,param_3);" (assignment_expression "uVar2 = FUN_002ab360(param_2,pcVar3,param_3)" identifier = (call_expression "FUN_002ab360(param_2,pcVar3,param_3)" identifier (argument_list "(param_2,pcVar3,param_3)" ( identifier , identifier , identifier )))) ;) (expression_statement "*param_1 = uVar2;" (assignment_expression "*param_1 = uVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_002ab6f0(undefined8 *param_1,char *param_2,undefined8 param_3)\n\n{\n  size_t sVar1;\n  undefined8 uVar2;\n  char *pcVar3;\n  \n  pcVar3 = (char *)0xffffffffffffffff;\n  if (param_2 != (char *)0x0) {\n    sVar1 = strlen(param_2);\n    pcVar3 = param_2 + sVar1;\n  }\n  uVar2 = FUN_002ab360(param_2,pcVar3,param_3);\n  *param_1 = uVar2;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002ab6f0(undefined8 *param_1,char *param_2,undefined8 param_3)" (identifier "FUN_002ab6f0") (parameter_list "(undefined8 *param_1,char *param_2,undefined8 param_3)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) () ")"))) (compound_statement "{\n  size_t sVar1;\n  undefined8 uVar2;\n  char *pcVar3;\n  \n  pcVar3 = (char *)0xffffffffffffffff;\n  if (param_2 != (char *)0x0) {\n    sVar1 = strlen(param_2);\n    pcVar3 = param_2 + sVar1;\n  }\n  uVar2 = FUN_002ab360(param_2,pcVar3,param_3);\n  *param_1 = uVar2;\n  return;\n}" ({ "{") (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (expression_statement "pcVar3 = (char *)0xffffffffffffffff;" (assignment_expression "pcVar3 = (char *)0xffffffffffffffff" (identifier "pcVar3") (= "=") (cast_expression "(char *)0xffffffffffffffff" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0xffffffffffffffff"))) (; ";")) (if_statement "if (param_2 != (char *)0x0) {\n    sVar1 = strlen(param_2);\n    pcVar3 = param_2 + sVar1;\n  }" (if "if") (parenthesized_expression "(param_2 != (char *)0x0)" (( "(") (binary_expression "param_2 != (char *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    sVar1 = strlen(param_2);\n    pcVar3 = param_2 + sVar1;\n  }" ({ "{") (expression_statement "sVar1 = strlen(param_2);" (assignment_expression "sVar1 = strlen(param_2)" (identifier "sVar1") (= "=") (call_expression "strlen(param_2)" (identifier "strlen") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "pcVar3 = param_2 + sVar1;" (assignment_expression "pcVar3 = param_2 + sVar1" (identifier "pcVar3") (= "=") (binary_expression "param_2 + sVar1" (identifier "param_2") (+ "+") (identifier "sVar1"))) (; ";")) (} "}"))) (expression_statement "uVar2 = FUN_002ab360(param_2,pcVar3,param_3);" (assignment_expression "uVar2 = FUN_002ab360(param_2,pcVar3,param_3)" (identifier "uVar2") (= "=") (call_expression "FUN_002ab360(param_2,pcVar3,param_3)" (identifier "FUN_002ab360") (argument_list "(param_2,pcVar3,param_3)" (( "(") (identifier "param_2") (, ",") (identifier "pcVar3") (, ",") (identifier "param_3") () ")")))) (; ";")) (expression_statement "*param_1 = uVar2;" (assignment_expression "*param_1 = uVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "uVar2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::string::string(char const*, std::allocator<char> const&) */

void __thiscall std::function_1::function_1(function_1 *this,char *var_1,type_1 *param_2)

{
  size_t var_3;
  char *pcVar2;
  
  pcVar2 = (char *)0xffffffffffffffff;
  if (var_1 != (char *)0x0) {
    var_3 = var_2(var_1);
    pcVar2 = var_1 + var_3;
  }
  pcVar2 = var_4<var_5*>(var_1,pcVar2,param_2);
  *(char **)this = pcVar2;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement))))

void MASKED(undefined8 *param_1,char *param_2,undefined8 param_3)

{
  size_t sVar1;
  undefined8 uVar2;
  char *pcVar3;
  
  pcVar3 = (char *)0xffffffffffffffff;
  if (param_2 != (char *)0x0) {
    sVar1 = strlen(param_2);
    pcVar3 = param_2 + sVar1;
  }
  uVar2 = FUN_002ab360(param_2,pcVar3,param_3);
  *param_1 = uVar2;
  return;
}

