Function at 0x140011a64
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x378]
sub rsp, 0x450
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x140198858]
xor rax, rsp
mov qword [rbp + 0x340], rax
mov rbx, r8
mov rsi, rdx
mov r14, rcx
xor r15d, r15d
mov dword [rsp + 0x40], r15d
mov rdx, rbx
test r9b, r9b
je 0x140011ac3
lea rcx, [rbp - 0x70]
call fcn.140010b40
nop
lea edi, [r15 + 1]
jmp 0x140011af0
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r15
mov word [rsp + 0x70], r15w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x70]
call fcn.1400082c0
lea rax, [rsp + 0x70]
mov edi, 2
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r15
mov word [rsp + 0x50], r15w
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400082c0
nop
test dil, 2
je 0x140011b36
and edi, 0xfffffffd
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x70]
call fcn.140007eb8
nop
test dil, 1
je 0x140011b4b
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x70]
call fcn.140007eb8
nop
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 8
jb 0x140011b5b
mov r9, qword [rbx]
jmp 0x140011b5e
mov r9, rbx
mov qword [rsp + 0x20], rax
mov r8, qword [rsp + 0x60]
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.140012c50
nop
test eax, eax
setne dil
cmp qword [r14 + 0x30], r15
jne 0x140011bc6
lea rcx, str.EXPAND_SZ
lea rax, [0x14017dcf4]
test dil, dil
cmovne rax, rcx
mov qword [rsp + 0x40], rax
lea r9, [rsp + 0x40]
lea r8, str.ORegistryKey.SetValue_failure:_Cannot_set___s__string._The_registry_key_is_closed_or_not_set
mov edx, 0x3a
lea rcx, [rbp - 0x50]
call fcn.1400091b4
lea rdx, [0x1401e5908]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
cmp qword [rsi + 0x10], 0x3fff
jbe 0x140011c1e
lea rcx, str.EXPAND_SZ
lea rax, [0x14017dcf4]
test dil, dil
cmovne rax, rcx
mov qword [rsp + 0x40], rax
lea rax, [r14 + 0x10]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
lea r8, str.ORegistryKey.SetValue_failure:_Cannot_set___s__string_into_registry_key__s._The_value_name_is_too_long
mov edx, 0x1d
lea rcx, [rbp - 0x50]
call fcn.140009458
lea rdx, [0x1401e5908]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov r8, qword [rbx + 0x10]
test r8, r8
sete al
test al, al
je 0x140011c35
lea rcx, [0x14017de90]
jmp 0x140011c44
cmp qword [rbx + 0x18], 8
jb 0x140011c41
mov rcx, qword [rbx]
jmp 0x140011c44
mov rcx, rbx
mov eax, 0xffffffff
cmp r8, rax
jbe 0x140011c82
mov dword [rbp - 0x50], 0x5d
mov dword [rbp + 0x1b4], r15d
mov word [rbp + 0x2b8], r15w
mov word [rbp + 0x1b8], r15w
mov word [rbp - 0x4c], r15w
lea rdx, [0x1401e5908]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
cmp qword [rsi + 0x18], 8
jb 0x140011c8e
mov rdx, qword [rsi]
jmp 0x140011c91
mov rdx, rsi
lea r8d, [r8*2 + 2]
mov al, dil
neg al
sbb r9d, r9d
neg r9d
inc r9d
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [r14 + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r8d, eax
test eax, eax
je 0x140011d22
lea rcx, str.EXPAND_SZ
lea rax, [0x14017dcf4]
test dil, dil
cmovne rax, rcx
mov qword [rsp + 0x40], rax
lea rcx, [r14 + 0x10]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, str.ORegistryKey.SetValue_failure:_Cannot_set___s__string_name___s__value___s__into_registry_key__s.
mov edx, 0xf
lea rcx, [rbp - 0x50]
call fcn.1400092f4
lea rdx, [0x1401e5908]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.140007eb8
mov rcx, qword [rbp + 0x340]
xor rcx, rsp
call fcn.140022430
mov rbx, qword [rsp + 0x498]
add rsp, 0x450
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret