Function at 0x491890
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f4478
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x66d060]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x66d060]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
push 0
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
mov dword [esp + 0x88], 0
cmp byte [esi], 0
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
jne 0x49191b
xor ecx, ecx
jmp 0x491929
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x491920
sub ecx, edx
push ecx
push esi
lea ecx, [esp + 0x68]
call fcn.00460dd0
push 6
push 0
push str.Global
lea ecx, [esp + 0x6c]
mov byte [esp + 0x94], 1
call fcn.00472c80
test eax, eax
jne 0x4919bf
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], eax
mov byte [esp + 0x48], al
cmp byte [esi], al
jne 0x49196a
xor ecx, ecx
jmp 0x491979
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x491970
sub ecx, edx
push ecx
push esi
lea ecx, [esp + 0x50]
call fcn.00460dd0
cmp dword [esp + 0x2c], 0x10
jb 0x491997
push dword [esp + 0x18]
call fcn.00496180
add esp, 4
lea eax, [esp + 0x48]
mov dword [esp + 0x2c], 0xf
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
call fcn.0045f710
jmp 0x491a86
sub esp, 0x18
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
mov byte [edx], 0
cmp byte [esi], 0
jne 0x4919de
xor ecx, ecx
jmp 0x4919ec
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4919e3
sub ecx, ebx
push ecx
push esi
mov ecx, edx
call fcn.00460dd0
lea eax, [esp + 0x60]
push eax
call fcn.00575c75
push eax
lea eax, [esp + 0x50]
mov byte [esp + 0xa8], 2
push str.Global_
push eax
call fcn.004788d0
mov esi, eax
add esp, 0x28
lea eax, [esp + 0x18]
cmp eax, esi
je 0x491a56
cmp dword [esp + 0x2c], 0x10
jb 0x491a37
push dword [esp + 0x18]
call fcn.00496180
add esp, 4
push esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
call fcn.0045f710
cmp dword [esp + 0x44], 0x10
jb 0x491a69
push dword [esp + 0x30]
call fcn.00496180
add esp, 4
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
mov byte [esp + 0x88], 1
cmp dword [esp + 0x5c], 0x10
jb 0x491a99
push dword [esp + 0x48]
call fcn.00496180
add esp, 4
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [edi], eax
test eax, eax
je 0x491b8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x491b2c
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Already_running_
lea ecx, [esp + 0x34]
mov dword [edi], 0
call fcn.0045e4d0
mov byte [esp + 0x88], 3
lea eax, [esp + 0x30]
cmp dword [esp + 0x44], 0x10
lea ecx, [esp + 0x48]
cmovae eax, dword [esp + 0x30]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
call fcn.0055342f
push 0x66acf0
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], vtable.updater_init_failed.0
push eax
call fcn.00559436
cmp dword [esp + 0x74], 0x10
jb 0x491b3f
push dword [esp + 0x60]
call fcn.00496180
add esp, 4
cmp dword [esp + 0x2c], 0x10
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
jb 0x491b67
push dword [esp + 0x18]
call fcn.00496180
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0055337c
mov esp, ebp
pop ebp
ret 4
push 0x13
push str.Aquire_Lock_failed_
lea ecx, [esp + 0x38]
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], 0
mov byte [esp + 0x38], 0
call fcn.00460dd0
mov byte [esp + 0x88], 4
lea eax, [esp + 0x30]
cmp dword [esp + 0x44], 0x10
lea ecx, [esp + 0x48]
cmovae eax, dword [esp + 0x30]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
call fcn.0055342f
push 0x66acf0
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], vtable.updater_init_failed.0
push eax
call fcn.00559436
int3