Function at 0x1401f6980
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x7b8]
sub rsp, 0x8a0
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14041da10]
xor rax, rsp
mov qword [rbp + 0x790], rax
mov rsi, rcx
lea r8, [rsp + 0x68]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionInstallerUserData
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
xor r14d, r14d
test eax, eax
jne 0x1401f6a9f
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, r14d
cmp dword [rsp + 0x60], ebx
jbe 0x1401f6a94
mov r9d, 0x400
lea r8, [rbp - 0x70]
mov edx, ebx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
inc ebx
test eax, eax
jne 0x1401f6a87
lea r8, str.Components
mov edx, 0x400
lea rcx, [rbp - 0x70]
call fcn.1402bf098
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x70]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1401f6a8e
lea rdx, [rbp - 0x80]
mov rcx, rsi
call fcn.1401f6c20
jmp 0x1401f6a8e
cmp eax, 0x103
je 0x1401f6a94
cmp ebx, dword [rsp + 0x60]
jb 0x1401f6a30
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, [rsp + 0x68]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionInstallerFolders
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1401f6beb
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, r14d
cmp dword [rsp + 0x60], r14d
jbe 0x1401f6be0
lea r15, [0x14034d1a0]
nop word [rax + rax]
mov dword [rbp - 0x80], 0x800
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x70]
mov edx, edi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc edi
test eax, eax
jne 0x1401f6bcf
lea rax, [rbp - 0x70]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401f6b60
mov qword [rsp + 0x78], r14
test ebx, ebx
jne 0x1401f6b7a
mov qword [rsp + 0x70], r15
jmp 0x1401f6ba0
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.1402028a0
movsxd r9, ebx
mov eax, dword [rsp + 0x78]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x70]
mov rcx, qword [rsp + 0x70]
call fcn.1402c06dc
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.140203bb0
nop
lea rdx, [rsp + 0x70]
mov rcx, qword [rsi + 8]
call fcn.1400f7410
nop
cmp dword [rsp + 0x78], 0
jle 0x1401f6bd6
mov rcx, qword [rsp + 0x70]
call fcn.1402bd0e0
jmp 0x1401f6bd6
cmp eax, 0x103
je 0x1401f6be0
cmp edi, dword [rsp + 0x60]
jb 0x1401f6b20
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x790]
xor rcx, rsp
call fcn.1402bcad0
lea r11, [rsp + 0x8a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret