Function at 0x580371
Capabilities:
Check mutex on windows

Disassembly:
push ebp
sub esp, 0x60
mov eax, 0x6a51f3
call fcn.006375a8
sub esp, 0x254
lea eax, [ebp - 0x260]
push 0x785564
push str.Local_s
push 0x104
push eax
call fcn.00462d1a
add esp, 0x10
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.0047ae8a
cmp dword [eax + 0x14], 0x10
jb 0x5803bb
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 [0x7b082c], eax
call fcn.0040daff
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x44], eax
cmp byte [ebp + 0x6c], bl
jne 0x580815
cmp dword [0x7b0ae0], 1
je 0x580815
push ebx
push dword [0x7d26a4]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x6b6e68
push 0x704c54
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
mov dword [ebp + 0x5c], esi
call fcn.0059c0b6
mov byte [ebp + 0x63], bl
mov dword [ebp + 0x48], ebx
cmp byte [ebp + 0x78], bl
je 0x580467
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
call fcn.00461081
mov esi, eax
push esi
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
test esi, esi
je 0x580464
test edi, edi
je 0x580464
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 0x58048e
push ebx
push 0x785564
call dword [sym.imp.USER32.dll_FindWindowW]
mov ebx, eax
mov dword [ebp + 0x48], ebx
test ebx, ebx
je 0x580752
and dword [ebp + 0x4c], 0
cmp byte [ebp + 0x7c], 0
jne 0x580504
lea eax, [ebp + 0x4c]
push eax
push 0xfa0
push 1
push 0
push 0x6abb0eb
push 0x8095
push ebx
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x5804c4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x580504
cmp dword [ebp + 0x4c], 0x6abb0eb
jae 0x580504
xor edi, edi
mov dword [ebp + 0x10], 1
mov dword [ebp + 0x14], edi
call fcn.00491803
push eax
call fcn.00491803
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.00589668
add esp, 0x10
push edi
push edi
push 0x8095
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 0x74]
mov ecx, dword [eax + 0x10]
cmp ecx, 0x28
jne 0x580544
cmp dword [eax + 0x14], 8
mov dword [ebp + 4], 0xa71ca770
jb 0x58051e
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 0x58063b
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 0x5805da
mov ebx, dword [ebp + 0x70]
xor esi, esi
push 0x6c8c74
lea ecx, [ebp + 0x18]
call fcn.00427f43
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.0059b9d5
push eax
mov byte [ebp - 4], 1
call fcn.0059bbd5
lea ecx, [ebp - 0x58]
call fcn.005ea5fd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
push 0
push 1
call fcn.004267c2
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 0x58057e
mov ebx, dword [ebp + 0x48]
xor esi, esi
cmp dword [0x7b09c0], esi
jbe 0x580637
push esi
mov ecx, 0x7b09b0
call fcn.00422606
lea ecx, [ebp + 0x18]
push dword [eax]
call fcn.00427f43
lea eax, [ebp + 0x18]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x58]
call fcn.0059ba20
push eax
mov byte [ebp - 4], 3
call fcn.0059bbd5
lea ecx, [ebp - 0x58]
call fcn.005ea5fd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
push 0
push 1
call fcn.004267c2
inc esi
cmp esi, dword [0x7b09c0]
jb 0x5805e4
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.0059c116
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 0x58082b
xor edi, edi
lea eax, [ecx + edi]
cmp byte [eax + 0x31], 0
jne 0x580718
mov esi, dword [0x7b0858]
test esi, esi
jne 0x5806b6
cmp dword [eax + 0x10], esi
jne 0x5806b6
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x58069d
mov eax, dword [eax]
push eax
call fcn.0047970a
mov esi, dword [ebp + 0x50]
mov dword [ebp + 0x3c], eax
mov eax, dword [esi + edi + 0x28]
lea eax, [eax*2 + 2]
jmp 0x5806e1
cmp dword [eax + 0x14], 8
jb 0x5806c0
mov edx, dword [eax]
jmp 0x5806c2
mov edx, eax
lea ecx, [eax + 0x18]
cmp dword [ecx + 0x14], 8
jb 0x5806cd
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.00582259
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 0x580676
mov al, byte [ebp + 0x6f]
test al, al
jne 0x58082b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x50]
mov byte [ebp + 0x6f], 1
call fcn.00437172
cmp dword [0x7b082c], 0
je 0x58080c
mov eax, dword [ebp + 0x44]
cmp eax, 0xb7
je 0x580772
cmp eax, 5
jne 0x58080c
cmp byte [ebp + 0x6f], 0
jne 0x5807d0
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
push dword [0x7b082c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0047ae8a
cmp dword [eax + 0x14], 0x10
jb 0x5807a4
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 [0x7b082c], eax
call fcn.0040daff
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [ebp + 0x5c]
mov dword [ebp + 0x44], eax
jmp 0x580471
cmp byte [ebp + 0x7c], 0
jne 0x580850
cmp dword [0x7b0ae0], 0
jne 0x580850
mov dword [ebp + 0x10], 1
mov dword [ebp + 0x14], 0x30
call fcn.004918b1
push eax
call fcn.004918b1
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.00589668
add esp, 0x10
jmp 0x580850
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 0x580838
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.00437172
xor al, al
jmp 0x580817