Function at 0x1400db6e0
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 [0x14035e6e8]
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.14001ca50
mov edx, dword [rsp + 0x68]
mov r14d, dword [rsp + 0x6c]
lea ebx, [rdx + 9]
mov dword [rsp + 0x68], ebx
cmp ebx, r14d
jle 0x1400db75e
lea rcx, [rsp + 0x60]
call fcn.14001c660
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.140034be0
mov eax, dword [r13 + 8]
test eax, eax
lea edi, [rax - 1]
cmove edi, r15d
mov r15d, 2
test ebx, ebx
jne 0x1400db799
lea eax, [rdi + 1]
test eax, eax
mov eax, r15d
jne 0x1400db79e
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 0x1400db7c0
lea rcx, [rsp + 0x70]
call fcn.14001ca50
mov rdx, qword [r13]
lea rcx, [rsp + 0x70]
mov r8d, edi
call fcn.140020780
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 0x1400db7f6
lea eax, [rbx + 1]
test eax, eax
jne 0x1400db7fc
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 0x1400db830
lea rcx, [rsp + 0x50]
call fcn.14001ca50
mov rdx, qword [rdi]
lea rcx, [rsp + 0x50]
mov r8d, ebx
call fcn.140020780
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400db84f
call fcn.14004dcf0
lea r9, [0x1402667e0]
mov dword [rsp + 0x20], 1
lea r8, [0x140270c00]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.1400215c0
mov rbx, rax
lea rax, [rsp + 0x50]
cmp rax, rbx
je 0x1400db8ad
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400db890
call fcn.14004dcf0
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 0x1400db8bc
call fcn.14004dcf0
cmp dword [rsp + 0x58], r14d
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], r14
lea rbx, [0x1402655d8]
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 0x1400db96a
mov r8, qword [rbp - 0x70]
mov eax, dword [r8 + 8]
test eax, eax
lea ecx, [rax - 1]
cmove ecx, r14d
je 0x1400db922
mov r8, qword [r8]
jmp 0x1400db925
mov r8, rbx
cmp dword [rsi + 8], r14d
je 0x1400db930
mov rdx, qword [rsi]
jmp 0x1400db933
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 0x1400db96a
mov bl, 1
jmp 0x1400db9c0
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 0x1400db99c
mov rbx, qword [rsi]
mov rcx, qword [0x1403ad350]
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.1400b4180
xor bl, bl
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400db9cf
call fcn.14004dcf0
movzx eax, bl
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.140250070
add rsp, 0x8b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret