
/* std::moneypunct<wchar_t, false>::~moneypunct() */

void __thiscall std::moneypunct<wchar_t,false>::~moneypunct(moneypunct<wchar_t,false> *this)

{
  wchar_t *__s1;
  int iVar1;
  long *plVar2;
  
  plVar2 = *(long **)(this + 0x10);
  *(undefined ***)this = &PTR__moneypunct_00679f90;
  if ((plVar2[3] != 0) && ((void *)plVar2[2] != (void *)0x0)) {
    operator_delete__((void *)plVar2[2]);
    plVar2 = *(long **)(this + 0x10);
  }
  if ((plVar2[9] != 0) && ((void *)plVar2[8] != (void *)0x0)) {
    operator_delete__((void *)plVar2[8]);
    plVar2 = *(long **)(this + 0x10);
  }
  if (plVar2[0xb] != 0) {
    __s1 = (wchar_t *)plVar2[10];
    iVar1 = wcscmp(__s1,L"()");
    if (iVar1 != 0) {
      operator_delete__(__s1);
      plVar2 = *(long **)(this + 0x10);
    }
  }
  if ((plVar2[7] != 0) && ((void *)plVar2[6] != (void *)0x0)) {
    operator_delete__((void *)plVar2[6]);
    plVar2 = *(long **)(this + 0x10);
    if (plVar2 == (long *)0x0) goto LAB_004e4c49;
  }
                    /* try { // try from 004e4c46 to 004e4c48 has its CatchHandler @ 004e4c66 */
  (**(code **)(*plVar2 + 8))(plVar2);
LAB_004e4c49:
  locale::facet::~facet((facet *)this);
  return;
}



void FUN_004e4bb0(undefined8 *param_1)

{
  wchar_t *__s1;
  int iVar1;
  long *plVar2;
  
  plVar2 = (long *)param_1[2];
  *param_1 = &PTR_FUN_00679f90;
  if ((plVar2[3] != 0) && (plVar2[2] != 0)) {
    thunk_FUN_0049e330();
    plVar2 = (long *)param_1[2];
  }
  if ((plVar2[9] != 0) && (plVar2[8] != 0)) {
    thunk_FUN_0049e330();
    plVar2 = (long *)param_1[2];
  }
  if (plVar2[0xb] != 0) {
    __s1 = (wchar_t *)plVar2[10];
    iVar1 = wcscmp(__s1,L"()");
    if (iVar1 != 0) {
      thunk_FUN_0049e330(__s1);
      plVar2 = (long *)param_1[2];
    }
  }
  if ((plVar2[7] != 0) && (plVar2[6] != 0)) {
    thunk_FUN_0049e330();
    plVar2 = (long *)param_1[2];
    if (plVar2 == (long *)0x0) goto LAB_004e4c49;
  }
                    /* try { // try from 004e4c46 to 004e4c48 has its CatchHandler @ 004e4c66 */
  (**(code **)(*plVar2 + 8))(plVar2);
LAB_004e4c49:
  FUN_004a0060(param_1);
  return;
}


LEA RAX,[0x679f80]
PUSH R12
PUSH RBP
MOV RBP,RDI
PUSH RBX
MOV RBX,qword ptr [RDI + 0x10]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
CMP qword ptr [RBX + 0x18],0x0
JZ 0x004e4be2
MOV RDI,qword ptr [RBX + 0x10]
TEST RDI,RDI
JZ 0x004e4be2
CALL 0x0049e300
MOV RBX,qword ptr [RBP + 0x10]
CMP qword ptr [RBX + 0x48],0x0
JZ 0x004e4bfb
MOV RDI,qword ptr [RBX + 0x40]
TEST RDI,RDI
JZ 0x004e4bfb
CALL 0x0049e300
MOV RBX,qword ptr [RBP + 0x10]
CMP qword ptr [RBX + 0x58],0x0
JZ 0x004e4c19
MOV R12,qword ptr [RBX + 0x50]
LEA RSI,[0x58df64]
MOV RDI,R12
CALL 0x00177990
TEST EAX,EAX
JNZ 0x004e4c58
CMP qword ptr [RBX + 0x38],0x0
JZ 0x004e4c40
MOV RDI,qword ptr [RBX + 0x30]
TEST RDI,RDI
JZ 0x004e4c40
CALL 0x0049e300
MOV RBX,qword ptr [RBP + 0x10]
TEST RBX,RBX
JZ 0x004e4c49
NOP word ptr [RAX + RAX*0x1]
MOV RAX,qword ptr [RBX]
MOV RDI,RBX
CALL qword ptr [RAX + 0x8]
POP RBX
MOV RDI,RBP
POP RBP
POP R12
JMP 0x004a0060
MOV RDI,R12
CALL 0x0049e300
MOV RBX,qword ptr [RBP + 0x10]
JMP 0x004e4c19
(translation_unit "void FUN_004e4bb0(undefined8 *param_1)\n\n{\n  wchar_t *__s1;\n  int iVar1;\n  long *plVar2;\n  \n  plVar2 = (long *)param_1[2];\n  *param_1 = &PTR_FUN_00679f90;\n  if ((plVar2[3] != 0) && (plVar2[2] != 0)) {\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n  }\n  if ((plVar2[9] != 0) && (plVar2[8] != 0)) {\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n  }\n  if (plVar2[0xb] != 0) {\n    __s1 = (wchar_t *)plVar2[10];\n    iVar1 = wcscmp(__s1,L"()");\n    if (iVar1 != 0) {\n      thunk_FUN_0049e330(__s1);\n      plVar2 = (long *)param_1[2];\n    }\n  }\n  if ((plVar2[7] != 0) && (plVar2[6] != 0)) {\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n    if (plVar2 == (long *)0x0) goto LAB_004e4c49;\n  }\n                    /* try { // try from 004e4c46 to 004e4c48 has its CatchHandler @ 004e4c66 */\n  (**(code **)(*plVar2 + 8))(plVar2);\nLAB_004e4c49:\n  FUN_004a0060(param_1);\n  return;\n}\n\n" (function_definition "void FUN_004e4bb0(undefined8 *param_1)\n\n{\n  wchar_t *__s1;\n  int iVar1;\n  long *plVar2;\n  \n  plVar2 = (long *)param_1[2];\n  *param_1 = &PTR_FUN_00679f90;\n  if ((plVar2[3] != 0) && (plVar2[2] != 0)) {\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n  }\n  if ((plVar2[9] != 0) && (plVar2[8] != 0)) {\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n  }\n  if (plVar2[0xb] != 0) {\n    __s1 = (wchar_t *)plVar2[10];\n    iVar1 = wcscmp(__s1,L"()");\n    if (iVar1 != 0) {\n      thunk_FUN_0049e330(__s1);\n      plVar2 = (long *)param_1[2];\n    }\n  }\n  if ((plVar2[7] != 0) && (plVar2[6] != 0)) {\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n    if (plVar2 == (long *)0x0) goto LAB_004e4c49;\n  }\n                    /* try { // try from 004e4c46 to 004e4c48 has its CatchHandler @ 004e4c66 */\n  (**(code **)(*plVar2 + 8))(plVar2);\nLAB_004e4c49:\n  FUN_004a0060(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_004e4bb0(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  wchar_t *__s1;\n  int iVar1;\n  long *plVar2;\n  \n  plVar2 = (long *)param_1[2];\n  *param_1 = &PTR_FUN_00679f90;\n  if ((plVar2[3] != 0) && (plVar2[2] != 0)) {\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n  }\n  if ((plVar2[9] != 0) && (plVar2[8] != 0)) {\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n  }\n  if (plVar2[0xb] != 0) {\n    __s1 = (wchar_t *)plVar2[10];\n    iVar1 = wcscmp(__s1,L"()");\n    if (iVar1 != 0) {\n      thunk_FUN_0049e330(__s1);\n      plVar2 = (long *)param_1[2];\n    }\n  }\n  if ((plVar2[7] != 0) && (plVar2[6] != 0)) {\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n    if (plVar2 == (long *)0x0) goto LAB_004e4c49;\n  }\n                    /* try { // try from 004e4c46 to 004e4c48 has its CatchHandler @ 004e4c66 */\n  (**(code **)(*plVar2 + 8))(plVar2);\nLAB_004e4c49:\n  FUN_004a0060(param_1);\n  return;\n}" { (declaration "wchar_t *__s1;" type_identifier (pointer_declarator "*__s1" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (expression_statement "plVar2 = (long *)param_1[2];" (assignment_expression "plVar2 = (long *)param_1[2]" identifier = (cast_expression "(long *)param_1[2]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (expression_statement "*param_1 = &PTR_FUN_00679f90;" (assignment_expression "*param_1 = &PTR_FUN_00679f90" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_00679f90" & identifier)) ;) (if_statement "if ((plVar2[3] != 0) && (plVar2[2] != 0)) {\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n  }" if (parenthesized_expression "((plVar2[3] != 0) && (plVar2[2] != 0))" ( (binary_expression "(plVar2[3] != 0) && (plVar2[2] != 0)" (parenthesized_expression "(plVar2[3] != 0)" ( (binary_expression "plVar2[3] != 0" (subscript_expression "plVar2[3]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(plVar2[2] != 0)" ( (binary_expression "plVar2[2] != 0" (subscript_expression "plVar2[2]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n  }" { (expression_statement "thunk_FUN_0049e330();" (call_expression "thunk_FUN_0049e330()" identifier (argument_list "()" ( ))) ;) (expression_statement "plVar2 = (long *)param_1[2];" (assignment_expression "plVar2 = (long *)param_1[2]" identifier = (cast_expression "(long *)param_1[2]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) })) (if_statement "if ((plVar2[9] != 0) && (plVar2[8] != 0)) {\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n  }" if (parenthesized_expression "((plVar2[9] != 0) && (plVar2[8] != 0))" ( (binary_expression "(plVar2[9] != 0) && (plVar2[8] != 0)" (parenthesized_expression "(plVar2[9] != 0)" ( (binary_expression "plVar2[9] != 0" (subscript_expression "plVar2[9]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(plVar2[8] != 0)" ( (binary_expression "plVar2[8] != 0" (subscript_expression "plVar2[8]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n  }" { (expression_statement "thunk_FUN_0049e330();" (call_expression "thunk_FUN_0049e330()" identifier (argument_list "()" ( ))) ;) (expression_statement "plVar2 = (long *)param_1[2];" (assignment_expression "plVar2 = (long *)param_1[2]" identifier = (cast_expression "(long *)param_1[2]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) })) (if_statement "if (plVar2[0xb] != 0) {\n    __s1 = (wchar_t *)plVar2[10];\n    iVar1 = wcscmp(__s1,L"()");\n    if (iVar1 != 0) {\n      thunk_FUN_0049e330(__s1);\n      plVar2 = (long *)param_1[2];\n    }\n  }" if (parenthesized_expression "(plVar2[0xb] != 0)" ( (binary_expression "plVar2[0xb] != 0" (subscript_expression "plVar2[0xb]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    __s1 = (wchar_t *)plVar2[10];\n    iVar1 = wcscmp(__s1,L"()");\n    if (iVar1 != 0) {\n      thunk_FUN_0049e330(__s1);\n      plVar2 = (long *)param_1[2];\n    }\n  }" { (expression_statement "__s1 = (wchar_t *)plVar2[10];" (assignment_expression "__s1 = (wchar_t *)plVar2[10]" identifier = (cast_expression "(wchar_t *)plVar2[10]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar2[10]" identifier [ number_literal ]))) ;) (expression_statement "iVar1 = wcscmp(__s1,L"()");" (assignment_expression "iVar1 = wcscmp(__s1,L"()")" identifier = (call_expression "wcscmp(__s1,L"()")" identifier (argument_list "(__s1,L"()")" ( identifier , (string_literal "L"()"" L" string_content ") )))) ;) (if_statement "if (iVar1 != 0) {\n      thunk_FUN_0049e330(__s1);\n      plVar2 = (long *)param_1[2];\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      thunk_FUN_0049e330(__s1);\n      plVar2 = (long *)param_1[2];\n    }" { (expression_statement "thunk_FUN_0049e330(__s1);" (call_expression "thunk_FUN_0049e330(__s1)" identifier (argument_list "(__s1)" ( identifier ))) ;) (expression_statement "plVar2 = (long *)param_1[2];" (assignment_expression "plVar2 = (long *)param_1[2]" identifier = (cast_expression "(long *)param_1[2]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) })) })) (if_statement "if ((plVar2[7] != 0) && (plVar2[6] != 0)) {\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n    if (plVar2 == (long *)0x0) goto LAB_004e4c49;\n  }" if (parenthesized_expression "((plVar2[7] != 0) && (plVar2[6] != 0))" ( (binary_expression "(plVar2[7] != 0) && (plVar2[6] != 0)" (parenthesized_expression "(plVar2[7] != 0)" ( (binary_expression "plVar2[7] != 0" (subscript_expression "plVar2[7]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(plVar2[6] != 0)" ( (binary_expression "plVar2[6] != 0" (subscript_expression "plVar2[6]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n    if (plVar2 == (long *)0x0) goto LAB_004e4c49;\n  }" { (expression_statement "thunk_FUN_0049e330();" (call_expression "thunk_FUN_0049e330()" identifier (argument_list "()" ( ))) ;) (expression_statement "plVar2 = (long *)param_1[2];" (assignment_expression "plVar2 = (long *)param_1[2]" identifier = (cast_expression "(long *)param_1[2]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (if_statement "if (plVar2 == (long *)0x0) goto LAB_004e4c49;" if (parenthesized_expression "(plVar2 == (long *)0x0)" ( (binary_expression "plVar2 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_004e4c49;" goto statement_identifier ;)) })) comment (expression_statement "(**(code **)(*plVar2 + 8))(plVar2);" (call_expression "(**(code **)(*plVar2 + 8))(plVar2)" (parenthesized_expression "(**(code **)(*plVar2 + 8))" ( (pointer_expression "**(code **)(*plVar2 + 8)" * (pointer_expression "*(code **)(*plVar2 + 8)" * (cast_expression "(code **)(*plVar2 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar2 + 8)" ( (binary_expression "*plVar2 + 8" (pointer_expression "*plVar2" * identifier) + number_literal) ))))) )) (argument_list "(plVar2)" ( identifier ))) ;) (labeled_statement "LAB_004e4c49:\n  FUN_004a0060(param_1);" statement_identifier : (expression_statement "FUN_004a0060(param_1);" (call_expression "FUN_004a0060(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "/* std::moneypunct<wchar_t, false>::~moneypunct() */\n\nvoid __thiscall std::moneypunct<wchar_t,false>::~moneypunct(moneypunct<wchar_t,false> *this)\n\n{\n  wchar_t *__s1;\n  int iVar1;\n  long *plVar2;\n  \n  plVar2 = *(long **)(this + 0x10);\n  *(undefined ***)this = &PTR__moneypunct_00679f90;\n  if ((plVar2[3] != 0) && ((void *)plVar2[2] != (void *)0x0)) {\n    operator_delete__((void *)plVar2[2]);\n    plVar2 = *(long **)(this + 0x10);\n  }\n  if ((plVar2[9] != 0) && ((void *)plVar2[8] != (void *)0x0)) {\n    operator_delete__((void *)plVar2[8]);\n    plVar2 = *(long **)(this + 0x10);\n  }\n  if (plVar2[0xb] != 0) {\n    __s1 = (wchar_t *)plVar2[10];\n    iVar1 = wcscmp(__s1,L"()");\n    if (iVar1 != 0) {\n      operator_delete__(__s1);\n      plVar2 = *(long **)(this + 0x10);\n    }\n  }\n  if ((plVar2[7] != 0) && ((void *)plVar2[6] != (void *)0x0)) {\n    operator_delete__((void *)plVar2[6]);\n    plVar2 = *(long **)(this + 0x10);\n    if (plVar2 == (long *)0x0) goto LAB_004e4c49;\n  }\n                    /* try { // try from 004e4c46 to 004e4c48 has its CatchHandler @ 004e4c66 */\n  (**(code **)(*plVar2 + 8))(plVar2);\nLAB_004e4c49:\n  locale::facet::~facet((facet *)this);\n  return;\n}\n\n" comment (declaration "void __thiscall std::moneypunct<wchar_t,false>::~moneypunct(moneypunct<wchar_t,false> *this)\n\n{\n  wchar_t *__s1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::moneypunct<" identifier : : identifier <) identifier , (ERROR "false>::~moneypunct(moneypunct<wchar_t,false> *this)\n\n{\n  wchar_t" identifier > : : ~ (function_declarator "moneypunct(moneypunct<wchar_t,false> *this)" identifier (parameter_list "(moneypunct<wchar_t,false> *this)" ( (parameter_declaration "moneypunct<wchar_t" type_identifier (ERROR "<" <) identifier) , (parameter_declaration "false> *this" type_identifier (ERROR ">" >) (pointer_declarator "*this" * identifier)) ))) { identifier) (pointer_declarator "*__s1" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (expression_statement "plVar2 = *(long **)(this + 0x10);" (assignment_expression "plVar2 = *(long **)(this + 0x10)" identifier = (pointer_expression "*(long **)(this + 0x10)" * (cast_expression "(long **)(this + 0x10)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(undefined ***)this = &PTR__moneypunct_00679f90;" (assignment_expression "*(undefined ***)this = &PTR__moneypunct_00679f90" (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__moneypunct_00679f90" & identifier)) ;) (if_statement "if ((plVar2[3] != 0) && ((void *)plVar2[2] != (void *)0x0)) {\n    operator_delete__((void *)plVar2[2]);\n    plVar2 = *(long **)(this + 0x10);\n  }" if (parenthesized_expression "((plVar2[3] != 0) && ((void *)plVar2[2] != (void *)0x0))" ( (binary_expression "(plVar2[3] != 0) && ((void *)plVar2[2] != (void *)0x0)" (parenthesized_expression "(plVar2[3] != 0)" ( (binary_expression "plVar2[3] != 0" (subscript_expression "plVar2[3]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "((void *)plVar2[2] != (void *)0x0)" ( (binary_expression "(void *)plVar2[2] != (void *)0x0" (cast_expression "(void *)plVar2[2]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar2[2]" identifier [ number_literal ])) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    operator_delete__((void *)plVar2[2]);\n    plVar2 = *(long **)(this + 0x10);\n  }" { (expression_statement "operator_delete__((void *)plVar2[2]);" (call_expression "operator_delete__((void *)plVar2[2])" identifier (argument_list "((void *)plVar2[2])" ( (cast_expression "(void *)plVar2[2]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar2[2]" identifier [ number_literal ])) ))) ;) (expression_statement "plVar2 = *(long **)(this + 0x10);" (assignment_expression "plVar2 = *(long **)(this + 0x10)" identifier = (pointer_expression "*(long **)(this + 0x10)" * (cast_expression "(long **)(this + 0x10)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) ))))) ;) })) (if_statement "if ((plVar2[9] != 0) && ((void *)plVar2[8] != (void *)0x0)) {\n    operator_delete__((void *)plVar2[8]);\n    plVar2 = *(long **)(this + 0x10);\n  }" if (parenthesized_expression "((plVar2[9] != 0) && ((void *)plVar2[8] != (void *)0x0))" ( (binary_expression "(plVar2[9] != 0) && ((void *)plVar2[8] != (void *)0x0)" (parenthesized_expression "(plVar2[9] != 0)" ( (binary_expression "plVar2[9] != 0" (subscript_expression "plVar2[9]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "((void *)plVar2[8] != (void *)0x0)" ( (binary_expression "(void *)plVar2[8] != (void *)0x0" (cast_expression "(void *)plVar2[8]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar2[8]" identifier [ number_literal ])) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    operator_delete__((void *)plVar2[8]);\n    plVar2 = *(long **)(this + 0x10);\n  }" { (expression_statement "operator_delete__((void *)plVar2[8]);" (call_expression "operator_delete__((void *)plVar2[8])" identifier (argument_list "((void *)plVar2[8])" ( (cast_expression "(void *)plVar2[8]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar2[8]" identifier [ number_literal ])) ))) ;) (expression_statement "plVar2 = *(long **)(this + 0x10);" (assignment_expression "plVar2 = *(long **)(this + 0x10)" identifier = (pointer_expression "*(long **)(this + 0x10)" * (cast_expression "(long **)(this + 0x10)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) ))))) ;) })) (if_statement "if (plVar2[0xb] != 0) {\n    __s1 = (wchar_t *)plVar2[10];\n    iVar1 = wcscmp(__s1,L"()");\n    if (iVar1 != 0) {\n      operator_delete__(__s1);\n      plVar2 = *(long **)(this + 0x10);\n    }\n  }" if (parenthesized_expression "(plVar2[0xb] != 0)" ( (binary_expression "plVar2[0xb] != 0" (subscript_expression "plVar2[0xb]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    __s1 = (wchar_t *)plVar2[10];\n    iVar1 = wcscmp(__s1,L"()");\n    if (iVar1 != 0) {\n      operator_delete__(__s1);\n      plVar2 = *(long **)(this + 0x10);\n    }\n  }" { (expression_statement "__s1 = (wchar_t *)plVar2[10];" (assignment_expression "__s1 = (wchar_t *)plVar2[10]" identifier = (cast_expression "(wchar_t *)plVar2[10]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar2[10]" identifier [ number_literal ]))) ;) (expression_statement "iVar1 = wcscmp(__s1,L"()");" (assignment_expression "iVar1 = wcscmp(__s1,L"()")" identifier = (call_expression "wcscmp(__s1,L"()")" identifier (argument_list "(__s1,L"()")" ( identifier , (string_literal "L"()"" L" string_content ") )))) ;) (if_statement "if (iVar1 != 0) {\n      operator_delete__(__s1);\n      plVar2 = *(long **)(this + 0x10);\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      operator_delete__(__s1);\n      plVar2 = *(long **)(this + 0x10);\n    }" { (expression_statement "operator_delete__(__s1);" (call_expression "operator_delete__(__s1)" identifier (argument_list "(__s1)" ( identifier ))) ;) (expression_statement "plVar2 = *(long **)(this + 0x10);" (assignment_expression "plVar2 = *(long **)(this + 0x10)" identifier = (pointer_expression "*(long **)(this + 0x10)" * (cast_expression "(long **)(this + 0x10)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) ))))) ;) })) })) (if_statement "if ((plVar2[7] != 0) && ((void *)plVar2[6] != (void *)0x0)) {\n    operator_delete__((void *)plVar2[6]);\n    plVar2 = *(long **)(this + 0x10);\n    if (plVar2 == (long *)0x0) goto LAB_004e4c49;\n  }" if (parenthesized_expression "((plVar2[7] != 0) && ((void *)plVar2[6] != (void *)0x0))" ( (binary_expression "(plVar2[7] != 0) && ((void *)plVar2[6] != (void *)0x0)" (parenthesized_expression "(plVar2[7] != 0)" ( (binary_expression "plVar2[7] != 0" (subscript_expression "plVar2[7]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "((void *)plVar2[6] != (void *)0x0)" ( (binary_expression "(void *)plVar2[6] != (void *)0x0" (cast_expression "(void *)plVar2[6]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar2[6]" identifier [ number_literal ])) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    operator_delete__((void *)plVar2[6]);\n    plVar2 = *(long **)(this + 0x10);\n    if (plVar2 == (long *)0x0) goto LAB_004e4c49;\n  }" { (expression_statement "operator_delete__((void *)plVar2[6]);" (call_expression "operator_delete__((void *)plVar2[6])" identifier (argument_list "((void *)plVar2[6])" ( (cast_expression "(void *)plVar2[6]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar2[6]" identifier [ number_literal ])) ))) ;) (expression_statement "plVar2 = *(long **)(this + 0x10);" (assignment_expression "plVar2 = *(long **)(this + 0x10)" identifier = (pointer_expression "*(long **)(this + 0x10)" * (cast_expression "(long **)(this + 0x10)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) ))))) ;) (if_statement "if (plVar2 == (long *)0x0) goto LAB_004e4c49;" if (parenthesized_expression "(plVar2 == (long *)0x0)" ( (binary_expression "plVar2 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_004e4c49;" goto statement_identifier ;)) })) comment (expression_statement "(**(code **)(*plVar2 + 8))(plVar2);" (call_expression "(**(code **)(*plVar2 + 8))(plVar2)" (parenthesized_expression "(**(code **)(*plVar2 + 8))" ( (pointer_expression "**(code **)(*plVar2 + 8)" * (pointer_expression "*(code **)(*plVar2 + 8)" * (cast_expression "(code **)(*plVar2 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar2 + 8)" ( (binary_expression "*plVar2 + 8" (pointer_expression "*plVar2" * identifier) + number_literal) ))))) )) (argument_list "(plVar2)" ( identifier ))) ;) (labeled_statement "LAB_004e4c49:\n  locale::facet::~facet((facet *)this);" statement_identifier : (labeled_statement "locale::facet::~facet((facet *)this);" statement_identifier : (ERROR ":" :) (labeled_statement "facet::~facet((facet *)this);" statement_identifier : (ERROR ":" :) (expression_statement "~facet((facet *)this);" (unary_expression "~facet((facet *)this)" ~ (call_expression "facet((facet *)this)" identifier (argument_list "((facet *)this)" ( (cast_expression "(facet *)this" ( (type_descriptor "facet *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;)))) (return_statement "return;" return ;) (ERROR "}" }))
(translation_unit "void FUN_004e4bb0(undefined8 *param_1)\n\n{\n  wchar_t *__s1;\n  int iVar1;\n  long *plVar2;\n  \n  plVar2 = (long *)param_1[2];\n  *param_1 = &PTR_FUN_00679f90;\n  if ((plVar2[3] != 0) && (plVar2[2] != 0)) {\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n  }\n  if ((plVar2[9] != 0) && (plVar2[8] != 0)) {\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n  }\n  if (plVar2[0xb] != 0) {\n    __s1 = (wchar_t *)plVar2[10];\n    iVar1 = wcscmp(__s1,L"()");\n    if (iVar1 != 0) {\n      thunk_FUN_0049e330(__s1);\n      plVar2 = (long *)param_1[2];\n    }\n  }\n  if ((plVar2[7] != 0) && (plVar2[6] != 0)) {\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n    if (plVar2 == (long *)0x0) goto LAB_004e4c49;\n  }\n                    \n  (**(code **)(*plVar2 + 8))(plVar2);\nLAB_004e4c49:\n  FUN_004a0060(param_1);\n  return;\n}\n\n" (function_definition "void FUN_004e4bb0(undefined8 *param_1)\n\n{\n  wchar_t *__s1;\n  int iVar1;\n  long *plVar2;\n  \n  plVar2 = (long *)param_1[2];\n  *param_1 = &PTR_FUN_00679f90;\n  if ((plVar2[3] != 0) && (plVar2[2] != 0)) {\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n  }\n  if ((plVar2[9] != 0) && (plVar2[8] != 0)) {\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n  }\n  if (plVar2[0xb] != 0) {\n    __s1 = (wchar_t *)plVar2[10];\n    iVar1 = wcscmp(__s1,L"()");\n    if (iVar1 != 0) {\n      thunk_FUN_0049e330(__s1);\n      plVar2 = (long *)param_1[2];\n    }\n  }\n  if ((plVar2[7] != 0) && (plVar2[6] != 0)) {\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n    if (plVar2 == (long *)0x0) goto LAB_004e4c49;\n  }\n                    \n  (**(code **)(*plVar2 + 8))(plVar2);\nLAB_004e4c49:\n  FUN_004a0060(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_004e4bb0(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  wchar_t *__s1;\n  int iVar1;\n  long *plVar2;\n  \n  plVar2 = (long *)param_1[2];\n  *param_1 = &PTR_FUN_00679f90;\n  if ((plVar2[3] != 0) && (plVar2[2] != 0)) {\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n  }\n  if ((plVar2[9] != 0) && (plVar2[8] != 0)) {\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n  }\n  if (plVar2[0xb] != 0) {\n    __s1 = (wchar_t *)plVar2[10];\n    iVar1 = wcscmp(__s1,L"()");\n    if (iVar1 != 0) {\n      thunk_FUN_0049e330(__s1);\n      plVar2 = (long *)param_1[2];\n    }\n  }\n  if ((plVar2[7] != 0) && (plVar2[6] != 0)) {\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n    if (plVar2 == (long *)0x0) goto LAB_004e4c49;\n  }\n                    \n  (**(code **)(*plVar2 + 8))(plVar2);\nLAB_004e4c49:\n  FUN_004a0060(param_1);\n  return;\n}" { (declaration "wchar_t *__s1;" type_identifier (pointer_declarator "*__s1" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (expression_statement "plVar2 = (long *)param_1[2];" (assignment_expression "plVar2 = (long *)param_1[2]" identifier = (cast_expression "(long *)param_1[2]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (expression_statement "*param_1 = &PTR_FUN_00679f90;" (assignment_expression "*param_1 = &PTR_FUN_00679f90" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_00679f90" & identifier)) ;) (if_statement "if ((plVar2[3] != 0) && (plVar2[2] != 0)) {\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n  }" if (parenthesized_expression "((plVar2[3] != 0) && (plVar2[2] != 0))" ( (binary_expression "(plVar2[3] != 0) && (plVar2[2] != 0)" (parenthesized_expression "(plVar2[3] != 0)" ( (binary_expression "plVar2[3] != 0" (subscript_expression "plVar2[3]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(plVar2[2] != 0)" ( (binary_expression "plVar2[2] != 0" (subscript_expression "plVar2[2]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n  }" { (expression_statement "thunk_FUN_0049e330();" (call_expression "thunk_FUN_0049e330()" identifier (argument_list "()" ( ))) ;) (expression_statement "plVar2 = (long *)param_1[2];" (assignment_expression "plVar2 = (long *)param_1[2]" identifier = (cast_expression "(long *)param_1[2]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) })) (if_statement "if ((plVar2[9] != 0) && (plVar2[8] != 0)) {\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n  }" if (parenthesized_expression "((plVar2[9] != 0) && (plVar2[8] != 0))" ( (binary_expression "(plVar2[9] != 0) && (plVar2[8] != 0)" (parenthesized_expression "(plVar2[9] != 0)" ( (binary_expression "plVar2[9] != 0" (subscript_expression "plVar2[9]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(plVar2[8] != 0)" ( (binary_expression "plVar2[8] != 0" (subscript_expression "plVar2[8]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n  }" { (expression_statement "thunk_FUN_0049e330();" (call_expression "thunk_FUN_0049e330()" identifier (argument_list "()" ( ))) ;) (expression_statement "plVar2 = (long *)param_1[2];" (assignment_expression "plVar2 = (long *)param_1[2]" identifier = (cast_expression "(long *)param_1[2]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) })) (if_statement "if (plVar2[0xb] != 0) {\n    __s1 = (wchar_t *)plVar2[10];\n    iVar1 = wcscmp(__s1,L"()");\n    if (iVar1 != 0) {\n      thunk_FUN_0049e330(__s1);\n      plVar2 = (long *)param_1[2];\n    }\n  }" if (parenthesized_expression "(plVar2[0xb] != 0)" ( (binary_expression "plVar2[0xb] != 0" (subscript_expression "plVar2[0xb]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    __s1 = (wchar_t *)plVar2[10];\n    iVar1 = wcscmp(__s1,L"()");\n    if (iVar1 != 0) {\n      thunk_FUN_0049e330(__s1);\n      plVar2 = (long *)param_1[2];\n    }\n  }" { (expression_statement "__s1 = (wchar_t *)plVar2[10];" (assignment_expression "__s1 = (wchar_t *)plVar2[10]" identifier = (cast_expression "(wchar_t *)plVar2[10]" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar2[10]" identifier [ number_literal ]))) ;) (expression_statement "iVar1 = wcscmp(__s1,L"()");" (assignment_expression "iVar1 = wcscmp(__s1,L"()")" identifier = (call_expression "wcscmp(__s1,L"()")" identifier (argument_list "(__s1,L"()")" ( identifier , (string_literal "L"()"" L" string_content ") )))) ;) (if_statement "if (iVar1 != 0) {\n      thunk_FUN_0049e330(__s1);\n      plVar2 = (long *)param_1[2];\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      thunk_FUN_0049e330(__s1);\n      plVar2 = (long *)param_1[2];\n    }" { (expression_statement "thunk_FUN_0049e330(__s1);" (call_expression "thunk_FUN_0049e330(__s1)" identifier (argument_list "(__s1)" ( identifier ))) ;) (expression_statement "plVar2 = (long *)param_1[2];" (assignment_expression "plVar2 = (long *)param_1[2]" identifier = (cast_expression "(long *)param_1[2]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) })) })) (if_statement "if ((plVar2[7] != 0) && (plVar2[6] != 0)) {\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n    if (plVar2 == (long *)0x0) goto LAB_004e4c49;\n  }" if (parenthesized_expression "((plVar2[7] != 0) && (plVar2[6] != 0))" ( (binary_expression "(plVar2[7] != 0) && (plVar2[6] != 0)" (parenthesized_expression "(plVar2[7] != 0)" ( (binary_expression "plVar2[7] != 0" (subscript_expression "plVar2[7]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(plVar2[6] != 0)" ( (binary_expression "plVar2[6] != 0" (subscript_expression "plVar2[6]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n    if (plVar2 == (long *)0x0) goto LAB_004e4c49;\n  }" { (expression_statement "thunk_FUN_0049e330();" (call_expression "thunk_FUN_0049e330()" identifier (argument_list "()" ( ))) ;) (expression_statement "plVar2 = (long *)param_1[2];" (assignment_expression "plVar2 = (long *)param_1[2]" identifier = (cast_expression "(long *)param_1[2]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (if_statement "if (plVar2 == (long *)0x0) goto LAB_004e4c49;" if (parenthesized_expression "(plVar2 == (long *)0x0)" ( (binary_expression "plVar2 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_004e4c49;" goto statement_identifier ;)) })) (expression_statement "(**(code **)(*plVar2 + 8))(plVar2);" (call_expression "(**(code **)(*plVar2 + 8))(plVar2)" (parenthesized_expression "(**(code **)(*plVar2 + 8))" ( (pointer_expression "**(code **)(*plVar2 + 8)" * (pointer_expression "*(code **)(*plVar2 + 8)" * (cast_expression "(code **)(*plVar2 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar2 + 8)" ( (binary_expression "*plVar2 + 8" (pointer_expression "*plVar2" * identifier) + number_literal) ))))) )) (argument_list "(plVar2)" ( identifier ))) ;) (labeled_statement "LAB_004e4c49:\n  FUN_004a0060(param_1);" statement_identifier : (expression_statement "FUN_004a0060(param_1);" (call_expression "FUN_004a0060(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;)) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal L" string_content ") )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT ))) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) (return_statement return ;) })))
(function_definition "void FUN_004e4bb0(undefined8 *param_1)\n\n{\n  wchar_t *__s1;\n  int iVar1;\n  long *plVar2;\n  \n  plVar2 = (long *)param_1[2];\n  *param_1 = &PTR_FUN_00679f90;\n  if ((plVar2[3] != 0) && (plVar2[2] != 0)) {\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n  }\n  if ((plVar2[9] != 0) && (plVar2[8] != 0)) {\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n  }\n  if (plVar2[0xb] != 0) {\n    __s1 = (wchar_t *)plVar2[10];\n    iVar1 = wcscmp(__s1,L"()");\n    if (iVar1 != 0) {\n      thunk_FUN_0049e330(__s1);\n      plVar2 = (long *)param_1[2];\n    }\n  }\n  if ((plVar2[7] != 0) && (plVar2[6] != 0)) {\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n    if (plVar2 == (long *)0x0) goto LAB_004e4c49;\n  }\n                    \n  (**(code **)(*plVar2 + 8))(plVar2);\nLAB_004e4c49:\n  FUN_004a0060(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_004e4bb0(undefined8 *param_1)" (identifier "FUN_004e4bb0") (parameter_list "(undefined8 *param_1)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  wchar_t *__s1;\n  int iVar1;\n  long *plVar2;\n  \n  plVar2 = (long *)param_1[2];\n  *param_1 = &PTR_FUN_00679f90;\n  if ((plVar2[3] != 0) && (plVar2[2] != 0)) {\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n  }\n  if ((plVar2[9] != 0) && (plVar2[8] != 0)) {\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n  }\n  if (plVar2[0xb] != 0) {\n    __s1 = (wchar_t *)plVar2[10];\n    iVar1 = wcscmp(__s1,L"()");\n    if (iVar1 != 0) {\n      thunk_FUN_0049e330(__s1);\n      plVar2 = (long *)param_1[2];\n    }\n  }\n  if ((plVar2[7] != 0) && (plVar2[6] != 0)) {\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n    if (plVar2 == (long *)0x0) goto LAB_004e4c49;\n  }\n                    \n  (**(code **)(*plVar2 + 8))(plVar2);\nLAB_004e4c49:\n  FUN_004a0060(param_1);\n  return;\n}" ({ "{") (declaration "wchar_t *__s1;" (type_identifier "wchar_t") (pointer_declarator "*__s1" (* "*") (identifier "__s1")) (; ";")) (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "long *plVar2;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar2" (* "*") (identifier "plVar2")) (; ";")) (expression_statement "plVar2 = (long *)param_1[2];" (assignment_expression "plVar2 = (long *)param_1[2]" (identifier "plVar2") (= "=") (cast_expression "(long *)param_1[2]" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "*param_1 = &PTR_FUN_00679f90;" (assignment_expression "*param_1 = &PTR_FUN_00679f90" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&PTR_FUN_00679f90" (& "&") (identifier "PTR_FUN_00679f90"))) (; ";")) (if_statement "if ((plVar2[3] != 0) && (plVar2[2] != 0)) {\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n  }" (if "if") (parenthesized_expression "((plVar2[3] != 0) && (plVar2[2] != 0))" (( "(") (binary_expression "(plVar2[3] != 0) && (plVar2[2] != 0)" (parenthesized_expression "(plVar2[3] != 0)" (( "(") (binary_expression "plVar2[3] != 0" (subscript_expression "plVar2[3]" (identifier "plVar2") ([ "[") (number_literal "3") (] "]")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(plVar2[2] != 0)" (( "(") (binary_expression "plVar2[2] != 0" (subscript_expression "plVar2[2]" (identifier "plVar2") ([ "[") (number_literal "2") (] "]")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n  }" ({ "{") (expression_statement "thunk_FUN_0049e330();" (call_expression "thunk_FUN_0049e330()" (identifier "thunk_FUN_0049e330") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "plVar2 = (long *)param_1[2];" (assignment_expression "plVar2 = (long *)param_1[2]" (identifier "plVar2") (= "=") (cast_expression "(long *)param_1[2]" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (} "}"))) (if_statement "if ((plVar2[9] != 0) && (plVar2[8] != 0)) {\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n  }" (if "if") (parenthesized_expression "((plVar2[9] != 0) && (plVar2[8] != 0))" (( "(") (binary_expression "(plVar2[9] != 0) && (plVar2[8] != 0)" (parenthesized_expression "(plVar2[9] != 0)" (( "(") (binary_expression "plVar2[9] != 0" (subscript_expression "plVar2[9]" (identifier "plVar2") ([ "[") (number_literal "9") (] "]")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(plVar2[8] != 0)" (( "(") (binary_expression "plVar2[8] != 0" (subscript_expression "plVar2[8]" (identifier "plVar2") ([ "[") (number_literal "8") (] "]")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n  }" ({ "{") (expression_statement "thunk_FUN_0049e330();" (call_expression "thunk_FUN_0049e330()" (identifier "thunk_FUN_0049e330") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "plVar2 = (long *)param_1[2];" (assignment_expression "plVar2 = (long *)param_1[2]" (identifier "plVar2") (= "=") (cast_expression "(long *)param_1[2]" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (} "}"))) (if_statement "if (plVar2[0xb] != 0) {\n    __s1 = (wchar_t *)plVar2[10];\n    iVar1 = wcscmp(__s1,L"()");\n    if (iVar1 != 0) {\n      thunk_FUN_0049e330(__s1);\n      plVar2 = (long *)param_1[2];\n    }\n  }" (if "if") (parenthesized_expression "(plVar2[0xb] != 0)" (( "(") (binary_expression "plVar2[0xb] != 0" (subscript_expression "plVar2[0xb]" (identifier "plVar2") ([ "[") (number_literal "0xb") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    __s1 = (wchar_t *)plVar2[10];\n    iVar1 = wcscmp(__s1,L"()");\n    if (iVar1 != 0) {\n      thunk_FUN_0049e330(__s1);\n      plVar2 = (long *)param_1[2];\n    }\n  }" ({ "{") (expression_statement "__s1 = (wchar_t *)plVar2[10];" (assignment_expression "__s1 = (wchar_t *)plVar2[10]" (identifier "__s1") (= "=") (cast_expression "(wchar_t *)plVar2[10]" (( "(") (type_descriptor "wchar_t *" (type_identifier "wchar_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar2[10]" (identifier "plVar2") ([ "[") (number_literal "10") (] "]")))) (; ";")) (expression_statement "iVar1 = wcscmp(__s1,L"()");" (assignment_expression "iVar1 = wcscmp(__s1,L"()")" (identifier "iVar1") (= "=") (call_expression "wcscmp(__s1,L"()")" (identifier "wcscmp") (argument_list "(__s1,L"()")" (( "(") (identifier "__s1") (, ",") (string_literal "L"()"" (L" "L"") (string_content "()") (" """)) () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      thunk_FUN_0049e330(__s1);\n      plVar2 = (long *)param_1[2];\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      thunk_FUN_0049e330(__s1);\n      plVar2 = (long *)param_1[2];\n    }" ({ "{") (expression_statement "thunk_FUN_0049e330(__s1);" (call_expression "thunk_FUN_0049e330(__s1)" (identifier "thunk_FUN_0049e330") (argument_list "(__s1)" (( "(") (identifier "__s1") () ")"))) (; ";")) (expression_statement "plVar2 = (long *)param_1[2];" (assignment_expression "plVar2 = (long *)param_1[2]" (identifier "plVar2") (= "=") (cast_expression "(long *)param_1[2]" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (} "}"))) (} "}"))) (if_statement "if ((plVar2[7] != 0) && (plVar2[6] != 0)) {\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n    if (plVar2 == (long *)0x0) goto LAB_004e4c49;\n  }" (if "if") (parenthesized_expression "((plVar2[7] != 0) && (plVar2[6] != 0))" (( "(") (binary_expression "(plVar2[7] != 0) && (plVar2[6] != 0)" (parenthesized_expression "(plVar2[7] != 0)" (( "(") (binary_expression "plVar2[7] != 0" (subscript_expression "plVar2[7]" (identifier "plVar2") ([ "[") (number_literal "7") (] "]")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(plVar2[6] != 0)" (( "(") (binary_expression "plVar2[6] != 0" (subscript_expression "plVar2[6]" (identifier "plVar2") ([ "[") (number_literal "6") (] "]")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    thunk_FUN_0049e330();\n    plVar2 = (long *)param_1[2];\n    if (plVar2 == (long *)0x0) goto LAB_004e4c49;\n  }" ({ "{") (expression_statement "thunk_FUN_0049e330();" (call_expression "thunk_FUN_0049e330()" (identifier "thunk_FUN_0049e330") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "plVar2 = (long *)param_1[2];" (assignment_expression "plVar2 = (long *)param_1[2]" (identifier "plVar2") (= "=") (cast_expression "(long *)param_1[2]" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (if_statement "if (plVar2 == (long *)0x0) goto LAB_004e4c49;" (if "if") (parenthesized_expression "(plVar2 == (long *)0x0)" (( "(") (binary_expression "plVar2 == (long *)0x0" (identifier "plVar2") (== "==") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_004e4c49;" (goto "goto") (statement_identifier "LAB_004e4c49") (; ";"))) (} "}"))) (expression_statement "(**(code **)(*plVar2 + 8))(plVar2);" (call_expression "(**(code **)(*plVar2 + 8))(plVar2)" (parenthesized_expression "(**(code **)(*plVar2 + 8))" (( "(") (pointer_expression "**(code **)(*plVar2 + 8)" (* "*") (pointer_expression "*(code **)(*plVar2 + 8)" (* "*") (cast_expression "(code **)(*plVar2 + 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*plVar2 + 8)" (( "(") (binary_expression "*plVar2 + 8" (pointer_expression "*plVar2" (* "*") (identifier "plVar2")) (+ "+") (number_literal "8")) () ")"))))) () ")")) (argument_list "(plVar2)" (( "(") (identifier "plVar2") () ")"))) (; ";")) (labeled_statement "LAB_004e4c49:\n  FUN_004a0060(param_1);" (statement_identifier "LAB_004e4c49") (: ":") (expression_statement "FUN_004a0060(param_1);" (call_expression "FUN_004a0060(param_1)" (identifier "FUN_004a0060") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::moneypunct<wchar_t, false>::~moneypunct() */

void __thiscall std::moneypunct<type_2,false>::~moneypunct(moneypunct<type_2,false> *var_1)

{
  type_2 *__s1;
  int var_4;
  long *var_5;
  
  var_5 = *(long **)(var_1 + 0x10);
  *(type_1 ***)var_1 = &PTR__moneypunct_00679f90;
  if ((var_5[3] != 0) && ((void *)var_5[2] != (void *)0x0)) {
    var_2((void *)var_5[2]);
    var_5 = *(long **)(var_1 + 0x10);
  }
  if ((var_5[9] != 0) && ((void *)var_5[8] != (void *)0x0)) {
    var_2((void *)var_5[8]);
    var_5 = *(long **)(var_1 + 0x10);
  }
  if (var_5[0xb] != 0) {
    __s1 = (type_2 *)var_5[10];
    var_4 = var_3(__s1,L"()");
    if (var_4 != 0) {
      var_2(__s1);
      var_5 = *(long **)(var_1 + 0x10);
    }
  }
  if ((var_5[7] != 0) && ((void *)var_5[6] != (void *)0x0)) {
    var_2((void *)var_5[6]);
    var_5 = *(long **)(var_1 + 0x10);
    if (var_5 == (long *)0x0) goto LAB_004e4c49;
  }
                    /* try { // try from 004e4c46 to 004e4c48 has its CatchHandler @ 004e4c66 */
  (**(type_3 **)(*var_5 + 8))(var_5);
LAB_004e4c49:
  locale::facet::~var_6((var_6 *)var_1);
  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))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier)))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))) (return_statement))))

void MASKED(undefined8 *param_1)

{
  wchar_t *__s1;
  int iVar1;
  long *plVar2;
  
  plVar2 = (long *)param_1[2];
  *param_1 = &PTR_FUN_00679f90;
  if ((plVar2[3] != 0) && (plVar2[2] != 0)) {
    thunk_FUN_0049e330();
    plVar2 = (long *)param_1[2];
  }
  if ((plVar2[9] != 0) && (plVar2[8] != 0)) {
    thunk_FUN_0049e330();
    plVar2 = (long *)param_1[2];
  }
  if (plVar2[0xb] != 0) {
    __s1 = (wchar_t *)plVar2[10];
    iVar1 = wcscmp(__s1,L"()");
    if (iVar1 != 0) {
      thunk_FUN_0049e330(__s1);
      plVar2 = (long *)param_1[2];
    }
  }
  if ((plVar2[7] != 0) && (plVar2[6] != 0)) {
    thunk_FUN_0049e330();
    plVar2 = (long *)param_1[2];
    if (plVar2 == (long *)0x0) goto LAB_004e4c49;
  }
                    /* try { // try from 004e4c46 to 004e4c48 has its CatchHandler @ 004e4c66 */
  (**(code **)(*plVar2 + 8))(plVar2);
LAB_004e4c49:
  FUN_004a0060(param_1);
  return;
}

