Function at 0x14000af5c
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 esi, esi
mov r10, rdx
mov rdi, rcx
cmp dword [rcx + 0x64], esi
je 0x14000af89
lea ebx, [rsi + 1]
jmp 0x14000b204
mov r15d, 0x80070000
test rdx, rdx
jne 0x14000afeb
mov rcx, qword [rcx + 0x18]
lea rdx, [rbp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x80]
mov ebx, eax
test eax, eax
js 0x14000b204
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 0x14000b204
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 0x14000b1f6
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 0x14000b1f6
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 0x14000b1f6
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 0x14000b1f6
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 0x14000b1f6
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 0x14000b1f6
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 0x14000b1f6
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 0x14000b1f6
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 esi, esi
je 0x14000b204
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