
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* std::ios_base::Init::~Init() */

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

{
  int iVar1;
  
  iVar1 = _S_refcount;
  if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {
    LOCK();
    UNLOCK();
  }
  _S_refcount = _S_refcount + -1;
  if (iVar1 == 2) {
                    /* try { // try from 003b1a2f to 003b1a6f has its CatchHandler @ 003b1a7a */
    ostream::flush((ostream *)PTR_cout_005e9e24);
    ostream::flush((ostream *)PTR_cerr_005e9c04);
    ostream::flush((ostream *)PTR_clog_005e9c3c);
    wostream::flush((wostream *)PTR_wcout_005e9e78);
    wostream::flush((wostream *)PTR_wcerr_005e9b78);
    wostream::flush((wostream *)PTR_wclog_005e9d3c);
    return;
  }
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

void FUN_003b19e0(void)

{
  int iVar1;
  
  iVar1 = DAT_005f309c;
  if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {
    LOCK();
    UNLOCK();
  }
  DAT_005f309c = DAT_005f309c + -1;
  if (iVar1 == 2) {
                    /* try { // try from 003b1a2f to 003b1a6f has its CatchHandler @ 003b1a7a */
    FUN_003ba8d0(PTR_DAT_005e9e24);
    FUN_003ba8d0(PTR_DAT_005e9c04);
    FUN_003ba8d0(PTR_DAT_005e9c3c);
    FUN_003bd070(PTR_DAT_005e9e78);
    FUN_003bd070(PTR_DAT_005e9b78);
    FUN_003bd070(PTR_DAT_005e9d3c);
    return;
  }
  return;
}


PUSH EBP
MOV EBP,ESP
PUSH ESI
CALL 0x00063c76
ADD ESI,0x238617
PUSH EBX
MOV EAX,dword ptr [ESI + 0xfffffff8]
LEA EDX,[ESI + 0x909c]
TEST EAX,EAX
JZ 0x003b1a18
MOV EAX,0xffffffff
XADD.LOCK dword ptr [EDX],EAX
CMP EAX,0x2
JZ 0x003b1a24
LEA ESP,[EBP + -0x8]
POP EBX
POP ESI
POP EBP
RET
MOV EAX,dword ptr [EDX]
LEA ECX,[EAX + -0x1]
MOV dword ptr [EDX],ECX
CMP EAX,0x2
JNZ 0x003b1a0e
SUB ESP,0xc
PUSH dword ptr [ESI + 0xfffffe24]
MOV EBX,ESI
CALL 0x003ba8d0
POP EAX
PUSH dword ptr [ESI + 0xfffffc04]
CALL 0x003ba8d0
POP EAX
PUSH dword ptr [ESI + 0xfffffc3c]
CALL 0x003ba8d0
POP ECX
PUSH dword ptr [ESI + 0xfffffe78]
CALL 0x003bd070
POP EDX
PUSH dword ptr [ESI + 0xfffffb78]
CALL 0x003bd070
POP EAX
PUSH dword ptr [ESI + 0xfffffd3c]
CALL 0x003bd070
ADD ESP,0x10
LEA ESP,[EBP + -0x8]
POP EBX
POP ESI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nvoid FUN_003b19e0(void)\n\n{\n  int iVar1;\n  \n  iVar1 = DAT_005f309c;\n  if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    LOCK();\n    UNLOCK();\n  }\n  DAT_005f309c = DAT_005f309c + -1;\n  if (iVar1 == 2) {\n                    /* try { // try from 003b1a2f to 003b1a6f has its CatchHandler @ 003b1a7a */\n    FUN_003ba8d0(PTR_DAT_005e9e24);\n    FUN_003ba8d0(PTR_DAT_005e9c04);\n    FUN_003ba8d0(PTR_DAT_005e9c3c);\n    FUN_003bd070(PTR_DAT_005e9e78);\n    FUN_003bd070(PTR_DAT_005e9b78);\n    FUN_003bd070(PTR_DAT_005e9d3c);\n    return;\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_003b19e0(void)\n\n{\n  int iVar1;\n  \n  iVar1 = DAT_005f309c;\n  if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    LOCK();\n    UNLOCK();\n  }\n  DAT_005f309c = DAT_005f309c + -1;\n  if (iVar1 == 2) {\n                    /* try { // try from 003b1a2f to 003b1a6f has its CatchHandler @ 003b1a7a */\n    FUN_003ba8d0(PTR_DAT_005e9e24);\n    FUN_003ba8d0(PTR_DAT_005e9c04);\n    FUN_003ba8d0(PTR_DAT_005e9c3c);\n    FUN_003bd070(PTR_DAT_005e9e78);\n    FUN_003bd070(PTR_DAT_005e9b78);\n    FUN_003bd070(PTR_DAT_005e9d3c);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_003b19e0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = DAT_005f309c;\n  if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    LOCK();\n    UNLOCK();\n  }\n  DAT_005f309c = DAT_005f309c + -1;\n  if (iVar1 == 2) {\n                    /* try { // try from 003b1a2f to 003b1a6f has its CatchHandler @ 003b1a7a */\n    FUN_003ba8d0(PTR_DAT_005e9e24);\n    FUN_003ba8d0(PTR_DAT_005e9c04);\n    FUN_003ba8d0(PTR_DAT_005e9c3c);\n    FUN_003bd070(PTR_DAT_005e9e78);\n    FUN_003bd070(PTR_DAT_005e9b78);\n    FUN_003bd070(PTR_DAT_005e9d3c);\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = DAT_005f309c;" (assignment_expression "iVar1 = DAT_005f309c" identifier = identifier) ;) (if_statement "if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    LOCK();\n    UNLOCK();\n  }" if (parenthesized_expression "(PTR___pthread_key_create_005e9ff8 != (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_005e9ff8 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    LOCK();\n    UNLOCK();\n  }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "DAT_005f309c = DAT_005f309c + -1;" (assignment_expression "DAT_005f309c = DAT_005f309c + -1" identifier = (binary_expression "DAT_005f309c + -1" identifier + number_literal)) ;) (if_statement "if (iVar1 == 2) {\n                    /* try { // try from 003b1a2f to 003b1a6f has its CatchHandler @ 003b1a7a */\n    FUN_003ba8d0(PTR_DAT_005e9e24);\n    FUN_003ba8d0(PTR_DAT_005e9c04);\n    FUN_003ba8d0(PTR_DAT_005e9c3c);\n    FUN_003bd070(PTR_DAT_005e9e78);\n    FUN_003bd070(PTR_DAT_005e9b78);\n    FUN_003bd070(PTR_DAT_005e9d3c);\n    return;\n  }" if (parenthesized_expression "(iVar1 == 2)" ( (binary_expression "iVar1 == 2" identifier == number_literal) )) (compound_statement "{\n                    /* try { // try from 003b1a2f to 003b1a6f has its CatchHandler @ 003b1a7a */\n    FUN_003ba8d0(PTR_DAT_005e9e24);\n    FUN_003ba8d0(PTR_DAT_005e9c04);\n    FUN_003ba8d0(PTR_DAT_005e9c3c);\n    FUN_003bd070(PTR_DAT_005e9e78);\n    FUN_003bd070(PTR_DAT_005e9b78);\n    FUN_003bd070(PTR_DAT_005e9d3c);\n    return;\n  }" { comment (expression_statement "FUN_003ba8d0(PTR_DAT_005e9e24);" (call_expression "FUN_003ba8d0(PTR_DAT_005e9e24)" identifier (argument_list "(PTR_DAT_005e9e24)" ( identifier ))) ;) (expression_statement "FUN_003ba8d0(PTR_DAT_005e9c04);" (call_expression "FUN_003ba8d0(PTR_DAT_005e9c04)" identifier (argument_list "(PTR_DAT_005e9c04)" ( identifier ))) ;) (expression_statement "FUN_003ba8d0(PTR_DAT_005e9c3c);" (call_expression "FUN_003ba8d0(PTR_DAT_005e9c3c)" identifier (argument_list "(PTR_DAT_005e9c3c)" ( identifier ))) ;) (expression_statement "FUN_003bd070(PTR_DAT_005e9e78);" (call_expression "FUN_003bd070(PTR_DAT_005e9e78)" identifier (argument_list "(PTR_DAT_005e9e78)" ( identifier ))) ;) (expression_statement "FUN_003bd070(PTR_DAT_005e9b78);" (call_expression "FUN_003bd070(PTR_DAT_005e9b78)" identifier (argument_list "(PTR_DAT_005e9b78)" ( identifier ))) ;) (expression_statement "FUN_003bd070(PTR_DAT_005e9d3c);" (call_expression "FUN_003bd070(PTR_DAT_005e9d3c)" identifier (argument_list "(PTR_DAT_005e9d3c)" ( identifier ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n/* std::ios_base::Init::~Init() */\n\nvoid __thiscall std::ios_base::Init::~Init(Init *this)\n\n{\n  int iVar1;\n  \n  iVar1 = _S_refcount;\n  if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    LOCK();\n    UNLOCK();\n  }\n  _S_refcount = _S_refcount + -1;\n  if (iVar1 == 2) {\n                    /* try { // try from 003b1a2f to 003b1a6f has its CatchHandler @ 003b1a7a */\n    ostream::flush((ostream *)PTR_cout_005e9e24);\n    ostream::flush((ostream *)PTR_cerr_005e9c04);\n    ostream::flush((ostream *)PTR_clog_005e9c3c);\n    wostream::flush((wostream *)PTR_wcout_005e9e78);\n    wostream::flush((wostream *)PTR_wcerr_005e9b78);\n    wostream::flush((wostream *)PTR_wclog_005e9d3c);\n    return;\n  }\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::ios_base::Init::~Init(Init *this)\n\n{\n  int iVar1;\n  \n  iVar1 = _S_refcount;\n  if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    LOCK();\n    UNLOCK();\n  }\n  _S_refcount = _S_refcount + -1;\n  if (iVar1 == 2) {\n                    /* try { // try from 003b1a2f to 003b1a6f has its CatchHandler @ 003b1a7a */\n    ostream::flush((ostream *)PTR_cout_005e9e24);\n    ostream::flush((ostream *)PTR_cerr_005e9c04);\n    ostream::flush((ostream *)PTR_clog_005e9c3c);\n    wostream::flush((wostream *)PTR_wcout_005e9e78);\n    wostream::flush((wostream *)PTR_wcerr_005e9b78);\n    wostream::flush((wostream *)PTR_wclog_005e9d3c);\n    return;\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::ios_base::Init::~" identifier : : identifier : : identifier : : ~) (function_declarator "Init(Init *this)" identifier (parameter_list "(Init *this)" ( (parameter_declaration "Init *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = _S_refcount;\n  if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    LOCK();\n    UNLOCK();\n  }\n  _S_refcount = _S_refcount + -1;\n  if (iVar1 == 2) {\n                    /* try { // try from 003b1a2f to 003b1a6f has its CatchHandler @ 003b1a7a */\n    ostream::flush((ostream *)PTR_cout_005e9e24);\n    ostream::flush((ostream *)PTR_cerr_005e9c04);\n    ostream::flush((ostream *)PTR_clog_005e9c3c);\n    wostream::flush((wostream *)PTR_wcout_005e9e78);\n    wostream::flush((wostream *)PTR_wcerr_005e9b78);\n    wostream::flush((wostream *)PTR_wclog_005e9d3c);\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = _S_refcount;" (assignment_expression "iVar1 = _S_refcount" identifier = identifier) ;) (if_statement "if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    LOCK();\n    UNLOCK();\n  }" if (parenthesized_expression "(PTR___pthread_key_create_005e9ff8 != (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_005e9ff8 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    LOCK();\n    UNLOCK();\n  }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "_S_refcount = _S_refcount + -1;" (assignment_expression "_S_refcount = _S_refcount + -1" identifier = (binary_expression "_S_refcount + -1" identifier + number_literal)) ;) (if_statement "if (iVar1 == 2) {\n                    /* try { // try from 003b1a2f to 003b1a6f has its CatchHandler @ 003b1a7a */\n    ostream::flush((ostream *)PTR_cout_005e9e24);\n    ostream::flush((ostream *)PTR_cerr_005e9c04);\n    ostream::flush((ostream *)PTR_clog_005e9c3c);\n    wostream::flush((wostream *)PTR_wcout_005e9e78);\n    wostream::flush((wostream *)PTR_wcerr_005e9b78);\n    wostream::flush((wostream *)PTR_wclog_005e9d3c);\n    return;\n  }" if (parenthesized_expression "(iVar1 == 2)" ( (binary_expression "iVar1 == 2" identifier == number_literal) )) (compound_statement "{\n                    /* try { // try from 003b1a2f to 003b1a6f has its CatchHandler @ 003b1a7a */\n    ostream::flush((ostream *)PTR_cout_005e9e24);\n    ostream::flush((ostream *)PTR_cerr_005e9c04);\n    ostream::flush((ostream *)PTR_clog_005e9c3c);\n    wostream::flush((wostream *)PTR_wcout_005e9e78);\n    wostream::flush((wostream *)PTR_wcerr_005e9b78);\n    wostream::flush((wostream *)PTR_wclog_005e9d3c);\n    return;\n  }" { comment (labeled_statement "ostream::flush((ostream *)PTR_cout_005e9e24);" statement_identifier : (ERROR ":" :) (expression_statement "flush((ostream *)PTR_cout_005e9e24);" (call_expression "flush((ostream *)PTR_cout_005e9e24)" identifier (argument_list "((ostream *)PTR_cout_005e9e24)" ( (cast_expression "(ostream *)PTR_cout_005e9e24" ( (type_descriptor "ostream *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;)) (labeled_statement "ostream::flush((ostream *)PTR_cerr_005e9c04);" statement_identifier : (ERROR ":" :) (expression_statement "flush((ostream *)PTR_cerr_005e9c04);" (call_expression "flush((ostream *)PTR_cerr_005e9c04)" identifier (argument_list "((ostream *)PTR_cerr_005e9c04)" ( (cast_expression "(ostream *)PTR_cerr_005e9c04" ( (type_descriptor "ostream *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;)) (labeled_statement "ostream::flush((ostream *)PTR_clog_005e9c3c);" statement_identifier : (ERROR ":" :) (expression_statement "flush((ostream *)PTR_clog_005e9c3c);" (call_expression "flush((ostream *)PTR_clog_005e9c3c)" identifier (argument_list "((ostream *)PTR_clog_005e9c3c)" ( (cast_expression "(ostream *)PTR_clog_005e9c3c" ( (type_descriptor "ostream *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;)) (labeled_statement "wostream::flush((wostream *)PTR_wcout_005e9e78);" statement_identifier : (ERROR ":" :) (expression_statement "flush((wostream *)PTR_wcout_005e9e78);" (call_expression "flush((wostream *)PTR_wcout_005e9e78)" identifier (argument_list "((wostream *)PTR_wcout_005e9e78)" ( (cast_expression "(wostream *)PTR_wcout_005e9e78" ( (type_descriptor "wostream *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;)) (labeled_statement "wostream::flush((wostream *)PTR_wcerr_005e9b78);" statement_identifier : (ERROR ":" :) (expression_statement "flush((wostream *)PTR_wcerr_005e9b78);" (call_expression "flush((wostream *)PTR_wcerr_005e9b78)" identifier (argument_list "((wostream *)PTR_wcerr_005e9b78)" ( (cast_expression "(wostream *)PTR_wcerr_005e9b78" ( (type_descriptor "wostream *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;)) (labeled_statement "wostream::flush((wostream *)PTR_wclog_005e9d3c);" statement_identifier : (ERROR ":" :) (expression_statement "flush((wostream *)PTR_wclog_005e9d3c);" (call_expression "flush((wostream *)PTR_wclog_005e9d3c)" identifier (argument_list "((wostream *)PTR_wclog_005e9d3c)" ( (cast_expression "(wostream *)PTR_wclog_005e9d3c" ( (type_descriptor "wostream *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;)) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_003b19e0(void)\n\n{\n  int iVar1;\n  \n  iVar1 = DAT_005f309c;\n  if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    LOCK();\n    UNLOCK();\n  }\n  DAT_005f309c = DAT_005f309c + -1;\n  if (iVar1 == 2) {\n                    \n    FUN_003ba8d0(PTR_DAT_005e9e24);\n    FUN_003ba8d0(PTR_DAT_005e9c04);\n    FUN_003ba8d0(PTR_DAT_005e9c3c);\n    FUN_003bd070(PTR_DAT_005e9e78);\n    FUN_003bd070(PTR_DAT_005e9b78);\n    FUN_003bd070(PTR_DAT_005e9d3c);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_003b19e0(void)\n\n{\n  int iVar1;\n  \n  iVar1 = DAT_005f309c;\n  if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    LOCK();\n    UNLOCK();\n  }\n  DAT_005f309c = DAT_005f309c + -1;\n  if (iVar1 == 2) {\n                    \n    FUN_003ba8d0(PTR_DAT_005e9e24);\n    FUN_003ba8d0(PTR_DAT_005e9c04);\n    FUN_003ba8d0(PTR_DAT_005e9c3c);\n    FUN_003bd070(PTR_DAT_005e9e78);\n    FUN_003bd070(PTR_DAT_005e9b78);\n    FUN_003bd070(PTR_DAT_005e9d3c);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_003b19e0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = DAT_005f309c;\n  if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    LOCK();\n    UNLOCK();\n  }\n  DAT_005f309c = DAT_005f309c + -1;\n  if (iVar1 == 2) {\n                    \n    FUN_003ba8d0(PTR_DAT_005e9e24);\n    FUN_003ba8d0(PTR_DAT_005e9c04);\n    FUN_003ba8d0(PTR_DAT_005e9c3c);\n    FUN_003bd070(PTR_DAT_005e9e78);\n    FUN_003bd070(PTR_DAT_005e9b78);\n    FUN_003bd070(PTR_DAT_005e9d3c);\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = DAT_005f309c;" (assignment_expression "iVar1 = DAT_005f309c" identifier = identifier) ;) (if_statement "if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    LOCK();\n    UNLOCK();\n  }" if (parenthesized_expression "(PTR___pthread_key_create_005e9ff8 != (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_005e9ff8 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    LOCK();\n    UNLOCK();\n  }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "DAT_005f309c = DAT_005f309c + -1;" (assignment_expression "DAT_005f309c = DAT_005f309c + -1" identifier = (binary_expression "DAT_005f309c + -1" identifier + number_literal)) ;) (if_statement "if (iVar1 == 2) {\n                    \n    FUN_003ba8d0(PTR_DAT_005e9e24);\n    FUN_003ba8d0(PTR_DAT_005e9c04);\n    FUN_003ba8d0(PTR_DAT_005e9c3c);\n    FUN_003bd070(PTR_DAT_005e9e78);\n    FUN_003bd070(PTR_DAT_005e9b78);\n    FUN_003bd070(PTR_DAT_005e9d3c);\n    return;\n  }" if (parenthesized_expression "(iVar1 == 2)" ( (binary_expression "iVar1 == 2" identifier == number_literal) )) (compound_statement "{\n                    \n    FUN_003ba8d0(PTR_DAT_005e9e24);\n    FUN_003ba8d0(PTR_DAT_005e9c04);\n    FUN_003ba8d0(PTR_DAT_005e9c3c);\n    FUN_003bd070(PTR_DAT_005e9e78);\n    FUN_003bd070(PTR_DAT_005e9b78);\n    FUN_003bd070(PTR_DAT_005e9d3c);\n    return;\n  }" { (expression_statement "FUN_003ba8d0(PTR_DAT_005e9e24);" (call_expression "FUN_003ba8d0(PTR_DAT_005e9e24)" identifier (argument_list "(PTR_DAT_005e9e24)" ( identifier ))) ;) (expression_statement "FUN_003ba8d0(PTR_DAT_005e9c04);" (call_expression "FUN_003ba8d0(PTR_DAT_005e9c04)" identifier (argument_list "(PTR_DAT_005e9c04)" ( identifier ))) ;) (expression_statement "FUN_003ba8d0(PTR_DAT_005e9c3c);" (call_expression "FUN_003ba8d0(PTR_DAT_005e9c3c)" identifier (argument_list "(PTR_DAT_005e9c3c)" ( identifier ))) ;) (expression_statement "FUN_003bd070(PTR_DAT_005e9e78);" (call_expression "FUN_003bd070(PTR_DAT_005e9e78)" identifier (argument_list "(PTR_DAT_005e9e78)" ( identifier ))) ;) (expression_statement "FUN_003bd070(PTR_DAT_005e9b78);" (call_expression "FUN_003bd070(PTR_DAT_005e9b78)" identifier (argument_list "(PTR_DAT_005e9b78)" ( identifier ))) ;) (expression_statement "FUN_003bd070(PTR_DAT_005e9d3c);" (call_expression "FUN_003bd070(PTR_DAT_005e9d3c)" identifier (argument_list "(PTR_DAT_005e9d3c)" ( identifier ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (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 ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void FUN_003b19e0(void)\n\n{\n  int iVar1;\n  \n  iVar1 = DAT_005f309c;\n  if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    LOCK();\n    UNLOCK();\n  }\n  DAT_005f309c = DAT_005f309c + -1;\n  if (iVar1 == 2) {\n                    \n    FUN_003ba8d0(PTR_DAT_005e9e24);\n    FUN_003ba8d0(PTR_DAT_005e9c04);\n    FUN_003ba8d0(PTR_DAT_005e9c3c);\n    FUN_003bd070(PTR_DAT_005e9e78);\n    FUN_003bd070(PTR_DAT_005e9b78);\n    FUN_003bd070(PTR_DAT_005e9d3c);\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_003b19e0(void)" (identifier "FUN_003b19e0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = DAT_005f309c;\n  if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    LOCK();\n    UNLOCK();\n  }\n  DAT_005f309c = DAT_005f309c + -1;\n  if (iVar1 == 2) {\n                    \n    FUN_003ba8d0(PTR_DAT_005e9e24);\n    FUN_003ba8d0(PTR_DAT_005e9c04);\n    FUN_003ba8d0(PTR_DAT_005e9c3c);\n    FUN_003bd070(PTR_DAT_005e9e78);\n    FUN_003bd070(PTR_DAT_005e9b78);\n    FUN_003bd070(PTR_DAT_005e9d3c);\n    return;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = DAT_005f309c;" (assignment_expression "iVar1 = DAT_005f309c" (identifier "iVar1") (= "=") (identifier "DAT_005f309c")) (; ";")) (if_statement "if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    LOCK();\n    UNLOCK();\n  }" (if "if") (parenthesized_expression "(PTR___pthread_key_create_005e9ff8 != (undefined *)0x0)" (( "(") (binary_expression "PTR___pthread_key_create_005e9ff8 != (undefined *)0x0" (identifier "PTR___pthread_key_create_005e9ff8") (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    LOCK();\n    UNLOCK();\n  }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" (identifier "UNLOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "DAT_005f309c = DAT_005f309c + -1;" (assignment_expression "DAT_005f309c = DAT_005f309c + -1" (identifier "DAT_005f309c") (= "=") (binary_expression "DAT_005f309c + -1" (identifier "DAT_005f309c") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (iVar1 == 2) {\n                    \n    FUN_003ba8d0(PTR_DAT_005e9e24);\n    FUN_003ba8d0(PTR_DAT_005e9c04);\n    FUN_003ba8d0(PTR_DAT_005e9c3c);\n    FUN_003bd070(PTR_DAT_005e9e78);\n    FUN_003bd070(PTR_DAT_005e9b78);\n    FUN_003bd070(PTR_DAT_005e9d3c);\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 == 2)" (( "(") (binary_expression "iVar1 == 2" (identifier "iVar1") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n                    \n    FUN_003ba8d0(PTR_DAT_005e9e24);\n    FUN_003ba8d0(PTR_DAT_005e9c04);\n    FUN_003ba8d0(PTR_DAT_005e9c3c);\n    FUN_003bd070(PTR_DAT_005e9e78);\n    FUN_003bd070(PTR_DAT_005e9b78);\n    FUN_003bd070(PTR_DAT_005e9d3c);\n    return;\n  }" ({ "{") (expression_statement "FUN_003ba8d0(PTR_DAT_005e9e24);" (call_expression "FUN_003ba8d0(PTR_DAT_005e9e24)" (identifier "FUN_003ba8d0") (argument_list "(PTR_DAT_005e9e24)" (( "(") (identifier "PTR_DAT_005e9e24") () ")"))) (; ";")) (expression_statement "FUN_003ba8d0(PTR_DAT_005e9c04);" (call_expression "FUN_003ba8d0(PTR_DAT_005e9c04)" (identifier "FUN_003ba8d0") (argument_list "(PTR_DAT_005e9c04)" (( "(") (identifier "PTR_DAT_005e9c04") () ")"))) (; ";")) (expression_statement "FUN_003ba8d0(PTR_DAT_005e9c3c);" (call_expression "FUN_003ba8d0(PTR_DAT_005e9c3c)" (identifier "FUN_003ba8d0") (argument_list "(PTR_DAT_005e9c3c)" (( "(") (identifier "PTR_DAT_005e9c3c") () ")"))) (; ";")) (expression_statement "FUN_003bd070(PTR_DAT_005e9e78);" (call_expression "FUN_003bd070(PTR_DAT_005e9e78)" (identifier "FUN_003bd070") (argument_list "(PTR_DAT_005e9e78)" (( "(") (identifier "PTR_DAT_005e9e78") () ")"))) (; ";")) (expression_statement "FUN_003bd070(PTR_DAT_005e9b78);" (call_expression "FUN_003bd070(PTR_DAT_005e9b78)" (identifier "FUN_003bd070") (argument_list "(PTR_DAT_005e9b78)" (( "(") (identifier "PTR_DAT_005e9b78") () ")"))) (; ";")) (expression_statement "FUN_003bd070(PTR_DAT_005e9d3c);" (call_expression "FUN_003bd070(PTR_DAT_005e9d3c)" (identifier "FUN_003bd070") (argument_list "(PTR_DAT_005e9d3c)" (( "(") (identifier "PTR_DAT_005e9d3c") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* std::ios_base::Init::~Init() */

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

{
  int var_5;
  
  var_5 = var_4;
  if (var_1 != (type_1 *)0x0) {
    var_2();
    var_3();
  }
  var_4 = var_4 + -1;
  if (var_5 == 2) {
                    /* try { // try from 003b1a2f to 003b1a6f has its CatchHandler @ 003b1a7a */
    ostream::var_6((type_2 *)PTR_cout_005e9e24);
    ostream::var_6((type_2 *)PTR_cerr_005e9c04);
    ostream::var_6((type_2 *)PTR_clog_005e9c3c);
    wostream::var_6((type_3 *)PTR_wcout_005e9e78);
    wostream::var_6((type_3 *)PTR_wcerr_005e9b78);
    wostream::var_6((type_3 *)PTR_wclog_005e9d3c);
    return;
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (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))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

void MASKED(void)

{
  int iVar1;
  
  iVar1 = DAT_005f309c;
  if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {
    LOCK();
    UNLOCK();
  }
  DAT_005f309c = DAT_005f309c + -1;
  if (iVar1 == 2) {
                    /* try { // try from 003b1a2f to 003b1a6f has its CatchHandler @ 003b1a7a */
    FUN_003ba8d0(PTR_DAT_005e9e24);
    FUN_003ba8d0(PTR_DAT_005e9c04);
    FUN_003ba8d0(PTR_DAT_005e9c3c);
    FUN_003bd070(PTR_DAT_005e9e78);
    FUN_003bd070(PTR_DAT_005e9b78);
    FUN_003bd070(PTR_DAT_005e9d3c);
    return;
  }
  return;
}

