Function at 0x471674
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.0045bd00
add esp, 4
test eax, eax
je 0x471845
mov esi, eax
mov ecx, str.Localputty_connshare_mutex
mov edx, eax
call fcn.00471948
mov ebx, eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push ebp
push eax
push ecx
push 0x1f0001
call fcn.00470c93
add esp, 0x10
test al, al
je 0x471867
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 0x47187b
mov edi, eax
push ebx
call fcn.00411739
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.00471948
mov ebx, eax
mov dword [ebp], 0
cmp byte [esp + 0x50], 0
je 0x471792
push dword [esp + 0x34]
push ebx
call fcn.0046fb3e
add esp, 8
mov ebp, eax
mov eax, dword [eax]
push ebp
call dword [eax + 0x18]
add esp, 4
test eax, eax
je 0x4718d7
mov eax, dword [esp + 0x44]
push dword [eax]
call fcn.00411739
add esp, 4
mov eax, dword [ebp]
push ebp
call dword [eax + 0x18]
add esp, 4
push eax
push ebx
push 0x4aa1f7
call fcn.0045ad89
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 0x4717f4
push dword [esp + 0x38]
push ebx
call fcn.0046fba0
add esp, 8
mov ebp, eax
mov eax, dword [eax]
push ebp
call dword [eax + 0x18]
add esp, 4
test eax, eax
je 0x47190d
mov eax, dword [esp + 0x48]
push dword [eax]
call fcn.00411739
add esp, 4
mov eax, dword [ebp]
push ebp
call dword [eax + 0x18]
add esp, 4
push eax
push ebx
push 0x4aa1f7
call fcn.0045ad89
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 0x471823
mov eax, dword [esp + 0x44]
cmp dword [eax], 0
jne 0x471823
mov eax, dword [esp + 0x48]
cmp dword [eax], 0
jne 0x471823
push 0x86
push str..._windows_winshare.c
push str.logtext__ds_err__us_err
call fcn.0048233d
add esp, 0xc
push ebx
call fcn.00411739
add esp, 4
push esi
call fcn.00411739
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4718c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046cf7c
add esp, 4
push eax
push str.Unable_to_call_CryptProtectMemory:__s
call fcn.0045ad89
add esp, 8
mov dword [ebp], eax
jmp 0x4718c0
push ebx
call fcn.00411739
add esp, 4
push esi
call fcn.00411739
add esp, 4
jmp 0x4718c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046cf7c
add esp, 4
push eax
push ebx
push str.CreateMutex___s___failed:__s
call fcn.0045ad89
add esp, 0xc
mov dword [ebp], eax
push ebx
call fcn.00411739
add esp, 4
push esi
call fcn.00411739
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.00475893
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.00411739
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.00411739
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 0x4718c2
mov eax, dword [esp + 0x40]
push dword [eax]
call fcn.00411739
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.00411739
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 0x4718c2