Function at 0x573471
Capabilities:
Check mutex on windows

Disassembly:
push ebp
sub esp, 0x60
mov eax, 0x67eb5b
call fcn.0062921c
sub esp, 0x254
lea eax, [ebp - 0x260]
push 0x7545ec
push str.Local_s
push 0x104
push eax
call fcn.0045fc27
add esp, 0x10
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.004784a4
cmp dword [eax + 0x14], 0x10
jb 0x5734bb
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 [0x77dc94], eax
call fcn.0040abbf
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x44], eax
cmp byte [ebp + 0x6c], bl
jne 0x573915
cmp dword [0x77df28], 1
je 0x573915
push ebx
push dword [0x79fb18]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x68eb70
push 0x6dbdb4
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
mov dword [ebp + 0x5c], esi
call fcn.0058e856
mov byte [ebp + 0x63], bl
mov dword [ebp + 0x48], ebx
cmp byte [ebp + 0x78], bl
je 0x573567
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
call fcn.0045df8e
mov esi, eax
push esi
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
test esi, esi
je 0x573564
test edi, edi
je 0x573564
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 0x57358e
push ebx
push 0x7545ec
call dword [sym.imp.USER32.dll_FindWindowW]
mov ebx, eax
mov dword [ebp + 0x48], ebx
test ebx, ebx
je 0x573852
and dword [ebp + 0x4c], 0
cmp byte [ebp + 0x7c], 0
jne 0x573604
lea eax, [ebp + 0x4c]
push eax
push 0xfa0
push 1
push 0
push 0x6abafc2
push 0x8095
push ebx
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x5735c4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x573604
cmp dword [ebp + 0x4c], 0x6abafc2
jae 0x573604
xor edi, edi
mov dword [ebp + 0x10], 1
mov dword [ebp + 0x14], edi
call fcn.0048e151
push eax
call fcn.0048e151
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.0057c60a
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 0x573644
cmp dword [eax + 0x14], 8
mov dword [ebp + 4], 0xa71ca770
jb 0x57361e
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 0x57373b
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 0x5736da
mov ebx, dword [ebp + 0x70]
xor esi, esi
push 0x6a08c4
lea ecx, [ebp + 0x18]
call fcn.00424ff1
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.0058e175
push eax
mov byte [ebp - 4], 1
call fcn.0058e375
lea ecx, [ebp - 0x58]
call fcn.005dcf6a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
push 0
push 1
call fcn.0042386b
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 0x57367e
mov ebx, dword [ebp + 0x48]
xor esi, esi
cmp dword [0x77de08], esi
jbe 0x573737
push esi
mov ecx, 0x77ddf8
call fcn.0041f6af
lea ecx, [ebp + 0x18]
push dword [eax]
call fcn.00424ff1
lea eax, [ebp + 0x18]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x58]
call fcn.0058e1c0
push eax
mov byte [ebp - 4], 3
call fcn.0058e375
lea ecx, [ebp - 0x58]
call fcn.005dcf6a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
push 0
push 1
call fcn.0042386b
inc esi
cmp esi, dword [0x77de08]
jb 0x5736e4
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.0058e8b6
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 0x57392b
xor edi, edi
lea eax, [ecx + edi]
cmp byte [eax + 0x31], 0
jne 0x573818
mov esi, dword [0x77dca8]
test esi, esi
jne 0x5737b6
cmp dword [eax + 0x10], esi
jne 0x5737b6
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x57379d
mov eax, dword [eax]
push eax
call fcn.00476cf7
mov esi, dword [ebp + 0x50]
mov dword [ebp + 0x3c], eax
mov eax, dword [esi + edi + 0x28]
lea eax, [eax*2 + 2]
jmp 0x5737e1
cmp dword [eax + 0x14], 8
jb 0x5737c0
mov edx, dword [eax]
jmp 0x5737c2
mov edx, eax
lea ecx, [eax + 0x18]
cmp dword [ecx + 0x14], 8
jb 0x5737cd
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.0057535a
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 0x573776
mov al, byte [ebp + 0x6f]
test al, al
jne 0x57392b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x50]
mov byte [ebp + 0x6f], 1
call fcn.00433f78
cmp dword [0x77dc94], 0
je 0x57390c
mov eax, dword [ebp + 0x44]
cmp eax, 0xb7
je 0x573872
cmp eax, 5
jne 0x57390c
cmp byte [ebp + 0x6f], 0
jne 0x5738d0
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
push dword [0x77dc94]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004784a4
cmp dword [eax + 0x14], 0x10
jb 0x5738a4
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 [0x77dc94], eax
call fcn.0040abbf
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [ebp + 0x5c]
mov dword [ebp + 0x44], eax
jmp 0x573571
cmp byte [ebp + 0x7c], 0
jne 0x573950
cmp dword [0x77df28], 0
jne 0x573950
mov dword [ebp + 0x10], 1
mov dword [ebp + 0x14], 0x30
call fcn.0048e1ff
push eax
call fcn.0048e1ff
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.0057c60a
add esp, 0x10
jmp 0x573950
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 0x573938
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.00433f78
xor al, al
jmp 0x573917