Function at 0x46b0b4
Capabilities:
Check mutex on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x6c
mov eax, dword [0x4b507c]
mov ebx, dword [esp + 0x80]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
call fcn.0047e720
add esp, 4
mov esi, eax
add eax, 0x10
add esi, 0x1f
test eax, eax
cmovns esi, eax
xor ebp, ebp
and esi, 0xfffffff0
push ebp
push 1
push esi
call fcn.00410b50
add esp, 0xc
mov edi, eax
push esi
push ebp
push eax
call fcn.004721e0
add esp, 0xc
push ebx
push edi
call fcn.0047e3f0
add esp, 8
call fcn.004567dc
test al, al
je 0x46b11e
push 1
push esi
push edi
call dword [0x4b5bb8]
push 0x4945e8
call dword [0x4945e8]
add esp, 4
mov ebx, eax
push esi
push edi
push dword [eax + 4]
call fcn.004107b3
add esp, 0xc
mov eax, dword [ebx]
lea ebp, [esp + 0x48]
push ebp
push ebx
call dword [eax + 8]
add esp, 8
push edi
call fcn.00410bcd
add esp, 4
mov esi, 0xffffffe0
lea edi, [esp + 4]
movzx eax, byte [esp + esi + 0x68]
push eax
push 0x49d3ef
push edi
call fcn.00403ccc
add esp, 0xc
add edi, 2
inc esi
jne 0x46b15b
lea edi, [esp + 4]
push edi
call fcn.00455915
add esp, 4
test eax, eax
je 0x46b35c
mov ecx, str.Localputty_connshare_mutex
mov edx, eax
mov esi, eax
call fcn.0046b47c
mov ebx, eax
mov eax, esp
push dword [esp + 0x94]
push eax
push ebp
push 0x1f0001
call fcn.0046a8f6
add esp, 0x10
test al, al
je 0x46b384
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 0x46b398
mov edi, eax
push ebx
call fcn.00410bcd
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.0046b47c
mov ebx, eax
mov eax, dword [esp + 0x94]
cmp byte [esp + 0xa4], 0
mov dword [eax], 0
je 0x46b292
push dword [esp + 0x88]
push ebx
call fcn.004698c8
add esp, 8
mov ebp, eax
mov eax, dword [eax]
push ebp
call dword [eax + 0x18]
add esp, 4
test eax, eax
je 0x46b3f9
mov eax, dword [esp + 0x98]
push dword [eax]
call fcn.00410bcd
add esp, 4
mov eax, dword [ebp]
push ebp
call dword [eax + 0x18]
add esp, 4
push eax
push ebx
push 0x49fcf8
call fcn.004558cb
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 0x46b303
push dword [esp + 0x8c]
push ebx
call fcn.00469a74
add esp, 8
mov ebp, eax
mov eax, dword [eax]
push ebp
call dword [eax + 0x18]
add esp, 4
test eax, eax
je 0x46b438
mov eax, dword [esp + 0x9c]
push dword [eax]
call fcn.00410bcd
add esp, 4
mov eax, dword [ebp]
push ebp
call dword [eax + 0x18]
add esp, 4
push eax
push ebx
push 0x49fcf8
call fcn.004558cb
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 0x46b337
mov eax, dword [esp + 0x98]
cmp dword [eax], 0
jne 0x46b337
mov eax, dword [esp + 0x9c]
cmp dword [eax], 0
jne 0x46b337
push 0xdc
push str..._windows_winshare.c
push str.logtext__ds_err__us_err
call fcn.0047b3ef
add esp, 0xc
push ebx
call fcn.00410bcd
add esp, 4
push esi
call fcn.00410bcd
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x46b3e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00466ec1
add esp, 4
push eax
push str.Unable_to_call_CryptProtectMemory:__s
call fcn.004558cb
add esp, 8
mov ecx, dword [esp + 0x94]
mov dword [ecx], eax
jmp 0x46b3e2
push ebx
call fcn.00410bcd
add esp, 4
push esi
call fcn.00410bcd
add esp, 4
jmp 0x46b3e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00466ec1
add esp, 4
push eax
push ebx
push str.CreateMutex___s___failed:__s
call fcn.004558cb
add esp, 0xc
mov ecx, dword [esp + 0x94]
mov dword [ecx], eax
push ebx
call fcn.00410bcd
add esp, 4
push esi
call fcn.00410bcd
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.0046f0c8
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.00410bcd
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.00410bcd
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 0x46b3e4
mov eax, dword [esp + 0x94]
push dword [eax]
call fcn.00410bcd
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.00410bcd
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 0x46b3e4