Function at 0x14000cb18
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
xor sil, sil
mov r10, rdx
cmp dword [rcx + 0x64], 0
mov rdi, rcx
je 0x14000cb49
mov ebx, 1
jmp 0x14000cdcc
mov r15d, 0x80070000
test rdx, rdx
jne 0x14000cbb2
mov rcx, qword [rcx + 0x18]
lea rdx, [rbp + 0x40]
mov rax, qword [rcx]
mov rax, qword [rax + 0x80]
call qword [0x14002a558]
mov ebx, eax
test eax, eax
js 0x14000cdcc
mov rdx, qword [rdi + 0x28]
lea rax, [rbp + 0x38]
mov rcx, qword [rbp + 0x40]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000cdcc
mov r10, qword [rbp + 0x38]
mov esi, 1
mov eax, dword [rdi + 0x68]
lea rdx, str.Size
mov dword [rbp + 0x30], eax
mov r14d, 4
lea rax, [rbp + 0x30]
mov dword [rsp + 0x28], r14d
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000cdbd
mov eax, dword [rdi + 0x70]
lea rdx, str.Progress
mov rcx, qword [rbp + 0x38]
mov r9d, r14d
mov dword [rbp + 0x30], eax
xor r8d, r8d
lea rax, [rbp + 0x30]
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000cdbd
mov rcx, qword [rbp + 0x38]
lea rax, [rdi + 0x94]
mov dword [rsp + 0x28], r14d
lea rdx, str.LastAttemptHigh
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000cdbd
mov rcx, qword [rbp + 0x38]
lea rax, [rdi + 0x90]
mov dword [rsp + 0x28], r14d
lea rdx, str.LastAttemptLow
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000cdbd
mov rcx, qword [rbp + 0x38]
lea rax, [rdi + 0x8c]
mov dword [rsp + 0x28], r14d
lea rdx, str.LastError
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000cdbd
mov rcx, qword [rbp + 0x38]
lea rax, [rdi + 0x7c]
mov dword [rsp + 0x28], r14d
lea rdx, str.StateCache
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000cdbd
mov rcx, qword [rbp + 0x38]
lea rax, [rdi + 0x80]
mov dword [rsp + 0x28], r14d
lea rdx, str.StateExtract
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000cdbd
mov rcx, qword [rbp + 0x38]
lea rax, [rdi + 0x84]
mov dword [rsp + 0x28], r14d
lea rdx, str.StateVerify
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000cdbd
mov rcx, qword [rbp + 0x38]
lea rax, [rdi + 0x88]
mov dword [rsp + 0x28], r14d
lea rdx, str.StateAvailable
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test sil, sil
je 0x14000cdcc
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret