Function at 0x140023370
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov qword [r11 - 0x70], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov rax, qword [0x14003a008]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r12, rcx
xor ebp, ebp
mov qword [rsp + 0x30], rbp
lea rdx, str.CRLogProductPreferences
lea rcx, [r11 - 0x78]
call fcn.140009230
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140024470
test al, al
je 0x1400235e1
call fcn.140001570
mov rdi, rax
test rax, rax
jne 0x1400233f0
mov ecx, 0x80004005
call fcn.140001200
int3
mov rax, qword [rax]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.14000ce40]
mov rcx, rdi
call rbx
lea rdi, [rax + 0x18]
mov qword [rsp + 0x70], rdi
mov rax, qword [r12]
mov rbx, qword [rax]
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x38], rax
or r15d, 0xffffffff
mov r13, qword [rsp + 0x30]
cmp rbx, rax
je 0x1400235ac
lea r14, [rbx + 0x40]
cmp qword [r14 + 0x18], 0x10
jb 0x14002343f
mov r14, qword [r14]
test r14, r14
je 0x1400234b6
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
mov r9d, r15d
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea esi, [rax - 1]
test esi, esi
jle 0x1400234b6
mov edx, 1
sub edx, dword [rdi - 8]
mov ecx, dword [rdi - 0xc]
sub ecx, esi
or ecx, edx
jge 0x140023487
mov edx, esi
lea rcx, [rsp + 0x70]
call fcn.14000ad90
mov rdi, qword [rsp + 0x70]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdi
mov r9d, r15d
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp esi, dword [rdi - 0xc]
jg 0x1400235a1
mov dword [rdi - 0x10], esi
movsxd rax, esi
mov word [rdi + rax*2], bp
jmp 0x1400234c5
lea rcx, [rsp + 0x70]
call fcn.140009300
mov rdi, qword [rsp + 0x70]
lea rdx, [rbx + 0x20]
lea rcx, [rsp + 0x50]
call fcn.14001a650
mov rsi, rax
mov ebp, dword [rdi - 0x10]
cmp dword [rdi - 8], 1
jle 0x1400234f0
mov edx, ebp
lea rcx, [rsp + 0x70]
call fcn.14000b020
mov rdi, qword [rsp + 0x70]
cmp qword [rsi + 0x18], 8
jb 0x1400234fa
mov rsi, qword [rsi]
lea eax, [rbp*2 + 1]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, 1
xor r8d, r8d
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x140023538
inc r8
mov rdx, qword [rsp + 0x50]
call fcn.14000a650
cmp byte [rbx + 0x19], 0
jne 0x14002358c
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x140023567
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x140023560
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140023554
mov qword [rsp + 0x78], rbx
jmp 0x14002358c
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140023584
cmp rbx, qword [rax + 0x10]
jne 0x140023584
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140023571
mov rbx, rax
mov qword [rsp + 0x78], rax
mov rax, qword [r12]
mov qword [rsp + 0x38], rax
cmp rbx, rax
je 0x1400235ac
xor ebp, ebp
jmp 0x140023431
mov ecx, 0x80070057
call fcn.140001200
int3
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rsi, [rdi - 0x18]
lock xadd dword [rsi + 0x10], r15d
sub r15d, 1
jg 0x1400235e1
mov rdi, qword [rsi]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.14000ce40]
mov rdx, rsi
mov rcx, rdi
call rbx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140024a00
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret