Function at 0x4621f0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
push dword [ebp + 8]
call fcn.004620c0
mov edi, eax
add esp, 4
test edi, edi
jne 0x46222e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045dab0
push eax
push str.Unable_to_call_CryptProtectMemory:__s
call fcn.0040df30
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.00462090
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.004616c0
add esp, 0x18
push ebx
test eax, eax
jne 0x462275
call fcn.0040e5c0
push edi
call fcn.0040e5c0
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 0x4622e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045dab0
mov ebx, dword [ebp - 0xc]
push eax
push ebx
push str.CreateMutex___s___failed:__s
call fcn.0040df30
push ebx
mov dword [esi], eax
call fcn.0040e5c0
push edi
call fcn.0040e5c0
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.0040e5c0
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.00462090
mov esi, dword [ebp + 0x1c]
add esp, 8
cmp dword [ebp + 0x2c], 0
mov dword [ebp - 4], eax
mov dword [esi], 0
je 0x4623b4
push dword [ebp + 0x10]
push eax
call fcn.00460640
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 0x46237a
push dword [esi]
call fcn.0040e5c0
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.0040e5c0
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.0040e5c0
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.0040df30
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 0x462444
push dword [ebp + 0x14]
push eax
call fcn.00460a30
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 0x462410
push dword [esi]
call fcn.0040e5c0
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.0040e5c0
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.0040e5c0
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.0040df30
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.0040e5c0
push edi
call fcn.0040e5c0
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