Function at 0x585757
Capabilities:
Check mutex on windows

Disassembly:
push ebp
sub esp, 0x60
mov eax, 0x6b0811
call fcn.006426c4
sub esp, 0x254
lea eax, [ebp - 0x260]
push 0x79587c
push str.Local_s
push 0x104
push eax
call fcn.004651b2
add esp, 0x10
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.0047e83e
cmp dword [eax + 0x14], 0x10
jb 0x5857a1
mov eax, dword [eax]
push ebx
push esi
push edi
push eax
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
push ebx
push 1
lea ecx, [ebp + 0x18]
mov dword [0x7c1da4], eax
call fcn.0040f95f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x44], eax
cmp byte [ebp + 0x6c], bl
jne 0x585bfb
cmp dword [0x7c21a0], 1
je 0x585bfb
push ebx
push dword [0x7e4c80]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x6c4198
push 0x7127fc
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
mov dword [ebp + 0x5c], esi
call fcn.005a1f4e
mov byte [ebp + 0x63], bl
mov dword [ebp + 0x48], ebx
cmp byte [ebp + 0x78], bl
je 0x58584d
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
call fcn.004634ca
mov esi, eax
push esi
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
test esi, esi
je 0x58584a
test edi, edi
je 0x58584a
push 0x7530
push edi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [ebp + 0x5c]
mov byte [ebp + 0x6f], bl
mov dword [ebp + 0x30], 0x34
test ebx, ebx
jne 0x585874
push ebx
push 0x79587c
call dword [sym.imp.USER32.dll_FindWindowW]
mov ebx, eax
mov dword [ebp + 0x48], ebx
test ebx, ebx
je 0x585b38
and dword [ebp + 0x4c], 0
cmp byte [ebp + 0x7c], 0
jne 0x5858ea
lea eax, [ebp + 0x4c]
push eax
push 0xfa0
push 1
push 0
push 0x6abb23c
push 0x8096
push ebx
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x5858aa
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x5858ea
cmp dword [ebp + 0x4c], 0x6abb23c
jae 0x5858ea
xor edi, edi
mov dword [ebp + 0x10], 1
mov dword [ebp + 0x14], edi
call fcn.0049494b
push eax
call fcn.0049494b
push eax
lea eax, [ebp + 0x10]
push str.An_older_version_of__s_is_running._n_nPlease_shut_down__s_and_try_again.
push eax
call fcn.0058eef2
add esp, 0x10
push edi
push edi
push 0x8096
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 0x74]
mov ecx, dword [eax + 0x10]
cmp ecx, 0x28
jne 0x58592a
cmp dword [eax + 0x14], 8
mov dword [ebp + 4], 0xa71ca770
jb 0x585904
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
lea eax, [ecx*2 + 2]
mov dword [ebp + 8], eax
lea eax, [ebp]
push eax
push 0x1388
push 1
lea eax, [ebp + 4]
push eax
push esi
push 0x4a
push ebx
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
and dword [ebp + 0x3c], 0
and dword [ebp + 0x38], 0
and dword [ebp + 0x40], 0
cmp byte [ebp + 0x63], 0
mov dword [ebp + 0x34], 0xdeadf00e
mov byte [ebp + 0x6f], 1
jne 0x585a21
mov ecx, dword [ebp + 0x70]
xor edi, edi
push 0x18
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
cdq
pop ecx
idiv ecx
test eax, eax
je 0x5859c0
mov ebx, dword [ebp + 0x70]
xor esi, esi
push 0x6d64c4
lea ecx, [ebp + 0x18]
call fcn.00429d77
mov eax, dword [ebx]
xor ecx, ecx
push ecx
push ecx
mov dword [ebp - 4], ecx
add eax, esi
lea ecx, [ebp + 0x18]
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.005a186d
push eax
mov byte [ebp - 4], 1
call fcn.005a1a6d
lea ecx, [ebp - 0x58]
call fcn.0047f08c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
push 0
push 1
call fcn.004285f6
mov eax, dword [ebx + 4]
inc edi
sub eax, dword [ebx]
push 0x18
pop ecx
cdq
add esi, ecx
idiv ecx
cmp edi, eax
jb 0x585964
mov ebx, dword [ebp + 0x48]
xor esi, esi
cmp dword [0x7c2080], esi
jbe 0x585a1d
push esi
mov ecx, 0x7c2070
call fcn.00424466
lea ecx, [ebp + 0x18]
push dword [eax]
call fcn.00429d77
lea eax, [ebp + 0x18]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x58]
call fcn.005a18b8
push eax
mov byte [ebp - 4], 3
call fcn.005a1a6d
lea ecx, [ebp - 0x58]
call fcn.0047f08c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
push 0
push 1
call fcn.004285f6
inc esi
cmp esi, dword [0x7c2080]
jb 0x5859ca
mov byte [ebp + 0x63], 1
and dword [ebp + 0x50], 0
and dword [ebp + 0x54], 0
and dword [ebp + 0x58], 0
lea eax, [ebp + 0x50]
mov dword [ebp - 4], 4
push eax
call fcn.005a1fae
mov esi, dword [ebp + 0x54]
xor edx, edx
mov ecx, dword [ebp + 0x50]
mov eax, esi
sub eax, ecx
mov dword [ebp + 0x78], edx
push 0x34
cdq
pop edi
idiv edi
test eax, eax
je 0x585c11
xor edi, edi
lea eax, [ecx + edi]
cmp byte [eax + 0x31], 0
jne 0x585afe
mov esi, dword [0x7c1e68]
test esi, esi
jne 0x585a9c
cmp dword [eax + 0x10], esi
jne 0x585a9c
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x585a83
mov eax, dword [eax]
push eax
call fcn.0047d087
mov esi, dword [ebp + 0x50]
mov dword [ebp + 0x3c], eax
mov eax, dword [esi + edi + 0x28]
lea eax, [eax*2 + 2]
jmp 0x585ac7
cmp dword [eax + 0x14], 8
jb 0x585aa6
mov edx, dword [eax]
jmp 0x585aa8
mov edx, eax
lea ecx, [eax + 0x18]
cmp dword [ecx + 0x14], 8
jb 0x585ab3
mov ecx, dword [ecx]
movzx eax, byte [eax + 0x30]
push eax
push edx
push esi
push ecx
lea eax, [ebp + 0x3c]
push eax
call fcn.005875b0
mov esi, dword [ebp + 0x50]
mov dword [ebp + 0x38], eax
lea eax, [ebp + 0x40]
push eax
push 0x1388
push 1
lea eax, [ebp + 0x34]
push eax
push dword [ebp + 0x5c]
push 0x4a
push ebx
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
setne al
mov byte [esi + edi + 0x31], al
mov ecx, dword [ebp + 0x50]
mov al, byte [ebp + 0x6f]
mov esi, dword [ebp + 0x54]
and al, byte [ecx + edi + 0x31]
mov byte [ebp + 0x6f], al
push 0x34
pop eax
add edi, eax
inc dword [ebp + 0x78]
mov eax, esi
sub eax, ecx
cdq
idiv dword [ebp + 0x30]
cmp dword [ebp + 0x78], eax
jb 0x585a5c
mov al, byte [ebp + 0x6f]
test al, al
jne 0x585c11
call dword [sym.imp.KERNEL32.DLL_GetLastError]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x50]
mov byte [ebp + 0x6f], 1
call fcn.00438fed
cmp dword [0x7c1da4], 0
je 0x585bf2
mov eax, dword [ebp + 0x44]
cmp eax, 0xb7
je 0x585b58
cmp eax, 5
jne 0x585bf2
cmp byte [ebp + 0x6f], 0
jne 0x585bb6
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
push dword [0x7c1da4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0047e83e
cmp dword [eax + 0x14], 0x10
jb 0x585b8a
mov eax, dword [eax]
push eax
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
push esi
push 1
lea ecx, [ebp - 0x24]
mov dword [0x7c1da4], eax
call fcn.0040f95f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [ebp + 0x5c]
mov dword [ebp + 0x44], eax
jmp 0x585857
cmp byte [ebp + 0x7c], 0
jne 0x585c36
cmp dword [0x7c21a0], 0
jne 0x585c36
mov dword [ebp + 0x10], 1
mov dword [ebp + 0x14], 0x30
call fcn.004949f9
push eax
call fcn.004949f9
push eax
lea eax, [ebp + 0x10]
push str.It_seems_like__s_is_already_running__but_not_responding._r_n_r_nPlease_close_all__s_processes_and_try_again.
push eax
call fcn.0058eef2
add esp, 0x10
jmp 0x585c36
push dword [ebp + 0x5c]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
lea esp, [ebp + 0x64]
pop ebp
ret 0x14
test byte [ebp + 0x40], 2
je 0x585c1e
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push 0
push 0x800c
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [ebp + 0x50]
call fcn.00438fed
xor al, al
jmp 0x585bfd