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

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x1b0], rbx
mov rax, qword [0x140032008]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov r15, rdx
mov r14, rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x38], 0
mov ebx, 0xff
mov dword [rsp + 0x50], ebx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x58], rax
call fcn.140001490
mov rcx, rax
test rax, rax
jne 0x14001de32
mov ecx, 0x80004005
call fcn.1400011d0
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rdx, [0x140026120]
test rdx, 0xffffffffffff0000
jne 0x14001de72
movzx edi, dx
mov ecx, edi
call fcn.1400012a0
test rax, rax
je 0x14001de7d
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140009f50
jmp 0x14001de7d
lea rcx, [rsp + 0x30]
call fcn.140009680
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.14001ef60
test al, al
jne 0x14001de99
or rdi, 0xffffffffffffffff
jmp 0x14001e008
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [r14]
mov rsi, qword [rsp + 0x38]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001df17
mov eax, dword [rsp + 0x50]
cdq
xor eax, edx
sub eax, edx
mov dword [rsp + 0x50], eax
cmp eax, ebx
cmovl ebx, eax
movsxd rax, ebx
cmp rax, 0x100
jae 0x14001df11
mov byte [rsp + rax + 0x60], 0
lea r8, [rsp + 0x60]
lea rdx, [0x1400242e4]
mov rcx, r15
call fcn.14000a530
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
or rdi, 0xffffffffffffffff
jmp 0x14001e008
call fcn.14001fe88
int3
or rdi, 0xffffffffffffffff
cmp eax, 2
jne 0x14001dffe
call fcn.140001490
mov rcx, rax
test rax, rax
jne 0x14001df3c
mov ecx, 0x80004005
call fcn.1400011d0
int3
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x58], rbx
lea rdx, [0x140026170]
test rdx, 0xffffffffffff0000
jne 0x14001df7e
movzx r15d, dx
mov ecx, r15d
call fcn.1400012a0
test rax, rax
je 0x14001df9d
mov r8d, r15d
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140009f50
jmp 0x14001df98
mov rax, rdi
inc rax
cmp word [rdx + rax*2], 0
jne 0x14001df81
mov r8d, eax
lea rcx, [rsp + 0x58]
call fcn.140009ae0
mov rbx, qword [rsp + 0x58]
mov r15d, dword [rbx - 0x10]
cmp dword [rbx - 8], 1
jle 0x14001dfb9
mov edx, r15d
lea rcx, [rsp + 0x58]
call fcn.14000a320
mov rbx, qword [rsp + 0x58]
lea eax, [r15*2 + 1]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
mov rdx, qword [r14]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001dff9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rsi, qword [rsp + 0x38]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14001e022
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.14001f400
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x170
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret