Function at 0x140018720
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x14006b020]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov qword [rsp + 0x38], r9
mov r15, r8
mov r13, rcx
lea r14, vtable.CTracePie.0
mov qword [rbp - 0x30], r14
xor esi, esi
mov qword [rbp + 0x78], rsi
mov word [rbp + 0x80], si
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rbp + 0x78], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp + 0x7c], eax
lea r9d, [rsi + 0x48]
lea r8, str.PIE_RegistryKey::FindInstallPackage
lea edx, [rsi + 0x78]
lea rcx, [rbp - 0x28]
call fcn.1400133b0
lea r9d, [rsi + 0x12]
lea r8, str.Reg_keys
lea edx, [rsi + 0x28]
lea rcx, [rbp + 0x50]
call fcn.1400133b0
cmp byte [rbp + 0x81], 1
jne 0x1400187cf
lea r8, [0x14005a24c]
lea edx, [rsi + 5]
lea rcx, [rbp - 0x30]
call fcn.1400134a0
lea rax, vtable.CTracePieCommonRegKeys.0
mov qword [rbp - 0x30], rax
mov edi, 2
mov dword [rsp + 0x30], edi
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
mov qword [rbp - 0x80], rsi
lea rdx, [rsp + 0x70]
mov rcx, r13
call fcn.140018510
mov r12, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
cmp rbx, r12
je 0x140018ac6
movabs rax, 0x7ffffffffffffffe
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rsi
mov rsi, qword [rbx + 0x10]
mov r14, rbx
cmp qword [rbx + 0x18], 8
jb 0x14001883a
mov r14, qword [rbx]
cmp rsi, 8
jae 0x140018850
movups xmm0, xmmword [r14]
movups xmmword [rsp + 0x50], xmm0
mov edi, 7
jmp 0x140018884
mov rdi, rsi
or rdi, 7
cmp rdi, rax
cmova rdi, rax
lea rdx, [rdi + 1]
lea rcx, [rsp + 0x50]
call fcn.14000a000
mov qword [rsp + 0x50], rax
lea r8, [rsi*2 + 2]
mov rdx, r14
mov rcx, rax
call fcn.140024700
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x60], rsi
lea rdx, [rsp + 0x50]
cmp rdi, 8
cmovae rdx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0xf013f
xor r8d, r8d
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r14, qword [rsp + 0x40]
mov qword [rbp - 0x40], r14
xor esi, esi
mov dword [rsp + 0x48], esi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.BundleUpgradeCode
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140018a5b
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov dword [rsp + 0x48], esi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.BundleUpgradeCode
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movsxd rdi, dword [rsp + 0x48]
mov dword [rbp - 0x50], edi
mov rcx, rdi
call fcn.140022e68
mov rsi, rax
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x78], edi
xor edi, edi
mov dword [rbp - 0x74], edi
lea rax, [rbp - 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x74]
xor r8d, r8d
lea rdx, str.BundleUpgradeCode
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], di
mov r8, 0xffffffffffffffff
inc r8
cmp word [rsi + r8*2], di
jne 0x140018985
mov rdx, rsi
lea rcx, [rbp - 0x70]
call fcn.140009ed0
nop
mov rcx, rsi
call fcn.140022904
nop
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [r15 + rax*2], 0
jne 0x1400189b0
lea r9, [rbp - 0x70]
mov rsi, qword [rbp - 0x58]
cmp rsi, 8
setae r10b
mov rdi, qword [rbp - 0x70]
cmovae r9, rdi
mov rcx, qword [rbp - 0x60]
cmp rcx, rax
jne 0x140018a1f
mov rax, r15
test rcx, rcx
je 0x140018b77
movzx edx, word [r9]
movzx r8d, word [r15]
cmp dx, r8w
jb 0x140018a1f
sub r9, r15
cmp dx, r8w
ja 0x140018a1f
cmp rcx, 1
je 0x140018b77
dec rcx
add rax, 2
movzx edx, word [rax + r9]
movzx r8d, word [rax]
cmp dx, r8w
jae 0x1400189fd
test r10b, r10b
je 0x140018a59
lea rdx, [rsi*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140018a51
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018c41
mov rcx, rdi
call fcn.140022904
xor esi, esi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140018aa7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018aa2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018c35
call fcn.140022904
add rbx, 0x20
cmp rbx, r12
jne 0x140018810
lea r14, vtable.CTracePie.0
xor esi, esi
mov edi, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x140018b1f
mov rdx, qword [rsp + 0x78]
mov rcx, rbx
call fcn.14000c260
mov rdx, qword [rbp - 0x80]
mov rcx, qword [rsp + 0x70]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018b0d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018c3b
call fcn.140022904
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x30], r14
cmp byte [rbp + 0x81], 1
jne 0x140018b4b
cmp byte [rbp + 0x80], 0
jne 0x140018b4b
lea r8, [0x14005a254]
mov edx, 5
lea rcx, [rbp - 0x30]
call fcn.1400134a0
nop
mov eax, edi
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.1400223c0
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rsp + 0x50]
mov rax, qword [rsp + 0x38]
cmp rax, rcx
je 0x140018ba4
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
mov rcx, rax
call fcn.140009ed0
mov dword [rsp + 0x30], 0
cmp rsi, 8
jb 0x140018be4
lea rdx, [rsi*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140018bdb
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018c41
mov rcx, rdi
call fcn.140022904
nop
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140018ab4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018c2b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018c35
call fcn.140022904
jmp 0x140018ab4
call fcn.14002c5b4
nop
call fcn.14002c5b4
nop
call fcn.14002c5b4
int3