Function at 0x43adeb
Capabilities:
Check mutex on windows

Disassembly:
push 0xc8
mov eax, 0x4de79e
call fcn.004a941b
mov edi, ecx
mov dword [ebp - 0xc4], edi
mov ecx, dword [ebp + 8]
mov al, byte [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x60]
mov byte [edi + 0x20], al
call fcn.004014c0
lea eax, [ebp - 0x78]
xor ebx, ebx
push eax
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.0043a03b
mov esi, eax
push 0x4eb944
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.00404dc0
push 0xffffffffffffffff
push ebx
push esi
mov ecx, eax
call fcn.00402a00
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], bl
call fcn.00403170
cmp dword [ebp - 0x4c], 8
push dword [ebp + 0x10]
lea eax, [ebp - 0x60]
cmovae eax, dword [ebp - 0x60]
add edi, 4
push eax
mov ecx, edi
mov dword [ebp - 0xc8], edi
call fcn.0044310c
cmp dword [edi], ebx
jne 0x43aedb
mov eax, dword [0x513098]
and eax, 3
cmp al, 3
jne 0x43b221
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 7
call fcn.004031c0
mov byte [ebp - 0x14], bl
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unexpected_state._Error_code:
lea ecx, [ebp - 0x2c]
call fcn.00404c40
mov ecx, eax
call fcn.004059d0
lea eax, [ebp - 0x2c]
push eax
push eax
push 0x15e
push str.Utils::CEventQueue::CSubscription::Activate
push 3
call fcn.00428590
add esp, 0x14
lea ecx, [ebp - 0x2c]
call fcn.00403170
jmp 0x43b221
push str._Active
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0x90]
call fcn.0041be50
pop ecx
lea ecx, [ebp - 0xd4]
call fcn.0043c13c
mov byte [ebp - 4], 4
cmp dword [ebp - 0x7c], 8
mov edx, dword [eax]
lea ecx, [ebp - 0x90]
cmovae ecx, dword [ebp - 0x90]
mov eax, dword [edx]
push 0x100001
push ecx
lea ecx, [ebp - 0xc0]
push ecx
mov ecx, edx
call dword [eax + 0xc]
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 6
call fcn.00410940
mov edx, dword [ebp - 0xc4]
lea ecx, [ebp - 0xc0]
call fcn.004422a0
cmp byte [edx + 0x20], 0
push eax
push ebx
je 0x43af70
xor esi, esi
cmp dword [ebp - 0x98], esi
lea ecx, [ebp - 0x9c]
cmove ecx, esi
lea esi, [edx + 0x24]
push ecx
mov dword [ebp - 0xcc], esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
jmp 0x43af84
lea esi, [edx + 0x24]
push 0x100001
mov dword [ebp - 0xcc], esi
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [esi], eax
test eax, eax
jne 0x43b04c
mov eax, dword [0x513098]
and eax, 3
cmp al, 3
jne 0x43b038
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 7
call fcn.004031c0
mov byte [ebp - 0x14], bl
mov ecx, dword [ebp - 0xc4]
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 4], 7
call fcn.0043a03b
mov esi, eax
push str.Cant_activate_subscription:
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.00404c40
push 0xffffffffffffffff
mov edi, eax
push ebx
push esi
mov ecx, edi
call fcn.00402a00
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.__Error_code:
mov ecx, edi
call fcn.00404c40
mov ecx, eax
call fcn.004059d0
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 7
call fcn.00403170
lea eax, [ebp - 0x2c]
push eax
push eax
push 0x171
push str.Utils::CEventQueue::CSubscription::Activate
push 3
call fcn.00428590
add esp, 0x14
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.00403170
mov edi, dword [ebp - 0xc8]
cmp dword [edi], ebx
je 0x43b200
mov ecx, edi
call fcn.00443c48
jmp 0x43b200
push ebx
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov dword [ebp - 0xc8], eax
test eax, eax
je 0x43b1e9
cmp eax, 0x80
je 0x43b140
cmp eax, 0x102
je 0x43b124
mov eax, dword [0x513098]
and eax, 3
cmp al, 3
jne 0x43b134
push ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], 7
call fcn.004031c0
mov byte [ebp - 0x30], bl
mov byte [ebp - 4], 0xb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x78]
call fcn.00428b2d
mov esi, eax
push str.__LastError:
push dword [ebp - 0xc8]
lea ecx, [ebp - 0x48]
push str.Unexpected_state._Result:
mov byte [ebp - 4], 0xc
call fcn.00404c40
mov ecx, eax
call fcn.004059d0
mov ecx, eax
call fcn.00404c40
push 0xffffffffffffffff
push ebx
push esi
mov ecx, eax
call fcn.00402a00
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xb
call fcn.00403170
lea eax, [ebp - 0x48]
push eax
push eax
push 0x19c
push str.Utils::CEventQueue::CSubscription::Activate
push 3
call fcn.00428590
add esp, 0x14
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
call fcn.00403170
mov esi, dword [ebp - 0xcc]
jmp 0x43b134
mov eax, dword [ebp - 0xc4]
cmp byte [eax + 0x20], 0
je 0x43b1fd
mov ecx, esi
call fcn.00406580
jmp 0x43b038
mov eax, dword [ebp - 0xc4]
cmp byte [eax + 0x20], 0
jne 0x43b1fd
mov ecx, esi
call fcn.00406580
cmp dword [edi], 0
je 0x43b163
mov ecx, edi
call fcn.00443c48
mov eax, dword [0x513098]
and eax, 3
cmp al, 3
jne 0x43b200
push ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], 7
call fcn.004031c0
mov byte [ebp - 0x30], bl
mov ecx, dword [ebp - 0xc4]
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 9
call fcn.0043a03b
mov esi, eax
push str.Subscriber_thread_terminated_before_the_mutex_was_released._Subscriber_unique_id:
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xa
call fcn.00404c40
push 0xffffffffffffffff
push ebx
push esi
mov ecx, eax
call fcn.00402a00
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00403170
lea eax, [ebp - 0x48]
push eax
push eax
push 0x18c
push str.Utils::CEventQueue::CSubscription::Activate
push 3
call fcn.00428590
add esp, 0x14
lea ecx, [ebp - 0x48]
call fcn.00403170
jmp 0x43b200
mov eax, dword [ebp - 0xc4]
cmp byte [eax + 0x20], 0
jne 0x43b1fd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0xa8]
call fcn.004309b5
lea ecx, [ebp - 0xc0]
call fcn.00403170
lea ecx, [ebp - 0x90]
call fcn.00403170
lea ecx, [ebp - 0x60]
call fcn.00403170
mov al, bl
call fcn.004a93ca
ret 0xc