Function at 0x140046910
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 - 0x78], 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 r13, rcx
mov qword [rbp - 0x70], rcx
xor r15d, r15d
mov dword [rsp + 0x30], r15d
mov esi, r15d
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], r15d
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x70], r15
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9d, [r15 + 1]
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionUninstallGoogle_Chrome
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400469b2
mov dword [rsp + 0x48], r15d
mov rsi, qword [rsp + 0x70]
mov qword [rsp + 0x40], rsi
jmp 0x140046ae8
mov qword [rsp + 0x68], r15
lea rax, [rsp + 0x68]
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]
mov r10d, eax
test eax, eax
jne 0x1400469f7
mov dword [rsp + 0x48], r15d
mov r10d, r15d
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x40], rsi
mov r8d, dword [0x1401a9d80]
lea ecx, [r8 + 2]
lea eax, [r8 + 1]
imul ecx, eax
imul ecx, r8d
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xe
sub ecx, edx
cmp ecx, 0xd
jne 0x140046a4f
mov r9d, r15d
test r8d, r8d
je 0x140046a48
mov ecx, r8d
and ecx, 1
add r9d, ecx
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
mov r8d, eax
jne 0x140046a32
mov dword [0x1401a9d80], r9d
test r10d, r10d
je 0x140046ae8
mov qword [rsp + 0x60], r15
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 0x140046ab1
mov eax, r15d
test rsi, rsi
je 0x140046a9e
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], r15d
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x40], rsi
test eax, eax
je 0x140046ae8
lea rax, [rbp - 0x80]
mov qword [rsp + 0x78], rax
lea rcx, [rbp - 0x80]
call fcn.140045e80
nop
mov rdx, rax
mov rcx, r13
call fcn.1400462f0
mov dword [rsp + 0x30], 1
test rsi, rsi
je 0x140046d9e
mov rcx, rsi
jmp 0x140046d93
mov word [rbp - 0x60], r15w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x5e]
call fcn.1400c7c50
lea rcx, [0x1401a19a8]
mov rax, qword [0x1401a19a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
lea r12, [0x1401387e0]
test r12, 0xffffffffffff0000
jne 0x140046b4a
movzx edi, r12w
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x140046b62
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140002750
jmp 0x140046b5d
mov r8d, 3
mov rdx, r12
lea rcx, [rsp + 0x38]
call fcn.140002460
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, [0x1401364c8]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or r14, 0xffffffffffffffff
test eax, eax
jne 0x140046cdf
mov eax, dword [rsp + 0x5c]
dec eax
cmp eax, 1
ja 0x140046cdf
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x140046bd0
test al, 1
jne 0x140046cdf
shr rax, 1
cmp word [rbp + rax*2 - 0x62], 0
je 0x140046bd5
jmp 0x140046cdf
mov word [rbp - 0x60], r15w
lea rax, [rbp - 0x60]
mov rdi, r14
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140046be0
test edi, edi
jne 0x140046c4f
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x140046cdf
cmp dword [rdx + 0x10], 0
jge 0x140046c23
cmp dword [rbx - 0xc], 0
jge 0x140046c16
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x140046cdf
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140046c33
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 0x140046cdf
mov r12d, dword [rbx - 0x10]
lea r15, [rbp - 0x60]
sub r15, rbx
sar r15, 1
test edi, edi
jns 0x140046c6c
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140046c8e
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140002550
mov rbx, qword [rsp + 0x38]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r15, r12
lea r12, [rax + rax]
mov r9, r12
ja 0x140046cb2
lea r8, [rbx + r15*2]
call fcn.1400c303c
jmp 0x140046cbb
lea r8, [rbp - 0x60]
call fcn.1400c31fc
cmp edi, dword [rbx - 0xc]
jg 0x140046cd4
mov dword [rbx - 0x10], edi
xor r15d, r15d
mov word [r12 + rbx], r15w
lea r12, [0x1401387e0]
jmp 0x140046cdf
mov ecx, 0x80070057
call fcn.140001920
int3
test rsi, rsi
je 0x140046cf2
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], r15d
cmp dword [rbx - 0x10], 0
je 0x140046d4d
mov rcx, r15
movzx eax, word [rbx + rcx*2]
inc rcx
cmp ax, word [r12 + rcx*2 - 2]
jne 0x140046d1a
cmp rcx, 4
jne 0x140046d00
mov eax, r15d
jmp 0x140046d1f
sbb eax, eax
or eax, 1
test eax, eax
je 0x140046d4d
lea rcx, [rbx - 0x18]
call fcn.1400025b0
add rax, 0x18
mov qword [r13], rax
mov dword [rsp + 0x30], 1
lock add dword [rbx - 8], 0xffffffff
jg 0x140046d89
mov rcx, qword [rbx - 0x18]
lea rdx, [rbx - 0x18]
jmp 0x140046d82
lea rax, [rsp + 0x78]
mov qword [rbp - 0x68], rax
lea rcx, [rsp + 0x78]
call fcn.140045e80
nop
mov rdx, rax
mov rcx, r13
call fcn.1400462f0
mov dword [rsp + 0x30], 1
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140046d89
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140046d9e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], r15d
mov rax, r13
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.1400c2810
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