Function at 0x140002140
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rax, qword [0x140011010]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rdi, rcx
mov qword [rbp + 0x17], rcx
lea rdx, str.ProcessMaintenance_1
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
lea r8, str.BGMaintenanceInstance
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r15d, r15d
cmp eax, 0xb7
je 0x1400023da
call fcn.140006bb0
test al, al
jne 0x140002269
mov qword [rbp + 0xf], r15
lea rcx, [rbp + 0xf]
call fcn.140004150
test eax, eax
je 0x14000220a
mov rcx, qword [rbp + 0xf]
call fcn.140006e40
movzx esi, al
mov rbx, qword [rbp + 0xf]
mov r8, rbx
lea rdx, str.ImpersonateLoggedOnUserEnd_1_hImpersonationToken_d
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
test rbx, rbx
je 0x140002214
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140002214
xor ecx, ecx
call fcn.140006e40
movzx esi, al
test sil, sil
jne 0x140002269
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.140007930
mov rcx, rax
call fcn.140006170
lea rcx, vtable.CBGSimpleLogger.0
test al, al
jne 0x14000225d
lea rdx, str.maintenance:_Only_handle_when_there_is_no_update_folder_
call fcn.140001900
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.140007930
mov rcx, rax
call fcn.140003060
jmp 0x1400023ed
lea rdx, str.maintenance:_no_need_to_handle_Maintenance_task
jmp 0x1400023e8
lea rdx, str.maintenance:_need_to_uninstall_BG_because_conflict_with_PCM_or_LE_____UninstallBatteryGauge
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
mov rdx, rdi
lea rcx, [rbp + 0x1f]
call fcn.140007930
nop
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.140007930
lea rdx, [rbp + 0x1f]
mov rcx, rax
call fcn.140006f30
mov rsi, qword [rbp + 0x2f]
mov rcx, qword [rbp + 0x37]
mov rax, rcx
sub rax, rsi
cmp rax, 0xd
jb 0x1400022e8
lea rax, [rsi + 0xd]
mov qword [rbp + 0x2f], rax
lea rbx, [rbp + 0x1f]
cmp rcx, 8
cmovae rbx, qword [rbp + 0x1f]
lea rcx, [rbx + rsi*2]
mov r8d, 0x1a
lea rdx, str.Uninstall.ps1
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rsi*2 + 0x1a], r15w
jmp 0x140002306
mov qword [rsp + 0x20], 0xd
lea r9, str.Uninstall.ps1
mov edx, 0xd
lea rcx, [rbp + 0x1f]
call fcn.140007dc0
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 0x11]
call fcn.140007930
mov rbx, rax
mov qword [rbp + 0xf], rax
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x39], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x29], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
lea rcx, [rbp - 0x39]
call fcn.140004a10
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14000237e
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140002379
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400023cc
mov rcx, r8
call fcn.140008cb0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
mov rdx, qword [rbp + 0x37]
cmp rdx, 8
jb 0x1400023ed
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400023d3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400023d3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140008cb0
jmp 0x1400023ed
lea rdx, str.maintenance_error:__a_BGMaintenanceInstance_is_running_for_Maintenance__
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
mov ecx, 0x7530
call qword [sym.imp.KERNEL32.dll_Sleep]
test r14, r14
je 0x140002407
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140002442
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14000243d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000247d
mov rcx, r8
call fcn.140008cb0
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 7
mov word [rdi], r15w
xor eax, eax
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140008c90
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3