
/* std::string::_Rep::_M_set_length_and_sharable(unsigned long) */

void __thiscall std::string::_Rep::_M_set_length_and_sharable(_Rep *this,ulong param_1)

{
  if (this == (_Rep *)PTR__S_empty_rep_storage_004b9c38) {
    return;
  }
  *(undefined4 *)(this + 0x10) = 0;
  *(ulong *)this = param_1;
  this[param_1 + 0x18] = (_Rep)0x0;
  return;
}



void FUN_0036b610(long *param_1,long param_2)

{
  if (param_1 == (long *)PTR_DAT_004b9c38) {
    return;
  }
  *(undefined4 *)(param_1 + 2) = 0;
  *param_1 = param_2;
  *(undefined1 *)((long)param_1 + param_2 + 0x18) = 0;
  return;
}


CMP RDI,qword ptr [0x004b9c38]
JNZ 0x0036b620
RET
MOV dword ptr [RDI + 0x10],0x0
MOV qword ptr [RDI],RSI
MOV byte ptr [RDI + RSI*0x1 + 0x18],0x0
RET
(translation_unit "void FUN_0036b610(long *param_1,long param_2)\n\n{\n  if (param_1 == (long *)PTR_DAT_004b9c38) {\n    return;\n  }\n  *(undefined4 *)(param_1 + 2) = 0;\n  *param_1 = param_2;\n  *(undefined1 *)((long)param_1 + param_2 + 0x18) = 0;\n  return;\n}\n\n" (function_definition "void FUN_0036b610(long *param_1,long param_2)\n\n{\n  if (param_1 == (long *)PTR_DAT_004b9c38) {\n    return;\n  }\n  *(undefined4 *)(param_1 + 2) = 0;\n  *param_1 = param_2;\n  *(undefined1 *)((long)param_1 + param_2 + 0x18) = 0;\n  return;\n}" primitive_type (function_declarator "FUN_0036b610(long *param_1,long param_2)" identifier (parameter_list "(long *param_1,long param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  if (param_1 == (long *)PTR_DAT_004b9c38) {\n    return;\n  }\n  *(undefined4 *)(param_1 + 2) = 0;\n  *param_1 = param_2;\n  *(undefined1 *)((long)param_1 + param_2 + 0x18) = 0;\n  return;\n}" { (if_statement "if (param_1 == (long *)PTR_DAT_004b9c38) {\n    return;\n  }" if (parenthesized_expression "(param_1 == (long *)PTR_DAT_004b9c38)" ( (binary_expression "param_1 == (long *)PTR_DAT_004b9c38" identifier == (cast_expression "(long *)PTR_DAT_004b9c38" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "*(undefined4 *)(param_1 + 2) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 2) = 0" (pointer_expression "*(undefined4 *)(param_1 + 2)" * (cast_expression "(undefined4 *)(param_1 + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*param_1 = param_2;" (assignment_expression "*param_1 = param_2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(undefined1 *)((long)param_1 + param_2 + 0x18) = 0;" (assignment_expression "*(undefined1 *)((long)param_1 + param_2 + 0x18) = 0" (pointer_expression "*(undefined1 *)((long)param_1 + param_2 + 0x18)" * (cast_expression "(undefined1 *)((long)param_1 + param_2 + 0x18)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + param_2 + 0x18)" ( (binary_expression "(long)param_1 + param_2 + 0x18" (binary_expression "(long)param_1 + param_2" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::string::_Rep::_M_set_length_and_sharable(unsigned long) */\n\nvoid __thiscall std::string::_Rep::_M_set_length_and_sharable(_Rep *this,ulong param_1)\n\n{\n  if (this == (_Rep *)PTR__S_empty_rep_storage_004b9c38) {\n    return;\n  }\n  *(undefined4 *)(this + 0x10) = 0;\n  *(ulong *)this = param_1;\n  this[param_1 + 0x18] = (_Rep)0x0;\n  return;\n}\n\n" comment (function_definition "void __thiscall std::string::_Rep::_M_set_length_and_sharable(_Rep *this,ulong param_1)\n\n{\n  if (this == (_Rep *)PTR__S_empty_rep_storage_004b9c38) {\n    return;\n  }\n  *(undefined4 *)(this + 0x10) = 0;\n  *(ulong *)this = param_1;\n  this[param_1 + 0x18] = (_Rep)0x0;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::string::_Rep::" identifier : : identifier : : identifier : :) (function_declarator "_M_set_length_and_sharable(_Rep *this,ulong param_1)" identifier (parameter_list "(_Rep *this,ulong param_1)" ( (parameter_declaration "_Rep *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "ulong param_1" type_identifier identifier) ))) (compound_statement "{\n  if (this == (_Rep *)PTR__S_empty_rep_storage_004b9c38) {\n    return;\n  }\n  *(undefined4 *)(this + 0x10) = 0;\n  *(ulong *)this = param_1;\n  this[param_1 + 0x18] = (_Rep)0x0;\n  return;\n}" { (if_statement "if (this == (_Rep *)PTR__S_empty_rep_storage_004b9c38) {\n    return;\n  }" if (parenthesized_expression "(this == (_Rep *)PTR__S_empty_rep_storage_004b9c38)" ( (binary_expression "this == (_Rep *)PTR__S_empty_rep_storage_004b9c38" identifier == (cast_expression "(_Rep *)PTR__S_empty_rep_storage_004b9c38" ( (type_descriptor "_Rep *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "*(undefined4 *)(this + 0x10) = 0;" (assignment_expression "*(undefined4 *)(this + 0x10) = 0" (pointer_expression "*(undefined4 *)(this + 0x10)" * (cast_expression "(undefined4 *)(this + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(ulong *)this = param_1;" (assignment_expression "*(ulong *)this = param_1" (pointer_expression "*(ulong *)this" * (cast_expression "(ulong *)this" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "this[param_1 + 0x18] = (_Rep)0x0;" (assignment_expression "this[param_1 + 0x18] = (_Rep)0x0" (subscript_expression "this[param_1 + 0x18]" identifier [ (binary_expression "param_1 + 0x18" identifier + number_literal) ]) = (cast_expression "(_Rep)0x0" ( (type_descriptor "_Rep" type_identifier) ) number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0036b610(long *param_1,long param_2)\n\n{\n  if (param_1 == (long *)PTR_DAT_004b9c38) {\n    return;\n  }\n  *(undefined4 *)(param_1 + 2) = 0;\n  *param_1 = param_2;\n  *(undefined1 *)((long)param_1 + param_2 + 0x18) = 0;\n  return;\n}\n\n" (function_definition "void FUN_0036b610(long *param_1,long param_2)\n\n{\n  if (param_1 == (long *)PTR_DAT_004b9c38) {\n    return;\n  }\n  *(undefined4 *)(param_1 + 2) = 0;\n  *param_1 = param_2;\n  *(undefined1 *)((long)param_1 + param_2 + 0x18) = 0;\n  return;\n}" primitive_type (function_declarator "FUN_0036b610(long *param_1,long param_2)" identifier (parameter_list "(long *param_1,long param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  if (param_1 == (long *)PTR_DAT_004b9c38) {\n    return;\n  }\n  *(undefined4 *)(param_1 + 2) = 0;\n  *param_1 = param_2;\n  *(undefined1 *)((long)param_1 + param_2 + 0x18) = 0;\n  return;\n}" { (if_statement "if (param_1 == (long *)PTR_DAT_004b9c38) {\n    return;\n  }" if (parenthesized_expression "(param_1 == (long *)PTR_DAT_004b9c38)" ( (binary_expression "param_1 == (long *)PTR_DAT_004b9c38" identifier == (cast_expression "(long *)PTR_DAT_004b9c38" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "*(undefined4 *)(param_1 + 2) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 2) = 0" (pointer_expression "*(undefined4 *)(param_1 + 2)" * (cast_expression "(undefined4 *)(param_1 + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*param_1 = param_2;" (assignment_expression "*param_1 = param_2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(undefined1 *)((long)param_1 + param_2 + 0x18) = 0;" (assignment_expression "*(undefined1 *)((long)param_1 + param_2 + 0x18) = 0" (pointer_expression "*(undefined1 *)((long)param_1 + param_2 + 0x18)" * (cast_expression "(undefined1 *)((long)param_1 + param_2 + 0x18)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + param_2 + 0x18)" ( (binary_expression "(long)param_1 + param_2 + 0x18" (binary_expression "(long)param_1 + param_2" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) IDENT)) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + IDENT) + LIT) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_0036b610(long *param_1,long param_2)\n\n{\n  if (param_1 == (long *)PTR_DAT_004b9c38) {\n    return;\n  }\n  *(undefined4 *)(param_1 + 2) = 0;\n  *param_1 = param_2;\n  *(undefined1 *)((long)param_1 + param_2 + 0x18) = 0;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0036b610(long *param_1,long param_2)" (identifier "FUN_0036b610") (parameter_list "(long *param_1,long param_2)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) () ")"))) (compound_statement "{\n  if (param_1 == (long *)PTR_DAT_004b9c38) {\n    return;\n  }\n  *(undefined4 *)(param_1 + 2) = 0;\n  *param_1 = param_2;\n  *(undefined1 *)((long)param_1 + param_2 + 0x18) = 0;\n  return;\n}" ({ "{") (if_statement "if (param_1 == (long *)PTR_DAT_004b9c38) {\n    return;\n  }" (if "if") (parenthesized_expression "(param_1 == (long *)PTR_DAT_004b9c38)" (( "(") (binary_expression "param_1 == (long *)PTR_DAT_004b9c38" (identifier "param_1") (== "==") (cast_expression "(long *)PTR_DAT_004b9c38" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_DAT_004b9c38"))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 2) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 2) = 0" (pointer_expression "*(undefined4 *)(param_1 + 2)" (* "*") (cast_expression "(undefined4 *)(param_1 + 2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_1 = param_2;" (assignment_expression "*param_1 = param_2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(undefined1 *)((long)param_1 + param_2 + 0x18) = 0;" (assignment_expression "*(undefined1 *)((long)param_1 + param_2 + 0x18) = 0" (pointer_expression "*(undefined1 *)((long)param_1 + param_2 + 0x18)" (* "*") (cast_expression "(undefined1 *)((long)param_1 + param_2 + 0x18)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + param_2 + 0x18)" (( "(") (binary_expression "(long)param_1 + param_2 + 0x18" (binary_expression "(long)param_1 + param_2" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (identifier "param_2")) (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::string::_Rep::_M_set_length_and_sharable(unsigned long) */

void __thiscall std::string::type_1::function_1(type_1 *var_1,type_2 var_2)

{
  if (var_1 == (type_1 *)PTR__S_empty_rep_storage_004b9c38) {
    return;
  }
  *(type_3 *)(var_1 + 0x10) = 0;
  *(type_2 *)var_1 = var_2;
  var_1[var_2 + 0x18] = (type_1)0x0;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (sized_type_specifier) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) 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: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (identifier)) right: (number_literal))))) right: (number_literal))) (return_statement))))

void MASKED(long *param_1,long param_2)

{
  if (param_1 == (long *)PTR_DAT_004b9c38) {
    return;
  }
  *(undefined4 *)(param_1 + 2) = 0;
  *param_1 = param_2;
  *(undefined1 *)((long)param_1 + param_2 + 0x18) = 0;
  return;
}

