Function at 0x140006310
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], r14
mov qword [rsp + 0x18], r15
push rbp
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x14006b020]
xor rax, rsp
mov qword [rbp + 0x60], rax
lea r15, vtable.CTracePie.0
mov qword [rbp - 0x60], r15
xor r14d, r14d
mov qword [rbp + 0x48], r14
mov word [rbp + 0x50], 0x100
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rbp + 0x48], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp + 0x4c], eax
lea r9d, [r14 + 0x4a]
lea r8, str.PIE_Migration::IsWixInstallerRunning
lea edx, [r14 + 0x78]
lea rcx, [rbp - 0x58]
call fcn.1400133b0
lea r9d, [r14 + 0x2c]
lea r8, str.PIE_SERVICE_MIGRATION
lea edx, [r14 + 0x28]
lea rcx, [rbp + 0x20]
call fcn.1400133b0
cmp byte [rbp + 0x51], 1
jne 0x1400063ae
lea r8, [0x14005a24c]
lea edx, [r14 + 5]
lea rcx, [rbp - 0x60]
call fcn.1400134a0
lea rax, vtable.CTracePieServiceMigration.0
mov qword [rbp - 0x60], rax
mov esi, r14d
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14006f850], eax
jle 0x140006410
lea rcx, [0x14006f850]
call fcn.140022568
cmp dword [0x14006f850], 0xffffffff
jne 0x140006410
mov qword [0x14006f858], 0xffffffff80000002
lea rcx, [0x140045560]
call fcn.1400228ec
lea rcx, [0x14006f850]
call fcn.140022508
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0xf013f
xor r8d, r8d
lea rdx, str.SOFTWAREWOW6432NodeMicrosoftWindowsCurrentVersionUninstall
mov rcx, qword [0x14006f858]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r14w
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], r14w
lea r9, [rsp + 0x50]
lea r8, str.991283B1_2A60_4F73_8C2A_0520A968E7CD
lea rcx, [rsp + 0x30]
call fcn.140018720
test eax, eax
jne 0x140006531
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0xf013f
xor r8d, r8d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rsi, qword [rsp + 0x38]
mov qword [rsp + 0x70], rsi
mov dword [rsp + 0x44], 4
mov dword [rsp + 0x48], r14d
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, str.Resume
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r9d, dword [rsp + 0x40]
lea r8, str.resume___d
mov edx, 4
lea rcx, [rbp - 0x60]
call fcn.1400134a0
nop
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, r14d
cmp dword [rsp + 0x40], 1
sete sil
lea rcx, str.TRUE
lea rax, str.FALSE
test esi, esi
cmovne rax, rcx
mov qword [rsp + 0x20], rax
lea r9, str.result
lea r8, str.____returned__s___s
mov edx, 4
lea rcx, [rbp - 0x60]
call fcn.1400134a0
mov byte [rbp + 0x50], 1
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1400065a8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400065a3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006615
call fcn.140022904
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r14w
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov qword [rbp - 0x60], r15
cmp byte [rbp + 0x51], 1
jne 0x1400065ee
cmp byte [rbp + 0x50], 0
jne 0x1400065ee
lea r8, [0x14005a254]
mov edx, 5
lea rcx, [rbp - 0x60]
call fcn.1400134a0
nop
mov eax, esi
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.1400223c0
lea r11, [rsp + 0x170]
mov rsi, qword [r11 + 0x10]
mov r14, qword [r11 + 0x18]
mov r15, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.14002c5b4
nop
int3