Function at 0x1000171e8
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x2b0
mov rax, qword [0x100030180]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rax, qword [0x100030100]
xor ebp, ebp
mov esi, ecx
lea rcx, [0x100030100]
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rbp
mov dword [rsp + 0x44], ebp
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
lea r8, [rsp + 0x50]
lea rdx, [0x100013880]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x50], rbp
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x88], rdi
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov rcx, qword [rsp + 0x50]
lea r12d, [rbp + 1]
cmp rcx, rbp
je 0x100017310
lea rax, [rsp + 0x40]
lea rbx, [0x1000138e0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebp
jne 0x100017305
mov eax, esi
and eax, 4
je 0x1000172cc
cmp dword [rsp + 0x30], 3
je 0x1000172cc
mov dword [rsp + 0x30], 3
jmp 0x1000172dc
cmp eax, ebp
jne 0x100017305
cmp dword [rsp + 0x30], r12d
je 0x100017305
mov dword [rsp + 0x30], r12d
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
mov r9d, 4
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
lea rax, [rsp + 0x60]
lea r9, [0x1000139a8]
lea r8d, [rdx + 0x17]
lea rcx, [0x100013968]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rcx, qword [rsp + 0x38]
cmp rcx, rbp
je 0x100017349
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x38], rbp
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x68]
mov r8d, r12d
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x18]
cmp eax, ebp
jl 0x10001751c
mov rcx, qword [rsp + 0x68]
lea rdx, [rsp + 0x44]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, ebp
jl 0x10001751c
mov ebx, ebp
cmp dword [rsp + 0x44], ebp
jbe 0x10001751c
mov rcx, qword [rsp + 0x68]
lea r8, [rsp + 0x38]
mov edx, ebx
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x90]
mov r8d, 0x104
call fcn.100017598
cmp eax, 0x10
jne 0x10001750f
mov rcx, qword [rsp + 0x38]
xor eax, eax
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
cmp rcx, rbp
je 0x100017441
mov rax, qword [rcx]
lea rdx, [rsp + 0x58]
call qword [rax + 0x28]
cmp eax, ebp
jl 0x100017427
mov rdx, qword [rsp + 0x58]
cmp rdx, rbp
jne 0x1000173fd
mov ecx, ebp
jmp 0x10001740f
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, r12
mov r8d, ecx
lea rcx, [rsp + 0x88]
call fcn.100018708
mov rdi, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x58]
cmp rcx, rbp
je 0x10001743c
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsp + 0x58], rbp
mov rcx, qword [rsp + 0x38]
cmp dword [rdi - 0x10], ebp
je 0x100017521
xor edx, edx
lea rax, [rsp + 0x48]
lea r9, [0x1000139b8]
lea rcx, [0x100013978]
lea r8d, [rdx + 0x17]
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rcx, qword [rsp + 0x48]
cmp rcx, rbp
je 0x10001751c
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
lea r9, [0x100012a00]
mov qword [rsp + 0x20], rdx
mov r8d, r12d
mov rdx, rdi
call qword [rax + 0x50]
cmp eax, ebp
jl 0x1000174f4
cmp word [rsp + 0x70], 0x13
jne 0x1000174f4
mov eax, esi
and eax, 4
je 0x1000174c2
cmp dword [rsp + 0x78], 3
je 0x1000174c2
mov dword [rsp + 0x78], 3
jmp 0x1000174d2
cmp eax, ebp
jne 0x1000174f4
cmp dword [rsp + 0x78], r12d
je 0x1000174f4
mov dword [rsp + 0x78], r12d
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x70]
lea r9, [0x100012a00]
mov rax, qword [rcx]
mov qword [rsp + 0x20], rdx
mov r8d, r12d
mov rdx, rdi
call qword [rax + 0x58]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ole32.dll_PropVariantClear]
mov rcx, qword [rsp + 0x48]
cmp rcx, rbp
je 0x10001750f
mov rax, qword [rcx]
call qword [rax + 0x10]
add ebx, r12d
cmp ebx, dword [rsp + 0x44]
jb 0x10001738a
mov rcx, qword [rsp + 0x38]
cmp rcx, rbp
je 0x100017531
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x38], rbp
mov rcx, qword [rsp + 0x60]
cmp rcx, rbp
je 0x100017546
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x60], rbp
lea rdx, [rdi - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, ebp
jg 0x100017561
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor eax, eax
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.10001e0c0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret