Function at 0x1400e9770
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 [0x14037ec08]
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.140019a30
mov edx, dword [rsp + 0x68]
mov r14d, dword [rsp + 0x6c]
lea ebx, [rdx + 9]
mov dword [rsp + 0x68], ebx
cmp ebx, r14d
jle 0x1400e97ee
lea rcx, [rsp + 0x60]
call fcn.1400197d0
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.140038f30
mov eax, dword [r13 + 8]
test eax, eax
lea edi, [rax - 1]
cmove edi, r15d
mov r15d, 2
test ebx, ebx
jne 0x1400e9829
lea eax, [rdi + 1]
test eax, eax
mov eax, r15d
jne 0x1400e982e
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 0x1400e9850
lea rcx, [rsp + 0x70]
call fcn.140019a30
mov rdx, qword [r13]
lea rcx, [rsp + 0x70]
mov r8d, edi
call fcn.140026080
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 0x1400e9886
lea eax, [rbx + 1]
test eax, eax
jne 0x1400e988c
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 0x1400e98c0
lea rcx, [rsp + 0x50]
call fcn.140019a30
mov rdx, qword [rdi]
lea rcx, [rsp + 0x50]
mov r8d, ebx
call fcn.140026080
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400e98df
call fcn.1400556b0
lea r9, [0x140282880]
mov dword [rsp + 0x20], 1
lea r8, [0x14028d690]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.140026ef0
mov rbx, rax
lea rax, [rsp + 0x50]
cmp rax, rbx
je 0x1400e993d
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400e9920
call fcn.1400556b0
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 0x1400e994c
call fcn.1400556b0
cmp dword [rsp + 0x58], r14d
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], r14
lea rbx, [0x140280be0]
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 0x1400e99fa
mov r8, qword [rbp - 0x70]
mov eax, dword [r8 + 8]
test eax, eax
lea ecx, [rax - 1]
cmove ecx, r14d
je 0x1400e99b2
mov r8, qword [r8]
jmp 0x1400e99b5
mov r8, rbx
cmp dword [rsi + 8], r14d
je 0x1400e99c0
mov rdx, qword [rsi]
jmp 0x1400e99c3
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 0x1400e99fa
mov bl, 1
jmp 0x1400e9a50
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 0x1400e9a2c
mov rbx, qword [rsi]
mov rcx, qword [0x1403debb8]
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.1400b8a50
xor bl, bl
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400e9a5f
call fcn.1400556b0
movzx eax, bl
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.14025eac0
add rsp, 0x8b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret