Function at 0x471338
Capabilities:
Check mutex on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x4c1074]
xor ecx, esp
mov dword [esp + 0x14], ecx
push eax
call fcn.0045bba4
add esp, 4
test eax, eax
je 0x471509
mov esi, eax
mov ecx, str.Localputty_connshare_mutex
mov edx, eax
call fcn.0047160c
mov ebx, eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push ebp
push eax
push ecx
push 0x1f0001
call fcn.00470957
add esp, 0x10
test al, al
je 0x47152b
mov eax, esp
mov dword [eax], 0xc
mov ecx, dword [esp + 0x10]
mov dword [eax + 4], ecx
xor ecx, ecx
mov dword [eax + 8], ecx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x47153f
mov edi, eax
push ebx
call fcn.00411645
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [esp + 0x10]
call ebx
push dword [esp + 0xc]
call ebx
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, str..pipeputty_connshare
mov edx, esi
call fcn.0047160c
mov ebx, eax
mov dword [ebp], 0
cmp byte [esp + 0x50], 0
je 0x471456
push dword [esp + 0x34]
push ebx
call fcn.0046f80e
add esp, 8
mov ebp, eax
mov eax, dword [eax]
push ebp
call dword [eax + 0x18]
add esp, 4
test eax, eax
je 0x47159b
mov eax, dword [esp + 0x44]
push dword [eax]
call fcn.00411645
add esp, 4
mov eax, dword [ebp]
push ebp
call dword [eax + 0x18]
add esp, 4
push eax
push ebx
push 0x4aa107
call fcn.0045abe5
add esp, 0xc
mov ecx, dword [esp + 0x44]
mov dword [ecx], eax
mov eax, dword [ebp]
push ebp
call dword [eax + 4]
add esp, 4
mov ebp, dword [esp + 0x40]
cmp byte [esp + 0x4c], 0
je 0x4714b8
push dword [esp + 0x38]
push ebx
call fcn.0046f870
add esp, 8
mov ebp, eax
mov eax, dword [eax]
push ebp
call dword [eax + 0x18]
add esp, 4
test eax, eax
je 0x4715d1
mov eax, dword [esp + 0x48]
push dword [eax]
call fcn.00411645
add esp, 4
mov eax, dword [ebp]
push ebp
call dword [eax + 0x18]
add esp, 4
push eax
push ebx
push 0x4aa107
call fcn.0045abe5
add esp, 0xc
mov ecx, dword [esp + 0x48]
mov dword [ecx], eax
mov eax, dword [ebp]
push ebp
call dword [eax + 4]
add esp, 4
mov ebp, dword [esp + 0x40]
cmp dword [ebp], 0
jne 0x4714e7
mov eax, dword [esp + 0x44]
cmp dword [eax], 0
jne 0x4714e7
mov eax, dword [esp + 0x48]
cmp dword [eax], 0
jne 0x4714e7
push 0x86
push str..._windows_winshare.c
push str.logtext__ds_err__us_err
call fcn.00481fcd
add esp, 0xc
push ebx
call fcn.00411645
add esp, 4
push esi
call fcn.00411645
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x471584
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046cc40
add esp, 4
push eax
push str.Unable_to_call_CryptProtectMemory:__s
call fcn.0045abe5
add esp, 8
mov dword [ebp], eax
jmp 0x471584
push ebx
call fcn.00411645
add esp, 4
push esi
call fcn.00411645
add esp, 4
jmp 0x471584
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046cc40
add esp, 4
push eax
push ebx
push str.CreateMutex___s___failed:__s
call fcn.0045abe5
add esp, 0xc
mov dword [ebp], eax
push ebx
call fcn.00411645
add esp, 4
push esi
call fcn.00411645
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [esp + 0x10]
call esi
push dword [esp + 0xc]
call esi
xor esi, esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00475526
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x40]
push dword [eax]
call fcn.00411645
add esp, 4
mov eax, dword [esp + 0x40]
mov dword [eax], ebx
mov eax, dword [esp + 0x3c]
mov dword [eax], ebp
push esi
call fcn.00411645
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 0x471586
mov eax, dword [esp + 0x40]
push dword [eax]
call fcn.00411645
add esp, 4
mov eax, dword [esp + 0x40]
mov dword [eax], ebx
mov eax, dword [esp + 0x3c]
mov dword [eax], ebp
push esi
call fcn.00411645
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 0x471586