Function at 0x140006350
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 [0x140055040]
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 0x140006492
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.140002420
nop
lea rcx, [0x140055cb0]
call fcn.14000bb90
lea rdx, str._X_
call fcn.140002140
lea rcx, [0x140055d00]
call fcn.14000bb90
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
call fcn.14000fec0
mov rcx, rax
call fcn.14000d840
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000646a
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006465
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000698b
call fcn.1400169d4
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140016970
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 0x14000658d
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 0x1400068b9
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 0x14000654a
lea rdx, str.Riot_Vanguard
lea rcx, [rbp + 0xa0]
call fcn.14003ce90
test eax, eax
je 0x140006652
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 0x1400064d0
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.140002420
nop
lea rcx, [0x140055ca0]
call fcn.14000bb90
lea rdx, str.__
call fcn.140002140
lea rcx, [0x140055d00]
call fcn.14000bb90
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
call fcn.14000fec0
lea rcx, [0x140056530]
call fcn.14000d840
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000646a
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006465
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006979
jmp 0x140006465
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.140014d18
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.1400034f0
nop
lea rcx, [rsp + 0x60]
call fcn.140004940
movzx ebx, al
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x1400066e1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400066dc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006991
call fcn.1400169d4
test bl, bl
je 0x140006802
lea rcx, [rsp + 0x40]
call fcn.140003350
mov rbx, qword [rax]
movabs rax, 0x2540be400
add rbx, rax
lea rcx, [rsp + 0x40]
call fcn.140003350
xor ecx, ecx
cmp qword [rax], rbx
jge 0x140006739
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 0x140006703
xor r9d, r9d
lea r8, str.installer.exe
mov rdx, rsi
call fcn.1400241fc
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.140002420
nop
lea rcx, [0x140055cb0]
call fcn.14000bb90
lea rdx, str._X_
call fcn.140002140
lea rcx, [0x140055d00]
call fcn.14000bb90
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
call fcn.14000fec0
mov rcx, rax
call fcn.14000d840
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000646a
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006465
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000697f
jmp 0x140006465
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.140002420
nop
lea rcx, [0x140055cb0]
call fcn.14000bb90
lea rdx, str._X_
call fcn.140002140
lea rcx, [0x140055d00]
call fcn.14000bb90
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
call fcn.14000fec0
mov rcx, rax
call fcn.14000d840
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000646a
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006465
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006985
jmp 0x140006465
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.140002420
nop
lea rcx, [0x140055cb0]
call fcn.14000bb90
lea rdx, str._X_
call fcn.140002140
lea rcx, [0x140055d00]
call fcn.14000bb90
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
call fcn.14000fec0
mov rcx, rax
call fcn.14000d840
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140006964
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000695f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006973
call fcn.1400169d4
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000646a
call fcn.14001d988
int3
call fcn.14001d988
int3
call fcn.14001d988
int3
call fcn.14001d988
int3
call fcn.14001d988
int3
call fcn.14001d988
int3