Function at 0x140006e10
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x14006b020]
xor rax, rsp
mov qword [rbp + 0x110], rax
lea r12, vtable.CTracePie.0
mov qword [rbp - 0x70], r12
xor r15d, r15d
mov qword [rbp + 0x38], r15
mov word [rbp + 0x40], 0x100
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rbp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp + 0x3c], eax
lea r9d, [r15 + 0x40]
lea r8, str.PIE_Migration::HideProsetBundle
lea edx, [r15 + 0x78]
lea rcx, [rbp - 0x68]
call fcn.1400133b0
lea r9d, [r15 + 0x2c]
lea r8, str.PIE_SERVICE_MIGRATION
lea edx, [r15 + 0x28]
lea rcx, [rbp + 0x10]
call fcn.1400133b0
cmp byte [rbp + 0x41], 1
jne 0x140006eb8
lea r8, [0x14005a24c]
lea edx, [r15 + 5]
lea rcx, [rbp - 0x70]
call fcn.1400134a0
lea rax, vtable.CTracePieServiceMigration.0
mov qword [rbp - 0x70], rax
mov esi, 1
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14006f850], eax
jle 0x140006f1c
lea rcx, [0x14006f850]
call fcn.140022568
cmp dword [0x14006f850], 0xffffffff
jne 0x140006f1c
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 + 0x48], r15
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r15w
mov qword [rsp + 0x70], r15
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], r15w
lea r9, [rsp + 0x48]
lea r8, str.FA026B12_71FB_4996_9B82_F64F70B06453
lea rcx, [rsp + 0x30]
call fcn.140018720
test eax, eax
jne 0x1400070c0
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
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 r14, qword [rsp + 0x38]
mov qword [rsp + 0x68], r14
mov dword [rsp + 0x40], esi
mov qword [rbp + 0x50], r12
mov qword [rbp + 0xf8], r15
mov word [rbp + 0x100], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rbp + 0xf8], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp + 0xfc], eax
mov r9d, 0x34
lea r8, str.PIE_RegistryKey::SetValue
lea edx, [r9 + 0x44]
lea rcx, [rbp + 0x58]
call fcn.1400133b0
mov r9d, 0x12
lea r8, str.Reg_keys
lea edx, [r9 + 0x16]
lea rcx, [rbp + 0xd0]
call fcn.1400133b0
cmp byte [rbp + 0x101], 1
jne 0x140007059
lea r8, [0x14005a24c]
mov edx, 5
lea rcx, [rbp + 0x50]
call fcn.1400134a0
lea rax, vtable.CTracePieCommonRegKeys.0
mov qword [rbp + 0x50], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SystemComponent
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov dword [rsp + 0x20], eax
lea r9, str._DWORD_status
lea r8, str.____returned__s__0x_x
mov edx, 4
lea rcx, [rbp + 0x50]
call fcn.1400134a0
mov esi, r15d
test edi, edi
sete sil
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 - 0x70]
call fcn.1400134a0
mov byte [rbp + 0x40], 1
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140007137
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007132
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400071ab
call fcn.140022904
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r15w
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov qword [rbp - 0x70], r12
cmp byte [rbp + 0x41], 1
jne 0x14000717d
cmp byte [rbp + 0x40], 0
jne 0x14000717d
lea r8, [0x14005a254]
mov edx, 5
lea rcx, [rbp - 0x70]
call fcn.1400134a0
nop
mov eax, esi
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.1400223c0
lea r11, [rsp + 0x220]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov r12, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.14002c5b4
nop
int3