Function at 0x46af60
Capabilities:
Check mutex on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x6c
mov eax, dword [0x4b6074]
mov edi, dword [esp + 0x80]
xor eax, esp
mov dword [esp + 0x68], eax
push edi
call fcn.0047e5a0
add esp, 4
lea ecx, [eax + 0x10]
sar ecx, 0x1f
shr ecx, 0x1c
lea ebx, [eax + ecx + 0x10]
and ebx, 0xfffffff0
push 1
push ebx
call fcn.00410d70
add esp, 8
mov esi, eax
push ebx
push 0
push eax
call fcn.00472060
add esp, 0xc
push edi
push esi
call fcn.0047e270
add esp, 8
call fcn.00456478
test al, al
je 0x46afc8
push 1
push ebx
push esi
call dword [0x4b6bb8]
push 0x494618
call dword [0x494618]
add esp, 4
mov edi, eax
push ebx
push esi
push dword [eax + 4]
call fcn.004109bd
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.00410de6
add esp, 4
mov esi, 0xffffffe0
lea edi, [esp + 4]
movzx eax, byte [esp + esi + 0x68]
push eax
push 0x49d4e5
push edi
call fcn.00403c98
add esp, 0xc
add edi, 2
inc esi
jne 0x46b005
lea edi, [esp + 4]
push edi
call fcn.0045562a
add esp, 4
test eax, eax
je 0x46b206
mov ecx, str.Localputty_connshare_mutex
mov edx, eax
mov esi, eax
call fcn.0046b326
mov ebx, eax
mov eax, esp
push dword [esp + 0x94]
push eax
push ebp
push 0x1f0001
call fcn.0046a797
add esp, 0x10
test al, al
je 0x46b22e
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 0x46b242
mov edi, eax
push ebx
call fcn.00410de6
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.0046b326
mov ebx, eax
mov eax, dword [esp + 0x94]
cmp byte [esp + 0xa4], 0
mov dword [eax], 0
je 0x46b13c
push dword [esp + 0x88]
push ebx
call fcn.00469750
add esp, 8
mov ebp, eax
mov eax, dword [eax]
push ebp
call dword [eax + 0x1c]
add esp, 4
test eax, eax
je 0x46b2a3
mov eax, dword [esp + 0x98]
push dword [eax]
call fcn.00410de6
add esp, 4
mov eax, dword [ebp]
push ebp
call dword [eax + 0x1c]
add esp, 4
push eax
push ebx
push 0x49ff50
call fcn.004555e0
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 0x46b1ad
push dword [esp + 0x8c]
push ebx
call fcn.004698fc
add esp, 8
mov ebp, eax
mov eax, dword [eax]
push ebp
call dword [eax + 0x1c]
add esp, 4
test eax, eax
je 0x46b2e2
mov eax, dword [esp + 0x9c]
push dword [eax]
call fcn.00410de6
add esp, 4
mov eax, dword [ebp]
push ebp
call dword [eax + 0x1c]
add esp, 4
push eax
push ebx
push 0x49ff50
call fcn.004555e0
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 0x46b1e1
mov eax, dword [esp + 0x98]
cmp dword [eax], 0
jne 0x46b1e1
mov eax, dword [esp + 0x9c]
cmp dword [eax], 0
jne 0x46b1e1
push 0xdc
push str..._windows_winshare.c
push str.logtext__ds_err__us_err
call fcn.0047b26f
add esp, 0xc
push ebx
call fcn.00410de6
add esp, 4
push esi
call fcn.00410de6
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x46b28c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00466ca6
add esp, 4
push eax
push str.Unable_to_call_CryptProtectMemory:__s
call fcn.004555e0
add esp, 8
mov ecx, dword [esp + 0x94]
mov dword [ecx], eax
jmp 0x46b28c
push ebx
call fcn.00410de6
add esp, 4
push esi
call fcn.00410de6
add esp, 4
jmp 0x46b28c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00466ca6
add esp, 4
push eax
push ebx
push str.CreateMutex___s___failed:__s
call fcn.004555e0
add esp, 0xc
mov ecx, dword [esp + 0x94]
mov dword [ecx], eax
push ebx
call fcn.00410de6
add esp, 4
push esi
call fcn.00410de6
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.0046ef41
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.00410de6
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.00410de6
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 0x46b28e
mov eax, dword [esp + 0x94]
push dword [eax]
call fcn.00410de6
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.00410de6
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 0x46b28e