Function at 0x100016f4c
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 [0x10002c180]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rax, qword [0x10002c100]
xor ebp, ebp
mov esi, ecx
lea rcx, [0x10002c100]
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, [0x100013810]
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 0x100017074
lea rax, [rsp + 0x40]
lea rbx, [0x100013870]
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 0x100017069
mov eax, esi
and eax, 4
je 0x100017030
cmp dword [rsp + 0x30], 3
je 0x100017030
mov dword [rsp + 0x30], 3
jmp 0x100017040
cmp eax, ebp
jne 0x100017069
cmp dword [rsp + 0x30], r12d
je 0x100017069
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, [0x100013938]
lea r8d, [rdx + 0x17]
lea rcx, [0x1000138f8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rcx, qword [rsp + 0x38]
cmp rcx, rbp
je 0x1000170ad
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 0x100017280
mov rcx, qword [rsp + 0x68]
lea rdx, [rsp + 0x44]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, ebp
jl 0x100017280
mov ebx, ebp
cmp dword [rsp + 0x44], ebp
jbe 0x100017280
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.1000172fc
cmp eax, 0x10
jne 0x100017273
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 0x1000171a5
mov rax, qword [rcx]
lea rdx, [rsp + 0x58]
call qword [rax + 0x28]
cmp eax, ebp
jl 0x10001718b
mov rdx, qword [rsp + 0x58]
cmp rdx, rbp
jne 0x100017161
mov ecx, ebp
jmp 0x100017173
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.100018528
mov rdi, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x58]
cmp rcx, rbp
je 0x1000171a0
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsp + 0x58], rbp
mov rcx, qword [rsp + 0x38]
cmp dword [rdi - 0x10], ebp
je 0x100017285
xor edx, edx
lea rax, [rsp + 0x48]
lea r9, [0x100013948]
lea rcx, [0x100013908]
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 0x100017280
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 0x100017258
cmp word [rsp + 0x70], 0x13
jne 0x100017258
mov eax, esi
and eax, 4
je 0x100017226
cmp dword [rsp + 0x78], 3
je 0x100017226
mov dword [rsp + 0x78], 3
jmp 0x100017236
cmp eax, ebp
jne 0x100017258
cmp dword [rsp + 0x78], r12d
je 0x100017258
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 0x100017273
mov rax, qword [rcx]
call qword [rax + 0x10]
add ebx, r12d
cmp ebx, dword [rsp + 0x44]
jb 0x1000170ee
mov rcx, qword [rsp + 0x38]
cmp rcx, rbp
je 0x100017295
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x38], rbp
mov rcx, qword [rsp + 0x60]
cmp rcx, rbp
je 0x1000172aa
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 0x1000172c5
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.10001dd30
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