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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x7e8]
sub rsp, 0x8d0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rbp + 0x7c0], rax
mov rbx, rcx
xor edi, edi
mov r14d, edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rdi
cmp dword [0x140455d78], edi
je 0x140080d85
movzx ecx, word [0x140455b60]
call fcn.14007f830
test eax, eax
je 0x140081120
lea rdx, str.PESOFTWAREMicrosoftWindowsCurrentVersionInstallerUserDataS_1_5_18Products
lea rsi, str.PESOFTWAREMicrosoftWindowsCurrentVersionInstallerUserDataS_1_5_18Patches
jmp 0x140080d93
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionInstallerUserDataS_1_5_18Products
lea rsi, str.SOFTWAREMicrosoftWindowsCurrentVersionInstallerUserDataS_1_5_18Patches
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
mov r9d, 0x20019
mov r8d, 4
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140081120
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
mov r8d, 4
mov rdx, rsi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r9d, 0x104
lea r8, [rbp + 0x3a0]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, 0x103
je 0x14008111b
nop dword [rax]
inc r14d
cmp dword [0x140455b64], 0
jne 0x14008111b
lea r9, [rbp + 0x3a0]
lea r8, str._sInstallProperties
mov edx, 0x104
lea rcx, [rbp + 0x190]
call fcn.14004e9f0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8d, [r9 + 3]
lea rdx, [rbp + 0x190]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140080f35
mov dword [rsp + 0x70], 0x104
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x80]
call fcn.1402767a0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.LocalPackage
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140080f2a
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 8], rax
jne 0x140080ec7
mov rcx, rbx
call fcn.140056010
mov rcx, qword [rbx + 8]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rcx
test rcx, rcx
je 0x140080f25
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], rdi
cmp qword [rcx + 0x18], 8
jb 0x140080ef2
mov rax, qword [rcx]
jmp 0x140080ef5
mov rax, rcx
mov word [rax], di
cmp word [rbp - 0x80], 0
jne 0x140080f04
mov r8, rdi
jmp 0x140080f1b
lea rax, [rbp - 0x80]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140080f10
lea rdx, [rbp - 0x80]
call fcn.14004db90
nop
add qword [rbx + 8], 0x20
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x50], 0
je 0x1400810f5
lea r9, [rbp + 0x3a0]
lea r8, str._sPatches
mov edx, 0x104
lea rcx, [rbp + 0x190]
call fcn.14004e9f0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 9
lea r8d, [r9 - 5]
lea rdx, [rbp + 0x190]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400810f5
mov esi, edi
mov r9d, 0x104
lea r8, [rbp + 0x5b0]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, 0x103
je 0x1400810ea
nop word [rax + rax]
inc esi
cmp dword [0x140455b64], 0
jne 0x1400810ea
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8d, [r9 + 3]
lea rdx, [rbp + 0x5b0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400810c5
mov dword [rsp + 0x70], 0x104
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x80]
call fcn.1402767a0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14032ae70]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400810ba
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 8], rax
jne 0x140081057
mov rcx, rbx
call fcn.140056010
mov rcx, qword [rbx + 8]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
test rcx, rcx
je 0x1400810b5
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], rdi
cmp qword [rcx + 0x18], 8
jb 0x140081082
mov rax, qword [rcx]
jmp 0x140081085
mov rax, rcx
mov word [rax], di
cmp word [rbp - 0x80], 0
jne 0x140081094
mov r8, rdi
jmp 0x1400810ab
lea rax, [rbp - 0x80]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400810a0
lea rdx, [rbp - 0x80]
call fcn.14004db90
nop
add qword [rbx + 8], 0x20
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9d, 0x104
lea r8, [rbp + 0x5b0]
mov edx, esi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, 0x103
jne 0x140080fc0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9d, 0x104
lea r8, [rbp + 0x3a0]
mov edx, r14d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, 0x103
jne 0x140080e10
mov edi, 1
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140081130
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140081140
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x140455d78], 0
je 0x140081185
lea rdx, [0x140326b98]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
lea rdx, [0x140326bb0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
lea rdx, [0x140326c58]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
mov eax, edi
mov rcx, qword [rbp + 0x7c0]
xor rcx, rsp
call fcn.140125a70
lea r11, [rsp + 0x8d0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret