Function at 0x140006140
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value
Set console window title

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140053040]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor edi, edi
lea rcx, str.Checking_for_Riot_Vanguard
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140006282
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
lea r8d, [rdi + 0x57]
lea rdx, str.__Failed_to_check_if_Riot_Vanguard_is_installed__manually_check_and_uninstall__Error_6_
lea rcx, [rsp + 0x40]
call fcn.140002270
nop
lea rcx, [0x140053cb0]
call fcn.14000b8c0
lea rdx, str._X_
call fcn.140001f90
lea rcx, [0x140053d00]
call fcn.14000b8c0
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
call fcn.14000fbf0
mov rcx, rax
call fcn.14000d570
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000625a
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006255
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000677b
call fcn.140016434
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1400163d0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov ebx, edi
mov dword [rbp - 0x70], 0x100
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x70]
lea r8, [rbp - 0x60]
xor edx, edx
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x14000637d
nop dword [rax + rax]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp - 0x60]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400066a9
mov dword [rbp - 0x6c], 0x100
lea rax, [rbp - 0x6c]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.DisplayName
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14000633a
lea rdx, str.Riot_Vanguard
lea rcx, [rbp + 0xa0]
call fcn.14003c6a0
test eax, eax
je 0x140006442
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rbp - 0x70], 0x100
inc ebx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x70]
lea r8, [rbp - 0x60]
mov edx, ebx
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x1400062c0
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
mov r8d, 0x20
lea rdx, str.__Riot_Vanguard_is_not_installed
lea rcx, [rsp + 0x40]
call fcn.140002270
nop
lea rcx, [0x140053ca0]
call fcn.14000b8c0
lea rdx, str.__
call fcn.140001f90
lea rcx, [0x140053d00]
call fcn.14000b8c0
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
call fcn.14000fbf0
lea rcx, [0x140054530]
call fcn.14000d570
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000625a
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006255
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006769
jmp 0x140006255
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.1400147c4
lea rsi, str.C:Program_FilesRiot_Vanguardinstaller.exe
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 0x2c
lea r8, [rsp + 0x40]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.1400032e0
nop
lea rcx, [rsp + 0x60]
call fcn.140004730
movzx ebx, al
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x1400064d1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400064cc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006781
call fcn.140016434
test bl, bl
je 0x1400065f2
lea rcx, [rsp + 0x40]
call fcn.140003140
mov rbx, qword [rax]
movabs rax, 0x2540be400
add rbx, rax
lea rcx, [rsp + 0x40]
call fcn.140003140
xor ecx, ecx
cmp qword [rax], rbx
jge 0x140006529
lea r9d, [rcx + 0x40]
lea r8, str.Uninstall_Vanguard
lea rdx, str.When_prompted_to_uninstall_Vanguard__press_YES
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400064f3
xor r9d, r9d
lea r8, str.installer.exe
mov rdx, rsi
call fcn.140023c6c
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
mov r8d, 0x54
lea rdx, str.__Successfully_prompted_the_user_to_uninstall_Riot_Vanguard__press_Yes_to_uninstall_
lea rcx, [rsp + 0x40]
call fcn.140002270
nop
lea rcx, [0x140053cb0]
call fcn.14000b8c0
lea rdx, str._X_
call fcn.140001f90
lea rcx, [0x140053d00]
call fcn.14000b8c0
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
call fcn.14000fbf0
mov rcx, rax
call fcn.14000d570
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000625a
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006255
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000676f
jmp 0x140006255
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
mov r8d, 0x41
lea rdx, str.__Failed_to_uninstall_Riot_Vanguard__manually_uninstall__Error_8_
lea rcx, [rsp + 0x40]
call fcn.140002270
nop
lea rcx, [0x140053cb0]
call fcn.14000b8c0
lea rdx, str._X_
call fcn.140001f90
lea rcx, [0x140053d00]
call fcn.14000b8c0
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
call fcn.14000fbf0
mov rcx, rax
call fcn.14000d570
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000625a
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006255
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006775
jmp 0x140006255
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
mov r8d, 0x57
lea rdx, str.__Failed_to_check_if_Riot_Vanguard_is_installed__manually_check_and_uninstall__Error_7_
lea rcx, [rsp + 0x40]
call fcn.140002270
nop
lea rcx, [0x140053cb0]
call fcn.14000b8c0
lea rdx, str._X_
call fcn.140001f90
lea rcx, [0x140053d00]
call fcn.14000b8c0
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
call fcn.14000fbf0
mov rcx, rax
call fcn.14000d570
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140006754
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000674f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006763
call fcn.140016434
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000625a
call fcn.14001d19c
int3
call fcn.14001d19c
int3
call fcn.14001d19c
int3
call fcn.14001d19c
int3
call fcn.14001d19c
int3
call fcn.14001d19c
int3