
/* std::__timepunct<wchar_t>::__timepunct(unsigned long) */

void __thiscall std::__timepunct<wchar_t>::__timepunct(__timepunct<wchar_t> *this,ulong param_1)

{
  undefined8 uVar1;
  
  *(undefined8 *)(this + 0x10) = 0;
  *(undefined8 *)(this + 0x18) = 0;
  *(uint *)(this + 8) = (uint)(param_1 != 0);
  *(undefined ***)this = &PTR____timepunct_004b7f08;
  uVar1 = locale::facet::_S_get_c_name();
  *(undefined8 *)(this + 0x20) = uVar1;
                    /* try { // try from 003846a0 to 003846a4 has its CatchHandler @ 003846ac */
  _M_initialize_timepunct(this,(__locale_struct *)0x0);
  return;
}



void FUN_00384660(undefined8 *param_1,long param_2)

{
  undefined8 uVar1;
  
  param_1[2] = 0;
  param_1[3] = 0;
  *(uint *)(param_1 + 1) = (uint)(param_2 != 0);
  *param_1 = &PTR_FUN_004b7f08;
  uVar1 = FUN_0033ada0();
  param_1[4] = uVar1;
                    /* try { // try from 003846a0 to 003846a4 has its CatchHandler @ 003846ac */
  FUN_0037a980(param_1,0);
  return;
}


PUSH RBP
XOR EAX,EAX
PUSH RBX
MOV RBX,RDI
SUB RSP,0x8
TEST RSI,RSI
MOV qword ptr [RDI + 0x10],0x0
SETNZ AL
MOV qword ptr [RDI + 0x18],0x0
MOV dword ptr [RDI + 0x8],EAX
LEA RAX,[0x4b7ef8]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
CALL 0x0033ada0
XOR ESI,ESI
MOV RDI,RBX
MOV qword ptr [RBX + 0x20],RAX
CALL 0x0037a980
ADD RSP,0x8
POP RBX
POP RBP
RET
(translation_unit "void FUN_00384660(undefined8 *param_1,long param_2)\n\n{\n  undefined8 uVar1;\n  \n  param_1[2] = 0;\n  param_1[3] = 0;\n  *(uint *)(param_1 + 1) = (uint)(param_2 != 0);\n  *param_1 = &PTR_FUN_004b7f08;\n  uVar1 = FUN_0033ada0();\n  param_1[4] = uVar1;\n                    /* try { // try from 003846a0 to 003846a4 has its CatchHandler @ 003846ac */\n  FUN_0037a980(param_1,0);\n  return;\n}\n\n" (function_definition "void FUN_00384660(undefined8 *param_1,long param_2)\n\n{\n  undefined8 uVar1;\n  \n  param_1[2] = 0;\n  param_1[3] = 0;\n  *(uint *)(param_1 + 1) = (uint)(param_2 != 0);\n  *param_1 = &PTR_FUN_004b7f08;\n  uVar1 = FUN_0033ada0();\n  param_1[4] = uVar1;\n                    /* try { // try from 003846a0 to 003846a4 has its CatchHandler @ 003846ac */\n  FUN_0037a980(param_1,0);\n  return;\n}" primitive_type (function_declarator "FUN_00384660(undefined8 *param_1,long param_2)" identifier (parameter_list "(undefined8 *param_1,long param_2)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  \n  param_1[2] = 0;\n  param_1[3] = 0;\n  *(uint *)(param_1 + 1) = (uint)(param_2 != 0);\n  *param_1 = &PTR_FUN_004b7f08;\n  uVar1 = FUN_0033ada0();\n  param_1[4] = uVar1;\n                    /* try { // try from 003846a0 to 003846a4 has its CatchHandler @ 003846ac */\n  FUN_0037a980(param_1,0);\n  return;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(uint *)(param_1 + 1) = (uint)(param_2 != 0);" (assignment_expression "*(uint *)(param_1 + 1) = (uint)(param_2 != 0)" (pointer_expression "*(uint *)(param_1 + 1)" * (cast_expression "(uint *)(param_1 + 1)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) = (call_expression "(uint)(param_2 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )))) ;) (expression_statement "*param_1 = &PTR_FUN_004b7f08;" (assignment_expression "*param_1 = &PTR_FUN_004b7f08" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_004b7f08" & identifier)) ;) (expression_statement "uVar1 = FUN_0033ada0();" (assignment_expression "uVar1 = FUN_0033ada0()" identifier = (call_expression "FUN_0033ada0()" identifier (argument_list "()" ( )))) ;) (expression_statement "param_1[4] = uVar1;" (assignment_expression "param_1[4] = uVar1" (subscript_expression "param_1[4]" identifier [ number_literal ]) = identifier) ;) comment (expression_statement "FUN_0037a980(param_1,0);" (call_expression "FUN_0037a980(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::__timepunct<wchar_t>::__timepunct(unsigned long) */\n\nvoid __thiscall std::__timepunct<wchar_t>::__timepunct(__timepunct<wchar_t> *this,ulong param_1)\n\n{\n  undefined8 uVar1;\n  \n  *(undefined8 *)(this + 0x10) = 0;\n  *(undefined8 *)(this + 0x18) = 0;\n  *(uint *)(this + 8) = (uint)(param_1 != 0);\n  *(undefined ***)this = &PTR____timepunct_004b7f08;\n  uVar1 = locale::facet::_S_get_c_name();\n  *(undefined8 *)(this + 0x20) = uVar1;\n                    /* try { // try from 003846a0 to 003846a4 has its CatchHandler @ 003846ac */\n  _M_initialize_timepunct(this,(__locale_struct *)0x0);\n  return;\n}\n\n" comment (function_definition "void __thiscall std::__timepunct<wchar_t>::__timepunct(__timepunct<wchar_t> *this,ulong param_1)\n\n{\n  undefined8 uVar1;\n  \n  *(undefined8 *)(this + 0x10) = 0;\n  *(undefined8 *)(this + 0x18) = 0;\n  *(uint *)(this + 8) = (uint)(param_1 != 0);\n  *(undefined ***)this = &PTR____timepunct_004b7f08;\n  uVar1 = locale::facet::_S_get_c_name();\n  *(undefined8 *)(this + 0x20) = uVar1;\n                    /* try { // try from 003846a0 to 003846a4 has its CatchHandler @ 003846ac */\n  _M_initialize_timepunct(this,(__locale_struct *)0x0);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::__timepunct<wchar_t>::" identifier : : identifier < identifier > : :) (function_declarator "__timepunct(__timepunct<wchar_t> *this,ulong param_1)" identifier (parameter_list "(__timepunct<wchar_t> *this,ulong param_1)" ( (parameter_declaration "__timepunct<wchar_t> *this" type_identifier (ERROR "<wchar_t>" < identifier >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "ulong param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  \n  *(undefined8 *)(this + 0x10) = 0;\n  *(undefined8 *)(this + 0x18) = 0;\n  *(uint *)(this + 8) = (uint)(param_1 != 0);\n  *(undefined ***)this = &PTR____timepunct_004b7f08;\n  uVar1 = locale::facet::_S_get_c_name();\n  *(undefined8 *)(this + 0x20) = uVar1;\n                    /* try { // try from 003846a0 to 003846a4 has its CatchHandler @ 003846ac */\n  _M_initialize_timepunct(this,(__locale_struct *)0x0);\n  return;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (expression_statement "*(undefined8 *)(this + 0x10) = 0;" (assignment_expression "*(undefined8 *)(this + 0x10) = 0" (pointer_expression "*(undefined8 *)(this + 0x10)" * (cast_expression "(undefined8 *)(this + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(this + 0x18) = 0;" (assignment_expression "*(undefined8 *)(this + 0x18) = 0" (pointer_expression "*(undefined8 *)(this + 0x18)" * (cast_expression "(undefined8 *)(this + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x18)" ( (binary_expression "this + 0x18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(uint *)(this + 8) = (uint)(param_1 != 0);" (assignment_expression "*(uint *)(this + 8) = (uint)(param_1 != 0)" (pointer_expression "*(uint *)(this + 8)" * (cast_expression "(uint *)(this + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = (call_expression "(uint)(param_1 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )))) ;) (expression_statement "*(undefined ***)this = &PTR____timepunct_004b7f08;" (assignment_expression "*(undefined ***)this = &PTR____timepunct_004b7f08" (pointer_expression "*(undefined ***)this" * (cast_expression "(undefined ***)this" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) identifier)) = (pointer_expression "&PTR____timepunct_004b7f08" & identifier)) ;) (ERROR "uVar1 = locale::" (assignment_expression "uVar1 = locale" identifier = identifier) : :) (labeled_statement "facet::_S_get_c_name();" statement_identifier : (ERROR ":" :) (expression_statement "_S_get_c_name();" (call_expression "_S_get_c_name()" identifier (argument_list "()" ( ))) ;)) (expression_statement "*(undefined8 *)(this + 0x20) = uVar1;" (assignment_expression "*(undefined8 *)(this + 0x20) = uVar1" (pointer_expression "*(undefined8 *)(this + 0x20)" * (cast_expression "(undefined8 *)(this + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x20)" ( (binary_expression "this + 0x20" identifier + number_literal) )))) = identifier) ;) comment (expression_statement "_M_initialize_timepunct(this,(__locale_struct *)0x0);" (call_expression "_M_initialize_timepunct(this,(__locale_struct *)0x0)" identifier (argument_list "(this,(__locale_struct *)0x0)" ( identifier , (cast_expression "(__locale_struct *)0x0" ( (type_descriptor "__locale_struct *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00384660(undefined8 *param_1,long param_2)\n\n{\n  undefined8 uVar1;\n  \n  param_1[2] = 0;\n  param_1[3] = 0;\n  *(uint *)(param_1 + 1) = (uint)(param_2 != 0);\n  *param_1 = &PTR_FUN_004b7f08;\n  uVar1 = FUN_0033ada0();\n  param_1[4] = uVar1;\n                    \n  FUN_0037a980(param_1,0);\n  return;\n}\n\n" (function_definition "void FUN_00384660(undefined8 *param_1,long param_2)\n\n{\n  undefined8 uVar1;\n  \n  param_1[2] = 0;\n  param_1[3] = 0;\n  *(uint *)(param_1 + 1) = (uint)(param_2 != 0);\n  *param_1 = &PTR_FUN_004b7f08;\n  uVar1 = FUN_0033ada0();\n  param_1[4] = uVar1;\n                    \n  FUN_0037a980(param_1,0);\n  return;\n}" primitive_type (function_declarator "FUN_00384660(undefined8 *param_1,long param_2)" identifier (parameter_list "(undefined8 *param_1,long param_2)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  \n  param_1[2] = 0;\n  param_1[3] = 0;\n  *(uint *)(param_1 + 1) = (uint)(param_2 != 0);\n  *param_1 = &PTR_FUN_004b7f08;\n  uVar1 = FUN_0033ada0();\n  param_1[4] = uVar1;\n                    \n  FUN_0037a980(param_1,0);\n  return;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(uint *)(param_1 + 1) = (uint)(param_2 != 0);" (assignment_expression "*(uint *)(param_1 + 1) = (uint)(param_2 != 0)" (pointer_expression "*(uint *)(param_1 + 1)" * (cast_expression "(uint *)(param_1 + 1)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) = (call_expression "(uint)(param_2 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )))) ;) (expression_statement "*param_1 = &PTR_FUN_004b7f08;" (assignment_expression "*param_1 = &PTR_FUN_004b7f08" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_004b7f08" & identifier)) ;) (expression_statement "uVar1 = FUN_0033ada0();" (assignment_expression "uVar1 = FUN_0033ada0()" identifier = (call_expression "FUN_0033ada0()" identifier (argument_list "()" ( )))) ;) (expression_statement "param_1[4] = uVar1;" (assignment_expression "param_1[4] = uVar1" (subscript_expression "param_1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_0037a980(param_1,0);" (call_expression "FUN_0037a980(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT != LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00384660(undefined8 *param_1,long param_2)\n\n{\n  undefined8 uVar1;\n  \n  param_1[2] = 0;\n  param_1[3] = 0;\n  *(uint *)(param_1 + 1) = (uint)(param_2 != 0);\n  *param_1 = &PTR_FUN_004b7f08;\n  uVar1 = FUN_0033ada0();\n  param_1[4] = uVar1;\n                    \n  FUN_0037a980(param_1,0);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00384660(undefined8 *param_1,long param_2)" (identifier "FUN_00384660") (parameter_list "(undefined8 *param_1,long param_2)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined8 uVar1;\n  \n  param_1[2] = 0;\n  param_1[3] = 0;\n  *(uint *)(param_1 + 1) = (uint)(param_2 != 0);\n  *param_1 = &PTR_FUN_004b7f08;\n  uVar1 = FUN_0033ada0();\n  param_1[4] = uVar1;\n                    \n  FUN_0037a980(param_1,0);\n  return;\n}" ({ "{") (declaration "undefined8 uVar1;" (type_identifier "undefined8") (identifier "uVar1") (; ";")) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(uint *)(param_1 + 1) = (uint)(param_2 != 0);" (assignment_expression "*(uint *)(param_1 + 1) = (uint)(param_2 != 0)" (pointer_expression "*(uint *)(param_1 + 1)" (* "*") (cast_expression "(uint *)(param_1 + 1)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")")))) (= "=") (call_expression "(uint)(param_2 != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")))) (; ";")) (expression_statement "*param_1 = &PTR_FUN_004b7f08;" (assignment_expression "*param_1 = &PTR_FUN_004b7f08" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&PTR_FUN_004b7f08" (& "&") (identifier "PTR_FUN_004b7f08"))) (; ";")) (expression_statement "uVar1 = FUN_0033ada0();" (assignment_expression "uVar1 = FUN_0033ada0()" (identifier "uVar1") (= "=") (call_expression "FUN_0033ada0()" (identifier "FUN_0033ada0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "param_1[4] = uVar1;" (assignment_expression "param_1[4] = uVar1" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "FUN_0037a980(param_1,0);" (call_expression "FUN_0037a980(param_1,0)" (identifier "FUN_0037a980") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::__timepunct<wchar_t>::__timepunct(unsigned long) */

void __thiscall std::function_1<wchar_t>::function_1(function_1<wchar_t> *var_1,type_1 var_2)

{
  type_2 uVar1;
  
  *(type_2 *)(var_1 + 0x10) = 0;
  *(type_2 *)(var_1 + 0x18) = 0;
  *(type_3 *)(var_1 + 8) = (type_3)(var_2 != 0);
  *(type_4 ***)var_1 = &PTR____timepunct_004b7f08;
  uVar1 = locale::facet::var_3();
  *(type_2 *)(var_1 + 0x20) = uVar1;
                    /* try { // try from 003846a0 to 003846a4 has its CatchHandler @ 003846ac */
  var_4(var_1,(type_5 *)0x0);
  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: (sized_type_specifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (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: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (return_statement))))

void MASKED(undefined8 *param_1,long param_2)

{
  undefined8 uVar1;
  
  param_1[2] = 0;
  param_1[3] = 0;
  *(uint *)(param_1 + 1) = (uint)(param_2 != 0);
  *param_1 = &PTR_FUN_004b7f08;
  uVar1 = FUN_0033ada0();
  param_1[4] = uVar1;
                    /* try { // try from 003846a0 to 003846a4 has its CatchHandler @ 003846ac */
  FUN_0037a980(param_1,0);
  return;
}

