Function at 0x140006360
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 0x1400064a2
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.140002430
nop
lea rcx, [0x140053cb0]
call fcn.14000b710
lea rdx, str._X_
call fcn.140002150
lea rcx, [0x140053d00]
call fcn.14000b710
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
call fcn.14000fa40
mov rcx, rax
call fcn.14000d3c0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000647a
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006475
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000699b
call fcn.140016554
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1400164f0
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 0x14000659d
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 0x1400068c9
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 0x14000655a
lea rdx, str.Riot_Vanguard
lea rcx, [rbp + 0xa0]
call fcn.14003c550
test eax, eax
je 0x140006662
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 0x1400064e0
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.140002430
nop
lea rcx, [0x140053ca0]
call fcn.14000b710
lea rdx, str.__
call fcn.140002150
lea rcx, [0x140053d00]
call fcn.14000b710
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
call fcn.14000fa40
lea rcx, [0x140054530]
call fcn.14000d3c0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000647a
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006475
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006989
jmp 0x140006475
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.140014898
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.140003500
nop
lea rcx, [rsp + 0x60]
call fcn.140004950
movzx ebx, al
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x1400066f1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400066ec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400069a1
call fcn.140016554
test bl, bl
je 0x140006812
lea rcx, [rsp + 0x40]
call fcn.140003360
mov rbx, qword [rax]
movabs rax, 0x2540be400
add rbx, rax
lea rcx, [rsp + 0x40]
call fcn.140003360
xor ecx, ecx
cmp qword [rax], rbx
jge 0x140006749
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 0x140006713
xor r9d, r9d
lea r8, str.installer.exe
mov rdx, rsi
call fcn.140023c34
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.140002430
nop
lea rcx, [0x140053cb0]
call fcn.14000b710
lea rdx, str._X_
call fcn.140002150
lea rcx, [0x140053d00]
call fcn.14000b710
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
call fcn.14000fa40
mov rcx, rax
call fcn.14000d3c0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000647a
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006475
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000698f
jmp 0x140006475
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.140002430
nop
lea rcx, [0x140053cb0]
call fcn.14000b710
lea rdx, str._X_
call fcn.140002150
lea rcx, [0x140053d00]
call fcn.14000b710
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
call fcn.14000fa40
mov rcx, rax
call fcn.14000d3c0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000647a
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006475
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006995
jmp 0x140006475
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.140002430
nop
lea rcx, [0x140053cb0]
call fcn.14000b710
lea rdx, str._X_
call fcn.140002150
lea rcx, [0x140053d00]
call fcn.14000b710
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
call fcn.14000fa40
mov rcx, rax
call fcn.14000d3c0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140006974
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000696f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006983
call fcn.140016554
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000647a
call fcn.14001d508
int3
call fcn.14001d508
int3
call fcn.14001d508
int3
call fcn.14001d508
int3
call fcn.14001d508
int3
call fcn.14001d508
int3