Function at 0x1400daf20
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7b8]
sub rsp, 0x8b8
mov rax, qword [0x14035d6e8]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
xor r15d, r15d
mov qword [rbp - 0x78], rdx
mov r13, rcx
mov qword [rbp - 0x70], r9
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x60], r15
mov rsi, r8
mov qword [rsp + 0x68], r15
lea edx, [r15 + 9]
call fcn.14001c970
mov edx, dword [rsp + 0x68]
mov r14d, dword [rsp + 0x6c]
lea ebx, [rdx + 9]
mov dword [rsp + 0x68], ebx
cmp ebx, r14d
jle 0x1400daf9e
lea rcx, [rsp + 0x60]
call fcn.14001c580
mov r14d, dword [rsp + 0x6c]
mov ebx, dword [rsp + 0x68]
mov r12, qword [rsp + 0x60]
lea rdx, str.Software
mov rcx, r12
mov r8d, 0x12
call fcn.140034a80
mov eax, dword [r13 + 8]
test eax, eax
lea edi, [rax - 1]
cmove edi, r15d
mov r15d, 2
test ebx, ebx
jne 0x1400dafd9
lea eax, [rdi + 1]
test eax, eax
mov eax, r15d
jne 0x1400dafde
mov eax, 1
lea edx, [rdi + rbx]
mov qword [rsp + 0x70], r12
add edx, eax
mov dword [rsp + 0x78], ebx
mov dword [rsp + 0x7c], r14d
cmp edx, r14d
jle 0x1400db000
lea rcx, [rsp + 0x70]
call fcn.14001c970
mov rdx, qword [r13]
lea rcx, [rsp + 0x70]
mov r8d, edi
call fcn.1400206a0
mov rdi, qword [rbp - 0x78]
mov r14d, 0
mov ecx, dword [rsp + 0x78]
mov eax, dword [rdi + 8]
test eax, eax
lea ebx, [rax - 1]
cmove ebx, r14d
test ecx, ecx
jne 0x1400db036
lea eax, [rbx + 1]
test eax, eax
jne 0x1400db03c
mov r15d, 1
mov rax, qword [rsp + 0x70]
lea edx, [rbx + r15]
mov qword [rsp + 0x50], rax
add edx, ecx
mov eax, dword [rsp + 0x7c]
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x58], ecx
mov dword [rsp + 0x5c], eax
mov qword [rsp + 0x78], r14
cmp edx, eax
jle 0x1400db070
lea rcx, [rsp + 0x50]
call fcn.14001c970
mov rdx, qword [rdi]
lea rcx, [rsp + 0x50]
mov r8d, ebx
call fcn.1400206a0
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400db08f
call fcn.14004db90
lea r9, [0x140265790]
mov dword [rsp + 0x20], 1
lea r8, [0x14026fbb0]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.1400214e0
mov rbx, rax
lea rax, [rsp + 0x50]
cmp rax, rbx
je 0x1400db0ed
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400db0d0
call fcn.14004db90
mov rcx, qword [rbx]
mov qword [rsp + 0x50], rcx
mov qword [rbx], r14
mov eax, dword [rbx + 8]
mov dword [rsp + 0x58], eax
mov eax, dword [rbx + 0xc]
mov dword [rsp + 0x5c], eax
mov qword [rbx + 8], r14
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400db0fc
call fcn.14004db90
cmp dword [rsp + 0x58], r14d
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], r14
lea rbx, [0x140264588]
mov qword [rsp + 0x38], rax
mov rdx, rbx
cmovne rdx, qword [rsp + 0x50]
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x30], r14
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test eax, eax
jne 0x1400db1aa
mov r8, qword [rbp - 0x70]
mov eax, dword [r8 + 8]
test eax, eax
lea ecx, [rax - 1]
cmove ecx, r14d
je 0x1400db162
mov r8, qword [r8]
jmp 0x1400db165
mov r8, rbx
cmp dword [rsi + 8], r14d
je 0x1400db170
mov rdx, qword [rsi]
jmp 0x1400db173
mov rdx, rbx
lea eax, [rcx*2 + 2]
mov r9d, 1
mov rcx, qword [rbp - 0x80]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x80]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x1400db1aa
mov bl, 1
jmp 0x1400db200
mov qword [rsp + 0x30], r14
lea rax, [rbp - 0x60]
mov dword [rsp + 0x28], 0x400
xor r9d, r9d
mov r8d, edi
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
cmp dword [rsi + 8], r14d
je 0x1400db1dc
mov rbx, qword [rsi]
mov rcx, qword [0x1403ac350]
lea rax, [rbp - 0x60]
mov r9d, edi
mov qword [rsp + 0x20], rax
mov r8, rbx
lea rdx, str.FWindowsPlatformMisc::SetStoredValue:_ERROR:_Could_not_store_value_for__s._Error_Code__u:__s
call fcn.1400b3e20
xor bl, bl
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400db20f
call fcn.14004db90
movzx eax, bl
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.14024f8b0
add rsp, 0x8b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret