Function at 0x140047510
Capabilities:
Get installed programs
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x7d8]
sub rsp, 0x8b0
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401a1e90]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
mov r12, rcx
mov qword [rbp - 0x68], rcx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x48], r14d
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x68], r14
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9d, [r14 + 1]
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionUninstallGoogle_Chrome
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400475a2
mov rsi, qword [rsp + 0x68]
jmp 0x140047612
mov qword [rsp + 0x70], r14
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionUninstallGoogle_Chrome
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400475d9
mov rsi, qword [rsp + 0x70]
jmp 0x140047612
mov qword [rsp + 0x60], r14
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SoftwareWow6432NodeMicrosoftWindowsCurrentVersionUninstallGoogle_Chrome
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400478d6
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x48], r14d
mov word [rbp - 0x60], r14w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x5e]
call fcn.1400c8db0
lea rcx, [0x1401a19a8]
mov rax, qword [0x1401a19a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
lea r13, [0x1401383d0]
test r13, 0xffffffffffff0000
jne 0x14004767e
movzx edi, r13w
mov ecx, edi
call fcn.1400019f0
test rax, rax
je 0x140047696
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140002530
jmp 0x140047691
mov r8d, 3
mov rdx, r13
lea rcx, [rsp + 0x38]
call fcn.140002240
mov rbx, qword [rsp + 0x38]
mov dword [rsp + 0x58], 0x800
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x5c]
xor r8d, r8d
lea rdx, [0x140136078]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or r15, 0xffffffffffffffff
test eax, eax
jne 0x140047810
mov eax, dword [rsp + 0x5c]
dec eax
cmp eax, 1
ja 0x140047810
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x140047704
test al, 1
jne 0x140047810
shr rax, 1
cmp word [rbp + rax*2 - 0x62], 0
je 0x140047709
jmp 0x140047810
mov word [rbp - 0x60], r14w
lea rax, [rbp - 0x60]
mov rdi, r15
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140047710
test edi, edi
jne 0x14004777f
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x140047810
cmp dword [rdx + 0x10], 0
jge 0x140047753
cmp dword [rbx - 0xc], 0
jge 0x140047746
mov ecx, 0x80070057
call fcn.140001930
int3
mov dword [rbx - 0x10], r14d
mov word [rbx], r14w
jmp 0x140047810
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140047763
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
mov rsi, qword [rsp + 0x40]
jmp 0x140047810
mov r13d, dword [rbx - 0x10]
lea r14, [rbp - 0x60]
sub r14, rbx
sar r14, 1
test edi, edi
jns 0x14004779c
mov ecx, 0x80070057
call fcn.140001930
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400477be
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140002330
mov rbx, qword [rsp + 0x38]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r14, r13
lea r13, [rax + rax]
mov r9, r13
ja 0x1400477e2
lea r8, [rbx + r14*2]
call fcn.1400c419c
jmp 0x1400477eb
lea r8, [rbp - 0x60]
call fcn.1400c4298
cmp edi, dword [rbx - 0xc]
jg 0x140047805
mov dword [rbx - 0x10], edi
xor r14d, r14d
mov word [r13 + rbx], r14w
lea r13, [0x1401383d0]
jmp 0x140047810
mov ecx, 0x80070057
call fcn.140001930
int3
test rsi, rsi
je 0x140047823
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x48], r14d
cmp dword [rbx - 0x10], 0
je 0x14004789b
mov rcx, r14
movzx eax, word [rbx + rcx*2]
inc rcx
cmp ax, word [r13 + rcx*2 - 2]
jne 0x14004784b
cmp rcx, 4
jne 0x140047831
mov eax, r14d
jmp 0x140047850
sbb eax, eax
or eax, 1
test eax, eax
je 0x14004789b
lea rcx, [rbx - 0x18]
call fcn.140002390
add rax, 0x18
mov qword [r12], rax
mov dword [rsp + 0x30], 1
lock add dword [rbx - 8], 0xffffffff
jg 0x140047884
mov rcx, qword [rbx - 0x18]
mov r8, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400478fd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r14
jmp 0x1400478fd
lea rax, [rbp - 0x80]
mov qword [rbp - 0x78], rax
lea rcx, [rbp - 0x80]
call fcn.1400462b0
nop
mov rdx, rax
mov rcx, r12
call fcn.140046e50
mov dword [rsp + 0x30], 1
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140047884
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140047884
lea rax, [rsp + 0x78]
mov qword [rbp - 0x78], rax
lea rcx, [rsp + 0x78]
call fcn.1400462b0
nop
mov rdx, rax
mov rcx, r12
call fcn.140046e50
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x48], r14d
mov rax, r12
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.1400c3970
lea r11, [rsp + 0x8b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret