Function at 0x1400cb300
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 [0x1401664b8]
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.140019590
mov edx, dword [rsp + 0x68]
mov r14d, dword [rsp + 0x6c]
lea ebx, [rdx + 9]
mov dword [rsp + 0x68], ebx
cmp ebx, r14d
jle 0x1400cb37e
lea rcx, [rsp + 0x60]
call fcn.1400191f0
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.140032f10
mov eax, dword [r13 + 8]
test eax, eax
lea edi, [rax - 1]
cmove edi, r15d
mov r15d, 2
test ebx, ebx
jne 0x1400cb3b9
lea eax, [rdi + 1]
test eax, eax
mov eax, r15d
jne 0x1400cb3be
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 0x1400cb3e0
lea rcx, [rsp + 0x70]
call fcn.140019590
mov rdx, qword [r13]
lea rcx, [rsp + 0x70]
mov r8d, edi
call fcn.14001e570
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 0x1400cb416
lea eax, [rbx + 1]
test eax, eax
jne 0x1400cb41c
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 0x1400cb450
lea rcx, [rsp + 0x50]
call fcn.140019590
mov rdx, qword [rdi]
lea rcx, [rsp + 0x50]
mov r8d, ebx
call fcn.14001e570
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400cb46f
call fcn.140044390
lea r9, [0x14011dca0]
mov dword [rsp + 0x20], 1
lea r8, [0x140128070]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.14001f620
mov rbx, rax
lea rax, [rsp + 0x50]
cmp rax, rbx
je 0x1400cb4cd
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400cb4b0
call fcn.140044390
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 0x1400cb4dc
call fcn.140044390
cmp dword [rsp + 0x58], r14d
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], r14
lea rbx, [0x14011b550]
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 0x1400cb58a
mov r8, qword [rbp - 0x70]
mov eax, dword [r8 + 8]
test eax, eax
lea ecx, [rax - 1]
cmove ecx, r14d
je 0x1400cb542
mov r8, qword [r8]
jmp 0x1400cb545
mov r8, rbx
cmp dword [rsi + 8], r14d
je 0x1400cb550
mov rdx, qword [rsi]
jmp 0x1400cb553
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 0x1400cb58a
mov bl, 1
jmp 0x1400cb5e0
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 0x1400cb5bc
mov rbx, qword [rsi]
mov rcx, qword [0x1401b0350]
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.1400a28c0
xor bl, bl
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400cb5ef
call fcn.140044390
movzx eax, bl
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.14010f320
add rsp, 0x8b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret