Function at 0x140002490
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x140011010]
xor rax, rsp
mov qword [rbp + 8], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rbp], rcx
lea rdx, str.ProcessShellCommand_1
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
xor r15d, r15d
test rdi, rdi
je 0x140002fbb
cmp r15w, word [rdi]
je 0x140002fbb
lea rdx, str.ShowBatteryGauge
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x14000279a
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], r15
mov r14, rbx
cmp qword [rbx + 0x18], 8
jb 0x140002520
mov r14, qword [rbx]
mov rdi, qword [rbx + 0x10]
movabs rsi, 0x7ffffffffffffffe
cmp rdi, rsi
ja 0x14000304f
cmp rdi, 8
jae 0x14000255a
mov qword [rsp + 0x68], rdi
mov eax, 7
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [r14]
movups xmmword [rsp + 0x58], xmm0
jmp 0x140002619
mov qword [rsp + 0x70], 7
mov rax, rdi
or rax, 7
cmp rax, rsi
jbe 0x14000257f
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x1400025b1
mov rsi, rax
mov ecx, 0xa
cmp rax, rcx
cmovb rsi, rcx
lea rcx, [rsi + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140003049
add rcx, rcx
cmp rcx, 0x1000
jb 0x1400025e3
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140003049
mov rcx, rax
call fcn.140008ce4
mov rcx, rax
test rax, rax
je 0x1400025dc
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1400025f2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x1400025ef
call fcn.140008ce4
jmp 0x1400025f2
mov rax, r15
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], rsi
lea r8, [rdi*2 + 2]
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x70]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x50], rcx
cmp r15w, word [str.ShowBatteryGauge]
je 0x140002742
lea rcx, [rsp + 0x58]
cmp rax, 8
cmovae rcx, qword [rsp + 0x58]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140002742
mov qword [rbp - 8], r15
lea rcx, [rbp - 8]
call fcn.140004150
test eax, eax
je 0x1400026e7
lea rax, [rsp + 0x28]
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
mov r8d, 0x10
lea rdx, str.ShowBatteryGauge
lea rcx, [rsp + 0x28]
call fcn.140007b10
nop
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x68]
call fcn.140007930
nop
lea r8, [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rbp - 8]
call fcn.1400052d0
mov rdi, qword [rbp - 8]
mov r8, rdi
lea rdx, str.ImpersonateLoggedOnUserEnd_1_hImpersonationToken_d
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
test rdi, rdi
je 0x1400026fb
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400026fb
lea rdx, str.Rundll32BGCommand_2______error:_hImpersonationTokenNULL
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140002f1f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002738
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002793
call fcn.140008cb0
jmp 0x140002f1f
lea rdx, str.Rundll32BGCommand_0______error:_lpszCmdNameNULL
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140002f1f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002738
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002738
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rdx, str.HideBatteryGauge
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1400028ea
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.140007930
mov rdi, rax
mov qword [rsp + 0x20], rax
cmp r15w, word [str.HideBatteryGauge]
je 0x1400028e1
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x1400027e1
mov rcx, qword [rax]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400028e1
mov qword [rbp - 8], r15
lea rcx, [rbp - 8]
call fcn.140004150
test eax, eax
je 0x140002887
lea rax, [rsp + 0x28]
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
mov r8d, 0x10
lea rdx, str.HideBatteryGauge
lea rcx, [rsp + 0x28]
call fcn.140007b10
nop
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.140007930
nop
lea r8, [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rbp - 8]
call fcn.1400052d0
mov r14, qword [rbp - 8]
mov r8, r14
lea rdx, str.ImpersonateLoggedOnUserEnd_1_hImpersonationToken_d
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
test r14, r14
je 0x14000289b
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000289b
lea rdx, str.Rundll32BGCommand_2______error:_hImpersonationTokenNULL
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140002da7
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140002da2
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x140002d9f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rdx, str.Rundll32BGCommand_0______error:_lpszCmdNameNULL
jmp 0x14000288e
lea rdx, str.UnpinFromTaskbar
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140002a39
mov rdx, rbx
lea rcx, [rbp - 0x48]
call fcn.140007930
mov rdi, rax
mov qword [rsp + 0x20], rax
cmp r15w, word [str.UnpinFromTaskbar]
je 0x140002a30
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x140002931
mov rcx, qword [rax]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140002a30
mov qword [rbp - 8], r15
lea rcx, [rbp - 8]
call fcn.140004150
test eax, eax
je 0x1400029d6
lea rax, [rsp + 0x28]
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
mov r8d, 0x10
lea rdx, str.UnpinFromTaskbar
lea rcx, [rsp + 0x28]
call fcn.140007b10
nop
mov rdx, rdi
lea rcx, [rbp - 0x68]
call fcn.140007930
nop
lea r8, [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rbp - 8]
call fcn.1400052d0
mov r14, qword [rbp - 8]
mov r8, r14
lea rdx, str.ImpersonateLoggedOnUserEnd_1_hImpersonationToken_d
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
test r14, r14
je 0x1400029ea
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400029ea
lea rdx, str.Rundll32BGCommand_2______error:_hImpersonationTokenNULL
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140002da7
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140002da2
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x140002d9f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rdx, str.Rundll32BGCommand_0______error:_lpszCmdNameNULL
jmp 0x1400029dd
lea rdx, str.UpdateBatteryGaugeToastInfo
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140002b89
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.140007930
mov rdi, rax
mov qword [rsp + 0x20], rax
cmp r15w, word [str.UpdateBatteryGaugeToastInfo]
je 0x140002b80
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x140002a81
mov rcx, qword [rax]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140002b80
mov qword [rbp - 8], r15
lea rcx, [rbp - 8]
call fcn.140004150
test eax, eax
je 0x140002b26
lea rax, [rsp + 0x28]
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
mov r8d, 0x1b
lea rdx, str.UpdateBatteryGaugeToastInfo
lea rcx, [rsp + 0x28]
call fcn.140007b10
nop
mov rdx, rdi
lea rcx, [rbp - 0x48]
call fcn.140007930
nop
lea r8, [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rbp - 8]
call fcn.1400052d0
mov r14, qword [rbp - 8]
mov r8, r14
lea rdx, str.ImpersonateLoggedOnUserEnd_1_hImpersonationToken_d
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
test r14, r14
je 0x140002b3a
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140002b3a
lea rdx, str.Rundll32BGCommand_2______error:_hImpersonationTokenNULL
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140002da7
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140002da2
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x140002d9f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rdx, str.Rundll32BGCommand_0______error:_lpszCmdNameNULL
jmp 0x140002b2d
lea rdx, str.LaunchPinVantageToolbarToast
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140002c6b
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.140007930
mov rdi, rax
mov qword [rsp + 0x20], rax
mov qword [rbp - 8], r15
lea rcx, [rbp - 8]
call fcn.140004150
test eax, eax
je 0x140002c25
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x28], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rsp + 0x38], xmm1
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 7
mov word [rdi], r15w
lea rdx, [rsp + 0x28]
mov rcx, qword [rbp - 8]
call fcn.140005c30
mov rsi, qword [rbp - 8]
mov r8, rsi
lea rdx, str.ImpersonateLoggedOnUserEnd_1_hImpersonationToken_d
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
test rsi, rsi
je 0x140002c25
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140002f0f
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140002f0a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x140002f07
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rdx, str.UnloadBatteryGaugeFromExplorer
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140002dcf
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.140007930
mov rdi, rax
mov qword [rsp + 0x20], rax
cmp r15w, word [str.UnloadBatteryGaugeFromExplorer]
je 0x140002dbf
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x140002cb2
mov rcx, qword [rax]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140002dbf
mov qword [rbp - 8], r15
lea rcx, [rbp - 8]
call fcn.140004150
test eax, eax
je 0x140002d58
lea rax, [rsp + 0x28]
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
mov r8d, 0x1e
lea rdx, str.UnloadBatteryGaugeFromExplorer
lea rcx, [rsp + 0x28]
call fcn.140007b10
nop
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.140007930
nop
lea r8, [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rbp - 8]
call fcn.1400052d0
mov r14, qword [rbp - 8]
mov r8, r14
lea rdx, str.ImpersonateLoggedOnUserEnd_1_hImpersonationToken_d
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
test r14, r14
je 0x140002d6c
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140002d6c
lea rdx, str.Rundll32BGCommand_2______error:_hImpersonationTokenNULL
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140002da7
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140002da2
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002dc8
mov rcx, r8
call fcn.140008cb0
mov rax, rdi
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 7
mov word [rax], r15w
jmp 0x140002f1f
lea rdx, str.Rundll32BGCommand_0______error:_lpszCmdNameNULL
jmp 0x140002d5f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rdx, str.SetMenuItemNameofBatteryGauge
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140002f1f
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.140007930
mov rdi, rax
mov qword [rsp + 0x20], rax
cmp r15w, word [str.SetMenuItemNameofBatteryGauge]
je 0x140002f65
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x140002e16
mov rcx, qword [rax]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140002f65
mov qword [rbp - 8], r15
lea rcx, [rbp - 8]
call fcn.140004150
test eax, eax
je 0x140002ebc
lea rax, [rsp + 0x28]
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
mov r8d, 0x1d
lea rdx, str.SetMenuItemNameofBatteryGauge
lea rcx, [rsp + 0x28]
call fcn.140007b10
nop
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.140007930
nop
lea r8, [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rbp - 8]
call fcn.1400052d0
mov r14, qword [rbp - 8]
mov r8, r14
lea rdx, str.ImpersonateLoggedOnUserEnd_1_hImpersonationToken_d
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
test r14, r14
je 0x140002ed0
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140002ed0
lea rdx, str.Rundll32BGCommand_2______error:_hImpersonationTokenNULL
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140002f0f
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140002f0a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002fb4
mov rcx, r8
call fcn.140008cb0
mov word [rdi], r15w
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r15
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140002f5e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140002f59
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003042
mov rcx, r8
call fcn.140008cb0
xor eax, eax
jmp 0x14000300f
lea rdx, str.Rundll32BGCommand_0______error:_lpszCmdNameNULL
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140002f0f
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140002f0a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x140002f07
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rdx, str.ProcessShellCommand_2_failed...
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14000300a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140003005
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003042
mov rcx, r8
call fcn.140008cb0
mov eax, 0xffffffff
mov word [rbx], r15w
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r15
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.140008c90
mov rbx, qword [rsp + 0x150]
add rsp, 0x110
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140001110
nop
call fcn.1400011b0
int3