
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::ios_base::~ios_base() */

void __thiscall std::ios_base::~ios_base(ios_base *this)

{
  ios_base *piVar1;
  
  *(undefined ***)this = &PTR__ios_base_003005f4;
  _M_call_callbacks(this,0);
  _M_dispose_callbacks(this);
  piVar1 = *(ios_base **)(this + 0x68);
  if (piVar1 != this + 0x24) {
    if (piVar1 != (ios_base *)0x0) {
      operator_delete__(piVar1);
    }
    *(undefined4 *)(this + 0x68) = 0;
  }
  locale::~locale((locale *)(this + 0x6c));
  return;
}



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

void FUN_001c5a30(undefined4 *param_1)

{
  undefined4 *puVar1;
  
  *param_1 = &PTR_FUN_003005f4;
  FUN_001c5970(param_1,0);
  FUN_001c59c0(param_1);
  puVar1 = (undefined4 *)param_1[0x1a];
  if (puVar1 != param_1 + 9) {
    if (puVar1 != (undefined4 *)0x0) {
      FUN_00180740(puVar1);
    }
    param_1[0x1a] = 0;
  }
  FUN_00182f00(param_1 + 0x1b);
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00032730
ADD EBX,0x13c5c9
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x18]
LEA EAX,[EBX + 0xffffe5ec]
ADD EAX,0x8
MOV dword ptr [ESI],EAX
PUSH 0x0
PUSH ESI
CALL 0x001c5970
MOV dword ptr [ESP],ESI
CALL 0x001c59c0
MOV EAX,dword ptr [ESI + 0x68]
LEA EDX,[ESI + 0x24]
ADD ESP,0x10
CMP EAX,EDX
JZ 0x001c5a83
TEST EAX,EAX
JZ 0x001c5a7c
SUB ESP,0xc
PUSH EAX
CALL 0x00180740
ADD ESP,0x10
MOV dword ptr [ESI + 0x68],0x0
SUB ESP,0xc
ADD ESI,0x6c
PUSH ESI
CALL 0x00182f00
ADD ESP,0x14
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_001c5a30(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  *param_1 = &PTR_FUN_003005f4;\n  FUN_001c5970(param_1,0);\n  FUN_001c59c0(param_1);\n  puVar1 = (undefined4 *)param_1[0x1a];\n  if (puVar1 != param_1 + 9) {\n    if (puVar1 != (undefined4 *)0x0) {\n      FUN_00180740(puVar1);\n    }\n    param_1[0x1a] = 0;\n  }\n  FUN_00182f00(param_1 + 0x1b);\n  return;\n}\n\n" comment (function_definition "void FUN_001c5a30(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  *param_1 = &PTR_FUN_003005f4;\n  FUN_001c5970(param_1,0);\n  FUN_001c59c0(param_1);\n  puVar1 = (undefined4 *)param_1[0x1a];\n  if (puVar1 != param_1 + 9) {\n    if (puVar1 != (undefined4 *)0x0) {\n      FUN_00180740(puVar1);\n    }\n    param_1[0x1a] = 0;\n  }\n  FUN_00182f00(param_1 + 0x1b);\n  return;\n}" primitive_type (function_declarator "FUN_001c5a30(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  *param_1 = &PTR_FUN_003005f4;\n  FUN_001c5970(param_1,0);\n  FUN_001c59c0(param_1);\n  puVar1 = (undefined4 *)param_1[0x1a];\n  if (puVar1 != param_1 + 9) {\n    if (puVar1 != (undefined4 *)0x0) {\n      FUN_00180740(puVar1);\n    }\n    param_1[0x1a] = 0;\n  }\n  FUN_00182f00(param_1 + 0x1b);\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "*param_1 = &PTR_FUN_003005f4;" (assignment_expression "*param_1 = &PTR_FUN_003005f4" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_003005f4" & identifier)) ;) (expression_statement "FUN_001c5970(param_1,0);" (call_expression "FUN_001c5970(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal ))) ;) (expression_statement "FUN_001c59c0(param_1);" (call_expression "FUN_001c59c0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "puVar1 = (undefined4 *)param_1[0x1a];" (assignment_expression "puVar1 = (undefined4 *)param_1[0x1a]" identifier = (cast_expression "(undefined4 *)param_1[0x1a]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x1a]" identifier [ number_literal ]))) ;) (if_statement "if (puVar1 != param_1 + 9) {\n    if (puVar1 != (undefined4 *)0x0) {\n      FUN_00180740(puVar1);\n    }\n    param_1[0x1a] = 0;\n  }" if (parenthesized_expression "(puVar1 != param_1 + 9)" ( (binary_expression "puVar1 != param_1 + 9" identifier != (binary_expression "param_1 + 9" identifier + number_literal)) )) (compound_statement "{\n    if (puVar1 != (undefined4 *)0x0) {\n      FUN_00180740(puVar1);\n    }\n    param_1[0x1a] = 0;\n  }" { (if_statement "if (puVar1 != (undefined4 *)0x0) {\n      FUN_00180740(puVar1);\n    }" if (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" ( (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      FUN_00180740(puVar1);\n    }" { (expression_statement "FUN_00180740(puVar1);" (call_expression "FUN_00180740(puVar1)" identifier (argument_list "(puVar1)" ( identifier ))) ;) })) (expression_statement "param_1[0x1a] = 0;" (assignment_expression "param_1[0x1a] = 0" (subscript_expression "param_1[0x1a]" identifier [ number_literal ]) = number_literal) ;) })) (expression_statement "FUN_00182f00(param_1 + 0x1b);" (call_expression "FUN_00182f00(param_1 + 0x1b)" identifier (argument_list "(param_1 + 0x1b)" ( (binary_expression "param_1 + 0x1b" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::ios_base::~ios_base() */\n\nvoid __thiscall std::ios_base::~ios_base(ios_base *this)\n\n{\n  ios_base *piVar1;\n  \n  *(undefined ***)this = &PTR__ios_base_003005f4;\n  _M_call_callbacks(this,0);\n  _M_dispose_callbacks(this);\n  piVar1 = *(ios_base **)(this + 0x68);\n  if (piVar1 != this + 0x24) {\n    if (piVar1 != (ios_base *)0x0) {\n      operator_delete__(piVar1);\n    }\n    *(undefined4 *)(this + 0x68) = 0;\n  }\n  locale::~locale((locale *)(this + 0x6c));\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::ios_base::~ios_base(ios_base *this)\n\n{\n  ios_base *piVar1;\n  \n  *(undefined ***)this = &PTR__ios_base_003005f4;\n  _M_call_callbacks(this,0);\n  _M_dispose_callbacks(this);\n  piVar1 = *(ios_base **)(this + 0x68);\n  if (piVar1 != this + 0x24) {\n    if (piVar1 != (ios_base *)0x0) {\n      operator_delete__(piVar1);\n    }\n    *(undefined4 *)(this + 0x68) = 0;\n  }\n  locale::~locale((locale *)(this + 0x6c));\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::ios_base::~" identifier : : identifier : : ~) (function_declarator "ios_base(ios_base *this)" identifier (parameter_list "(ios_base *this)" ( (parameter_declaration "ios_base *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  ios_base *piVar1;\n  \n  *(undefined ***)this = &PTR__ios_base_003005f4;\n  _M_call_callbacks(this,0);\n  _M_dispose_callbacks(this);\n  piVar1 = *(ios_base **)(this + 0x68);\n  if (piVar1 != this + 0x24) {\n    if (piVar1 != (ios_base *)0x0) {\n      operator_delete__(piVar1);\n    }\n    *(undefined4 *)(this + 0x68) = 0;\n  }\n  locale::~locale((locale *)(this + 0x6c));\n  return;\n}" { (declaration "ios_base *piVar1;" type_identifier (pointer_declarator "*piVar1" * identifier) ;) (expression_statement "*(undefined ***)this = &PTR__ios_base_003005f4;" (assignment_expression "*(undefined ***)this = &PTR__ios_base_003005f4" (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__ios_base_003005f4" & identifier)) ;) (expression_statement "_M_call_callbacks(this,0);" (call_expression "_M_call_callbacks(this,0)" identifier (argument_list "(this,0)" ( identifier , number_literal ))) ;) (expression_statement "_M_dispose_callbacks(this);" (call_expression "_M_dispose_callbacks(this)" identifier (argument_list "(this)" ( identifier ))) ;) (expression_statement "piVar1 = *(ios_base **)(this + 0x68);" (assignment_expression "piVar1 = *(ios_base **)(this + 0x68)" identifier = (pointer_expression "*(ios_base **)(this + 0x68)" * (cast_expression "(ios_base **)(this + 0x68)" ( (type_descriptor "ios_base **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x68)" ( (binary_expression "this + 0x68" identifier + number_literal) ))))) ;) (if_statement "if (piVar1 != this + 0x24) {\n    if (piVar1 != (ios_base *)0x0) {\n      operator_delete__(piVar1);\n    }\n    *(undefined4 *)(this + 0x68) = 0;\n  }" if (parenthesized_expression "(piVar1 != this + 0x24)" ( (binary_expression "piVar1 != this + 0x24" identifier != (binary_expression "this + 0x24" identifier + number_literal)) )) (compound_statement "{\n    if (piVar1 != (ios_base *)0x0) {\n      operator_delete__(piVar1);\n    }\n    *(undefined4 *)(this + 0x68) = 0;\n  }" { (if_statement "if (piVar1 != (ios_base *)0x0) {\n      operator_delete__(piVar1);\n    }" if (parenthesized_expression "(piVar1 != (ios_base *)0x0)" ( (binary_expression "piVar1 != (ios_base *)0x0" identifier != (cast_expression "(ios_base *)0x0" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      operator_delete__(piVar1);\n    }" { (expression_statement "operator_delete__(piVar1);" (call_expression "operator_delete__(piVar1)" identifier (argument_list "(piVar1)" ( identifier ))) ;) })) (expression_statement "*(undefined4 *)(this + 0x68) = 0;" (assignment_expression "*(undefined4 *)(this + 0x68) = 0" (pointer_expression "*(undefined4 *)(this + 0x68)" * (cast_expression "(undefined4 *)(this + 0x68)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x68)" ( (binary_expression "this + 0x68" identifier + number_literal) )))) = number_literal) ;) })) (labeled_statement "locale::~locale((locale *)(this + 0x6c));" statement_identifier : (ERROR ":" :) (expression_statement "~locale((locale *)(this + 0x6c));" (unary_expression "~locale((locale *)(this + 0x6c))" ~ (call_expression "locale((locale *)(this + 0x6c))" identifier (argument_list "((locale *)(this + 0x6c))" ( (cast_expression "(locale *)(this + 0x6c)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x6c)" ( (binary_expression "this + 0x6c" identifier + number_literal) ))) )))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001c5a30(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  *param_1 = &PTR_FUN_003005f4;\n  FUN_001c5970(param_1,0);\n  FUN_001c59c0(param_1);\n  puVar1 = (undefined4 *)param_1[0x1a];\n  if (puVar1 != param_1 + 9) {\n    if (puVar1 != (undefined4 *)0x0) {\n      FUN_00180740(puVar1);\n    }\n    param_1[0x1a] = 0;\n  }\n  FUN_00182f00(param_1 + 0x1b);\n  return;\n}\n\n" (function_definition "void FUN_001c5a30(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  *param_1 = &PTR_FUN_003005f4;\n  FUN_001c5970(param_1,0);\n  FUN_001c59c0(param_1);\n  puVar1 = (undefined4 *)param_1[0x1a];\n  if (puVar1 != param_1 + 9) {\n    if (puVar1 != (undefined4 *)0x0) {\n      FUN_00180740(puVar1);\n    }\n    param_1[0x1a] = 0;\n  }\n  FUN_00182f00(param_1 + 0x1b);\n  return;\n}" primitive_type (function_declarator "FUN_001c5a30(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  *param_1 = &PTR_FUN_003005f4;\n  FUN_001c5970(param_1,0);\n  FUN_001c59c0(param_1);\n  puVar1 = (undefined4 *)param_1[0x1a];\n  if (puVar1 != param_1 + 9) {\n    if (puVar1 != (undefined4 *)0x0) {\n      FUN_00180740(puVar1);\n    }\n    param_1[0x1a] = 0;\n  }\n  FUN_00182f00(param_1 + 0x1b);\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "*param_1 = &PTR_FUN_003005f4;" (assignment_expression "*param_1 = &PTR_FUN_003005f4" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_003005f4" & identifier)) ;) (expression_statement "FUN_001c5970(param_1,0);" (call_expression "FUN_001c5970(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal ))) ;) (expression_statement "FUN_001c59c0(param_1);" (call_expression "FUN_001c59c0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "puVar1 = (undefined4 *)param_1[0x1a];" (assignment_expression "puVar1 = (undefined4 *)param_1[0x1a]" identifier = (cast_expression "(undefined4 *)param_1[0x1a]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x1a]" identifier [ number_literal ]))) ;) (if_statement "if (puVar1 != param_1 + 9) {\n    if (puVar1 != (undefined4 *)0x0) {\n      FUN_00180740(puVar1);\n    }\n    param_1[0x1a] = 0;\n  }" if (parenthesized_expression "(puVar1 != param_1 + 9)" ( (binary_expression "puVar1 != param_1 + 9" identifier != (binary_expression "param_1 + 9" identifier + number_literal)) )) (compound_statement "{\n    if (puVar1 != (undefined4 *)0x0) {\n      FUN_00180740(puVar1);\n    }\n    param_1[0x1a] = 0;\n  }" { (if_statement "if (puVar1 != (undefined4 *)0x0) {\n      FUN_00180740(puVar1);\n    }" if (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" ( (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      FUN_00180740(puVar1);\n    }" { (expression_statement "FUN_00180740(puVar1);" (call_expression "FUN_00180740(puVar1)" identifier (argument_list "(puVar1)" ( identifier ))) ;) })) (expression_statement "param_1[0x1a] = 0;" (assignment_expression "param_1[0x1a] = 0" (subscript_expression "param_1[0x1a]" identifier [ number_literal ]) = number_literal) ;) })) (expression_statement "FUN_00182f00(param_1 + 0x1b);" (call_expression "FUN_00182f00(param_1 + 0x1b)" identifier (argument_list "(param_1 + 0x1b)" ( (binary_expression "param_1 + 0x1b" identifier + number_literal) ))) ;) (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) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (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 != (binary_expression IDENT + LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_001c5a30(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  *param_1 = &PTR_FUN_003005f4;\n  FUN_001c5970(param_1,0);\n  FUN_001c59c0(param_1);\n  puVar1 = (undefined4 *)param_1[0x1a];\n  if (puVar1 != param_1 + 9) {\n    if (puVar1 != (undefined4 *)0x0) {\n      FUN_00180740(puVar1);\n    }\n    param_1[0x1a] = 0;\n  }\n  FUN_00182f00(param_1 + 0x1b);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001c5a30(undefined4 *param_1)" (identifier "FUN_001c5a30") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  *param_1 = &PTR_FUN_003005f4;\n  FUN_001c5970(param_1,0);\n  FUN_001c59c0(param_1);\n  puVar1 = (undefined4 *)param_1[0x1a];\n  if (puVar1 != param_1 + 9) {\n    if (puVar1 != (undefined4 *)0x0) {\n      FUN_00180740(puVar1);\n    }\n    param_1[0x1a] = 0;\n  }\n  FUN_00182f00(param_1 + 0x1b);\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (expression_statement "*param_1 = &PTR_FUN_003005f4;" (assignment_expression "*param_1 = &PTR_FUN_003005f4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&PTR_FUN_003005f4" (& "&") (identifier "PTR_FUN_003005f4"))) (; ";")) (expression_statement "FUN_001c5970(param_1,0);" (call_expression "FUN_001c5970(param_1,0)" (identifier "FUN_001c5970") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "FUN_001c59c0(param_1);" (call_expression "FUN_001c59c0(param_1)" (identifier "FUN_001c59c0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "puVar1 = (undefined4 *)param_1[0x1a];" (assignment_expression "puVar1 = (undefined4 *)param_1[0x1a]" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)param_1[0x1a]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[0x1a]" (identifier "param_1") ([ "[") (number_literal "0x1a") (] "]")))) (; ";")) (if_statement "if (puVar1 != param_1 + 9) {\n    if (puVar1 != (undefined4 *)0x0) {\n      FUN_00180740(puVar1);\n    }\n    param_1[0x1a] = 0;\n  }" (if "if") (parenthesized_expression "(puVar1 != param_1 + 9)" (( "(") (binary_expression "puVar1 != param_1 + 9" (identifier "puVar1") (!= "!=") (binary_expression "param_1 + 9" (identifier "param_1") (+ "+") (number_literal "9"))) () ")")) (compound_statement "{\n    if (puVar1 != (undefined4 *)0x0) {\n      FUN_00180740(puVar1);\n    }\n    param_1[0x1a] = 0;\n  }" ({ "{") (if_statement "if (puVar1 != (undefined4 *)0x0) {\n      FUN_00180740(puVar1);\n    }" (if "if") (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar1 != (undefined4 *)0x0" (identifier "puVar1") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      FUN_00180740(puVar1);\n    }" ({ "{") (expression_statement "FUN_00180740(puVar1);" (call_expression "FUN_00180740(puVar1)" (identifier "FUN_00180740") (argument_list "(puVar1)" (( "(") (identifier "puVar1") () ")"))) (; ";")) (} "}"))) (expression_statement "param_1[0x1a] = 0;" (assignment_expression "param_1[0x1a] = 0" (subscript_expression "param_1[0x1a]" (identifier "param_1") ([ "[") (number_literal "0x1a") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "FUN_00182f00(param_1 + 0x1b);" (call_expression "FUN_00182f00(param_1 + 0x1b)" (identifier "FUN_00182f00") (argument_list "(param_1 + 0x1b)" (( "(") (binary_expression "param_1 + 0x1b" (identifier "param_1") (+ "+") (number_literal "0x1b")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::ios_base::~ios_base() */

void __thiscall std::function_1::~function_1(function_1 *var_3)

{
  function_1 *var_4;
  
  *(type_1 ***)var_3 = &PTR__ios_base_003005f4;
  var_1(var_3,0);
  var_2(var_3);
  var_4 = *(function_1 **)(var_3 + 0x68);
  if (var_4 != var_3 + 0x24) {
    if (var_4 != (function_1 *)0x0) {
      var_5(var_4);
    }
    *(type_2 *)(var_3 + 0x68) = 0;
  }
  locale::~var_6((var_6 *)(var_3 + 0x6c));
  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))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (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))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))) (return_statement))))

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

void MASKED(undefined4 *param_1)

{
  undefined4 *puVar1;
  
  *param_1 = &PTR_FUN_003005f4;
  FUN_001c5970(param_1,0);
  FUN_001c59c0(param_1);
  puVar1 = (undefined4 *)param_1[0x1a];
  if (puVar1 != param_1 + 9) {
    if (puVar1 != (undefined4 *)0x0) {
      FUN_00180740(puVar1);
    }
    param_1[0x1a] = 0;
  }
  FUN_00182f00(param_1 + 0x1b);
  return;
}

