Function at 0x14000ae4c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x30
xor esi, esi
mov r10, rdx
mov rdi, rcx
cmp dword [rcx + 0x64], esi
je 0x14000ae70
lea ebx, [rsi + 1]
jmp 0x14000b0f2
mov r12d, 0x80070000
test rdx, rdx
jne 0x14000aed6
mov rcx, qword [rcx + 0x18]
lea rdx, [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + 0x80]
mov ebx, eax
test eax, eax
js 0x14000b0f2
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, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000b0f2
mov r10, qword [rsp + 0x68]
mov esi, 1
mov eax, dword [rdi + 0x68]
mov ebp, 4
lea rdx, str.Size
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x60]
mov r9d, ebp
xor r8d, r8d
mov rcx, r10
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000b0e3
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, ebp
xor r8d, r8d
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000b0e3
mov rcx, qword [rsp + 0x68]
lea rax, [rdi + 0x94]
lea rdx, str.LastAttemptHigh
mov r9d, ebp
xor r8d, r8d
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000b0e3
mov rcx, qword [rsp + 0x68]
lea rax, [rdi + 0x90]
lea rdx, str.LastAttemptLow
mov r9d, ebp
xor r8d, r8d
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000b0e3
mov rcx, qword [rsp + 0x68]
lea rax, [rdi + 0x8c]
lea rdx, str.LastError
mov r9d, ebp
xor r8d, r8d
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000b0e3
mov rcx, qword [rsp + 0x68]
lea rax, [rdi + 0x7c]
lea rdx, str.StateCache
mov r9d, ebp
xor r8d, r8d
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000b0e3
mov rcx, qword [rsp + 0x68]
lea rax, [rdi + 0x80]
lea rdx, str.StateExtract
mov r9d, ebp
xor r8d, r8d
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000b0e3
mov rcx, qword [rsp + 0x68]
lea rax, [rdi + 0x84]
lea rdx, str.StateVerify
mov r9d, ebp
xor r8d, r8d
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000b0e3
mov rcx, qword [rsp + 0x68]
lea rax, [rdi + 0x88]
lea rdx, str.StateAvailable
mov r9d, ebp
xor r8d, r8d
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test esi, esi
je 0x14000b0f2
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret