Function at 0x58f28f
Capabilities:
Check mutex on windows

Disassembly:
push ebp
sub esp, 0x60
mov eax, 0x6bb970
call fcn.00664608
sub esp, 0x264
lea eax, [ebp - 0x270]
push 0x79a63c
push str.Local_s
push 0x104
push eax
call fcn.00456c1c
add esp, 0x10
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.0047181f
cmp dword [eax + 0x14], 0x10
jb 0x58f2d9
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]
lea ecx, [ebp + 0x20]
mov dword [0x7c8a38], eax
call fcn.00410858
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x3c], eax
cmp byte [ebp + 0x6c], bl
jne 0x58f850
cmp dword [0x7c8cd4], 1
je 0x58f850
push ebx
push dword [0x7ebde0]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x6ce190
push 0x6d4328
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
mov dword [ebp + 0x5c], esi
call fcn.005b0e9f
mov byte [ebp + 0x63], bl
mov dword [ebp + 0x44], ebx
cmp byte [ebp + 0x78], bl
je 0x58f382
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
call fcn.00454d7f
mov esi, eax
push esi
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
test esi, esi
je 0x58f37f
test edi, edi
je 0x58f37f
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 + 8], 0x34
test ebx, ebx
jne 0x58f3a9
push ebx
push 0x79a63c
call dword [sym.imp.USER32.dll_FindWindowW]
mov ebx, eax
mov dword [ebp + 0x44], ebx
test ebx, ebx
je 0x58f783
and dword [ebp + 0x40], 0
cmp byte [ebp + 0x7c], 0
jne 0x58f41f
lea eax, [ebp + 0x40]
push eax
push 0xfa0
push 1
push 0
push 0x6abb5d8
push 0x8097
push ebx
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x58f3df
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x58f41f
cmp dword [ebp + 0x40], 0x6abb5d8
jae 0x58f41f
xor edi, edi
mov dword [ebp + 0x18], 1
mov dword [ebp + 0x1c], edi
call fcn.00487f23
push eax
call fcn.00487f23
push eax
lea eax, [ebp + 0x18]
push str.An_older_version_of__s_is_running._n_nPlease_shut_down__s_and_try_again.
push eax
call fcn.00599ee6
add esp, 0x10
push edi
push edi
push 0x8097
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp + 0x74]
cmp dword [ecx + 0x10], 0x28
jne 0x58f45c
cmp dword [ecx + 0x14], 8
mov eax, ecx
mov dword [ebp - 0x18], 0xa71ca770
jb 0x58f439
mov eax, dword [ecx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
push 0x1388
push 1
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x52
push eax
push esi
push 0x4a
push ebx
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
and dword [ebp + 0x14], 0
and dword [ebp + 0x10], 0
and dword [ebp + 0x38], 0
cmp byte [ebp + 0x63], 0
mov dword [ebp + 0xc], 0xdeadf00e
mov byte [ebp + 0x6f], 1
jne 0x58f60d
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 0x58f546
mov ebx, dword [ebp + 0x70]
xor esi, esi
and dword [ebp + 0x20], 0
lea ecx, [ebp + 0x20]
and dword [ebp + 0x30], 0
xor eax, eax
push 0x6dbbc4
mov dword [ebp + 0x34], 7
mov word [ebp + 0x20], ax
call fcn.00427ba3
mov eax, dword [ebx]
xor ecx, ecx
push ecx
push ecx
mov dword [ebp - 4], ecx
add eax, esi
lea ecx, [ebp + 0x20]
push ecx
push eax
lea ecx, [ebp - 0x50]
call fcn.005b0332
push eax
mov byte [ebp - 4], 1
call fcn.005b0422
lea ecx, [ebp - 0x38]
call fcn.00427afc
lea ecx, [ebp - 0x50]
call fcn.00427afc
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x34]
cmp eax, 8
jb 0x58f52d
mov ecx, dword [ebp + 0x20]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x78], eax
mov dword [ebp + 0x4c], ecx
cmp eax, 0x1000
jb 0x58f524
lea eax, [ebp + 0x78]
push eax
lea eax, [ebp + 0x4c]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x78]
mov ecx, dword [ebp + 0x4c]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
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 0x58f49a
mov ebx, dword [ebp + 0x44]
xor esi, esi
cmp dword [0x7c8ba4], esi
jbe 0x58f609
mov eax, dword [0x7c8ba0]
lea ecx, [ebp]
mov dword [ebp + 0x4c], eax
add eax, esi
mov dword [ebp], 0x7c8b94
mov dword [ebp + 4], eax
call fcn.00425182
xor ecx, ecx
mov eax, dword [eax]
and dword [ebp + 0x20], 0
and dword [ebp + 0x30], 0
mov word [ebp + 0x20], cx
lea ecx, [ebp + 0x20]
push eax
mov dword [ebp + 0x34], 7
call fcn.00427ba3
lea eax, [ebp + 0x20]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x50]
call fcn.005b038d
push eax
mov byte [ebp - 4], 3
call fcn.005b0422
lea ecx, [ebp - 0x38]
call fcn.00427afc
lea ecx, [ebp - 0x50]
call fcn.00427afc
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x34]
cmp eax, 8
jb 0x58f5fc
mov ecx, dword [ebp + 0x20]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x78], eax
mov dword [ebp + 0x4c], ecx
cmp eax, 0x1000
jb 0x58f5f3
lea eax, [ebp + 0x78]
push eax
lea eax, [ebp + 0x4c]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x78]
mov ecx, dword [ebp + 0x4c]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
inc esi
cmp esi, dword [0x7c8ba4]
jb 0x58f554
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.005b0f40
mov edi, dword [ebp + 0x54]
xor edx, edx
mov ecx, dword [ebp + 0x50]
mov eax, edi
sub eax, ecx
mov dword [ebp + 0x78], edx
push 0x34
cdq
pop esi
idiv esi
test eax, eax
je 0x58f866
xor esi, esi
lea eax, [esi + ecx]
cmp byte [eax + 0x31], 0
jne 0x58f6e8
mov edi, dword [0x7c8ad4]
test edi, edi
jne 0x58f688
cmp dword [eax + 0x10], edi
jne 0x58f688
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x58f66f
mov eax, dword [eax]
push eax
call fcn.0046ff8d
mov edi, dword [ebp + 0x50]
mov dword [ebp + 0x14], eax
mov eax, dword [esi + edi + 0x28]
lea eax, [eax*2 + 2]
jmp 0x58f6b1
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x58f692
mov edx, dword [eax]
lea ecx, [eax + 0x18]
cmp dword [ecx + 0x14], 8
jb 0x58f69d
mov ecx, dword [ecx]
movzx eax, byte [eax + 0x30]
push eax
push edx
push edi
push ecx
lea eax, [ebp + 0x14]
push eax
call fcn.0059154a
mov edi, dword [ebp + 0x50]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x38]
push eax
push 0x1388
push 1
lea eax, [ebp + 0xc]
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 edi, dword [ebp + 0x54]
and al, byte [esi + ecx + 0x31]
mov byte [ebp + 0x6f], al
push 0x34
pop eax
add esi, eax
inc dword [ebp + 0x78]
mov eax, edi
sub eax, ecx
cdq
idiv dword [ebp + 8]
cmp dword [ebp + 0x78], eax
jb 0x58f648
mov al, byte [ebp + 0x6f]
test al, al
jne 0x58f866
call dword [sym.imp.KERNEL32.DLL_GetLastError]
or dword [ebp - 4], 0xffffffff
mov al, 1
mov esi, dword [ebp + 0x50]
mov byte [ebp + 0x6f], al
test esi, esi
je 0x58f786
mov edi, dword [ebp + 0x54]
cmp esi, edi
je 0x58f741
push 0x34
pop ebx
push 0
mov ecx, esi
call fcn.0042a7f2
add esi, ebx
cmp esi, edi
jne 0x58f72c
mov ebx, dword [ebp + 0x44]
mov esi, dword [ebp + 0x50]
mov eax, dword [ebp + 0x58]
sub eax, esi
mov dword [ebp + 0x4c], esi
push 0x34
cdq
pop ecx
idiv ecx
imul eax, eax, 0x34
mov dword [ebp + 0x78], eax
cmp eax, 0x1000
jb 0x58f76f
lea eax, [ebp + 0x78]
push eax
lea eax, [ebp + 0x4c]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x78]
mov esi, dword [ebp + 0x4c]
push eax
push esi
call fcn.006643a9
xor eax, eax
pop ecx
pop ecx
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x54], eax
mov dword [ebp + 0x58], eax
mov al, byte [ebp + 0x6f]
cmp dword [0x7c8a38], 0
je 0x58f847
mov ecx, dword [ebp + 0x3c]
cmp ecx, 0xb7
je 0x58f7a7
cmp ecx, 5
jne 0x58f847
test al, al
jne 0x58f800
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
push dword [0x7c8a38]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0047181f
cmp dword [eax + 0x14], 0x10
jb 0x58f7d7
mov eax, dword [eax]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
lea ecx, [ebp - 0x68]
mov dword [0x7c8a38], eax
call fcn.00410858
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [ebp + 0x5c]
mov dword [ebp + 0x3c], eax
jmp 0x58f38c
cmp byte [ebp + 0x7c], 0
jne 0x58f8dd
cmp dword [0x7c8cd4], 0
jne 0x58f8dd
mov dword [ebp + 0x18], 1
mov dword [ebp + 0x1c], 0x30
call fcn.00487fd7
push eax
call fcn.00487fd7
push eax
lea eax, [ebp + 0x18]
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.00599ee6
add esp, 0x10
jmp 0x58f8dd
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
add ebp, 0x64
leave
ret 0x14
test byte [ebp + 0x38], 2
je 0x58f873
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push 0
push 0x800c
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
mov esi, dword [ebp + 0x50]
test esi, esi
je 0x58f8dd
mov edi, dword [ebp + 0x54]
cmp esi, edi
je 0x58f8a6
push 0
mov ecx, esi
call fcn.0042a7f2
push 0x34
pop eax
add esi, eax
cmp esi, edi
jne 0x58f891
mov esi, dword [ebp + 0x50]
mov eax, dword [ebp + 0x58]
sub eax, esi
mov dword [ebp + 0x6c], esi
push 0x34
cdq
pop ecx
idiv ecx
imul eax, eax, 0x34
mov dword [ebp + 0x7c], eax
cmp eax, 0x1000
jb 0x58f8d4
lea eax, [ebp + 0x7c]
push eax
lea eax, [ebp + 0x6c]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x7c]
mov esi, dword [ebp + 0x6c]
push eax
push esi
call fcn.006643a9
pop ecx
pop ecx
xor al, al
jmp 0x58f852