
/* std::wstring::_M_set_length(unsigned long) */

void __thiscall std::wstring::_M_set_length(wstring *this,ulong param_1)

{
  *(ulong *)(this + 8) = param_1;
  *(undefined4 *)(*(long *)this + param_1 * 4) = 0;
  return;
}



void FUN_002de660(long *param_1,long param_2)

{
  param_1[1] = param_2;
  *(undefined4 *)(*param_1 + param_2 * 4) = 0;
  return;
}


MOV RAX,qword ptr [RDI]
MOV qword ptr [RDI + 0x8],RSI
MOV dword ptr [RAX + RSI*0x4],0x0
RET
(translation_unit "void FUN_002de660(long *param_1,long param_2)\n\n{\n  param_1[1] = param_2;\n  *(undefined4 *)(*param_1 + param_2 * 4) = 0;\n  return;\n}\n\n" (function_definition "void FUN_002de660(long *param_1,long param_2)\n\n{\n  param_1[1] = param_2;\n  *(undefined4 *)(*param_1 + param_2 * 4) = 0;\n  return;\n}" primitive_type (function_declarator "FUN_002de660(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  param_1[1] = param_2;\n  *(undefined4 *)(*param_1 + param_2 * 4) = 0;\n  return;\n}" { (expression_statement "param_1[1] = param_2;" (assignment_expression "param_1[1] = param_2" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined4 *)(*param_1 + param_2 * 4) = 0;" (assignment_expression "*(undefined4 *)(*param_1 + param_2 * 4) = 0" (pointer_expression "*(undefined4 *)(*param_1 + param_2 * 4)" * (cast_expression "(undefined4 *)(*param_1 + param_2 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + param_2 * 4)" ( (binary_expression "*param_1 + param_2 * 4" (pointer_expression "*param_1" * identifier) + (binary_expression "param_2 * 4" identifier * number_literal)) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::wstring::_M_set_length(unsigned long) */\n\nvoid __thiscall std::wstring::_M_set_length(wstring *this,ulong param_1)\n\n{\n  *(ulong *)(this + 8) = param_1;\n  *(undefined4 *)(*(long *)this + param_1 * 4) = 0;\n  return;\n}\n\n" comment (function_definition "void __thiscall std::wstring::_M_set_length(wstring *this,ulong param_1)\n\n{\n  *(ulong *)(this + 8) = param_1;\n  *(undefined4 *)(*(long *)this + param_1 * 4) = 0;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wstring::" identifier : : identifier : :) (function_declarator "_M_set_length(wstring *this,ulong param_1)" identifier (parameter_list "(wstring *this,ulong param_1)" ( (parameter_declaration "wstring *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "ulong param_1" type_identifier identifier) ))) (compound_statement "{\n  *(ulong *)(this + 8) = param_1;\n  *(undefined4 *)(*(long *)this + param_1 * 4) = 0;\n  return;\n}" { (expression_statement "*(ulong *)(this + 8) = param_1;" (assignment_expression "*(ulong *)(this + 8) = param_1" (pointer_expression "*(ulong *)(this + 8)" * (cast_expression "(ulong *)(this + 8)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(*(long *)this + param_1 * 4) = 0;" (assignment_expression "*(undefined4 *)(*(long *)this + param_1 * 4) = 0" (pointer_expression "*(undefined4 *)(*(long *)this + param_1 * 4)" * (cast_expression "(undefined4 *)(*(long *)this + param_1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)this + param_1 * 4)" ( (binary_expression "*(long *)this + param_1 * 4" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + (binary_expression "param_1 * 4" identifier * number_literal)) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_002de660(long *param_1,long param_2)\n\n{\n  param_1[1] = param_2;\n  *(undefined4 *)(*param_1 + param_2 * 4) = 0;\n  return;\n}\n\n" (function_definition "void FUN_002de660(long *param_1,long param_2)\n\n{\n  param_1[1] = param_2;\n  *(undefined4 *)(*param_1 + param_2 * 4) = 0;\n  return;\n}" primitive_type (function_declarator "FUN_002de660(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  param_1[1] = param_2;\n  *(undefined4 *)(*param_1 + param_2 * 4) = 0;\n  return;\n}" { (expression_statement "param_1[1] = param_2;" (assignment_expression "param_1[1] = param_2" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined4 *)(*param_1 + param_2 * 4) = 0;" (assignment_expression "*(undefined4 *)(*param_1 + param_2 * 4) = 0" (pointer_expression "*(undefined4 *)(*param_1 + param_2 * 4)" * (cast_expression "(undefined4 *)(*param_1 + param_2 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + param_2 * 4)" ( (binary_expression "*param_1 + param_2 * 4" (pointer_expression "*param_1" * identifier) + (binary_expression "param_2 * 4" 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 { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + (binary_expression IDENT * LIT)) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_002de660(long *param_1,long param_2)\n\n{\n  param_1[1] = param_2;\n  *(undefined4 *)(*param_1 + param_2 * 4) = 0;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002de660(long *param_1,long param_2)" (identifier "FUN_002de660") (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  param_1[1] = param_2;\n  *(undefined4 *)(*param_1 + param_2 * 4) = 0;\n  return;\n}" ({ "{") (expression_statement "param_1[1] = param_2;" (assignment_expression "param_1[1] = param_2" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(undefined4 *)(*param_1 + param_2 * 4) = 0;" (assignment_expression "*(undefined4 *)(*param_1 + param_2 * 4) = 0" (pointer_expression "*(undefined4 *)(*param_1 + param_2 * 4)" (* "*") (cast_expression "(undefined4 *)(*param_1 + param_2 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + param_2 * 4)" (( "(") (binary_expression "*param_1 + param_2 * 4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (binary_expression "param_2 * 4" (identifier "param_2") (* "*") (number_literal "4"))) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::wstring::_M_set_length(unsigned long) */

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

{
  *(type_2 *)(var_1 + 8) = var_2;
  *(type_3 *)(*(long *)var_1 + var_2 * 4) = 0;
  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 (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (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: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))) (return_statement))))

void MASKED(long *param_1,long param_2)

{
  param_1[1] = param_2;
  *(undefined4 *)(*param_1 + param_2 * 4) = 0;
  return;
}

