Function at 0x14001ca38
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [r11 - 0x5f]
sub rsp, 0x90
and qword [r11 - 0x60], 0
lea rax, [rbp + 7]
and qword [r11 - 0x68], 0
mov r12, rdx
mov qword [r11 - 0x70], rax
xor r9d, r9d
and qword [r11 - 0x78], 0
lea rax, [rbp + 0x77]
mov qword [r11 - 0x80], rax
xor r8d, r8d
and qword [rsp + 0x30], 0
lea rax, [rbp + 0x7f]
and qword [rsp + 0x28], 0
xor edx, edx
mov qword [rsp + 0x20], rax
mov r15, rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, eax
test eax, eax
jne 0x14001ccf2
call fcn.140001b5c
test rax, rax
je 0x14001cd19
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
lea r14d, [rsi + 1]
mov edx, 0x4000
mov ecx, r14d
lea rdi, [rax + 0x18]
mov eax, dword [rdi - 0xc]
sub ecx, dword [rdi - 8]
sub eax, edx
or ecx, eax
mov qword [rbp + 0x27], rdi
jge 0x14001caec
lea rcx, [rbp + 0x27]
call fcn.1400020a8
mov rdi, qword [rbp + 0x27]
call fcn.140001b5c
test rax, rax
je 0x14001cd19
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
mov ecx, dword [rbp + 7]
lea rbx, [rax + 0x18]
mov qword [rbp + 0x2f], rbx
test ecx, ecx
js 0x14001cd0e
mov eax, dword [rbx - 0xc]
sub r14d, dword [rbx - 8]
sub eax, ecx
or r14d, eax
jge 0x14001cb36
mov edx, ecx
lea rcx, [rbp + 0x2f]
call fcn.140001690
mov ecx, dword [rbp + 7]
mov rbx, qword [rbp + 0x2f]
mov eax, dword [rbp + 0x77]
or r14d, 0xffffffff
test eax, eax
je 0x14001cbb6
mov dword [rbp + 0xb], ecx
lea r9, [rbp + 0xf]
add eax, r14d
mov dword [rbp + 0xf], 0x4000
lea rcx, [rbp + 0xb]
mov dword [rbp + 0x77], eax
mov qword [rsp + 0x38], rcx
mov r8, rdi
lea rcx, [rbp + 0x13]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rcx
mov edx, eax
and qword [rsp + 0x20], 0
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14001cba5
mov eax, dword [rbp + 0xb]
xor r8d, r8d
mov r9d, dword [rbp + 0x13]
mov rdx, rdi
mov dword [rsp + 0x28], eax
mov rcx, r12
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
cmove eax, esi
mov esi, eax
mov eax, dword [rbp + 0x77]
test eax, eax
je 0x14001cbb6
mov ecx, dword [rbp + 7]
jmp 0x14001cb41
add eax, r14d
mov dword [rbp + 0x77], eax
mov eax, dword [rbp + 0x7f]
test eax, eax
je 0x14001ccaf
add eax, r14d
mov r9d, 0x4000
mov edx, eax
mov dword [rbp + 0x7f], eax
mov r8, rdi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov r14d, eax
test eax, eax
jne 0x14001cc91
and qword [rbp + 0x1f], 0
lea rax, [rbp + 0x1f]
and qword [rbp + 0x17], 0
lea r8d, [r14 + 4]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r14d, eax
test eax, eax
jne 0x14001cc6a
and qword [rsp + 0x40], 0
lea rax, [rbp + 0x17]
mov qword [rsp + 0x38], rax
xor r9d, r9d
and qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], 0x2001f
mov rdx, rdi
mov rcx, r12
mov dword [rsp + 0x20], 4
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov r14d, eax
test eax, eax
jne 0x14001cc6a
mov rdx, qword [rbp + 0x17]
mov rcx, qword [rbp + 0x1f]
call fcn.14001ca38
mov r14d, eax
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x14001cc82
call qword [0x140057c38]
neg eax
sbb rcx, rcx
and qword [rbp + 0x17], rcx
mov rcx, qword [rbp + 0x1f]
test rcx, rcx
je 0x14001cc91
call qword [0x140057c38]
mov eax, dword [rbp + 0x7f]
test r14d, r14d
cmove r14d, esi
mov esi, r14d
mov r14d, 0xffffffff
test eax, eax
jne 0x14001cbc7
or r14d, r14d
add eax, r14d
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov dword [rbp + 0x7f], eax
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14001ccd2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rbp + 0x27]
mov eax, ebx
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14001ccf0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, esi
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov ecx, 0x80070057
call fcn.140002198
int3
mov ecx, 0x80004005
call fcn.140002198
int3