Function at 0x449b10
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
push dword [ebp + 8]
call fcn.004499e0
mov edi, eax
add esp, 4
test edi, edi
jne 0x449b4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004463e0
push eax
push str.Unable_to_call_CryptProtectMemory:__s
call fcn.00405b50
mov ecx, dword [ebp + 0x1c]
add esp, 0xc
mov dword [ecx], eax
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
push str.Localqwert_connshare_mutex
call fcn.004499b0
mov esi, dword [ebp + 0x1c]
mov ebx, eax
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 8]
push eax
push 0x1f0001
call fcn.00449190
add esp, 0x18
push ebx
test eax, eax
jne 0x449b95
call fcn.00406130
push edi
call fcn.00406130
add esp, 8
xor eax, eax
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push 0
push eax
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
test ebx, ebx
jne 0x449c00
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004463e0
mov ebx, dword [ebp - 0xc]
push eax
push ebx
push str.CreateMutex___s___failed:__s
call fcn.00405b50
push ebx
mov dword [esi], eax
call fcn.00406130
push edi
call fcn.00406130
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
add esp, 0x18
push dword [ebp - 8]
call esi
push dword [ebp - 0x10]
call esi
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xc]
call fcn.00406130
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
add esp, 4
push dword [ebp - 8]
call esi
push dword [ebp - 0x10]
call esi
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push str..pipeqwert_connshare
call fcn.004499b0
mov esi, dword [ebp + 0x1c]
add esp, 8
cmp dword [ebp + 0x2c], 0
mov dword [ebp - 4], eax
mov dword [esi], 0
je 0x449cd4
push dword [ebp + 0x10]
push eax
call fcn.004482d0
push eax
mov dword [ebp - 0xc], eax
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x1c]
call ecx
add esp, 0xc
test eax, eax
jne 0x449c9a
push dword [esi]
call fcn.00406130
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [esi], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [eax], ecx
call fcn.00406130
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x20]
push dword [esi]
call fcn.00406130
mov ecx, dword [ebp - 0xc]
push ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
push eax
mov eax, dword [ebp - 4]
push eax
push str._s:__s
call fcn.00405b50
mov ecx, dword [ebp - 0xc]
mov dword [esi], eax
push ecx
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov esi, dword [ebp + 0x1c]
add esp, 0x18
mov eax, dword [ebp - 4]
cmp dword [ebp + 0x28], 0
je 0x449d64
push dword [ebp + 0x14]
push eax
call fcn.004486b0
push eax
mov dword [ebp - 0xc], eax
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x1c]
call ecx
add esp, 0xc
test eax, eax
jne 0x449d30
push dword [esi]
call fcn.00406130
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [esi], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [eax], ecx
call fcn.00406130
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov eax, 2
pop edi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x24]
push dword [esi]
call fcn.00406130
mov ecx, dword [ebp - 0xc]
push ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
push eax
mov eax, dword [ebp - 4]
push eax
push str._s:__s
call fcn.00405b50
mov ecx, dword [ebp - 0xc]
mov dword [esi], eax
push ecx
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
add esp, 0x18
push dword [ebp - 4]
call fcn.00406130
push edi
call fcn.00406130
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret