
/* std::__timepunct<char>::__timepunct(__locale_struct*, char const*, unsigned long) */

void __thiscall
std::__timepunct<char>::__timepunct
          (__timepunct<char> *this,__locale_struct *param_1,char *param_2,ulong param_3)

{
  int iVar1;
  char *__s2;
  size_t sVar2;
  void *pvVar3;
  
  *(uint *)(this + 8) = (uint)(param_3 != 0);
  *(undefined8 *)(this + 0x10) = 0;
  *(undefined8 *)(this + 0x18) = 0;
  *(undefined ***)this = &PTR____timepunct_00438e28;
  *(undefined8 *)(this + 0x20) = 0;
  __s2 = (char *)locale::facet::_S_get_c_name();
  iVar1 = strcmp(param_2,__s2);
  if (iVar1 == 0) {
    *(char **)(this + 0x20) = __s2;
  }
  else {
    sVar2 = strlen(param_2);
                    /* try { // try from 002eb9f7 to 002eb9fb has its CatchHandler @ 002eba10 */
    pvVar3 = operator_new__(sVar2 + 1);
    pvVar3 = memcpy(pvVar3,param_2,sVar2 + 1);
    *(void **)(this + 0x20) = pvVar3;
  }
                    /* try { // try from 002eb9d3 to 002eb9d7 has its CatchHandler @ 002eba15 */
  _M_initialize_timepunct(this,param_1);
  return;
}



void FUN_002eb970(undefined8 *param_1,undefined8 param_2,char *param_3,long param_4)

{
  int iVar1;
  char *__s2;
  size_t sVar2;
  void *pvVar3;
  
  *(uint *)(param_1 + 1) = (uint)(param_4 != 0);
  param_1[2] = 0;
  param_1[3] = 0;
  *param_1 = &PTR_FUN_00438e28;
  param_1[4] = 0;
  __s2 = (char *)FUN_002dcfc0();
  iVar1 = strcmp(param_3,__s2);
  if (iVar1 == 0) {
    param_1[4] = __s2;
  }
  else {
    sVar2 = strlen(param_3);
                    /* try { // try from 002eb9f7 to 002eb9fb has its CatchHandler @ 002eba10 */
    pvVar3 = (void *)thunk_FUN_002d94a0(sVar2 + 1);
    pvVar3 = memcpy(pvVar3,param_3,sVar2 + 1);
    param_1[4] = pvVar3;
  }
                    /* try { // try from 002eb9d3 to 002eb9d7 has its CatchHandler @ 002eba15 */
  FUN_0031c220(param_1,param_2);
  return;
}


XOR EAX,EAX
TEST RCX,RCX
PUSH R14
SETNZ AL
PUSH R13
MOV R13,RSI
PUSH R12
MOV R12,RDX
PUSH RBP
PUSH RBX
MOV RBX,RDI
MOV dword ptr [RDI + 0x8],EAX
LEA RAX,[0x438e18]
MOV qword ptr [RDI + 0x10],0x0
ADD RAX,0x10
MOV qword ptr [RDI + 0x18],0x0
MOV qword ptr [RDI],RAX
MOV qword ptr [RDI + 0x20],0x0
CALL 0x002dcfc0
MOV RDI,R12
MOV RSI,RAX
MOV RBP,RAX
CALL 0x001477a0
TEST EAX,EAX
JNZ 0x002eb9e8
MOV qword ptr [RBX + 0x20],RBP
MOV RSI,R13
MOV RDI,RBX
CALL 0x0031c220
POP RBX
POP RBP
POP R12
POP R13
POP R14
RET
MOV RDI,R12
CALL 0x00147490
LEA R14,[RAX + 0x1]
MOV RDI,R14
CALL 0x002d9440
MOV RDX,R14
MOV RSI,R12
MOV RDI,RAX
CALL 0x00147aa0
MOV qword ptr [RBX + 0x20],RAX
JMP 0x002eb9cd
(translation_unit "void FUN_002eb970(undefined8 *param_1,undefined8 param_2,char *param_3,long param_4)\n\n{\n  int iVar1;\n  char *__s2;\n  size_t sVar2;\n  void *pvVar3;\n  \n  *(uint *)(param_1 + 1) = (uint)(param_4 != 0);\n  param_1[2] = 0;\n  param_1[3] = 0;\n  *param_1 = &PTR_FUN_00438e28;\n  param_1[4] = 0;\n  __s2 = (char *)FUN_002dcfc0();\n  iVar1 = strcmp(param_3,__s2);\n  if (iVar1 == 0) {\n    param_1[4] = __s2;\n  }\n  else {\n    sVar2 = strlen(param_3);\n                    /* try { // try from 002eb9f7 to 002eb9fb has its CatchHandler @ 002eba10 */\n    pvVar3 = (void *)thunk_FUN_002d94a0(sVar2 + 1);\n    pvVar3 = memcpy(pvVar3,param_3,sVar2 + 1);\n    param_1[4] = pvVar3;\n  }\n                    /* try { // try from 002eb9d3 to 002eb9d7 has its CatchHandler @ 002eba15 */\n  FUN_0031c220(param_1,param_2);\n  return;\n}\n\n" (function_definition "void FUN_002eb970(undefined8 *param_1,undefined8 param_2,char *param_3,long param_4)\n\n{\n  int iVar1;\n  char *__s2;\n  size_t sVar2;\n  void *pvVar3;\n  \n  *(uint *)(param_1 + 1) = (uint)(param_4 != 0);\n  param_1[2] = 0;\n  param_1[3] = 0;\n  *param_1 = &PTR_FUN_00438e28;\n  param_1[4] = 0;\n  __s2 = (char *)FUN_002dcfc0();\n  iVar1 = strcmp(param_3,__s2);\n  if (iVar1 == 0) {\n    param_1[4] = __s2;\n  }\n  else {\n    sVar2 = strlen(param_3);\n                    /* try { // try from 002eb9f7 to 002eb9fb has its CatchHandler @ 002eba10 */\n    pvVar3 = (void *)thunk_FUN_002d94a0(sVar2 + 1);\n    pvVar3 = memcpy(pvVar3,param_3,sVar2 + 1);\n    param_1[4] = pvVar3;\n  }\n                    /* try { // try from 002eb9d3 to 002eb9d7 has its CatchHandler @ 002eba15 */\n  FUN_0031c220(param_1,param_2);\n  return;\n}" primitive_type (function_declarator "FUN_002eb970(undefined8 *param_1,undefined8 param_2,char *param_3,long param_4)" identifier (parameter_list "(undefined8 *param_1,undefined8 param_2,char *param_3,long param_4)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "long param_4" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  int iVar1;\n  char *__s2;\n  size_t sVar2;\n  void *pvVar3;\n  \n  *(uint *)(param_1 + 1) = (uint)(param_4 != 0);\n  param_1[2] = 0;\n  param_1[3] = 0;\n  *param_1 = &PTR_FUN_00438e28;\n  param_1[4] = 0;\n  __s2 = (char *)FUN_002dcfc0();\n  iVar1 = strcmp(param_3,__s2);\n  if (iVar1 == 0) {\n    param_1[4] = __s2;\n  }\n  else {\n    sVar2 = strlen(param_3);\n                    /* try { // try from 002eb9f7 to 002eb9fb has its CatchHandler @ 002eba10 */\n    pvVar3 = (void *)thunk_FUN_002d94a0(sVar2 + 1);\n    pvVar3 = memcpy(pvVar3,param_3,sVar2 + 1);\n    param_1[4] = pvVar3;\n  }\n                    /* try { // try from 002eb9d3 to 002eb9d7 has its CatchHandler @ 002eba15 */\n  FUN_0031c220(param_1,param_2);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (expression_statement "*(uint *)(param_1 + 1) = (uint)(param_4 != 0);" (assignment_expression "*(uint *)(param_1 + 1) = (uint)(param_4 != 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_4 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )))) ;) (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 "*param_1 = &PTR_FUN_00438e28;" (assignment_expression "*param_1 = &PTR_FUN_00438e28" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_00438e28" & identifier)) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "__s2 = (char *)FUN_002dcfc0();" (assignment_expression "__s2 = (char *)FUN_002dcfc0()" identifier = (cast_expression "(char *)FUN_002dcfc0()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_002dcfc0()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar1 = strcmp(param_3,__s2);" (assignment_expression "iVar1 = strcmp(param_3,__s2)" identifier = (call_expression "strcmp(param_3,__s2)" identifier (argument_list "(param_3,__s2)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    param_1[4] = __s2;\n  }\n  else {\n    sVar2 = strlen(param_3);\n                    /* try { // try from 002eb9f7 to 002eb9fb has its CatchHandler @ 002eba10 */\n    pvVar3 = (void *)thunk_FUN_002d94a0(sVar2 + 1);\n    pvVar3 = memcpy(pvVar3,param_3,sVar2 + 1);\n    param_1[4] = pvVar3;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    param_1[4] = __s2;\n  }" { (expression_statement "param_1[4] = __s2;" (assignment_expression "param_1[4] = __s2" (subscript_expression "param_1[4]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n    sVar2 = strlen(param_3);\n                    /* try { // try from 002eb9f7 to 002eb9fb has its CatchHandler @ 002eba10 */\n    pvVar3 = (void *)thunk_FUN_002d94a0(sVar2 + 1);\n    pvVar3 = memcpy(pvVar3,param_3,sVar2 + 1);\n    param_1[4] = pvVar3;\n  }" else (compound_statement "{\n    sVar2 = strlen(param_3);\n                    /* try { // try from 002eb9f7 to 002eb9fb has its CatchHandler @ 002eba10 */\n    pvVar3 = (void *)thunk_FUN_002d94a0(sVar2 + 1);\n    pvVar3 = memcpy(pvVar3,param_3,sVar2 + 1);\n    param_1[4] = pvVar3;\n  }" { (expression_statement "sVar2 = strlen(param_3);" (assignment_expression "sVar2 = strlen(param_3)" identifier = (call_expression "strlen(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) comment (expression_statement "pvVar3 = (void *)thunk_FUN_002d94a0(sVar2 + 1);" (assignment_expression "pvVar3 = (void *)thunk_FUN_002d94a0(sVar2 + 1)" identifier = (cast_expression "(void *)thunk_FUN_002d94a0(sVar2 + 1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "thunk_FUN_002d94a0(sVar2 + 1)" identifier (argument_list "(sVar2 + 1)" ( (binary_expression "sVar2 + 1" identifier + number_literal) ))))) ;) (expression_statement "pvVar3 = memcpy(pvVar3,param_3,sVar2 + 1);" (assignment_expression "pvVar3 = memcpy(pvVar3,param_3,sVar2 + 1)" identifier = (call_expression "memcpy(pvVar3,param_3,sVar2 + 1)" identifier (argument_list "(pvVar3,param_3,sVar2 + 1)" ( identifier , identifier , (binary_expression "sVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "param_1[4] = pvVar3;" (assignment_expression "param_1[4] = pvVar3" (subscript_expression "param_1[4]" identifier [ number_literal ]) = identifier) ;) }))) comment (expression_statement "FUN_0031c220(param_1,param_2);" (call_expression "FUN_0031c220(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::__timepunct<char>::__timepunct(__locale_struct*, char const*, unsigned long) */\n\nvoid __thiscall\nstd::__timepunct<char>::__timepunct\n          (__timepunct<char> *this,__locale_struct *param_1,char *param_2,ulong param_3)\n\n{\n  int iVar1;\n  char *__s2;\n  size_t sVar2;\n  void *pvVar3;\n  \n  *(uint *)(this + 8) = (uint)(param_3 != 0);\n  *(undefined8 *)(this + 0x10) = 0;\n  *(undefined8 *)(this + 0x18) = 0;\n  *(undefined ***)this = &PTR____timepunct_00438e28;\n  *(undefined8 *)(this + 0x20) = 0;\n  __s2 = (char *)locale::facet::_S_get_c_name();\n  iVar1 = strcmp(param_2,__s2);\n  if (iVar1 == 0) {\n    *(char **)(this + 0x20) = __s2;\n  }\n  else {\n    sVar2 = strlen(param_2);\n                    /* try { // try from 002eb9f7 to 002eb9fb has its CatchHandler @ 002eba10 */\n    pvVar3 = operator_new__(sVar2 + 1);\n    pvVar3 = memcpy(pvVar3,param_2,sVar2 + 1);\n    *(void **)(this + 0x20) = pvVar3;\n  }\n                    /* try { // try from 002eb9d3 to 002eb9d7 has its CatchHandler @ 002eba15 */\n  _M_initialize_timepunct(this,param_1);\n  return;\n}\n\n" comment (function_definition "void __thiscall\nstd::__timepunct<char>::__timepunct\n          (__timepunct<char> *this,__locale_struct *param_1,char *param_2,ulong param_3)\n\n{\n  int iVar1;\n  char *__s2;\n  size_t sVar2;\n  void *pvVar3;\n  \n  *(uint *)(this + 8) = (uint)(param_3 != 0);\n  *(undefined8 *)(this + 0x10) = 0;\n  *(undefined8 *)(this + 0x18) = 0;\n  *(undefined ***)this = &PTR____timepunct_00438e28;\n  *(undefined8 *)(this + 0x20) = 0;\n  __s2 = (char *)locale::facet::_S_get_c_name();\n  iVar1 = strcmp(param_2,__s2);\n  if (iVar1 == 0) {\n    *(char **)(this + 0x20) = __s2;\n  }\n  else {\n    sVar2 = strlen(param_2);\n                    /* try { // try from 002eb9f7 to 002eb9fb has its CatchHandler @ 002eba10 */\n    pvVar3 = operator_new__(sVar2 + 1);\n    pvVar3 = memcpy(pvVar3,param_2,sVar2 + 1);\n    *(void **)(this + 0x20) = pvVar3;\n  }\n                    /* try { // try from 002eb9d3 to 002eb9d7 has its CatchHandler @ 002eba15 */\n  _M_initialize_timepunct(this,param_1);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::__timepunct<char>::" identifier : : identifier < primitive_type > : :) (function_declarator "__timepunct\n          (__timepunct<char> *this,__locale_struct *param_1,char *param_2,ulong param_3)" identifier (parameter_list "(__timepunct<char> *this,__locale_struct *param_1,char *param_2,ulong param_3)" ( (parameter_declaration "__timepunct<char> *this" type_identifier (ERROR "<char>" < primitive_type >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "__locale_struct *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "ulong param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  char *__s2;\n  size_t sVar2;\n  void *pvVar3;\n  \n  *(uint *)(this + 8) = (uint)(param_3 != 0);\n  *(undefined8 *)(this + 0x10) = 0;\n  *(undefined8 *)(this + 0x18) = 0;\n  *(undefined ***)this = &PTR____timepunct_00438e28;\n  *(undefined8 *)(this + 0x20) = 0;\n  __s2 = (char *)locale::facet::_S_get_c_name();\n  iVar1 = strcmp(param_2,__s2);\n  if (iVar1 == 0) {\n    *(char **)(this + 0x20) = __s2;\n  }\n  else {\n    sVar2 = strlen(param_2);\n                    /* try { // try from 002eb9f7 to 002eb9fb has its CatchHandler @ 002eba10 */\n    pvVar3 = operator_new__(sVar2 + 1);\n    pvVar3 = memcpy(pvVar3,param_2,sVar2 + 1);\n    *(void **)(this + 0x20) = pvVar3;\n  }\n                    /* try { // try from 002eb9d3 to 002eb9d7 has its CatchHandler @ 002eba15 */\n  _M_initialize_timepunct(this,param_1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (expression_statement "*(uint *)(this + 8) = (uint)(param_3 != 0);" (assignment_expression "*(uint *)(this + 8) = (uint)(param_3 != 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_3 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )))) ;) (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 "*(undefined ***)this = &PTR____timepunct_00438e28;" (assignment_expression "*(undefined ***)this = &PTR____timepunct_00438e28" (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_00438e28" & identifier)) ;) (expression_statement "*(undefined8 *)(this + 0x20) = 0;" (assignment_expression "*(undefined8 *)(this + 0x20) = 0" (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) )))) = number_literal) ;) (ERROR "__s2 = (char *)locale::" (assignment_expression "__s2 = (char *)locale" identifier = (cast_expression "(char *)locale" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) 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 "iVar1 = strcmp(param_2,__s2);" (assignment_expression "iVar1 = strcmp(param_2,__s2)" identifier = (call_expression "strcmp(param_2,__s2)" identifier (argument_list "(param_2,__s2)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    *(char **)(this + 0x20) = __s2;\n  }\n  else {\n    sVar2 = strlen(param_2);\n                    /* try { // try from 002eb9f7 to 002eb9fb has its CatchHandler @ 002eba10 */\n    pvVar3 = operator_new__(sVar2 + 1);\n    pvVar3 = memcpy(pvVar3,param_2,sVar2 + 1);\n    *(void **)(this + 0x20) = pvVar3;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    *(char **)(this + 0x20) = __s2;\n  }" { (expression_statement "*(char **)(this + 0x20) = __s2;" (assignment_expression "*(char **)(this + 0x20) = __s2" (pointer_expression "*(char **)(this + 0x20)" * (cast_expression "(char **)(this + 0x20)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x20)" ( (binary_expression "this + 0x20" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n    sVar2 = strlen(param_2);\n                    /* try { // try from 002eb9f7 to 002eb9fb has its CatchHandler @ 002eba10 */\n    pvVar3 = operator_new__(sVar2 + 1);\n    pvVar3 = memcpy(pvVar3,param_2,sVar2 + 1);\n    *(void **)(this + 0x20) = pvVar3;\n  }" else (compound_statement "{\n    sVar2 = strlen(param_2);\n                    /* try { // try from 002eb9f7 to 002eb9fb has its CatchHandler @ 002eba10 */\n    pvVar3 = operator_new__(sVar2 + 1);\n    pvVar3 = memcpy(pvVar3,param_2,sVar2 + 1);\n    *(void **)(this + 0x20) = pvVar3;\n  }" { (expression_statement "sVar2 = strlen(param_2);" (assignment_expression "sVar2 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) comment (expression_statement "pvVar3 = operator_new__(sVar2 + 1);" (assignment_expression "pvVar3 = operator_new__(sVar2 + 1)" identifier = (call_expression "operator_new__(sVar2 + 1)" identifier (argument_list "(sVar2 + 1)" ( (binary_expression "sVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "pvVar3 = memcpy(pvVar3,param_2,sVar2 + 1);" (assignment_expression "pvVar3 = memcpy(pvVar3,param_2,sVar2 + 1)" identifier = (call_expression "memcpy(pvVar3,param_2,sVar2 + 1)" identifier (argument_list "(pvVar3,param_2,sVar2 + 1)" ( identifier , identifier , (binary_expression "sVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "*(void **)(this + 0x20) = pvVar3;" (assignment_expression "*(void **)(this + 0x20) = pvVar3" (pointer_expression "*(void **)(this + 0x20)" * (cast_expression "(void **)(this + 0x20)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x20)" ( (binary_expression "this + 0x20" identifier + number_literal) )))) = identifier) ;) }))) comment (expression_statement "_M_initialize_timepunct(this,param_1);" (call_expression "_M_initialize_timepunct(this,param_1)" identifier (argument_list "(this,param_1)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_002eb970(undefined8 *param_1,undefined8 param_2,char *param_3,long param_4)\n\n{\n  int iVar1;\n  char *__s2;\n  size_t sVar2;\n  void *pvVar3;\n  \n  *(uint *)(param_1 + 1) = (uint)(param_4 != 0);\n  param_1[2] = 0;\n  param_1[3] = 0;\n  *param_1 = &PTR_FUN_00438e28;\n  param_1[4] = 0;\n  __s2 = (char *)FUN_002dcfc0();\n  iVar1 = strcmp(param_3,__s2);\n  if (iVar1 == 0) {\n    param_1[4] = __s2;\n  }\n  else {\n    sVar2 = strlen(param_3);\n                    \n    pvVar3 = (void *)thunk_FUN_002d94a0(sVar2 + 1);\n    pvVar3 = memcpy(pvVar3,param_3,sVar2 + 1);\n    param_1[4] = pvVar3;\n  }\n                    \n  FUN_0031c220(param_1,param_2);\n  return;\n}\n\n" (function_definition "void FUN_002eb970(undefined8 *param_1,undefined8 param_2,char *param_3,long param_4)\n\n{\n  int iVar1;\n  char *__s2;\n  size_t sVar2;\n  void *pvVar3;\n  \n  *(uint *)(param_1 + 1) = (uint)(param_4 != 0);\n  param_1[2] = 0;\n  param_1[3] = 0;\n  *param_1 = &PTR_FUN_00438e28;\n  param_1[4] = 0;\n  __s2 = (char *)FUN_002dcfc0();\n  iVar1 = strcmp(param_3,__s2);\n  if (iVar1 == 0) {\n    param_1[4] = __s2;\n  }\n  else {\n    sVar2 = strlen(param_3);\n                    \n    pvVar3 = (void *)thunk_FUN_002d94a0(sVar2 + 1);\n    pvVar3 = memcpy(pvVar3,param_3,sVar2 + 1);\n    param_1[4] = pvVar3;\n  }\n                    \n  FUN_0031c220(param_1,param_2);\n  return;\n}" primitive_type (function_declarator "FUN_002eb970(undefined8 *param_1,undefined8 param_2,char *param_3,long param_4)" identifier (parameter_list "(undefined8 *param_1,undefined8 param_2,char *param_3,long param_4)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "long param_4" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  int iVar1;\n  char *__s2;\n  size_t sVar2;\n  void *pvVar3;\n  \n  *(uint *)(param_1 + 1) = (uint)(param_4 != 0);\n  param_1[2] = 0;\n  param_1[3] = 0;\n  *param_1 = &PTR_FUN_00438e28;\n  param_1[4] = 0;\n  __s2 = (char *)FUN_002dcfc0();\n  iVar1 = strcmp(param_3,__s2);\n  if (iVar1 == 0) {\n    param_1[4] = __s2;\n  }\n  else {\n    sVar2 = strlen(param_3);\n                    \n    pvVar3 = (void *)thunk_FUN_002d94a0(sVar2 + 1);\n    pvVar3 = memcpy(pvVar3,param_3,sVar2 + 1);\n    param_1[4] = pvVar3;\n  }\n                    \n  FUN_0031c220(param_1,param_2);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (expression_statement "*(uint *)(param_1 + 1) = (uint)(param_4 != 0);" (assignment_expression "*(uint *)(param_1 + 1) = (uint)(param_4 != 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_4 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )))) ;) (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 "*param_1 = &PTR_FUN_00438e28;" (assignment_expression "*param_1 = &PTR_FUN_00438e28" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_00438e28" & identifier)) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "__s2 = (char *)FUN_002dcfc0();" (assignment_expression "__s2 = (char *)FUN_002dcfc0()" identifier = (cast_expression "(char *)FUN_002dcfc0()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_002dcfc0()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar1 = strcmp(param_3,__s2);" (assignment_expression "iVar1 = strcmp(param_3,__s2)" identifier = (call_expression "strcmp(param_3,__s2)" identifier (argument_list "(param_3,__s2)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    param_1[4] = __s2;\n  }\n  else {\n    sVar2 = strlen(param_3);\n                    \n    pvVar3 = (void *)thunk_FUN_002d94a0(sVar2 + 1);\n    pvVar3 = memcpy(pvVar3,param_3,sVar2 + 1);\n    param_1[4] = pvVar3;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    param_1[4] = __s2;\n  }" { (expression_statement "param_1[4] = __s2;" (assignment_expression "param_1[4] = __s2" (subscript_expression "param_1[4]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n    sVar2 = strlen(param_3);\n                    \n    pvVar3 = (void *)thunk_FUN_002d94a0(sVar2 + 1);\n    pvVar3 = memcpy(pvVar3,param_3,sVar2 + 1);\n    param_1[4] = pvVar3;\n  }" else (compound_statement "{\n    sVar2 = strlen(param_3);\n                    \n    pvVar3 = (void *)thunk_FUN_002d94a0(sVar2 + 1);\n    pvVar3 = memcpy(pvVar3,param_3,sVar2 + 1);\n    param_1[4] = pvVar3;\n  }" { (expression_statement "sVar2 = strlen(param_3);" (assignment_expression "sVar2 = strlen(param_3)" identifier = (call_expression "strlen(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "pvVar3 = (void *)thunk_FUN_002d94a0(sVar2 + 1);" (assignment_expression "pvVar3 = (void *)thunk_FUN_002d94a0(sVar2 + 1)" identifier = (cast_expression "(void *)thunk_FUN_002d94a0(sVar2 + 1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "thunk_FUN_002d94a0(sVar2 + 1)" identifier (argument_list "(sVar2 + 1)" ( (binary_expression "sVar2 + 1" identifier + number_literal) ))))) ;) (expression_statement "pvVar3 = memcpy(pvVar3,param_3,sVar2 + 1);" (assignment_expression "pvVar3 = memcpy(pvVar3,param_3,sVar2 + 1)" identifier = (call_expression "memcpy(pvVar3,param_3,sVar2 + 1)" identifier (argument_list "(pvVar3,param_3,sVar2 + 1)" ( identifier , identifier , (binary_expression "sVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "param_1[4] = pvVar3;" (assignment_expression "param_1[4] = pvVar3" (subscript_expression "param_1[4]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "FUN_0031c220(param_1,param_2);" (call_expression "FUN_0031c220(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (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 (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_002eb970(undefined8 *param_1,undefined8 param_2,char *param_3,long param_4)\n\n{\n  int iVar1;\n  char *__s2;\n  size_t sVar2;\n  void *pvVar3;\n  \n  *(uint *)(param_1 + 1) = (uint)(param_4 != 0);\n  param_1[2] = 0;\n  param_1[3] = 0;\n  *param_1 = &PTR_FUN_00438e28;\n  param_1[4] = 0;\n  __s2 = (char *)FUN_002dcfc0();\n  iVar1 = strcmp(param_3,__s2);\n  if (iVar1 == 0) {\n    param_1[4] = __s2;\n  }\n  else {\n    sVar2 = strlen(param_3);\n                    \n    pvVar3 = (void *)thunk_FUN_002d94a0(sVar2 + 1);\n    pvVar3 = memcpy(pvVar3,param_3,sVar2 + 1);\n    param_1[4] = pvVar3;\n  }\n                    \n  FUN_0031c220(param_1,param_2);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002eb970(undefined8 *param_1,undefined8 param_2,char *param_3,long param_4)" (identifier "FUN_002eb970") (parameter_list "(undefined8 *param_1,undefined8 param_2,char *param_3,long param_4)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "char *param_3" (primitive_type "char") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "long param_4" (sized_type_specifier "long" (long "long")) (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  char *__s2;\n  size_t sVar2;\n  void *pvVar3;\n  \n  *(uint *)(param_1 + 1) = (uint)(param_4 != 0);\n  param_1[2] = 0;\n  param_1[3] = 0;\n  *param_1 = &PTR_FUN_00438e28;\n  param_1[4] = 0;\n  __s2 = (char *)FUN_002dcfc0();\n  iVar1 = strcmp(param_3,__s2);\n  if (iVar1 == 0) {\n    param_1[4] = __s2;\n  }\n  else {\n    sVar2 = strlen(param_3);\n                    \n    pvVar3 = (void *)thunk_FUN_002d94a0(sVar2 + 1);\n    pvVar3 = memcpy(pvVar3,param_3,sVar2 + 1);\n    param_1[4] = pvVar3;\n  }\n                    \n  FUN_0031c220(param_1,param_2);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char *__s2;" (primitive_type "char") (pointer_declarator "*__s2" (* "*") (identifier "__s2")) (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "void *pvVar3;" (primitive_type "void") (pointer_declarator "*pvVar3" (* "*") (identifier "pvVar3")) (; ";")) (expression_statement "*(uint *)(param_1 + 1) = (uint)(param_4 != 0);" (assignment_expression "*(uint *)(param_1 + 1) = (uint)(param_4 != 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_4 != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_4 != 0)" (( "(") (binary_expression "param_4 != 0" (identifier "param_4") (!= "!=") (number_literal "0")) () ")")))) (; ";")) (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 "*param_1 = &PTR_FUN_00438e28;" (assignment_expression "*param_1 = &PTR_FUN_00438e28" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&PTR_FUN_00438e28" (& "&") (identifier "PTR_FUN_00438e28"))) (; ";")) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "__s2 = (char *)FUN_002dcfc0();" (assignment_expression "__s2 = (char *)FUN_002dcfc0()" (identifier "__s2") (= "=") (cast_expression "(char *)FUN_002dcfc0()" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_002dcfc0()" (identifier "FUN_002dcfc0") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "iVar1 = strcmp(param_3,__s2);" (assignment_expression "iVar1 = strcmp(param_3,__s2)" (identifier "iVar1") (= "=") (call_expression "strcmp(param_3,__s2)" (identifier "strcmp") (argument_list "(param_3,__s2)" (( "(") (identifier "param_3") (, ",") (identifier "__s2") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    param_1[4] = __s2;\n  }\n  else {\n    sVar2 = strlen(param_3);\n                    \n    pvVar3 = (void *)thunk_FUN_002d94a0(sVar2 + 1);\n    pvVar3 = memcpy(pvVar3,param_3,sVar2 + 1);\n    param_1[4] = pvVar3;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    param_1[4] = __s2;\n  }" ({ "{") (expression_statement "param_1[4] = __s2;" (assignment_expression "param_1[4] = __s2" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "__s2")) (; ";")) (} "}")) (else_clause "else {\n    sVar2 = strlen(param_3);\n                    \n    pvVar3 = (void *)thunk_FUN_002d94a0(sVar2 + 1);\n    pvVar3 = memcpy(pvVar3,param_3,sVar2 + 1);\n    param_1[4] = pvVar3;\n  }" (else "else") (compound_statement "{\n    sVar2 = strlen(param_3);\n                    \n    pvVar3 = (void *)thunk_FUN_002d94a0(sVar2 + 1);\n    pvVar3 = memcpy(pvVar3,param_3,sVar2 + 1);\n    param_1[4] = pvVar3;\n  }" ({ "{") (expression_statement "sVar2 = strlen(param_3);" (assignment_expression "sVar2 = strlen(param_3)" (identifier "sVar2") (= "=") (call_expression "strlen(param_3)" (identifier "strlen") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (; ";")) (expression_statement "pvVar3 = (void *)thunk_FUN_002d94a0(sVar2 + 1);" (assignment_expression "pvVar3 = (void *)thunk_FUN_002d94a0(sVar2 + 1)" (identifier "pvVar3") (= "=") (cast_expression "(void *)thunk_FUN_002d94a0(sVar2 + 1)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "thunk_FUN_002d94a0(sVar2 + 1)" (identifier "thunk_FUN_002d94a0") (argument_list "(sVar2 + 1)" (( "(") (binary_expression "sVar2 + 1" (identifier "sVar2") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "pvVar3 = memcpy(pvVar3,param_3,sVar2 + 1);" (assignment_expression "pvVar3 = memcpy(pvVar3,param_3,sVar2 + 1)" (identifier "pvVar3") (= "=") (call_expression "memcpy(pvVar3,param_3,sVar2 + 1)" (identifier "memcpy") (argument_list "(pvVar3,param_3,sVar2 + 1)" (( "(") (identifier "pvVar3") (, ",") (identifier "param_3") (, ",") (binary_expression "sVar2 + 1" (identifier "sVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "param_1[4] = pvVar3;" (assignment_expression "param_1[4] = pvVar3" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "pvVar3")) (; ";")) (} "}")))) (expression_statement "FUN_0031c220(param_1,param_2);" (call_expression "FUN_0031c220(param_1,param_2)" (identifier "FUN_0031c220") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::__timepunct<char>::__timepunct(__locale_struct*, char const*, unsigned long) */

void __thiscall
std::function_1<char>::function_1
          (function_1<char> *var_1,type_1 *param_1,char *param_2,type_2 var_2)

{
  int var_5;
  char *__s2;
  size_t var_8;
  void *pvVar3;
  
  *(type_3 *)(var_1 + 8) = (type_3)(var_2 != 0);
  *(type_4 *)(var_1 + 0x10) = 0;
  *(type_4 *)(var_1 + 0x18) = 0;
  *(type_5 ***)var_1 = &PTR____timepunct_00438e28;
  *(type_4 *)(var_1 + 0x20) = 0;
  __s2 = (char *)locale::facet::var_3();
  var_5 = var_4(param_2,__s2);
  if (var_5 == 0) {
    *(char **)(var_1 + 0x20) = __s2;
  }
  else {
    var_8 = var_6(param_2);
                    /* try { // try from 002eb9f7 to 002eb9fb has its CatchHandler @ 002eba10 */
    pvVar3 = var_7(var_8 + 1);
    pvVar3 = var_9(pvVar3,param_2,var_8 + 1);
    *(void **)(var_1 + 0x20) = pvVar3;
  }
                    /* try { // try from 002eb9d3 to 002eb9d7 has its CatchHandler @ 002eba15 */
  var_10(var_1,param_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))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (sized_type_specifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (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: (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: (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: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (return_statement))))

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

{
  int iVar1;
  char *__s2;
  size_t sVar2;
  void *pvVar3;
  
  *(uint *)(param_1 + 1) = (uint)(param_4 != 0);
  param_1[2] = 0;
  param_1[3] = 0;
  *param_1 = &PTR_FUN_00438e28;
  param_1[4] = 0;
  __s2 = (char *)FUN_002dcfc0();
  iVar1 = strcmp(param_3,__s2);
  if (iVar1 == 0) {
    param_1[4] = __s2;
  }
  else {
    sVar2 = strlen(param_3);
                    /* try { // try from 002eb9f7 to 002eb9fb has its CatchHandler @ 002eba10 */
    pvVar3 = (void *)thunk_FUN_002d94a0(sVar2 + 1);
    pvVar3 = memcpy(pvVar3,param_3,sVar2 + 1);
    param_1[4] = pvVar3;
  }
                    /* try { // try from 002eb9d3 to 002eb9d7 has its CatchHandler @ 002eba15 */
  FUN_0031c220(param_1,param_2);
  return;
}

