Function at 0x441690
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
push dword [ebp + 8]
call fcn.00441560
mov edi, eax
add esp, 4
test edi, edi
jne 0x4416ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043ba40
push eax
push str.Unable_to_call_CryptProtectMemory:__s
call fcn.00404860
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.00441530
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.00440bd0
add esp, 0x18
push ebx
test eax, eax
jne 0x441715
call fcn.00404e40
push edi
call fcn.00404e40
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 0x441780
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043ba40
mov ebx, dword [ebp - 0xc]
push eax
push ebx
push str.CreateMutex___s___failed:__s
call fcn.00404860
push ebx
mov dword [esi], eax
call fcn.00404e40
push edi
call fcn.00404e40
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.00404e40
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.00441530
mov esi, dword [ebp + 0x1c]
add esp, 8
cmp dword [ebp + 0x2c], 0
mov dword [ebp - 4], eax
mov dword [esi], 0
je 0x441854
push dword [ebp + 0x10]
push eax
call fcn.0043e4c0
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 0x44181a
push dword [esi]
call fcn.00404e40
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.00404e40
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.00404e40
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.00404860
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 0x4418e4
push dword [ebp + 0x14]
push eax
call fcn.0043e8a0
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 0x4418b0
push dword [esi]
call fcn.00404e40
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.00404e40
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.00404e40
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.00404860
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.00404e40
push edi
call fcn.00404e40
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