
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::__timepunct<char>::~__timepunct() */

void __thiscall std::__timepunct<char>::~__timepunct(__timepunct<char> *this)

{
  void *pvVar1;
  int *piVar2;
  void *pvVar3;
  
  pvVar1 = *(void **)(this + 0x10);
  *(undefined ***)this = &PTR____timepunct_0038c488;
  pvVar3 = (void *)locale::facet::_S_get_c_name();
  if ((pvVar1 != pvVar3) && (pvVar1 != (void *)0x0)) {
    operator_delete__(pvVar1);
  }
  piVar2 = *(int **)(this + 8);
  if (piVar2 != (int *)0x0) {
    (**(code **)(*piVar2 + 4))(piVar2);
  }
  locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 0xc));
  locale::facet::~facet((facet *)this);
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void FUN_001f8e20(undefined4 *param_1)

{
  int iVar1;
  int *piVar2;
  int iVar3;
  
  iVar1 = param_1[4];
  *param_1 = &PTR_FUN_0038c488;
  iVar3 = FUN_001e92f0();
  if ((iVar1 != iVar3) && (iVar1 != 0)) {
    FUN_001e6d50(iVar1);
  }
  piVar2 = (int *)param_1[2];
  if (piVar2 != (int *)0x0) {
    (**(code **)(*piVar2 + 4))(piVar2);
  }
  FUN_0022f270(param_1 + 3);
  FUN_001e8c40(param_1);
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x10]
CALL 0x00035840
ADD EBX,0x1961d4
MOV EDI,dword ptr [ESI + 0x10]
LEA EAX,[EBX + 0xffffd480]
ADD EAX,0x8
MOV dword ptr [ESI],EAX
CALL 0x001e92f0
CMP EDI,EAX
JZ 0x001f8e59
TEST EDI,EDI
JZ 0x001f8e59
SUB ESP,0xc
PUSH EDI
CALL 0x001e6d50
ADD ESP,0x10
MOV EAX,dword ptr [ESI + 0x8]
TEST EAX,EAX
JZ 0x001f8e6c
SUB ESP,0xc
MOV EDX,dword ptr [EAX]
PUSH EAX
CALL dword ptr [EDX + 0x4]
ADD ESP,0x10
SUB ESP,0xc
LEA EAX,[ESI + 0xc]
PUSH EAX
CALL 0x0022f270
MOV dword ptr [ESP],ESI
CALL 0x001e8c40
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_001f8e20(undefined4 *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  \n  iVar1 = param_1[4];\n  *param_1 = &PTR_FUN_0038c488;\n  iVar3 = FUN_001e92f0();\n  if ((iVar1 != iVar3) && (iVar1 != 0)) {\n    FUN_001e6d50(iVar1);\n  }\n  piVar2 = (int *)param_1[2];\n  if (piVar2 != (int *)0x0) {\n    (**(code **)(*piVar2 + 4))(piVar2);\n  }\n  FUN_0022f270(param_1 + 3);\n  FUN_001e8c40(param_1);\n  return;\n}\n\n" comment (function_definition "void FUN_001f8e20(undefined4 *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  \n  iVar1 = param_1[4];\n  *param_1 = &PTR_FUN_0038c488;\n  iVar3 = FUN_001e92f0();\n  if ((iVar1 != iVar3) && (iVar1 != 0)) {\n    FUN_001e6d50(iVar1);\n  }\n  piVar2 = (int *)param_1[2];\n  if (piVar2 != (int *)0x0) {\n    (**(code **)(*piVar2 + 4))(piVar2);\n  }\n  FUN_0022f270(param_1 + 3);\n  FUN_001e8c40(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_001f8e20(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  \n  iVar1 = param_1[4];\n  *param_1 = &PTR_FUN_0038c488;\n  iVar3 = FUN_001e92f0();\n  if ((iVar1 != iVar3) && (iVar1 != 0)) {\n    FUN_001e6d50(iVar1);\n  }\n  piVar2 = (int *)param_1[2];\n  if (piVar2 != (int *)0x0) {\n    (**(code **)(*piVar2 + 4))(piVar2);\n  }\n  FUN_0022f270(param_1 + 3);\n  FUN_001e8c40(param_1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar1 = param_1[4];" (assignment_expression "iVar1 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = &PTR_FUN_0038c488;" (assignment_expression "*param_1 = &PTR_FUN_0038c488" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_0038c488" & identifier)) ;) (expression_statement "iVar3 = FUN_001e92f0();" (assignment_expression "iVar3 = FUN_001e92f0()" identifier = (call_expression "FUN_001e92f0()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 != iVar3) && (iVar1 != 0)) {\n    FUN_001e6d50(iVar1);\n  }" if (parenthesized_expression "((iVar1 != iVar3) && (iVar1 != 0))" ( (binary_expression "(iVar1 != iVar3) && (iVar1 != 0)" (parenthesized_expression "(iVar1 != iVar3)" ( (binary_expression "iVar1 != iVar3" identifier != identifier) )) && (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    FUN_001e6d50(iVar1);\n  }" { (expression_statement "FUN_001e6d50(iVar1);" (call_expression "FUN_001e6d50(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) })) (expression_statement "piVar2 = (int *)param_1[2];" (assignment_expression "piVar2 = (int *)param_1[2]" identifier = (cast_expression "(int *)param_1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n    (**(code **)(*piVar2 + 4))(piVar2);\n  }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (**(code **)(*piVar2 + 4))(piVar2);\n  }" { (expression_statement "(**(code **)(*piVar2 + 4))(piVar2);" (call_expression "(**(code **)(*piVar2 + 4))(piVar2)" (parenthesized_expression "(**(code **)(*piVar2 + 4))" ( (pointer_expression "**(code **)(*piVar2 + 4)" * (pointer_expression "*(code **)(*piVar2 + 4)" * (cast_expression "(code **)(*piVar2 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 4)" ( (binary_expression "*piVar2 + 4" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2)" ( identifier ))) ;) })) (expression_statement "FUN_0022f270(param_1 + 3);" (call_expression "FUN_0022f270(param_1 + 3)" identifier (argument_list "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) ))) ;) (expression_statement "FUN_001e8c40(param_1);" (call_expression "FUN_001e8c40(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::__timepunct<char>::~__timepunct() */\n\nvoid __thiscall std::__timepunct<char>::~__timepunct(__timepunct<char> *this)\n\n{\n  void *pvVar1;\n  int *piVar2;\n  void *pvVar3;\n  \n  pvVar1 = *(void **)(this + 0x10);\n  *(undefined ***)this = &PTR____timepunct_0038c488;\n  pvVar3 = (void *)locale::facet::_S_get_c_name();\n  if ((pvVar1 != pvVar3) && (pvVar1 != (void *)0x0)) {\n    operator_delete__(pvVar1);\n  }\n  piVar2 = *(int **)(this + 8);\n  if (piVar2 != (int *)0x0) {\n    (**(code **)(*piVar2 + 4))(piVar2);\n  }\n  locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 0xc));\n  locale::facet::~facet((facet *)this);\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::__timepunct<char>::~__timepunct(__timepunct<char> *this)\n\n{\n  void *pvVar1;\n  int *piVar2;\n  void *pvVar3;\n  \n  pvVar1 = *(void **)(this + 0x10);\n  *(undefined ***)this = &PTR____timepunct_0038c488;\n  pvVar3 = (void *)locale::facet::_S_get_c_name();\n  if ((pvVar1 != pvVar3) && (pvVar1 != (void *)0x0)) {\n    operator_delete__(pvVar1);\n  }\n  piVar2 = *(int **)(this + 8);\n  if (piVar2 != (int *)0x0) {\n    (**(code **)(*piVar2 + 4))(piVar2);\n  }\n  locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 0xc));\n  locale::facet::~facet((facet *)this);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::__timepunct<char>::~" identifier : : identifier < primitive_type > : : ~) (function_declarator "__timepunct(__timepunct<char> *this)" identifier (parameter_list "(__timepunct<char> *this)" ( (parameter_declaration "__timepunct<char> *this" type_identifier (ERROR "<char>" < primitive_type >) (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  void *pvVar1;\n  int *piVar2;\n  void *pvVar3;\n  \n  pvVar1 = *(void **)(this + 0x10);\n  *(undefined ***)this = &PTR____timepunct_0038c488;\n  pvVar3 = (void *)locale::facet::_S_get_c_name();\n  if ((pvVar1 != pvVar3) && (pvVar1 != (void *)0x0)) {\n    operator_delete__(pvVar1);\n  }\n  piVar2 = *(int **)(this + 8);\n  if (piVar2 != (int *)0x0) {\n    (**(code **)(*piVar2 + 4))(piVar2);\n  }\n  locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 0xc));\n  locale::facet::~facet((facet *)this);\n  return;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (expression_statement "pvVar1 = *(void **)(this + 0x10);" (assignment_expression "pvVar1 = *(void **)(this + 0x10)" identifier = (pointer_expression "*(void **)(this + 0x10)" * (cast_expression "(void **)(this + 0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(undefined ***)this = &PTR____timepunct_0038c488;" (assignment_expression "*(undefined ***)this = &PTR____timepunct_0038c488" (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_0038c488" & identifier)) ;) (ERROR "pvVar3 = (void *)locale::" (assignment_expression "pvVar3 = (void *)locale" identifier = (cast_expression "(void *)locale" ( (type_descriptor "void *" 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 "()" ( ))) ;)) (if_statement "if ((pvVar1 != pvVar3) && (pvVar1 != (void *)0x0)) {\n    operator_delete__(pvVar1);\n  }" if (parenthesized_expression "((pvVar1 != pvVar3) && (pvVar1 != (void *)0x0))" ( (binary_expression "(pvVar1 != pvVar3) && (pvVar1 != (void *)0x0)" (parenthesized_expression "(pvVar1 != pvVar3)" ( (binary_expression "pvVar1 != pvVar3" identifier != identifier) )) && (parenthesized_expression "(pvVar1 != (void *)0x0)" ( (binary_expression "pvVar1 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    operator_delete__(pvVar1);\n  }" { (expression_statement "operator_delete__(pvVar1);" (call_expression "operator_delete__(pvVar1)" identifier (argument_list "(pvVar1)" ( identifier ))) ;) })) (expression_statement "piVar2 = *(int **)(this + 8);" (assignment_expression "piVar2 = *(int **)(this + 8)" identifier = (pointer_expression "*(int **)(this + 8)" * (cast_expression "(int **)(this + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n    (**(code **)(*piVar2 + 4))(piVar2);\n  }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (**(code **)(*piVar2 + 4))(piVar2);\n  }" { (expression_statement "(**(code **)(*piVar2 + 4))(piVar2);" (call_expression "(**(code **)(*piVar2 + 4))(piVar2)" (parenthesized_expression "(**(code **)(*piVar2 + 4))" ( (pointer_expression "**(code **)(*piVar2 + 4)" * (pointer_expression "*(code **)(*piVar2 + 4)" * (cast_expression "(code **)(*piVar2 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 4)" ( (binary_expression "*piVar2 + 4" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2)" ( identifier ))) ;) })) (labeled_statement "locale::facet::_S_destroy_c_locale((__locale_struct **)(this + 0xc));" statement_identifier : (ERROR ":" :) (labeled_statement "facet::_S_destroy_c_locale((__locale_struct **)(this + 0xc));" statement_identifier : (ERROR ":" :) (expression_statement "_S_destroy_c_locale((__locale_struct **)(this + 0xc));" (call_expression "_S_destroy_c_locale((__locale_struct **)(this + 0xc))" identifier (argument_list "((__locale_struct **)(this + 0xc))" ( (cast_expression "(__locale_struct **)(this + 0xc)" ( (type_descriptor "__locale_struct **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) ))) ))) ;))) (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 ;) })))
(translation_unit "void FUN_001f8e20(undefined4 *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  \n  iVar1 = param_1[4];\n  *param_1 = &PTR_FUN_0038c488;\n  iVar3 = FUN_001e92f0();\n  if ((iVar1 != iVar3) && (iVar1 != 0)) {\n    FUN_001e6d50(iVar1);\n  }\n  piVar2 = (int *)param_1[2];\n  if (piVar2 != (int *)0x0) {\n    (**(code **)(*piVar2 + 4))(piVar2);\n  }\n  FUN_0022f270(param_1 + 3);\n  FUN_001e8c40(param_1);\n  return;\n}\n\n" (function_definition "void FUN_001f8e20(undefined4 *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  \n  iVar1 = param_1[4];\n  *param_1 = &PTR_FUN_0038c488;\n  iVar3 = FUN_001e92f0();\n  if ((iVar1 != iVar3) && (iVar1 != 0)) {\n    FUN_001e6d50(iVar1);\n  }\n  piVar2 = (int *)param_1[2];\n  if (piVar2 != (int *)0x0) {\n    (**(code **)(*piVar2 + 4))(piVar2);\n  }\n  FUN_0022f270(param_1 + 3);\n  FUN_001e8c40(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_001f8e20(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  \n  iVar1 = param_1[4];\n  *param_1 = &PTR_FUN_0038c488;\n  iVar3 = FUN_001e92f0();\n  if ((iVar1 != iVar3) && (iVar1 != 0)) {\n    FUN_001e6d50(iVar1);\n  }\n  piVar2 = (int *)param_1[2];\n  if (piVar2 != (int *)0x0) {\n    (**(code **)(*piVar2 + 4))(piVar2);\n  }\n  FUN_0022f270(param_1 + 3);\n  FUN_001e8c40(param_1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar1 = param_1[4];" (assignment_expression "iVar1 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = &PTR_FUN_0038c488;" (assignment_expression "*param_1 = &PTR_FUN_0038c488" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_0038c488" & identifier)) ;) (expression_statement "iVar3 = FUN_001e92f0();" (assignment_expression "iVar3 = FUN_001e92f0()" identifier = (call_expression "FUN_001e92f0()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 != iVar3) && (iVar1 != 0)) {\n    FUN_001e6d50(iVar1);\n  }" if (parenthesized_expression "((iVar1 != iVar3) && (iVar1 != 0))" ( (binary_expression "(iVar1 != iVar3) && (iVar1 != 0)" (parenthesized_expression "(iVar1 != iVar3)" ( (binary_expression "iVar1 != iVar3" identifier != identifier) )) && (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    FUN_001e6d50(iVar1);\n  }" { (expression_statement "FUN_001e6d50(iVar1);" (call_expression "FUN_001e6d50(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) })) (expression_statement "piVar2 = (int *)param_1[2];" (assignment_expression "piVar2 = (int *)param_1[2]" identifier = (cast_expression "(int *)param_1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n    (**(code **)(*piVar2 + 4))(piVar2);\n  }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (**(code **)(*piVar2 + 4))(piVar2);\n  }" { (expression_statement "(**(code **)(*piVar2 + 4))(piVar2);" (call_expression "(**(code **)(*piVar2 + 4))(piVar2)" (parenthesized_expression "(**(code **)(*piVar2 + 4))" ( (pointer_expression "**(code **)(*piVar2 + 4)" * (pointer_expression "*(code **)(*piVar2 + 4)" * (cast_expression "(code **)(*piVar2 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 4)" ( (binary_expression "*piVar2 + 4" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2)" ( identifier ))) ;) })) (expression_statement "FUN_0022f270(param_1 + 3);" (call_expression "FUN_0022f270(param_1 + 3)" identifier (argument_list "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) ))) ;) (expression_statement "FUN_001e8c40(param_1);" (call_expression "FUN_001e8c40(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 IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != IDENT) )) && (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 TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (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 ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_001f8e20(undefined4 *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  \n  iVar1 = param_1[4];\n  *param_1 = &PTR_FUN_0038c488;\n  iVar3 = FUN_001e92f0();\n  if ((iVar1 != iVar3) && (iVar1 != 0)) {\n    FUN_001e6d50(iVar1);\n  }\n  piVar2 = (int *)param_1[2];\n  if (piVar2 != (int *)0x0) {\n    (**(code **)(*piVar2 + 4))(piVar2);\n  }\n  FUN_0022f270(param_1 + 3);\n  FUN_001e8c40(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001f8e20(undefined4 *param_1)" (identifier "FUN_001f8e20") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  \n  iVar1 = param_1[4];\n  *param_1 = &PTR_FUN_0038c488;\n  iVar3 = FUN_001e92f0();\n  if ((iVar1 != iVar3) && (iVar1 != 0)) {\n    FUN_001e6d50(iVar1);\n  }\n  piVar2 = (int *)param_1[2];\n  if (piVar2 != (int *)0x0) {\n    (**(code **)(*piVar2 + 4))(piVar2);\n  }\n  FUN_0022f270(param_1 + 3);\n  FUN_001e8c40(param_1);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "iVar1 = param_1[4];" (assignment_expression "iVar1 = param_1[4]" (identifier "iVar1") (= "=") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "*param_1 = &PTR_FUN_0038c488;" (assignment_expression "*param_1 = &PTR_FUN_0038c488" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&PTR_FUN_0038c488" (& "&") (identifier "PTR_FUN_0038c488"))) (; ";")) (expression_statement "iVar3 = FUN_001e92f0();" (assignment_expression "iVar3 = FUN_001e92f0()" (identifier "iVar3") (= "=") (call_expression "FUN_001e92f0()" (identifier "FUN_001e92f0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((iVar1 != iVar3) && (iVar1 != 0)) {\n    FUN_001e6d50(iVar1);\n  }" (if "if") (parenthesized_expression "((iVar1 != iVar3) && (iVar1 != 0))" (( "(") (binary_expression "(iVar1 != iVar3) && (iVar1 != 0)" (parenthesized_expression "(iVar1 != iVar3)" (( "(") (binary_expression "iVar1 != iVar3" (identifier "iVar1") (!= "!=") (identifier "iVar3")) () ")")) (&& "&&") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    FUN_001e6d50(iVar1);\n  }" ({ "{") (expression_statement "FUN_001e6d50(iVar1);" (call_expression "FUN_001e6d50(iVar1)" (identifier "FUN_001e6d50") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (} "}"))) (expression_statement "piVar2 = (int *)param_1[2];" (assignment_expression "piVar2 = (int *)param_1[2]" (identifier "piVar2") (= "=") (cast_expression "(int *)param_1[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (if_statement "if (piVar2 != (int *)0x0) {\n    (**(code **)(*piVar2 + 4))(piVar2);\n  }" (if "if") (parenthesized_expression "(piVar2 != (int *)0x0)" (( "(") (binary_expression "piVar2 != (int *)0x0" (identifier "piVar2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    (**(code **)(*piVar2 + 4))(piVar2);\n  }" ({ "{") (expression_statement "(**(code **)(*piVar2 + 4))(piVar2);" (call_expression "(**(code **)(*piVar2 + 4))(piVar2)" (parenthesized_expression "(**(code **)(*piVar2 + 4))" (( "(") (pointer_expression "**(code **)(*piVar2 + 4)" (* "*") (pointer_expression "*(code **)(*piVar2 + 4)" (* "*") (cast_expression "(code **)(*piVar2 + 4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar2 + 4)" (( "(") (binary_expression "*piVar2 + 4" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (number_literal "4")) () ")"))))) () ")")) (argument_list "(piVar2)" (( "(") (identifier "piVar2") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_0022f270(param_1 + 3);" (call_expression "FUN_0022f270(param_1 + 3)" (identifier "FUN_0022f270") (argument_list "(param_1 + 3)" (( "(") (binary_expression "param_1 + 3" (identifier "param_1") (+ "+") (number_literal "3")) () ")"))) (; ";")) (expression_statement "FUN_001e8c40(param_1);" (call_expression "FUN_001e8c40(param_1)" (identifier "FUN_001e8c40") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::__timepunct<char>::~__timepunct() */

void __thiscall std::function_1<char>::~function_1(function_1<char> *var_1)

{
  void *var_3;
  int *var_6;
  void *var_4;
  
  var_3 = *(void **)(var_1 + 0x10);
  *(type_1 ***)var_1 = &PTR____timepunct_0038c488;
  var_4 = (void *)locale::facet::var_2();
  if ((var_3 != var_4) && (var_3 != (void *)0x0)) {
    var_5(var_3);
  }
  var_6 = *(int **)(var_1 + 8);
  if (var_6 != (int *)0x0) {
    (**(type_2 **)(*var_6 + 4))(var_6);
  }
  locale::facet::var_7((type_3 **)(var_1 + 0xc));
  locale::facet::~var_8((var_8 *)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: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (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: (primitive_type) 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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (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)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void MASKED(undefined4 *param_1)

{
  int iVar1;
  int *piVar2;
  int iVar3;
  
  iVar1 = param_1[4];
  *param_1 = &PTR_FUN_0038c488;
  iVar3 = FUN_001e92f0();
  if ((iVar1 != iVar3) && (iVar1 != 0)) {
    FUN_001e6d50(iVar1);
  }
  piVar2 = (int *)param_1[2];
  if (piVar2 != (int *)0x0) {
    (**(code **)(*piVar2 + 4))(piVar2);
  }
  FUN_0022f270(param_1 + 3);
  FUN_001e8c40(param_1);
  return;
}

