Function at 0x14000c568
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x10], rdx
push rbp
mov rbp, rsp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor esi, esi
mov r10, rdx
mov rdi, rcx
cmp dword [rcx + 0x64], esi
je 0x14000c595
lea ebx, [rsi + 1]
jmp 0x14000c821
mov r15d, 0x80070000
test rdx, rdx
jne 0x14000c5fb
mov rcx, qword [rcx + 0x18]
lea rdx, [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + 0x80]
mov ebx, eax
test eax, eax
js 0x14000c821
mov rdx, qword [rdi + 0x28]
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x68]
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 0x14000c821
mov r10, qword [rsp + 0x68]
mov esi, 1
mov eax, dword [rdi + 0x68]
mov r14d, 4
lea rdx, str.Size
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x60]
mov r9d, r14d
xor r8d, r8d
mov rcx, r10
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 0x14000c812
mov eax, dword [rdi + 0x70]
mov rcx, qword [rsp + 0x68]
lea rdx, str.Progress
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x60]
mov r9d, r14d
xor r8d, r8d
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 0x14000c812
mov rcx, qword [rsp + 0x68]
lea rax, [rdi + 0x94]
lea rdx, str.LastAttemptHigh
mov r9d, r14d
xor r8d, r8d
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 0x14000c812
mov rcx, qword [rsp + 0x68]
lea rax, [rdi + 0x90]
lea rdx, str.LastAttemptLow
mov r9d, r14d
xor r8d, r8d
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 0x14000c812
mov rcx, qword [rsp + 0x68]
lea rax, [rdi + 0x8c]
lea rdx, str.LastError
mov r9d, r14d
xor r8d, r8d
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 0x14000c812
mov rcx, qword [rsp + 0x68]
lea rax, [rdi + 0x7c]
lea rdx, str.StateCache
mov r9d, r14d
xor r8d, r8d
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 0x14000c812
mov rcx, qword [rsp + 0x68]
lea rax, [rdi + 0x80]
lea rdx, str.StateExtract
mov r9d, r14d
xor r8d, r8d
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 0x14000c812
mov rcx, qword [rsp + 0x68]
lea rax, [rdi + 0x84]
lea rdx, str.StateVerify
mov r9d, r14d
xor r8d, r8d
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 0x14000c812
mov rcx, qword [rsp + 0x68]
lea rax, [rdi + 0x88]
lea rdx, str.StateAvailable
mov r9d, r14d
xor r8d, r8d
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 esi, esi
je 0x14000c821
mov rcx, qword [rsp + 0x68]
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