Function at 0x4103b0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525f60
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x588088]
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 0x4103f0
mov edi, dword [edx]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x10], eax
cmp eax, 9
jne 0x41041a
mov ecx, str.uninstall
mov esi, eax
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x410417
add ecx, 2
sub esi, 1
jne 0x410404
jmp 0x410442
mov eax, dword [ebp - 0x10]
mov edi, edx
cmp ebx, 8
jb 0x410423
mov edi, dword [edx]
cmp eax, 0x10
jne 0x410484
mov ecx, str.uninstall_manual
mov esi, eax
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x410481
add ecx, 2
sub esi, 1
jne 0x410431
push 0x557030
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, dword [ebp - 0x14]
mov dword [esi], eax
test eax, eax
je 0x41046b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41067e
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 0x41048d
mov edi, dword [edx]
cmp eax, 7
jne 0x4104b6
mov ecx, 0x556414
mov esi, eax
sub edi, ecx
nop dword [eax + eax]
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x4104b3
add ecx, 2
sub esi, 1
jne 0x4104a0
jmp 0x410515
mov eax, dword [ebp - 0x10]
mov edi, edx
cmp ebx, 8
jb 0x4104bf
mov edi, dword [edx]
cmp eax, 0x10
jne 0x4104e6
mov ecx, str.override_install
mov esi, eax
sub edi, ecx
nop dword [eax]
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x4104e3
add ecx, 2
sub esi, 1
jne 0x4104d0
jmp 0x410515
mov eax, dword [ebp - 0x10]
cmp ebx, 8
jb 0x4104ed
mov edx, dword [edx]
cmp eax, 0x11
jne 0x41062d
mov ecx, str.increment_upgrade
mov esi, eax
sub edx, ecx
nop
mov ax, word [edx + ecx]
cmp ax, word [ecx]
jne 0x41062d
add ecx, 2
sub esi, 1
jne 0x410500
mov esi, dword [sym.imp.KERNEL32.dll_OpenMutexW]
push 0x557030
push 0
push 0x100000
call esi
test eax, eax
je 0x410539
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41046b
push 0x5570a8
push 0
push 0x100000
call esi
test eax, eax
je 0x410597
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 0x5570a8
mov dword [ebp - 4], 0
call fcn.00410800
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x410590
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 0x4105c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41067e
mov edi, dword [ebp - 0x18]
push edi
call fcn.00410730
test al, al
je 0x41046b
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.00410800
mov bl, al
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x410617
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 0x557030
call fcn.00410700
test al, al
jne 0x41046b
push str.2345SafeCenterInstaller_upgrade
call fcn.00410700
test al, al
jne 0x41046b
push 0x5570a8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, dword [ebp - 0x14]
mov dword [esi], eax
test eax, eax
je 0x41046b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41046b
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