Function at 0x4104c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526580
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x58a088]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 8]
mov edi, edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov ebx, dword [edx + 0x14]
cmp ebx, 8
jb 0x410500
mov edi, dword [edx]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x10], eax
cmp eax, 9
jne 0x41052a
mov ecx, str.uninstall
mov esi, eax
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x410527
add ecx, 2
sub esi, 1
jne 0x410514
jmp 0x410552
mov eax, dword [ebp - 0x10]
mov edi, edx
cmp ebx, 8
jb 0x410533
mov edi, dword [edx]
cmp eax, 0x10
jne 0x410594
mov ecx, str.uninstall_manual
mov esi, eax
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x410591
add ecx, 2
sub esi, 1
jne 0x410541
push 0x557c38
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, dword [ebp - 0x14]
mov dword [esi], eax
test eax, eax
je 0x41057b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41078e
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x10]
mov edi, edx
cmp ebx, 8
jb 0x41059d
mov edi, dword [edx]
cmp eax, 7
jne 0x4105c6
mov ecx, 0x556ffc
mov esi, eax
sub edi, ecx
nop dword [eax + eax]
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x4105c3
add ecx, 2
sub esi, 1
jne 0x4105b0
jmp 0x410625
mov eax, dword [ebp - 0x10]
mov edi, edx
cmp ebx, 8
jb 0x4105cf
mov edi, dword [edx]
cmp eax, 0x10
jne 0x4105f6
mov ecx, str.override_install
mov esi, eax
sub edi, ecx
nop dword [eax]
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x4105f3
add ecx, 2
sub esi, 1
jne 0x4105e0
jmp 0x410625
mov eax, dword [ebp - 0x10]
cmp ebx, 8
jb 0x4105fd
mov edx, dword [edx]
cmp eax, 0x11
jne 0x41073d
mov ecx, str.increment_upgrade
mov esi, eax
sub edx, ecx
nop
mov ax, word [edx + ecx]
cmp ax, word [ecx]
jne 0x41073d
add ecx, 2
sub esi, 1
jne 0x410610
mov esi, dword [sym.imp.KERNEL32.dll_OpenMutexW]
push 0x557c38
push 0
push 0x100000
call esi
test eax, eax
je 0x410649
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41057b
push 0x557cb0
push 0
push 0x100000
call esi
test eax, eax
je 0x4106a7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], vtable.std::_Func_impl_no_alloc_class__lambda_d970df2a8a543c15baa6e381229d2d3b___bool___.0
mov dword [ebp - 0x44], eax
push eax
push 0x557cb0
mov dword [ebp - 4], 0
call fcn.00410910
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x4106a0
mov edx, dword [ecx]
lea eax, [ebp - 0x68]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 4], 0xffffffff
push str.2345SafeCenterInstaller_upgrade
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, dword [ebp - 0x14]
mov dword [esi], eax
test eax, eax
je 0x4106d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41078e
mov edi, dword [ebp - 0x18]
push edi
call fcn.00410840
test al, al
je 0x41057b
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], vtable.std::_Func_impl_no_alloc_class__lambda_fabbddc92d63c64166f0f5004fc4d3e4___bool___.0
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x1c], eax
push eax
push str.2345SafeCenterInstaller_upgrade
mov dword [ebp - 4], 2
call fcn.00410910
mov bl, al
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x410727
mov edx, dword [ecx]
lea eax, [ebp - 0x40]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x557c38
call fcn.00410810
test al, al
jne 0x41057b
push str.2345SafeCenterInstaller_upgrade
call fcn.00410810
test al, al
jne 0x41057b
push 0x557cb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, dword [ebp - 0x14]
mov dword [esi], eax
test eax, eax
je 0x41057b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41057b
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8