Function at 0x445600
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
push dword [ebp + 8]
call fcn.004454d0
mov edi, eax
add esp, 4
test edi, edi
jne 0x44563e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043fb90
push eax
push str.Unable_to_call_CryptProtectMemory:__s
call fcn.004059f0
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.Localputty_connshare_mutex
call fcn.004454a0
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.00444ad0
add esp, 0x18
push ebx
test eax, eax
jne 0x445685
call fcn.00406080
push edi
call fcn.00406080
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 0x4456f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043fb90
mov ebx, dword [ebp - 0xc]
push eax
push ebx
push str.CreateMutex___s___failed:__s
call fcn.004059f0
push ebx
mov dword [esi], eax
call fcn.00406080
push edi
call fcn.00406080
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.00406080
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..pipeputty_connshare
call fcn.004454a0
mov esi, dword [ebp + 0x1c]
add esp, 8
cmp dword [ebp + 0x2c], 0
mov dword [ebp - 4], eax
mov dword [esi], 0
je 0x4457c4
push dword [ebp + 0x10]
push eax
call fcn.00442750
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 0x44578a
push dword [esi]
call fcn.00406080
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.00406080
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.00406080
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.004059f0
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 0x445854
push dword [ebp + 0x14]
push eax
call fcn.00442b30
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 0x445820
push dword [esi]
call fcn.00406080
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.00406080
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.00406080
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.004059f0
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.00406080
push edi
call fcn.00406080
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