Function at 0x1400cb060
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 [0x1401674b8]
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.1400195a0
mov edx, dword [rsp + 0x68]
mov r14d, dword [rsp + 0x6c]
lea ebx, [rdx + 9]
mov dword [rsp + 0x68], ebx
cmp ebx, r14d
jle 0x1400cb0de
lea rcx, [rsp + 0x60]
call fcn.140019200
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.140032f60
mov eax, dword [r13 + 8]
test eax, eax
lea edi, [rax - 1]
cmove edi, r15d
mov r15d, 2
test ebx, ebx
jne 0x1400cb119
lea eax, [rdi + 1]
test eax, eax
mov eax, r15d
jne 0x1400cb11e
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 0x1400cb140
lea rcx, [rsp + 0x70]
call fcn.1400195a0
mov rdx, qword [r13]
lea rcx, [rsp + 0x70]
mov r8d, edi
call fcn.14001e580
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 0x1400cb176
lea eax, [rbx + 1]
test eax, eax
jne 0x1400cb17c
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 0x1400cb1b0
lea rcx, [rsp + 0x50]
call fcn.1400195a0
mov rdx, qword [rdi]
lea rcx, [rsp + 0x50]
mov r8d, ebx
call fcn.14001e580
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400cb1cf
call fcn.1400443e0
lea r9, [0x14011ecb0]
mov dword [rsp + 0x20], 1
lea r8, [0x140129090]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.14001f630
mov rbx, rax
lea rax, [rsp + 0x50]
cmp rax, rbx
je 0x1400cb22d
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400cb210
call fcn.1400443e0
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 0x1400cb23c
call fcn.1400443e0
cmp dword [rsp + 0x58], r14d
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], r14
lea rbx, [0x14011c560]
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 0x1400cb2ea
mov r8, qword [rbp - 0x70]
mov eax, dword [r8 + 8]
test eax, eax
lea ecx, [rax - 1]
cmove ecx, r14d
je 0x1400cb2a2
mov r8, qword [r8]
jmp 0x1400cb2a5
mov r8, rbx
cmp dword [rsi + 8], r14d
je 0x1400cb2b0
mov rdx, qword [rsi]
jmp 0x1400cb2b3
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 0x1400cb2ea
mov bl, 1
jmp 0x1400cb340
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 0x1400cb31c
mov rbx, qword [rsi]
mov rcx, qword [0x1401b1350]
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.1400a29e0
xor bl, bl
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400cb34f
call fcn.1400443e0
movzx eax, bl
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.14010f980
add rsp, 0x8b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret