Function at 0x14001ae50
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 [0x1400ff010]
xor rax, rsp
mov qword [rbp + 0x350], rax
mov r12, rdx
xor r15d, r15d
mov r14, qword [rcx + 0xe8]
test r14, r14
je 0x14001b0d5
call fcn.140003db0
mov rcx, rax
test rax, rax
je 0x14001b10e
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
test r14, r14
je 0x14001b103
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 0x14001af2f
cmp dword [rbx + 0x10], 0
jl 0x14001af21
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14001af21
call fcn.1400056a0
mov rsi, rax
mov ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x14001af16
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 0x14001af2f
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x40]
call fcn.140003840
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 0x14001af50
mov eax, dword [rsp + 0x48]
cmp eax, 4
jne 0x14001afb5
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 0x14001b024
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 0x14001afe0
inc eax
lea rdx, [rdx + rax*2]
lea r8d, [r8 + rax*2]
cmp eax, r15d
jne 0x14001afd0
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 0x14001b079
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 0x14001b040
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 0x14001b0ab
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 0x14001b0cc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test r14, r14
jne 0x14001aea1
mov eax, r15d
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.140091f30
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.140003b40
nop
mov ecx, 0x80004005
call fcn.140003b40
int3