Function at 0x14001a010
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x388]
sub rsp, 0x460
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400f5010]
xor rax, rsp
mov qword [rbp + 0x350], rax
mov r12, rdx
xor r15d, r15d
mov r14, qword [rcx + 0xe8]
test r14, r14
je 0x14001a295
call fcn.140003970
mov rcx, rax
test rax, rax
je 0x14001a2ce
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
test r14, r14
je 0x14001a2c3
mov rdi, r14
mov r14, qword [r14]
add rdi, 0x10
mov rdx, qword [rdi]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x14001a0ef
cmp dword [rbx + 0x10], 0
jl 0x14001a0e1
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14001a0e1
call fcn.1400051f0
mov rsi, rax
mov ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x14001a0d6
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rsi + 0x18]
mov qword [rsp + 0x40], rax
jmp 0x14001a0ef
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x40]
call fcn.140003400
mov eax, dword [rdi + 8]
mov dword [rsp + 0x48], eax
mov eax, dword [rdi + 0xc]
mov dword [rsp + 0x4c], eax
xor edx, edx
lea rax, [rsp + 0x50]
sub rdi, rax
nop word [rax + rax]
lea rcx, [rsp + 0x50]
add rcx, rdx
movzx eax, byte [rdi + rcx + 0x10]
mov byte [rcx], al
movzx eax, byte [rdi + rcx + 0x11]
mov byte [rcx + 1], al
add rdx, 2
cmp rdx, 0x400
jb 0x14001a110
mov eax, dword [rsp + 0x48]
cmp eax, 4
jne 0x14001a175
lea r15d, [rax - 3]
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9d, [r15 + 3]
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, qword [r12]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov eax, dword [rsp + 0x48]
cmp eax, 7
jne 0x14001a1e4
lea r15d, [rax - 6]
xor r8d, r8d
lea rdx, [rsp + 0x50]
nop word [rax + rax]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x14001a1a0
inc eax
lea rdx, [rdx + rax*2]
lea r8d, [r8 + rax*2]
cmp eax, r15d
jne 0x14001a190
mov dword [rsp + 0x28], r8d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, qword [r12]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov eax, dword [rsp + 0x48]
cmp eax, 1
jne 0x14001a239
mov r15d, eax
lea rcx, [rsp + 0x50]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x14001a200
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, r15d
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, qword [r12]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov eax, dword [rsp + 0x48]
cmp eax, 3
jne 0x14001a26b
lea r15d, [rax - 2]
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9d, [r15 + 2]
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, qword [r12]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001a28c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test r14, r14
jne 0x14001a061
mov eax, r15d
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.14008ade0
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140003700
nop
mov ecx, 0x80004005
call fcn.140003700
int3