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

void __thiscall __scoped_lock::~__scoped_lock(__scoped_lock *this)

{
  int iVar1;
  undefined4 *puVar2;
  
  if (PTR___pthread_key_create_0038ef24 != (undefined *)0x0) {
    iVar1 = pthread_mutex_unlock(*(pthread_mutex_t **)this);
    if (iVar1 != 0) {
      puVar2 = (undefined4 *)__cxa_allocate_exception(4);
      *puVar2 = &PTR____concurrence_unlock_error_0038bfb0;
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 001e8d2c to 001e8d30 has its CatchHandler @ 001e8d31 */
      __cxa_throw(puVar2,PTR_PTR_0038ebc0,PTR____concurrence_unlock_error_0038efdc);
    }
  }
  return;
}



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

void FUN_001e8cd0(undefined4 *param_1)

{
  int iVar1;
  undefined4 *puVar2;
  
  if (PTR___pthread_key_create_0038ef24 != (undefined *)0x0) {
    iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1);
    if (iVar1 != 0) {
      puVar2 = (undefined4 *)FUN_001e6bf0(4);
      *puVar2 = &PTR_FUN_0038bfb0;
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 001e8d2c to 001e8d30 has its CatchHandler @ 001e8d31 */
      FUN_001e5640(puVar2,PTR_PTR_0038ebc0,PTR_FUN_0038efdc);
    }
  }
  return;
}


PUSH EBP
MOV EBP,ESP
PUSH ESI
CALL 0x000559ea
ADD ESI,0x1a6327
PUSH EBX
MOV EAX,dword ptr [ESI + 0xffffff24]
TEST EAX,EAX
JZ 0x001e8d00
MOV EAX,dword ptr [EBP + 0x8]
SUB ESP,0xc
MOV EBX,ESI
PUSH dword ptr [EAX]
CALL 0x00029500
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x001e8d07
LEA ESP,[EBP + -0x8]
POP EBX
POP ESI
POP EBP
RET
SUB ESP,0xc
PUSH 0x4
CALL 0x001e6bf0
LEA EDX,[ESI + 0xffffcfa8]
ADD ESP,0xc
ADD EDX,0x8
MOV dword ptr [EAX],EDX
PUSH dword ptr [ESI + 0xffffffdc]
PUSH dword ptr [ESI + 0xfffffbc0]
PUSH EAX
CALL 0x001e5640
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nvoid FUN_001e8cd0(undefined4 *param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  if (PTR___pthread_key_create_0038ef24 != (undefined *)0x0) {\n    iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1);\n    if (iVar1 != 0) {\n      puVar2 = (undefined4 *)FUN_001e6bf0(4);\n      *puVar2 = &PTR_FUN_0038bfb0;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001e8d2c to 001e8d30 has its CatchHandler @ 001e8d31 */\n      FUN_001e5640(puVar2,PTR_PTR_0038ebc0,PTR_FUN_0038efdc);\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_001e8cd0(undefined4 *param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  if (PTR___pthread_key_create_0038ef24 != (undefined *)0x0) {\n    iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1);\n    if (iVar1 != 0) {\n      puVar2 = (undefined4 *)FUN_001e6bf0(4);\n      *puVar2 = &PTR_FUN_0038bfb0;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001e8d2c to 001e8d30 has its CatchHandler @ 001e8d31 */\n      FUN_001e5640(puVar2,PTR_PTR_0038ebc0,PTR_FUN_0038efdc);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001e8cd0(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  undefined4 *puVar2;\n  \n  if (PTR___pthread_key_create_0038ef24 != (undefined *)0x0) {\n    iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1);\n    if (iVar1 != 0) {\n      puVar2 = (undefined4 *)FUN_001e6bf0(4);\n      *puVar2 = &PTR_FUN_0038bfb0;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001e8d2c to 001e8d30 has its CatchHandler @ 001e8d31 */\n      FUN_001e5640(puVar2,PTR_PTR_0038ebc0,PTR_FUN_0038efdc);\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (PTR___pthread_key_create_0038ef24 != (undefined *)0x0) {\n    iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1);\n    if (iVar1 != 0) {\n      puVar2 = (undefined4 *)FUN_001e6bf0(4);\n      *puVar2 = &PTR_FUN_0038bfb0;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001e8d2c to 001e8d30 has its CatchHandler @ 001e8d31 */\n      FUN_001e5640(puVar2,PTR_PTR_0038ebc0,PTR_FUN_0038efdc);\n    }\n  }" if (parenthesized_expression "(PTR___pthread_key_create_0038ef24 != (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_0038ef24 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1);\n    if (iVar1 != 0) {\n      puVar2 = (undefined4 *)FUN_001e6bf0(4);\n      *puVar2 = &PTR_FUN_0038bfb0;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001e8d2c to 001e8d30 has its CatchHandler @ 001e8d31 */\n      FUN_001e5640(puVar2,PTR_PTR_0038ebc0,PTR_FUN_0038efdc);\n    }\n  }" { (expression_statement "iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1);" (assignment_expression "iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1)" identifier = (call_expression "pthread_mutex_unlock((pthread_mutex_t *)*param_1)" identifier (argument_list "((pthread_mutex_t *)*param_1)" ( (cast_expression "(pthread_mutex_t *)*param_1" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) )))) ;) (if_statement "if (iVar1 != 0) {\n      puVar2 = (undefined4 *)FUN_001e6bf0(4);\n      *puVar2 = &PTR_FUN_0038bfb0;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001e8d2c to 001e8d30 has its CatchHandler @ 001e8d31 */\n      FUN_001e5640(puVar2,PTR_PTR_0038ebc0,PTR_FUN_0038efdc);\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      puVar2 = (undefined4 *)FUN_001e6bf0(4);\n      *puVar2 = &PTR_FUN_0038bfb0;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001e8d2c to 001e8d30 has its CatchHandler @ 001e8d31 */\n      FUN_001e5640(puVar2,PTR_PTR_0038ebc0,PTR_FUN_0038efdc);\n    }" { (expression_statement "puVar2 = (undefined4 *)FUN_001e6bf0(4);" (assignment_expression "puVar2 = (undefined4 *)FUN_001e6bf0(4)" identifier = (cast_expression "(undefined4 *)FUN_001e6bf0(4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e6bf0(4)" identifier (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "*puVar2 = &PTR_FUN_0038bfb0;" (assignment_expression "*puVar2 = &PTR_FUN_0038bfb0" (pointer_expression "*puVar2" * identifier) = (pointer_expression "&PTR_FUN_0038bfb0" & identifier)) ;) comment comment (expression_statement "FUN_001e5640(puVar2,PTR_PTR_0038ebc0,PTR_FUN_0038efdc);" (call_expression "FUN_001e5640(puVar2,PTR_PTR_0038ebc0,PTR_FUN_0038efdc)" identifier (argument_list "(puVar2,PTR_PTR_0038ebc0,PTR_FUN_0038efdc)" ( identifier , identifier , identifier ))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n/* __scoped_lock::~__scoped_lock() */\n\nvoid __thiscall __scoped_lock::~__scoped_lock(__scoped_lock *this)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  if (PTR___pthread_key_create_0038ef24 != (undefined *)0x0) {\n    iVar1 = pthread_mutex_unlock(*(pthread_mutex_t **)this);\n    if (iVar1 != 0) {\n      puVar2 = (undefined4 *)__cxa_allocate_exception(4);\n      *puVar2 = &PTR____concurrence_unlock_error_0038bfb0;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001e8d2c to 001e8d30 has its CatchHandler @ 001e8d31 */\n      __cxa_throw(puVar2,PTR_PTR_0038ebc0,PTR____concurrence_unlock_error_0038efdc);\n    }\n  }\n  return;\n}\n\n" comment comment (function_definition "void __thiscall __scoped_lock::~__scoped_lock(__scoped_lock *this)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  if (PTR___pthread_key_create_0038ef24 != (undefined *)0x0) {\n    iVar1 = pthread_mutex_unlock(*(pthread_mutex_t **)this);\n    if (iVar1 != 0) {\n      puVar2 = (undefined4 *)__cxa_allocate_exception(4);\n      *puVar2 = &PTR____concurrence_unlock_error_0038bfb0;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001e8d2c to 001e8d30 has its CatchHandler @ 001e8d31 */\n      __cxa_throw(puVar2,PTR_PTR_0038ebc0,PTR____concurrence_unlock_error_0038efdc);\n    }\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "__scoped_lock::~" identifier : : ~) (function_declarator "__scoped_lock(__scoped_lock *this)" identifier (parameter_list "(__scoped_lock *this)" ( (parameter_declaration "__scoped_lock *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  if (PTR___pthread_key_create_0038ef24 != (undefined *)0x0) {\n    iVar1 = pthread_mutex_unlock(*(pthread_mutex_t **)this);\n    if (iVar1 != 0) {\n      puVar2 = (undefined4 *)__cxa_allocate_exception(4);\n      *puVar2 = &PTR____concurrence_unlock_error_0038bfb0;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001e8d2c to 001e8d30 has its CatchHandler @ 001e8d31 */\n      __cxa_throw(puVar2,PTR_PTR_0038ebc0,PTR____concurrence_unlock_error_0038efdc);\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (PTR___pthread_key_create_0038ef24 != (undefined *)0x0) {\n    iVar1 = pthread_mutex_unlock(*(pthread_mutex_t **)this);\n    if (iVar1 != 0) {\n      puVar2 = (undefined4 *)__cxa_allocate_exception(4);\n      *puVar2 = &PTR____concurrence_unlock_error_0038bfb0;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001e8d2c to 001e8d30 has its CatchHandler @ 001e8d31 */\n      __cxa_throw(puVar2,PTR_PTR_0038ebc0,PTR____concurrence_unlock_error_0038efdc);\n    }\n  }" if (parenthesized_expression "(PTR___pthread_key_create_0038ef24 != (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_0038ef24 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = pthread_mutex_unlock(*(pthread_mutex_t **)this);\n    if (iVar1 != 0) {\n      puVar2 = (undefined4 *)__cxa_allocate_exception(4);\n      *puVar2 = &PTR____concurrence_unlock_error_0038bfb0;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001e8d2c to 001e8d30 has its CatchHandler @ 001e8d31 */\n      __cxa_throw(puVar2,PTR_PTR_0038ebc0,PTR____concurrence_unlock_error_0038efdc);\n    }\n  }" { (expression_statement "iVar1 = pthread_mutex_unlock(*(pthread_mutex_t **)this);" (assignment_expression "iVar1 = pthread_mutex_unlock(*(pthread_mutex_t **)this)" identifier = (call_expression "pthread_mutex_unlock(*(pthread_mutex_t **)this)" identifier (argument_list "(*(pthread_mutex_t **)this)" ( (pointer_expression "*(pthread_mutex_t **)this" * (cast_expression "(pthread_mutex_t **)this" ( (type_descriptor "pthread_mutex_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) )))) ;) (if_statement "if (iVar1 != 0) {\n      puVar2 = (undefined4 *)__cxa_allocate_exception(4);\n      *puVar2 = &PTR____concurrence_unlock_error_0038bfb0;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001e8d2c to 001e8d30 has its CatchHandler @ 001e8d31 */\n      __cxa_throw(puVar2,PTR_PTR_0038ebc0,PTR____concurrence_unlock_error_0038efdc);\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      puVar2 = (undefined4 *)__cxa_allocate_exception(4);\n      *puVar2 = &PTR____concurrence_unlock_error_0038bfb0;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001e8d2c to 001e8d30 has its CatchHandler @ 001e8d31 */\n      __cxa_throw(puVar2,PTR_PTR_0038ebc0,PTR____concurrence_unlock_error_0038efdc);\n    }" { (expression_statement "puVar2 = (undefined4 *)__cxa_allocate_exception(4);" (assignment_expression "puVar2 = (undefined4 *)__cxa_allocate_exception(4)" identifier = (cast_expression "(undefined4 *)__cxa_allocate_exception(4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "__cxa_allocate_exception(4)" identifier (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "*puVar2 = &PTR____concurrence_unlock_error_0038bfb0;" (assignment_expression "*puVar2 = &PTR____concurrence_unlock_error_0038bfb0" (pointer_expression "*puVar2" * identifier) = (pointer_expression "&PTR____concurrence_unlock_error_0038bfb0" & identifier)) ;) comment comment (expression_statement "__cxa_throw(puVar2,PTR_PTR_0038ebc0,PTR____concurrence_unlock_error_0038efdc);" (call_expression "__cxa_throw(puVar2,PTR_PTR_0038ebc0,PTR____concurrence_unlock_error_0038efdc)" identifier (argument_list "(puVar2,PTR_PTR_0038ebc0,PTR____concurrence_unlock_error_0038efdc)" ( identifier , identifier , identifier ))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001e8cd0(undefined4 *param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  if (PTR___pthread_key_create_0038ef24 != (undefined *)0x0) {\n    iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1);\n    if (iVar1 != 0) {\n      puVar2 = (undefined4 *)FUN_001e6bf0(4);\n      *puVar2 = &PTR_FUN_0038bfb0;\n                    \n                    \n      FUN_001e5640(puVar2,PTR_PTR_0038ebc0,PTR_FUN_0038efdc);\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_001e8cd0(undefined4 *param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  if (PTR___pthread_key_create_0038ef24 != (undefined *)0x0) {\n    iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1);\n    if (iVar1 != 0) {\n      puVar2 = (undefined4 *)FUN_001e6bf0(4);\n      *puVar2 = &PTR_FUN_0038bfb0;\n                    \n                    \n      FUN_001e5640(puVar2,PTR_PTR_0038ebc0,PTR_FUN_0038efdc);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001e8cd0(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  undefined4 *puVar2;\n  \n  if (PTR___pthread_key_create_0038ef24 != (undefined *)0x0) {\n    iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1);\n    if (iVar1 != 0) {\n      puVar2 = (undefined4 *)FUN_001e6bf0(4);\n      *puVar2 = &PTR_FUN_0038bfb0;\n                    \n                    \n      FUN_001e5640(puVar2,PTR_PTR_0038ebc0,PTR_FUN_0038efdc);\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (PTR___pthread_key_create_0038ef24 != (undefined *)0x0) {\n    iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1);\n    if (iVar1 != 0) {\n      puVar2 = (undefined4 *)FUN_001e6bf0(4);\n      *puVar2 = &PTR_FUN_0038bfb0;\n                    \n                    \n      FUN_001e5640(puVar2,PTR_PTR_0038ebc0,PTR_FUN_0038efdc);\n    }\n  }" if (parenthesized_expression "(PTR___pthread_key_create_0038ef24 != (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_0038ef24 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1);\n    if (iVar1 != 0) {\n      puVar2 = (undefined4 *)FUN_001e6bf0(4);\n      *puVar2 = &PTR_FUN_0038bfb0;\n                    \n                    \n      FUN_001e5640(puVar2,PTR_PTR_0038ebc0,PTR_FUN_0038efdc);\n    }\n  }" { (expression_statement "iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1);" (assignment_expression "iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1)" identifier = (call_expression "pthread_mutex_unlock((pthread_mutex_t *)*param_1)" identifier (argument_list "((pthread_mutex_t *)*param_1)" ( (cast_expression "(pthread_mutex_t *)*param_1" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) )))) ;) (if_statement "if (iVar1 != 0) {\n      puVar2 = (undefined4 *)FUN_001e6bf0(4);\n      *puVar2 = &PTR_FUN_0038bfb0;\n                    \n                    \n      FUN_001e5640(puVar2,PTR_PTR_0038ebc0,PTR_FUN_0038efdc);\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      puVar2 = (undefined4 *)FUN_001e6bf0(4);\n      *puVar2 = &PTR_FUN_0038bfb0;\n                    \n                    \n      FUN_001e5640(puVar2,PTR_PTR_0038ebc0,PTR_FUN_0038efdc);\n    }" { (expression_statement "puVar2 = (undefined4 *)FUN_001e6bf0(4);" (assignment_expression "puVar2 = (undefined4 *)FUN_001e6bf0(4)" identifier = (cast_expression "(undefined4 *)FUN_001e6bf0(4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e6bf0(4)" identifier (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "*puVar2 = &PTR_FUN_0038bfb0;" (assignment_expression "*puVar2 = &PTR_FUN_0038bfb0" (pointer_expression "*puVar2" * identifier) = (pointer_expression "&PTR_FUN_0038bfb0" & identifier)) ;) (expression_statement "FUN_001e5640(puVar2,PTR_PTR_0038ebc0,PTR_FUN_0038efdc);" (call_expression "FUN_001e5640(puVar2,PTR_PTR_0038ebc0,PTR_FUN_0038efdc)" identifier (argument_list "(puVar2,PTR_PTR_0038ebc0,PTR_FUN_0038efdc)" ( identifier , identifier , 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) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) })) })) (return_statement return ;) })))
(function_definition "void FUN_001e8cd0(undefined4 *param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  if (PTR___pthread_key_create_0038ef24 != (undefined *)0x0) {\n    iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1);\n    if (iVar1 != 0) {\n      puVar2 = (undefined4 *)FUN_001e6bf0(4);\n      *puVar2 = &PTR_FUN_0038bfb0;\n                    \n                    \n      FUN_001e5640(puVar2,PTR_PTR_0038ebc0,PTR_FUN_0038efdc);\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001e8cd0(undefined4 *param_1)" (identifier "FUN_001e8cd0") (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  undefined4 *puVar2;\n  \n  if (PTR___pthread_key_create_0038ef24 != (undefined *)0x0) {\n    iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1);\n    if (iVar1 != 0) {\n      puVar2 = (undefined4 *)FUN_001e6bf0(4);\n      *puVar2 = &PTR_FUN_0038bfb0;\n                    \n                    \n      FUN_001e5640(puVar2,PTR_PTR_0038ebc0,PTR_FUN_0038efdc);\n    }\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (if_statement "if (PTR___pthread_key_create_0038ef24 != (undefined *)0x0) {\n    iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1);\n    if (iVar1 != 0) {\n      puVar2 = (undefined4 *)FUN_001e6bf0(4);\n      *puVar2 = &PTR_FUN_0038bfb0;\n                    \n                    \n      FUN_001e5640(puVar2,PTR_PTR_0038ebc0,PTR_FUN_0038efdc);\n    }\n  }" (if "if") (parenthesized_expression "(PTR___pthread_key_create_0038ef24 != (undefined *)0x0)" (( "(") (binary_expression "PTR___pthread_key_create_0038ef24 != (undefined *)0x0" (identifier "PTR___pthread_key_create_0038ef24") (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1);\n    if (iVar1 != 0) {\n      puVar2 = (undefined4 *)FUN_001e6bf0(4);\n      *puVar2 = &PTR_FUN_0038bfb0;\n                    \n                    \n      FUN_001e5640(puVar2,PTR_PTR_0038ebc0,PTR_FUN_0038efdc);\n    }\n  }" ({ "{") (expression_statement "iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1);" (assignment_expression "iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1)" (identifier "iVar1") (= "=") (call_expression "pthread_mutex_unlock((pthread_mutex_t *)*param_1)" (identifier "pthread_mutex_unlock") (argument_list "((pthread_mutex_t *)*param_1)" (( "(") (cast_expression "(pthread_mutex_t *)*param_1" (( "(") (type_descriptor "pthread_mutex_t *" (type_identifier "pthread_mutex_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      puVar2 = (undefined4 *)FUN_001e6bf0(4);\n      *puVar2 = &PTR_FUN_0038bfb0;\n                    \n                    \n      FUN_001e5640(puVar2,PTR_PTR_0038ebc0,PTR_FUN_0038efdc);\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      puVar2 = (undefined4 *)FUN_001e6bf0(4);\n      *puVar2 = &PTR_FUN_0038bfb0;\n                    \n                    \n      FUN_001e5640(puVar2,PTR_PTR_0038ebc0,PTR_FUN_0038efdc);\n    }" ({ "{") (expression_statement "puVar2 = (undefined4 *)FUN_001e6bf0(4);" (assignment_expression "puVar2 = (undefined4 *)FUN_001e6bf0(4)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)FUN_001e6bf0(4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001e6bf0(4)" (identifier "FUN_001e6bf0") (argument_list "(4)" (( "(") (number_literal "4") () ")"))))) (; ";")) (expression_statement "*puVar2 = &PTR_FUN_0038bfb0;" (assignment_expression "*puVar2 = &PTR_FUN_0038bfb0" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (pointer_expression "&PTR_FUN_0038bfb0" (& "&") (identifier "PTR_FUN_0038bfb0"))) (; ";")) (expression_statement "FUN_001e5640(puVar2,PTR_PTR_0038ebc0,PTR_FUN_0038efdc);" (call_expression "FUN_001e5640(puVar2,PTR_PTR_0038ebc0,PTR_FUN_0038efdc)" (identifier "FUN_001e5640") (argument_list "(puVar2,PTR_PTR_0038ebc0,PTR_FUN_0038efdc)" (( "(") (identifier "puVar2") (, ",") (identifier "PTR_PTR_0038ebc0") (, ",") (identifier "PTR_FUN_0038efdc") () ")"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

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

{
  int var_3;
  type_1 *puVar2;
  
  if (var_1 != (type_2 *)0x0) {
    var_3 = var_2(*(type_3 **)this);
    if (var_3 != 0) {
      puVar2 = (type_1 *)var_4(4);
      *puVar2 = &PTR____concurrence_unlock_error_0038bfb0;
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 001e8d2c to 001e8d30 has its CatchHandler @ 001e8d31 */
      var_5(puVar2,PTR_PTR_0038ebc0,PTR____concurrence_unlock_error_0038efdc);
    }
  }
  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: (type_identifier) declarator: (pointer_declarator declarator: (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 (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))))))) (return_statement))))

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

void MASKED(undefined4 *param_1)

{
  int iVar1;
  undefined4 *puVar2;
  
  if (PTR___pthread_key_create_0038ef24 != (undefined *)0x0) {
    iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1);
    if (iVar1 != 0) {
      puVar2 = (undefined4 *)FUN_001e6bf0(4);
      *puVar2 = &PTR_FUN_0038bfb0;
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 001e8d2c to 001e8d30 has its CatchHandler @ 001e8d31 */
      FUN_001e5640(puVar2,PTR_PTR_0038ebc0,PTR_FUN_0038efdc);
    }
  }
  return;
}

