Function at 0x140012fdc
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 rsi, rcx
xor r14d, r14d
mov qword [rbp - 0x18], r14
mov ebx, r14d
mov qword [rbp - 0x10], rbx
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 + 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x140013051
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
je 0x140013051
mov ecx, edi
call fcn.1400091d8
jmp 0x1400132f1
mov rax, qword [rsi + 0x98]
test rax, rax
jne 0x140013064
mov edi, 0x80004004
jmp 0x140013045
mov rbx, rax
mov rax, qword [rax]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x14001d2c8]
mov qword [rbp - 0x10], rbx
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140013095
mov qword [rbp - 0x20], r14
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14001d2c8]
mov rax, qword [rbx]
lea r8, [rbp - 0x20]
lea rdx, [0x140020580]
mov rcx, rbx
mov rax, qword [rax]
call qword [0x14001d2c8]
mov edi, eax
test eax, eax
jns 0x1400130b9
mov ecx, eax
jmp 0x140013047
mov rcx, qword [rbp - 0x20]
mov rax, qword [rcx]
lea rdx, [rbp - 0x28]
mov rax, qword [rax + 0x30]
call qword [0x14001d2c8]
mov edi, eax
test eax, eax
js 0x1400130b5
mov rcx, qword [rbp - 0x28]
mov rax, qword [rcx]
lea rdx, [rbp + 0x30]
mov rax, qword [rax + 0x38]
call qword [0x14001d2c8]
mov edi, eax
test eax, eax
js 0x1400130b5
jmp 0x14001328c
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]
lea rdx, [rbp + 0x48]
mov rax, qword [rax + 0x30]
call qword [0x14001d2c8]
mov edi, eax
test eax, eax
js 0x140013298
mov rdi, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
mov qword [rbp + 0x38], r14
mov rax, qword [rdi]
lea rdx, [rbp + 0x38]
mov rcx, rdi
mov rax, qword [rax + 0x30]
call qword [0x14001d2c8]
mov edi, eax
test eax, eax
js 0x140013298
mov rcx, qword [rbp + 0x48]
mov rax, qword [rcx]
lea rdx, [rbp - 0x30]
mov rax, qword [rax + 0x38]
call qword [0x14001d2c8]
mov edi, eax
test eax, eax
js 0x140013298
mov rdi, qword [rbp - 0x30]
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
mov qword [rbp + 0x40], r14
mov rax, qword [rdi]
lea rdx, [rbp + 0x40]
mov rcx, rdi
mov rax, qword [rax + 0x40]
call qword [0x14001d2c8]
mov edi, eax
test eax, eax
js 0x140013298
xor edx, edx
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringRawBuffer]
mov rdi, rax
xor edx, edx
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringRawBuffer]
mov rdx, rax
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rdi + rcx*2], r14w
jne 0x1400131c4
lea eax, [rcx*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
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]
mov edi, eax
test eax, eax
je 0x140013220
xor edx, edx
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringRawBuffer]
movzx ecx, di
or ecx, 0x80070000
test edi, edi
cmovle ecx, edi
mov r8, rax
lea rdx, str.Failed_to_write__s_to_cache.
call fcn.140008768
mov rcx, qword [rbp - 0x28]
mov rax, qword [rcx]
lea rdx, [rbp + 0x30]
mov rax, qword [rax + 0x40]
call qword [0x14001d2c8]
mov edi, eax
test eax, eax
js 0x140013298
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
mov qword [rbp + 0x40], r14
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140013264
mov qword [rbp - 0x30], r14
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14001d2c8]
nop
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
mov qword [rbp + 0x38], r14
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x14001328c
mov qword [rbp + 0x48], r14
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14001d2c8]
cmp byte [rbp + 0x30], r14b
jne 0x1400130f4
jmp 0x1400132f1
mov ecx, eax
call fcn.1400091d8
nop
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
mov qword [rbp + 0x40], r14
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x1400132c9
mov qword [rbp - 0x30], r14
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14001d2c8]
nop
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
mov qword [rbp + 0x38], r14
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x1400132f1
mov qword [rbp + 0x48], r14
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14001d2c8]
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140013300
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, edi
call fcn.1400091f4
nop
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x140013323
mov qword [rbp - 0x28], r14
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14001d2c8]
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14001333e
mov qword [rbp - 0x20], r14
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14001d2c8]
nop
test rbx, rbx
je 0x140013353
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x10]
call qword [0x14001d2c8]
mov eax, edi
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret