Function at 0x140017a04
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 8], 0xfffffffffffffffe
mov rbx, rcx
xor r14d, r14d
mov qword [rbp - 0x18], r14
mov edi, r14d
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x28], r14
mov byte [rbp + 0x30], r14b
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [rcx + 0x20]
mov rcx, qword [rcx + 0x78]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140017fe5
mov rax, qword [rbx + 0xa0]
test rax, rax
jne 0x140017a7b
mov ebx, 0x80004004
jmp 0x140017ff3
mov rdi, rax
mov rax, qword [rax]
movabs r10, 0xfd41b67356dad870
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [0x1400398b8]
nop
mov qword [rbp - 0x10], rdi
mov rax, qword [rdi]
mov rbx, qword [rax]
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140017ac8
mov qword [rbp - 0x20], r14
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [0x1400398b8]
nop
movabs r10, 0xdee01e7974d59970
lea r8, [rbp - 0x20]
lea rdx, [0x14003fe40]
mov rcx, rdi
mov rax, rbx
call qword [0x1400398b8]
mov ebx, eax
test eax, eax
jns 0x140017af6
mov ecx, eax
jmp 0x140017ff5
mov rcx, qword [rbp - 0x20]
mov rax, qword [rcx]
movabs r10, 0x99a40f9a16d72170
lea rdx, [rbp - 0x28]
mov rax, qword [rax + 0x30]
call qword [0x1400398b8]
mov ebx, eax
test eax, eax
js 0x140017aef
mov rcx, qword [rbp - 0x28]
mov rax, qword [rcx]
movabs r10, 0xe4b1b66e325e9970
lea rdx, [rbp + 0x30]
mov rax, qword [rax + 0x38]
call qword [0x1400398b8]
mov ebx, eax
test eax, eax
js 0x140017aef
jmp 0x140017d5e
mov qword [rbp + 0x48], r14
mov qword [rbp + 0x38], r14
mov qword [rbp - 0x30], r14
mov qword [rbp + 0x40], r14
mov rcx, qword [rbp - 0x28]
mov rax, qword [rcx]
movabs r10, 0xe9e08eb43e5cd170
lea rdx, [rbp + 0x48]
mov rax, qword [rax + 0x30]
call qword [0x1400398b8]
mov ebx, eax
test eax, eax
js 0x140017f69
mov rbx, qword [rbp + 0x48]
mov rax, qword [rbx]
mov rsi, qword [rax + 0x30]
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
nop dword [rax + rax]
mov qword [rbp + 0x38], r14
movabs r10, 0xf9552ec338dda870
lea rdx, [rbp + 0x38]
mov rcx, rbx
mov rax, rsi
call qword [0x1400398b8]
mov ebx, eax
test eax, eax
js 0x140017eea
mov rcx, qword [rbp + 0x48]
mov rax, qword [rcx]
movabs r10, 0x94591f6456d2e170
lea rdx, [rbp - 0x30]
mov rax, qword [rax + 0x38]
call qword [0x1400398b8]
mov ebx, eax
test eax, eax
js 0x140017e6b
mov rbx, qword [rbp - 0x30]
mov rax, qword [rbx]
mov rsi, qword [rax + 0x40]
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
nop dword [rax + rax]
mov qword [rbp + 0x40], r14
movabs r10, 0xa38087fd7ed61a70
lea rdx, [rbp + 0x40]
mov rcx, rbx
mov rax, rsi
call qword [0x1400398b8]
mov ebx, eax
test eax, eax
js 0x140017dec
xor edx, edx
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringRawBuffer]
nop dword [rax + rax]
mov rbx, rax
xor edx, edx
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringRawBuffer]
nop dword [rax + rax]
mov rdx, rax
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], r14w
jne 0x140017c5b
lea eax, [rcx*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x140017cc3
xor edx, edx
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringRawBuffer]
nop dword [rax + rax]
movzx ecx, bx
or ecx, 0x80070000
test ebx, ebx
cmovle ecx, ebx
mov r8, rax
lea rdx, str.Failed_to_write__s_to_cache.
call fcn.14000c5f4
mov rcx, qword [rbp - 0x28]
mov rax, qword [rcx]
movabs r10, 0xd96cb6e258d3d270
lea rdx, [rbp + 0x30]
mov rax, qword [rax + 0x40]
call qword [0x1400398b8]
mov ebx, eax
test eax, eax
js 0x140017d6d
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
nop dword [rax + rax]
mov qword [rbp + 0x40], r14
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140017d25
mov qword [rbp - 0x30], r14
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [0x1400398b8]
nop
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
nop dword [rax + rax]
mov qword [rbp + 0x38], r14
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x140017d5e
mov qword [rbp + 0x48], r14
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [0x1400398b8]
nop
cmp byte [rbp + 0x30], r14b
jne 0x140017b45
jmp 0x140017ffa
mov ecx, eax
call fcn.14000d0b0
nop
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
nop dword [rax + rax]
mov qword [rbp + 0x40], r14
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140017dae
mov qword [rbp - 0x30], r14
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [0x1400398b8]
nop
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
nop dword [rax + rax]
mov qword [rbp + 0x38], r14
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x140017de7
mov qword [rbp + 0x48], r14
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [0x1400398b8]
nop
jmp 0x140017ffa
mov ecx, eax
call fcn.14000d0b0
nop
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
nop dword [rax + rax]
mov qword [rbp + 0x40], r14
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140017e2d
mov qword [rbp - 0x30], r14
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [0x1400398b8]
nop
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
nop dword [rax + rax]
mov qword [rbp + 0x38], r14
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x140017e66
mov qword [rbp + 0x48], r14
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [0x1400398b8]
nop
jmp 0x140017ffa
mov ecx, eax
call fcn.14000d0b0
nop
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
nop dword [rax + rax]
mov qword [rbp + 0x40], r14
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140017eac
mov qword [rbp - 0x30], r14
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [0x1400398b8]
nop
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
nop dword [rax + rax]
mov qword [rbp + 0x38], r14
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x140017ee5
mov qword [rbp + 0x48], r14
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [0x1400398b8]
nop
jmp 0x140017ffa
mov ecx, eax
call fcn.14000d0b0
nop
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
nop dword [rax + rax]
mov qword [rbp + 0x40], r14
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140017f2b
mov qword [rbp - 0x30], r14
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [0x1400398b8]
nop
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
nop dword [rax + rax]
mov qword [rbp + 0x38], r14
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x140017f64
mov qword [rbp + 0x48], r14
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [0x1400398b8]
nop
jmp 0x140017ffa
mov ecx, eax
call fcn.14000d0b0
nop
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
nop dword [rax + rax]
mov qword [rbp + 0x40], r14
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140017faa
mov qword [rbp - 0x30], r14
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [0x1400398b8]
nop
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
nop dword [rax + rax]
mov qword [rbp + 0x38], r14
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x140017fe3
mov qword [rbp + 0x48], r14
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [0x1400398b8]
nop
jmp 0x140017ffa
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.14000d0b0
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14001800f
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov ecx, ebx
call fcn.14000cfd4
nop
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x14001803c
mov qword [rbp - 0x28], r14
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [0x1400398b8]
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140018061
mov qword [rbp - 0x20], r14
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [0x1400398b8]
nop
test rdi, rdi
je 0x140018081
mov rax, qword [rdi]
movabs r10, 0xbaac1f10365eb170
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [0x1400398b8]
nop
mov eax, ebx
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret