Function at 0x140004223
Capabilities:
Query or enumerate registry key

Disassembly:
jmp 0x1400180c0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x5f0
mov rdi, rsp
mov ecx, 0x17c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x600]
mov rax, qword [0x1401940e8]
xor rax, rsp
mov qword [rsp + 0x5e0], rax
lea rdx, str.Executing_RemoveMicrosoftProductReg::
mov rax, qword [rsp + 0x600]
mov rcx, qword [rax + 8]
call fcn.14000222a
mov dword [rsp + 0x84], 0
lea rax, [rsp + 0xd0]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov dword [rsp + 0x2f4], 0x104
lea rcx, [rsp + 0x318]
call fcn.1400036c5
nop
lea rcx, [rsp + 0x378]
call fcn.1400036c5
nop
mov rax, qword [rsp + 0x600]
mov rcx, qword [rax + 0x10]
call fcn.140001ec4
test eax, eax
je 0x14001817a
mov dword [rsp + 0x560], 0xf013f
jmp 0x140018185
mov dword [rsp + 0x560], 0xf003f
mov eax, dword [rsp + 0x560]
mov dword [rsp + 0x3b4], eax
lea rcx, [rsp + 0x3d8]
call fcn.14000246e
nop
lea rcx, [rsp + 0x408]
call fcn.1400014f1
nop
mov qword [rsp + 0x4d0], 0xffffffff80000002
lea rdx, [rsp + 0x4d0]
lea rcx, [rsp + 0x3d8]
call fcn.140001d2a
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionInstallerUserdataS_1_5_18Products_
mov rcx, rax
call fcn.1400039f9
mov qword [rsp + 0x4d8], 0xffffffff80000000
lea rdx, [rsp + 0x4d8]
lea rcx, [rsp + 0x3d8]
call fcn.140001d2a
lea rdx, str.InstallerProducts_
mov rcx, rax
call fcn.1400039f9
lea rdx, [rsp + 0x4e0]
lea rcx, [rsp + 0x3d8]
call fcn.140001d3e
mov qword [rsp + 0x568], rax
mov rdx, qword [rsp + 0x568]
lea rcx, [rsp + 0x408]
call fcn.14000147e
lea rcx, [rsp + 0x4e0]
call fcn.140001e60
jmp 0x140018275
xor r8d, r8d
lea rdx, [rsp + 0x4f8]
lea rcx, [rsp + 0x408]
call fcn.140004025
lea rcx, [rsp + 0x4f8]
call fcn.140001e60
lea rdx, [rsp + 0x518]
lea rcx, [rsp + 0x3d8]
call fcn.140005768
mov qword [rsp + 0x570], rax
mov rax, qword [rsp + 0x570]
mov qword [rsp + 0x578], rax
mov rdx, qword [rsp + 0x578]
lea rcx, [rsp + 0x408]
call fcn.1400049da
mov byte [rsp + 0x510], al
lea rcx, [rsp + 0x518]
call fcn.140001e60
movzx eax, byte [rsp + 0x510]
test eax, eax
je 0x140018826
lea rcx, [rsp + 0x408]
call fcn.140005a92
add rax, 8
mov rcx, rax
call fcn.140003567
mov qword [rsp + 0x580], rax
lea rcx, [rsp + 0x408]
call fcn.140005a92
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x3b4]
xor r8d, r8d
mov rcx, qword [rsp + 0x580]
mov rdx, rcx
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x74], eax
cmp dword [rsp + 0x74], 0
jne 0x1400187da
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0xa4]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x84]
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]
test eax, eax
jne 0x1400187cd
cmp dword [rsp + 0x84], 0
je 0x1400187cd
mov dword [rsp + 0x424], 0
jmp 0x1400183d7
mov eax, dword [rsp + 0x424]
inc eax
mov dword [rsp + 0x424], eax
mov eax, dword [rsp + 0x84]
cmp dword [rsp + 0x424], eax
jae 0x1400187cd
mov dword [rsp + 0x2f4], 0x104
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2f4]
lea r8, [rsp + 0xd0]
mov edx, dword [rsp + 0x424]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 0
jne 0x1400187c8
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x318]
call fcn.140003198
xor r8d, r8d
lea rdx, [0x14013bb78]
lea rcx, [rsp + 0x318]
call fcn.140003968
cmp rax, 0xffffffffffffffff
je 0x1400184e2
cmp dword [rsp + 0x608], 0
jne 0x1400184e2
xor r8d, r8d
lea rdx, [0x14013bda0]
lea rcx, [rsp + 0x318]
call fcn.140003968
cmp rax, 0xffffffffffffffff
jne 0x140018532
xor r8d, r8d
lea rdx, [0x14013bdb0]
lea rcx, [rsp + 0x318]
call fcn.140003968
cmp rax, 0xffffffffffffffff
jne 0x140018532
xor r8d, r8d
lea rdx, [0x14013bdc0]
lea rcx, [rsp + 0x318]
call fcn.140003968
cmp rax, 0xffffffffffffffff
jne 0x140018532
xor r8d, r8d
lea rdx, [0x14013bc18]
lea rcx, [rsp + 0x318]
call fcn.140003968
cmp rax, 0xffffffffffffffff
je 0x1400187c8
cmp dword [rsp + 0x608], 1
jne 0x1400187c8
xor r8d, r8d
lea rdx, [0x14013bdd0]
lea rcx, [rsp + 0x318]
call fcn.140003968
cmp rax, 0xffffffffffffffff
je 0x1400187c8
lea rax, [rsp + 0x530]
mov qword [rsp + 0x558], rax
lea rdx, [rsp + 0x318]
mov rcx, qword [rsp + 0x558]
call fcn.140002f4f
mov qword [rsp + 0x588], rax
mov r8b, 1
mov rdx, qword [rsp + 0x588]
mov rax, qword [rsp + 0x600]
mov rcx, qword [rax + 0x10]
call fcn.1400031e8
movzx eax, al
test eax, eax
je 0x1400187c8
lea rcx, [rsp + 0x408]
call fcn.140005a92
add rax, 8
mov qword [rsp + 0x590], rax
lea rcx, [rsp + 0x408]
call fcn.140005a92
mov rcx, qword [rsp + 0x600]
add rcx, 0x30
mov rdx, rax
call fcn.140004e44
lea r8, [0x14013af74]
mov rdx, rax
lea rcx, [rsp + 0x428]
call fcn.1400024dc
mov qword [rsp + 0x598], rax
mov rax, qword [rsp + 0x598]
mov qword [rsp + 0x5a0], rax
mov rax, qword [rsp + 0x590]
mov r8, rax
mov rdx, qword [rsp + 0x5a0]
lea rcx, [rsp + 0x450]
call fcn.140002e50
mov qword [rsp + 0x5a8], rax
mov rax, qword [rsp + 0x5a8]
mov qword [rsp + 0x5b0], rax
lea r8, [rsp + 0x318]
mov rdx, qword [rsp + 0x5b0]
lea rcx, [rsp + 0x478]
call fcn.140002e50
mov qword [rsp + 0x5b8], rax
mov rdx, qword [rsp + 0x5b8]
lea rcx, [rsp + 0x378]
call fcn.1400014a6
lea rcx, [rsp + 0x478]
call fcn.1400049d0
nop
lea rcx, [rsp + 0x450]
call fcn.1400049d0
nop
lea rcx, [rsp + 0x428]
call fcn.1400049d0
mov rax, qword [rsp + 0x600]
add rax, 0x30
mov qword [rsp + 0x5c0], rax
lea rcx, [rsp + 0x408]
call fcn.140005a92
add rax, 8
lea r8, [rsp + 0x318]
mov rdx, rax
lea rcx, [rsp + 0x4a0]
call fcn.140004e94
mov qword [rsp + 0x5c8], rax
mov rax, qword [rsp + 0x5c8]
mov qword [rsp + 0x5d0], rax
mov rcx, qword [rsp + 0x5d0]
call fcn.140003567
mov qword [rsp + 0x5d8], rax
lea rcx, [rsp + 0x408]
call fcn.140005a92
mov rcx, qword [rsp + 0x5c0]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x354]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x3b4]
mov rcx, qword [rsp + 0x5d8]
mov r8, rcx
mov rdx, rax
mov rax, qword [rsp + 0x600]
mov rcx, qword [rax + 0x10]
call fcn.1400059f7
nop
lea rcx, [rsp + 0x4a0]
call fcn.1400049d0
cmp dword [rsp + 0x354], 0
jne 0x140018784
lea rcx, [rsp + 0x378]
call fcn.140003567
mov r8, rax
lea rdx, [0x14013bde0]
mov rax, qword [rsp + 0x600]
mov rcx, qword [rax + 8]
call fcn.1400051a0
jmp 0x1400187c8
cmp dword [rsp + 0x354], 2
je 0x1400187c8
cmp dword [rsp + 0x354], 3
je 0x1400187c8
lea rcx, [rsp + 0x378]
call fcn.140003567
mov r9d, dword [rsp + 0x354]
mov r8, rax
lea rdx, [0x14013be10]
mov rax, qword [rsp + 0x600]
mov rcx, qword [rax + 8]
call fcn.1400028b0
jmp 0x1400183c7
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140018821
cmp dword [rsp + 0x74], 2
je 0x140018821
cmp dword [rsp + 0x74], 3
je 0x140018821
lea rcx, [rsp + 0x408]
call fcn.140005a92
add rax, 8
mov rcx, rax
call fcn.140003567
mov r9d, dword [rsp + 0x74]
mov r8, rax
lea rdx, [0x14013be80]
mov rax, qword [rsp + 0x600]
mov rcx, qword [rax + 8]
call fcn.1400028b0
jmp 0x140018250
lea rcx, [rsp + 0x408]
call fcn.140001e60
nop
lea rcx, [rsp + 0x3d8]
call fcn.140002801
nop
lea rcx, [rsp + 0x378]
call fcn.1400049d0
nop
lea rcx, [rsp + 0x318]
call fcn.1400049d0
mov rcx, rsp
lea rdx, [0x14013ec58]
call fcn.140005466
mov rcx, qword [rsp + 0x5e0]
xor rcx, rsp
call fcn.1400023b0
add rsp, 0x5f0
pop rdi
ret