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

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

{
}



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

void FUN_003fdaa0(undefined4 *param_1)

{
  int *piVar1;
  int iVar2;
  int iVar3;
  undefined4 uStack_10;
  
  uStack_10 = 0x3fdaa8;
  *param_1 = &PTR_FUN_005e884c;
  iVar2 = param_1[1];
  if ((undefined *)(iVar2 + -0xc) != PTR_DAT_005e9ffc) {
    if (PTR___pthread_key_create_005e9ff8 == (undefined *)0x0) {
      iVar3 = *(int *)(iVar2 + -4);
      *(int *)(iVar2 + -4) = iVar3 + -1;
    }
    else {
      LOCK();
      piVar1 = (int *)(iVar2 + -4);
      iVar3 = *piVar1;
      *piVar1 = *piVar1 + -1;
      UNLOCK();
    }
    if (iVar3 < 1) {
      FUN_003e5c80((undefined *)(iVar2 + -0xc),(int)&uStack_10 + 3);
    }
  }
  FUN_003ad5c0(param_1);
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00050b50
ADD EBX,0x1ec558
SUB ESP,0x10
MOV ESI,dword ptr [ESP + 0x20]
LEA EAX,[EBX + 0xffffe844]
ADD EAX,0x8
MOV dword ptr [ESI],EAX
MOV EAX,dword ptr [ESI + 0x4]
LEA EDX,[EAX + -0xc]
CMP EDX,dword ptr [EBX + 0xfffffffc]
JNZ 0x003fdae0
SUB ESP,0xc
PUSH ESI
CALL 0x003ad5c0
ADD ESP,0x20
POP EBX
POP ESI
POP EDI
RET
MOV ECX,dword ptr [EBX + 0xfffffff8]
TEST ECX,ECX
JZ 0x003fdb10
MOV ECX,0xffffffff
XADD.LOCK dword ptr [EAX + -0x4],ECX
TEST ECX,ECX
JG 0x003fdace
SUB ESP,0x8
LEA EAX,[ESP + 0x17]
PUSH EAX
PUSH EDX
CALL 0x003e5c80
ADD ESP,0x10
JMP 0x003fdace
MOV ECX,dword ptr [EAX + -0x4]
LEA EDI,[ECX + -0x1]
MOV dword ptr [EAX + -0x4],EDI
JMP 0x003fdaf4
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_003fdaa0(undefined4 *param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x3fdaa8;\n  *param_1 = &PTR_FUN_005e884c;\n  iVar2 = param_1[1];\n  if ((undefined *)(iVar2 + -0xc) != PTR_DAT_005e9ffc) {\n    if (PTR___pthread_key_create_005e9ff8 == (undefined *)0x0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar3 < 1) {\n      FUN_003e5c80((undefined *)(iVar2 + -0xc),(int)&uStack_10 + 3);\n    }\n  }\n  FUN_003ad5c0(param_1);\n  return;\n}\n\n" comment (function_definition "void FUN_003fdaa0(undefined4 *param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x3fdaa8;\n  *param_1 = &PTR_FUN_005e884c;\n  iVar2 = param_1[1];\n  if ((undefined *)(iVar2 + -0xc) != PTR_DAT_005e9ffc) {\n    if (PTR___pthread_key_create_005e9ff8 == (undefined *)0x0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar3 < 1) {\n      FUN_003e5c80((undefined *)(iVar2 + -0xc),(int)&uStack_10 + 3);\n    }\n  }\n  FUN_003ad5c0(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_003fdaa0(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 *piVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x3fdaa8;\n  *param_1 = &PTR_FUN_005e884c;\n  iVar2 = param_1[1];\n  if ((undefined *)(iVar2 + -0xc) != PTR_DAT_005e9ffc) {\n    if (PTR___pthread_key_create_005e9ff8 == (undefined *)0x0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar3 < 1) {\n      FUN_003e5c80((undefined *)(iVar2 + -0xc),(int)&uStack_10 + 3);\n    }\n  }\n  FUN_003ad5c0(param_1);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uStack_10;" type_identifier identifier ;) (expression_statement "uStack_10 = 0x3fdaa8;" (assignment_expression "uStack_10 = 0x3fdaa8" identifier = number_literal) ;) (expression_statement "*param_1 = &PTR_FUN_005e884c;" (assignment_expression "*param_1 = &PTR_FUN_005e884c" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_005e884c" & identifier)) ;) (expression_statement "iVar2 = param_1[1];" (assignment_expression "iVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if ((undefined *)(iVar2 + -0xc) != PTR_DAT_005e9ffc) {\n    if (PTR___pthread_key_create_005e9ff8 == (undefined *)0x0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar3 < 1) {\n      FUN_003e5c80((undefined *)(iVar2 + -0xc),(int)&uStack_10 + 3);\n    }\n  }" if (parenthesized_expression "((undefined *)(iVar2 + -0xc) != PTR_DAT_005e9ffc)" ( (binary_expression "(undefined *)(iVar2 + -0xc) != PTR_DAT_005e9ffc" (cast_expression "(undefined *)(iVar2 + -0xc)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))) != identifier) )) (compound_statement "{\n    if (PTR___pthread_key_create_005e9ff8 == (undefined *)0x0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar3 < 1) {\n      FUN_003e5c80((undefined *)(iVar2 + -0xc),(int)&uStack_10 + 3);\n    }\n  }" { (if_statement "if (PTR___pthread_key_create_005e9ff8 == (undefined *)0x0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\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      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }" { (expression_statement "iVar3 = *(int *)(iVar2 + -4);" (assignment_expression "iVar3 = *(int *)(iVar2 + -4)" identifier = (pointer_expression "*(int *)(iVar2 + -4)" * (cast_expression "(int *)(iVar2 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -4)" ( (binary_expression "iVar2 + -4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar2 + -4) = iVar3 + -1;" (assignment_expression "*(int *)(iVar2 + -4) = iVar3 + -1" (pointer_expression "*(int *)(iVar2 + -4)" * (cast_expression "(int *)(iVar2 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -4)" ( (binary_expression "iVar2 + -4" identifier + number_literal) )))) = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" else (compound_statement "{\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = (int *)(iVar2 + -4);" (assignment_expression "piVar1 = (int *)(iVar2 + -4)" identifier = (cast_expression "(int *)(iVar2 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -4)" ( (binary_expression "iVar2 + -4" identifier + number_literal) )))) ;) (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar3 < 1) {\n      FUN_003e5c80((undefined *)(iVar2 + -0xc),(int)&uStack_10 + 3);\n    }" if (parenthesized_expression "(iVar3 < 1)" ( (binary_expression "iVar3 < 1" identifier < number_literal) )) (compound_statement "{\n      FUN_003e5c80((undefined *)(iVar2 + -0xc),(int)&uStack_10 + 3);\n    }" { (expression_statement "FUN_003e5c80((undefined *)(iVar2 + -0xc),(int)&uStack_10 + 3);" (call_expression "FUN_003e5c80((undefined *)(iVar2 + -0xc),(int)&uStack_10 + 3)" identifier (argument_list "((undefined *)(iVar2 + -0xc),(int)&uStack_10 + 3)" ( (cast_expression "(undefined *)(iVar2 + -0xc)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))) , (binary_expression "(int)&uStack_10 + 3" (cast_expression "(int)&uStack_10" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&uStack_10" & identifier)) + number_literal) ))) ;) })) })) (expression_statement "FUN_003ad5c0(param_1);" (call_expression "FUN_003ad5c0(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::logic_error::~logic_error() */\n\nvoid __thiscall std::logic_error::~logic_error(logic_error *this)\n\n{\n}\n\n" comment comment (function_definition "void __thiscall std::logic_error::~logic_error(logic_error *this)\n\n{\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::logic_error::~" identifier : : identifier : : ~) (function_declarator "logic_error(logic_error *this)" identifier (parameter_list "(logic_error *this)" ( (parameter_declaration "logic_error *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n}" { })))
(translation_unit "void FUN_003fdaa0(undefined4 *param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x3fdaa8;\n  *param_1 = &PTR_FUN_005e884c;\n  iVar2 = param_1[1];\n  if ((undefined *)(iVar2 + -0xc) != PTR_DAT_005e9ffc) {\n    if (PTR___pthread_key_create_005e9ff8 == (undefined *)0x0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar3 < 1) {\n      FUN_003e5c80((undefined *)(iVar2 + -0xc),(int)&uStack_10 + 3);\n    }\n  }\n  FUN_003ad5c0(param_1);\n  return;\n}\n\n" (function_definition "void FUN_003fdaa0(undefined4 *param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x3fdaa8;\n  *param_1 = &PTR_FUN_005e884c;\n  iVar2 = param_1[1];\n  if ((undefined *)(iVar2 + -0xc) != PTR_DAT_005e9ffc) {\n    if (PTR___pthread_key_create_005e9ff8 == (undefined *)0x0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar3 < 1) {\n      FUN_003e5c80((undefined *)(iVar2 + -0xc),(int)&uStack_10 + 3);\n    }\n  }\n  FUN_003ad5c0(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_003fdaa0(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 *piVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x3fdaa8;\n  *param_1 = &PTR_FUN_005e884c;\n  iVar2 = param_1[1];\n  if ((undefined *)(iVar2 + -0xc) != PTR_DAT_005e9ffc) {\n    if (PTR___pthread_key_create_005e9ff8 == (undefined *)0x0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar3 < 1) {\n      FUN_003e5c80((undefined *)(iVar2 + -0xc),(int)&uStack_10 + 3);\n    }\n  }\n  FUN_003ad5c0(param_1);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uStack_10;" type_identifier identifier ;) (expression_statement "uStack_10 = 0x3fdaa8;" (assignment_expression "uStack_10 = 0x3fdaa8" identifier = number_literal) ;) (expression_statement "*param_1 = &PTR_FUN_005e884c;" (assignment_expression "*param_1 = &PTR_FUN_005e884c" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_005e884c" & identifier)) ;) (expression_statement "iVar2 = param_1[1];" (assignment_expression "iVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if ((undefined *)(iVar2 + -0xc) != PTR_DAT_005e9ffc) {\n    if (PTR___pthread_key_create_005e9ff8 == (undefined *)0x0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar3 < 1) {\n      FUN_003e5c80((undefined *)(iVar2 + -0xc),(int)&uStack_10 + 3);\n    }\n  }" if (parenthesized_expression "((undefined *)(iVar2 + -0xc) != PTR_DAT_005e9ffc)" ( (binary_expression "(undefined *)(iVar2 + -0xc) != PTR_DAT_005e9ffc" (cast_expression "(undefined *)(iVar2 + -0xc)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))) != identifier) )) (compound_statement "{\n    if (PTR___pthread_key_create_005e9ff8 == (undefined *)0x0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar3 < 1) {\n      FUN_003e5c80((undefined *)(iVar2 + -0xc),(int)&uStack_10 + 3);\n    }\n  }" { (if_statement "if (PTR___pthread_key_create_005e9ff8 == (undefined *)0x0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\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      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }" { (expression_statement "iVar3 = *(int *)(iVar2 + -4);" (assignment_expression "iVar3 = *(int *)(iVar2 + -4)" identifier = (pointer_expression "*(int *)(iVar2 + -4)" * (cast_expression "(int *)(iVar2 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -4)" ( (binary_expression "iVar2 + -4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar2 + -4) = iVar3 + -1;" (assignment_expression "*(int *)(iVar2 + -4) = iVar3 + -1" (pointer_expression "*(int *)(iVar2 + -4)" * (cast_expression "(int *)(iVar2 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -4)" ( (binary_expression "iVar2 + -4" identifier + number_literal) )))) = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" else (compound_statement "{\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = (int *)(iVar2 + -4);" (assignment_expression "piVar1 = (int *)(iVar2 + -4)" identifier = (cast_expression "(int *)(iVar2 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -4)" ( (binary_expression "iVar2 + -4" identifier + number_literal) )))) ;) (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar3 < 1) {\n      FUN_003e5c80((undefined *)(iVar2 + -0xc),(int)&uStack_10 + 3);\n    }" if (parenthesized_expression "(iVar3 < 1)" ( (binary_expression "iVar3 < 1" identifier < number_literal) )) (compound_statement "{\n      FUN_003e5c80((undefined *)(iVar2 + -0xc),(int)&uStack_10 + 3);\n    }" { (expression_statement "FUN_003e5c80((undefined *)(iVar2 + -0xc),(int)&uStack_10 + 3);" (call_expression "FUN_003e5c80((undefined *)(iVar2 + -0xc),(int)&uStack_10 + 3)" identifier (argument_list "((undefined *)(iVar2 + -0xc),(int)&uStack_10 + 3)" ( (cast_expression "(undefined *)(iVar2 + -0xc)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))) , (binary_expression "(int)&uStack_10 + 3" (cast_expression "(int)&uStack_10" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&uStack_10" & identifier)) + number_literal) ))) ;) })) })) (expression_statement "FUN_003ad5c0(param_1);" (call_expression "FUN_003ad5c0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) != IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) , (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression & IDENT)) + LIT) ))) ;) })) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_003fdaa0(undefined4 *param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x3fdaa8;\n  *param_1 = &PTR_FUN_005e884c;\n  iVar2 = param_1[1];\n  if ((undefined *)(iVar2 + -0xc) != PTR_DAT_005e9ffc) {\n    if (PTR___pthread_key_create_005e9ff8 == (undefined *)0x0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar3 < 1) {\n      FUN_003e5c80((undefined *)(iVar2 + -0xc),(int)&uStack_10 + 3);\n    }\n  }\n  FUN_003ad5c0(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_003fdaa0(undefined4 *param_1)" (identifier "FUN_003fdaa0") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x3fdaa8;\n  *param_1 = &PTR_FUN_005e884c;\n  iVar2 = param_1[1];\n  if ((undefined *)(iVar2 + -0xc) != PTR_DAT_005e9ffc) {\n    if (PTR___pthread_key_create_005e9ff8 == (undefined *)0x0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar3 < 1) {\n      FUN_003e5c80((undefined *)(iVar2 + -0xc),(int)&uStack_10 + 3);\n    }\n  }\n  FUN_003ad5c0(param_1);\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uStack_10;" (type_identifier "undefined4") (identifier "uStack_10") (; ";")) (expression_statement "uStack_10 = 0x3fdaa8;" (assignment_expression "uStack_10 = 0x3fdaa8" (identifier "uStack_10") (= "=") (number_literal "0x3fdaa8")) (; ";")) (expression_statement "*param_1 = &PTR_FUN_005e884c;" (assignment_expression "*param_1 = &PTR_FUN_005e884c" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&PTR_FUN_005e884c" (& "&") (identifier "PTR_FUN_005e884c"))) (; ";")) (expression_statement "iVar2 = param_1[1];" (assignment_expression "iVar2 = param_1[1]" (identifier "iVar2") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if ((undefined *)(iVar2 + -0xc) != PTR_DAT_005e9ffc) {\n    if (PTR___pthread_key_create_005e9ff8 == (undefined *)0x0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar3 < 1) {\n      FUN_003e5c80((undefined *)(iVar2 + -0xc),(int)&uStack_10 + 3);\n    }\n  }" (if "if") (parenthesized_expression "((undefined *)(iVar2 + -0xc) != PTR_DAT_005e9ffc)" (( "(") (binary_expression "(undefined *)(iVar2 + -0xc) != PTR_DAT_005e9ffc" (cast_expression "(undefined *)(iVar2 + -0xc)" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -0xc)" (( "(") (binary_expression "iVar2 + -0xc" (identifier "iVar2") (+ "+") (number_literal "-0xc")) () ")"))) (!= "!=") (identifier "PTR_DAT_005e9ffc")) () ")")) (compound_statement "{\n    if (PTR___pthread_key_create_005e9ff8 == (undefined *)0x0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar3 < 1) {\n      FUN_003e5c80((undefined *)(iVar2 + -0xc),(int)&uStack_10 + 3);\n    }\n  }" ({ "{") (if_statement "if (PTR___pthread_key_create_005e9ff8 == (undefined *)0x0) {\n      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\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      iVar3 = *(int *)(iVar2 + -4);\n      *(int *)(iVar2 + -4) = iVar3 + -1;\n    }" ({ "{") (expression_statement "iVar3 = *(int *)(iVar2 + -4);" (assignment_expression "iVar3 = *(int *)(iVar2 + -4)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar2 + -4)" (* "*") (cast_expression "(int *)(iVar2 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -4)" (( "(") (binary_expression "iVar2 + -4" (identifier "iVar2") (+ "+") (number_literal "-4")) () ")"))))) (; ";")) (expression_statement "*(int *)(iVar2 + -4) = iVar3 + -1;" (assignment_expression "*(int *)(iVar2 + -4) = iVar3 + -1" (pointer_expression "*(int *)(iVar2 + -4)" (* "*") (cast_expression "(int *)(iVar2 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -4)" (( "(") (binary_expression "iVar2 + -4" (identifier "iVar2") (+ "+") (number_literal "-4")) () ")")))) (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (else_clause "else {\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" (else "else") (compound_statement "{\n      LOCK();\n      piVar1 = (int *)(iVar2 + -4);\n      iVar3 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar1 = (int *)(iVar2 + -4);" (assignment_expression "piVar1 = (int *)(iVar2 + -4)" (identifier "piVar1") (= "=") (cast_expression "(int *)(iVar2 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -4)" (( "(") (binary_expression "iVar2 + -4" (identifier "iVar2") (+ "+") (number_literal "-4")) () ")")))) (; ";")) (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" (identifier "iVar3") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" (identifier "UNLOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (if_statement "if (iVar3 < 1) {\n      FUN_003e5c80((undefined *)(iVar2 + -0xc),(int)&uStack_10 + 3);\n    }" (if "if") (parenthesized_expression "(iVar3 < 1)" (( "(") (binary_expression "iVar3 < 1" (identifier "iVar3") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n      FUN_003e5c80((undefined *)(iVar2 + -0xc),(int)&uStack_10 + 3);\n    }" ({ "{") (expression_statement "FUN_003e5c80((undefined *)(iVar2 + -0xc),(int)&uStack_10 + 3);" (call_expression "FUN_003e5c80((undefined *)(iVar2 + -0xc),(int)&uStack_10 + 3)" (identifier "FUN_003e5c80") (argument_list "((undefined *)(iVar2 + -0xc),(int)&uStack_10 + 3)" (( "(") (cast_expression "(undefined *)(iVar2 + -0xc)" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -0xc)" (( "(") (binary_expression "iVar2 + -0xc" (identifier "iVar2") (+ "+") (number_literal "-0xc")) () ")"))) (, ",") (binary_expression "(int)&uStack_10 + 3" (cast_expression "(int)&uStack_10" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&uStack_10" (& "&") (identifier "uStack_10"))) (+ "+") (number_literal "3")) () ")"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "FUN_003ad5c0(param_1);" (call_expression "FUN_003ad5c0(param_1)" (identifier "FUN_003ad5c0") (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::logic_error::~logic_error() */

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

{
}


(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: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) right: (identifier))) 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 (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (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 *piVar1;
  int iVar2;
  int iVar3;
  undefined4 uStack_10;
  
  uStack_10 = 0x3fdaa8;
  *param_1 = &PTR_FUN_005e884c;
  iVar2 = param_1[1];
  if ((undefined *)(iVar2 + -0xc) != PTR_DAT_005e9ffc) {
    if (PTR___pthread_key_create_005e9ff8 == (undefined *)0x0) {
      iVar3 = *(int *)(iVar2 + -4);
      *(int *)(iVar2 + -4) = iVar3 + -1;
    }
    else {
      LOCK();
      piVar1 = (int *)(iVar2 + -4);
      iVar3 = *piVar1;
      *piVar1 = *piVar1 + -1;
      UNLOCK();
    }
    if (iVar3 < 1) {
      FUN_003e5c80((undefined *)(iVar2 + -0xc),(int)&uStack_10 + 3);
    }
  }
  FUN_003ad5c0(param_1);
  return;
}

