Function at 0x14000199c
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x140016e10
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x8458
call fcn.14000105f
sub rsp, rax
mov rdi, rsp
mov ecx, 0x2116
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x8470]
mov rax, qword [0x1401940e8]
xor rax, rsp
mov qword [rsp + 0x8440], rax
lea rdx, str.Executing_RemoveMicrosoftUpgradeCodeReg::
mov rax, qword [rsp + 0x8470]
mov rcx, qword [rax + 8]
call fcn.14000222a
lea rcx, [rsp + 0x68]
call fcn.1400036c5
nop
lea rcx, [rsp + 0xa8]
call fcn.1400036c5
nop
lea rcx, [rsp + 0xe8]
call fcn.14000246e
nop
lea rcx, [rsp + 0x118]
call fcn.1400014f1
nop
mov qword [rsp + 0x82b8], 0xffffffff80000002
lea rdx, [rsp + 0x82b8]
lea rcx, [rsp + 0xe8]
call fcn.140001d2a
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionInstallerUpgradeCodes_
mov rcx, rax
call fcn.1400039f9
mov qword [rsp + 0x82c0], 0xffffffff80000000
lea rdx, [rsp + 0x82c0]
lea rcx, [rsp + 0xe8]
call fcn.140001d2a
lea rdx, str.InstallerUpgradeCodes_
mov rcx, rax
call fcn.1400039f9
mov rax, qword [rsp + 0x8470]
mov rcx, qword [rax + 0x10]
call fcn.140001ec4
test eax, eax
je 0x140016f21
mov dword [rsp + 0x83a0], 0xf013f
jmp 0x140016f2c
mov dword [rsp + 0x83a0], 0xf003f
mov eax, dword [rsp + 0x83a0]
mov dword [rsp + 0x144], eax
lea rdx, [rsp + 0x82c8]
lea rcx, [rsp + 0xe8]
call fcn.140001d3e
mov qword [rsp + 0x83a8], rax
mov rdx, qword [rsp + 0x83a8]
lea rcx, [rsp + 0x118]
call fcn.14000147e
lea rcx, [rsp + 0x82c8]
call fcn.140001e60
jmp 0x140016fa0
xor r8d, r8d
lea rdx, [rsp + 0x82e0]
lea rcx, [rsp + 0x118]
call fcn.140004025
lea rcx, [rsp + 0x82e0]
call fcn.140001e60
lea rdx, [rsp + 0x8300]
lea rcx, [rsp + 0xe8]
call fcn.140005768
mov qword [rsp + 0x83b0], rax
mov rax, qword [rsp + 0x83b0]
mov qword [rsp + 0x83b8], rax
mov rdx, qword [rsp + 0x83b8]
lea rcx, [rsp + 0x118]
call fcn.1400049da
mov byte [rsp + 0x82f8], al
lea rcx, [rsp + 0x8300]
call fcn.140001e60
movzx eax, byte [rsp + 0x82f8]
test eax, eax
je 0x1400176c4
mov dword [rsp + 0x154], 0
jmp 0x140017023
mov eax, dword [rsp + 0x154]
inc eax
mov dword [rsp + 0x154], eax
mov eax, dword [rsp + 0x154]
mov qword [rsp + 0x83c0], rax
mov rcx, qword [rsp + 0x8478]
call fcn.1400030cb
mov rcx, qword [rsp + 0x83c0]
cmp rcx, rax
jae 0x1400176bf
lea rcx, [rsp + 0x118]
call fcn.140005a92
add rax, 8
mov rcx, rax
call fcn.140003567
mov qword [rsp + 0x83c8], rax
lea rcx, [rsp + 0x118]
call fcn.140005a92
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x144]
xor r8d, r8d
mov rcx, qword [rsp + 0x83c8]
mov rdx, rcx
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jne 0x1400176af
mov eax, dword [rsp + 0x154]
mov edx, eax
mov rcx, qword [rsp + 0x8478]
call fcn.1400037bf
mov rcx, rax
call fcn.140003567
lea r8, [rsp + 0xa8]
mov rdx, rax
mov rax, qword [rsp + 0x8470]
mov rcx, qword [rax + 0x10]
call fcn.1400012e4
lea rcx, [rsp + 0x118]
call fcn.140005a92
add rax, 8
mov qword [rsp + 0x83d0], rax
lea rcx, [rsp + 0x118]
call fcn.140005a92
mov rcx, qword [rsp + 0x8470]
add rcx, 0x30
mov rdx, rax
call fcn.140004e44
lea r8, [0x14013af34]
mov rdx, rax
lea rcx, [rsp + 0x158]
call fcn.1400024dc
mov qword [rsp + 0x83d8], rax
mov rax, qword [rsp + 0x83d8]
mov qword [rsp + 0x83e0], rax
mov rax, qword [rsp + 0x83d0]
mov r8, rax
mov rdx, qword [rsp + 0x83e0]
lea rcx, [rsp + 0x180]
call fcn.140002e50
mov qword [rsp + 0x83e8], rax
mov rax, qword [rsp + 0x83e8]
mov qword [rsp + 0x83f0], rax
lea r8, [rsp + 0xa8]
mov rdx, qword [rsp + 0x83f0]
lea rcx, [rsp + 0x1a8]
call fcn.140002e50
mov qword [rsp + 0x83f8], rax
mov rdx, qword [rsp + 0x83f8]
lea rcx, [rsp + 0x68]
call fcn.1400014a6
lea rcx, [rsp + 0x1a8]
call fcn.1400049d0
nop
lea rcx, [rsp + 0x180]
call fcn.1400049d0
nop
lea rcx, [rsp + 0x158]
call fcn.1400049d0
mov byte [rsp + 0x1e4], 0
lea rcx, [rsp + 0x118]
call fcn.140005a92
add rax, 8
lea r8, [rsp + 0xa8]
mov rdx, rax
lea rcx, [rsp + 0x1e8]
call fcn.140004e94
mov qword [rsp + 0x8400], rax
mov rax, qword [rsp + 0x8400]
mov qword [rsp + 0x8408], rax
mov rcx, qword [rsp + 0x8408]
call fcn.140003567
mov qword [rsp + 0x8410], rax
lea rcx, [rsp + 0x118]
call fcn.140005a92
lea rcx, [rsp + 0x1d8]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x144]
xor r8d, r8d
mov rcx, qword [rsp + 0x8410]
mov rdx, rcx
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140017299
mov dword [rsp + 0x8418], 1
jmp 0x1400172a4
mov dword [rsp + 0x8418], 0
movzx eax, byte [rsp + 0x8418]
mov byte [rsp + 0x8318], al
lea rcx, [rsp + 0x1e8]
call fcn.1400049d0
movzx eax, byte [rsp + 0x8318]
test eax, eax
je 0x140017596
lea rax, [rsp + 0x220]
mov rdi, rax
xor eax, eax
mov ecx, 0x7ffe
rep stosb byte [rdi], al
mov dword [rsp + 0x8234], 0x3fff
mov dword [rsp + 0x8244], 0
mov dword [rsp + 0x154], 0
jmp 0x140017317
mov eax, dword [rsp + 0x154]
inc eax
mov dword [rsp + 0x154], eax
cmp dword [rsp + 0x8244], 0x103
je 0x140017588
mov dword [rsp + 0x8234], 0x3fff
mov eax, 2
imul rax, rax, 0
mov qword [rsp + 0x8320], rax
cmp qword [rsp + 0x8320], 0x7ffe
jae 0x140017354
jmp 0x140017359
call fcn.1400035b2
xor eax, eax
mov rcx, qword [rsp + 0x8320]
mov word [rsp + rcx + 0x220], ax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x8234]
lea r8, [rsp + 0x220]
mov edx, dword [rsp + 0x154]
mov rcx, qword [rsp + 0x1d8]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [rsp + 0x8244], eax
cmp dword [rsp + 0x8244], 0
jne 0x140017583
mov eax, 2
imul rax, rax, 0
lea rax, [rsp + rax + 0x220]
mov rdx, rax
lea rcx, [rsp + 0x8258]
call fcn.14000194c
nop
lea rax, [rsp + 0x8328]
mov qword [rsp + 0x8350], rax
lea rdx, [rsp + 0x8258]
mov rcx, qword [rsp + 0x8350]
call fcn.140002f4f
mov qword [rsp + 0x8420], rax
mov r8b, 1
mov rdx, qword [rsp + 0x8420]
mov rax, qword [rsp + 0x8470]
mov rcx, qword [rax + 0x10]
call fcn.1400031e8
movzx eax, al
test eax, eax
je 0x140017576
mov rax, qword [rsp + 0x8470]
mov rcx, qword [rax + 0x10]
call fcn.140001ec4
test eax, eax
je 0x14001745e
mov byte [rsp + 0x8428], 1
jmp 0x140017466
mov byte [rsp + 0x8428], 0
lea rcx, [rsp + 0x68]
call fcn.140003567
mov qword [rsp + 0x8358], rax
lea rcx, [rsp + 0x118]
call fcn.140005a92
add rax, 8
lea r8, [rsp + 0xa8]
mov rdx, rax
lea rcx, [rsp + 0x8288]
call fcn.140004e94
mov qword [rsp + 0x8430], rax
mov rax, qword [rsp + 0x8430]
mov qword [rsp + 0x8438], rax
lea rcx, [rsp + 0x118]
call fcn.140005a92
movzx ecx, byte [rsp + 0x8428]
mov byte [rsp + 0x30], cl
mov dword [rsp + 0x28], 0
lea rcx, [rsp + 0x8358]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x8258]
mov r8, qword [rsp + 0x8438]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x8470]
mov rcx, qword [rax + 0x10]
call fcn.140003341
nop
lea rcx, [rsp + 0x8288]
call fcn.1400049d0
lea rax, [rsp + 0x8370]
lea rcx, [rsp + 0x8258]
mov rdi, rax
mov rsi, rcx
mov ecx, MsiEnumProductsW
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x68]
call fcn.140003567
mov ecx, dword [rsp + 0x154]
mov dword [rsp + 0x20], ecx
lea r9, [rsp + 0x8370]
mov r8, rax
lea rdx, str.Registry_value_deleted_:_Key:_s__value:_s_atindex:_d
mov rax, qword [rsp + 0x8470]
mov rcx, qword [rax + 8]
call fcn.1400051a0
mov byte [rsp + 0x1e4], 1
lea rcx, [rsp + 0x8258]
call fcn.1400049d0
jmp 0x140017307
mov rcx, qword [rsp + 0x1d8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, dword [rsp + 0x154]
lea rdx, str.RemoveMicrosoftUpgradeCodeReg:_Number_of_registered_Products_for_this_upgrade_code__d
mov rax, qword [rsp + 0x8470]
mov rcx, qword [rax + 8]
call fcn.1400051a0
cmp dword [rsp + 0x154], 2
jne 0x1400176af
movzx eax, byte [rsp + 0x1e4]
test eax, eax
je 0x1400176af
lea rcx, [rsp + 0x68]
call fcn.140003567
mov qword [rsp + 0x8360], rax
lea rcx, [rsp + 0xa8]
call fcn.140003567
mov qword [rsp + 0x8368], rax
mov dword [rsp + 0x28], 0
lea rax, [rsp + 0x144]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x8360]
lea r8, [rsp + 0x8368]
lea rdx, [rsp + 0x48]
mov rax, qword [rsp + 0x8470]
mov rcx, qword [rax + 0x10]
call fcn.14000299b
mov dword [rsp + 0xd4], eax
cmp dword [rsp + 0xd4], 0
jne 0x14001766e
lea rcx, [rsp + 0x68]
call fcn.140003567
mov r8, rax
lea rdx, [0x14013b698]
mov rax, qword [rsp + 0x8470]
mov rcx, qword [rax + 8]
call fcn.1400051a0
jmp 0x1400176af
cmp dword [rsp + 0xd4], 2
je 0x1400176af
cmp dword [rsp + 0xd4], 3
je 0x1400176af
lea rcx, [rsp + 0x68]
call fcn.140003567
mov r9d, dword [rsp + 0xd4]
mov r8, rax
lea rdx, [0x14013b960]
mov rax, qword [rsp + 0x8470]
mov rcx, qword [rax + 8]
call fcn.1400028b0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140017013
jmp 0x140016f7b
lea rcx, [rsp + 0x118]
call fcn.140001e60
nop
lea rcx, [rsp + 0xe8]
call fcn.140002801
nop
lea rcx, [rsp + 0xa8]
call fcn.1400049d0
nop
lea rcx, [rsp + 0x68]
call fcn.1400049d0
mov rcx, rsp
lea rdx, [0x14013e628]
call fcn.140005466
mov rcx, qword [rsp + 0x8440]
xor rcx, rsp
call fcn.1400023b0
add rsp, 0x8458
pop rdi
pop rsi
ret