Function at 0x461200
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
push dword [ebp + 8]
call fcn.004610d0
mov edi, eax
add esp, 4
test edi, edi
jne 0x46123e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045cb30
push eax
push str.Unable_to_call_CryptProtectMemory:__s
call fcn.0040dda0
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.004610a0
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.004606d0
add esp, 0x18
push ebx
test eax, eax
jne 0x461285
call fcn.0040e430
push edi
call fcn.0040e430
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 0x4612f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045cb30
mov ebx, dword [ebp - 0xc]
push eax
push ebx
push str.CreateMutex___s___failed:__s
call fcn.0040dda0
push ebx
mov dword [esi], eax
call fcn.0040e430
push edi
call fcn.0040e430
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.0040e430
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.004610a0
mov esi, dword [ebp + 0x1c]
add esp, 8
cmp dword [ebp + 0x2c], 0
mov dword [ebp - 4], eax
mov dword [esi], 0
je 0x4613c4
push dword [ebp + 0x10]
push eax
call fcn.0045f6b0
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 0x46138a
push dword [esi]
call fcn.0040e430
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.0040e430
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.0040e430
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.0040dda0
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 0x461454
push dword [ebp + 0x14]
push eax
call fcn.0045fa90
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 0x461420
push dword [esi]
call fcn.0040e430
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.0040e430
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.0040e430
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.0040dda0
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.0040e430
push edi
call fcn.0040e430
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