Function at 0x46b9d8
Capabilities:
Check mutex on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x6c
mov eax, dword [0x4b6078]
mov edi, dword [esp + 0x80]
xor eax, esp
mov dword [esp + 0x68], eax
push edi
call fcn.0047f0f0
add esp, 4
lea ecx, [eax + 0x10]
xor ebp, ebp
sar ecx, 0x1f
shr ecx, 0x1c
lea ebx, [eax + ecx + 0x10]
and ebx, 0xfffffff0
push ebp
push 1
push ebx
call fcn.00410b8c
add esp, 0xc
mov esi, eax
push ebx
push ebp
push eax
call fcn.00472bb0
add esp, 0xc
push edi
push esi
call fcn.0047edc0
add esp, 8
call fcn.00456f4c
test al, al
je 0x46ba42
push 1
push ebx
push esi
call dword [0x4b6bb8]
push 0x495618
call dword [0x495618]
add esp, 4
mov edi, eax
push ebx
push esi
push dword [eax + 4]
call fcn.004107d9
add esp, 0xc
mov eax, dword [edi]
lea ebp, [esp + 0x48]
push ebp
push edi
call dword [eax + 8]
add esp, 8
push esi
call fcn.00410c0e
add esp, 4
mov esi, 0xffffffe0
lea edi, [esp + 4]
movzx eax, byte [esp + esi + 0x68]
push eax
push 0x49e3df
push edi
call fcn.00403cd8
add esp, 0xc
add edi, 2
inc esi
jne 0x46ba7f
lea edi, [esp + 4]
push edi
call fcn.004560ea
add esp, 4
test eax, eax
je 0x46bc80
mov ecx, str.Localputty_connshare_mutex
mov edx, eax
mov esi, eax
call fcn.0046bda0
mov ebx, eax
mov eax, esp
push dword [esp + 0x94]
push eax
push ebp
push 0x1f0001
call fcn.0046b20d
add esp, 0x10
test al, al
je 0x46bca8
mov eax, dword [esp + 0x48]
mov dword [esp + 4], 0xc
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0xc], eax
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
test eax, eax
je 0x46bcbc
mov edi, eax
push ebx
call fcn.00410c0e
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.DLL_LocalFree]
push dword [esp + 0x48]
call ebx
push dword [esp]
call ebx
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov ecx, str..pipeputty_connshare
mov edx, esi
call fcn.0046bda0
mov ebx, eax
mov eax, dword [esp + 0x94]
cmp byte [esp + 0xa4], 0
mov dword [eax], 0
je 0x46bbb6
push dword [esp + 0x88]
push ebx
call fcn.0046a1bc
add esp, 8
mov ebp, eax
mov eax, dword [eax]
push ebp
call dword [eax + 0x18]
add esp, 4
test eax, eax
je 0x46bd1d
mov eax, dword [esp + 0x98]
push dword [eax]
call fcn.00410c0e
add esp, 4
mov eax, dword [ebp]
push ebp
call dword [eax + 0x18]
add esp, 4
push eax
push ebx
push 0x4a0c4f
call fcn.004560a0
add esp, 0xc
mov ecx, dword [esp + 0x98]
mov dword [ecx], eax
mov eax, dword [ebp]
push ebp
call dword [eax + 4]
add esp, 4
mov eax, dword [esp + 0x94]
cmp byte [esp + 0xa0], 0
je 0x46bc27
push dword [esp + 0x8c]
push ebx
call fcn.0046a368
add esp, 8
mov ebp, eax
mov eax, dword [eax]
push ebp
call dword [eax + 0x18]
add esp, 4
test eax, eax
je 0x46bd5c
mov eax, dword [esp + 0x9c]
push dword [eax]
call fcn.00410c0e
add esp, 4
mov eax, dword [ebp]
push ebp
call dword [eax + 0x18]
add esp, 4
push eax
push ebx
push 0x4a0c4f
call fcn.004560a0
add esp, 0xc
mov ecx, dword [esp + 0x9c]
mov dword [ecx], eax
mov eax, dword [ebp]
push ebp
call dword [eax + 4]
add esp, 4
mov eax, dword [esp + 0x94]
cmp dword [eax], 0
jne 0x46bc5b
mov eax, dword [esp + 0x98]
cmp dword [eax], 0
jne 0x46bc5b
mov eax, dword [esp + 0x9c]
cmp dword [eax], 0
jne 0x46bc5b
push 0xdc
push str..._windows_winshare.c
push str.logtext__ds_err__us_err
call fcn.0047bdbf
add esp, 0xc
push ebx
call fcn.00410c0e
add esp, 4
push esi
call fcn.00410c0e
add esp, 4
push edi
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x46bd06
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.00467767
add esp, 4
push eax
push str.Unable_to_call_CryptProtectMemory:__s
call fcn.004560a0
add esp, 8
mov ecx, dword [esp + 0x94]
mov dword [ecx], eax
jmp 0x46bd06
push ebx
call fcn.00410c0e
add esp, 4
push esi
call fcn.00410c0e
add esp, 4
jmp 0x46bd06
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.00467767
add esp, 4
push eax
push ebx
push str.CreateMutex___s___failed:__s
call fcn.004560a0
add esp, 0xc
mov ecx, dword [esp + 0x94]
mov dword [ecx], eax
push ebx
call fcn.00410c0e
add esp, 4
push esi
call fcn.00410c0e
add esp, 4
mov esi, dword [sym.imp.KERNEL32.DLL_LocalFree]
push dword [esp + 0x48]
call esi
push dword [esp]
call esi
xor esi, esi
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0046fa9a
mov eax, esi
add esp, 0x6c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x94]
push dword [eax]
call fcn.00410c0e
add esp, 4
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x90]
mov dword [eax], ebx
mov dword [ecx], ebp
push esi
call fcn.00410c0e
add esp, 4
push edi
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor esi, esi
inc esi
jmp 0x46bd08
mov eax, dword [esp + 0x94]
push dword [eax]
call fcn.00410c0e
add esp, 4
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x90]
mov dword [eax], ebx
mov dword [ecx], ebp
push esi
call fcn.00410c0e
add esp, 4
push edi
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, 2
jmp 0x46bd08