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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1f8]
sub rsp, 0x2c0
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x14002a7b8]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov r12, r8
mov r13, rdx
mov rbx, rcx
xor edx, edx
mov rcx, qword [r8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
xor r15d, r15d
test eax, eax
je 0x14001cdee
mov eax, 0x80004005
jmp 0x14001d02c
mov rcx, qword [rbx]
call fcn.140016bf8
mov r14, qword [rax]
test r14, r14
je 0x14001d02a
mov rbx, qword [r14 + 0x10]
mov r14, qword [r14]
cmp dword [rbx + 0x44], r15d
je 0x14001cdf9
mov rsi, r15
mov qword [rsp + 0x78], r15
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x78], r15
mov rdi, r15
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x48], r15
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001cfbe
mov rsi, qword [rsp + 0x48]
mov qword [rsp + 0x78], rsi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], 1
mov r8, qword [rbx]
mov rdx, qword [r12]
lea rcx, [rsp + 0x60]
call fcn.140010e4c
mov rdi, qword [rsp + 0x60]
test eax, eax
jne 0x14001cfbe
mov dword [rsp + 0x48], 0x104
and dword [rsp + 0x40], 0
xor ebx, ebx
mov qword [rsp + 0x58], rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rbx
lea r9, [rsp + 0x48]
lea r8, [rbp - 0x60]
mov edx, r15d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x14001cef2
cmp eax, 0xea
jne 0x14001cf61
mov ecx, dword [rsp + 0x40]
test rcx, rcx
je 0x14001cf0e
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 1
jb 0x14001cfed
call qword [sym.imp.msvcrt.dll_malloc]
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14001cfed
mov dword [rsp + 0x48], 0x104
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
lea r8, [rbp - 0x60]
mov edx, r15d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14001cf89
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, dword [rsp + 0x50]
xor r8d, r8d
lea rdx, [rbp - 0x60]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x14001cf96
cmp eax, 0x103
je 0x14001cfad
cmp r15d, 0x64
ja 0x14001cfad
inc r15d
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
and qword [rsp + 0x58], 0
jmp 0x14001cea0
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
xor r15d, r15d
mov qword [rsp + 0x58], r15
test rdi, rdi
je 0x14001cfd1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], r15
test rsi, rsi
je 0x14001cdf9
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x78], r15
jmp 0x14001cdf9
xor ecx, ecx
call qword [sym.imp.msvcrt.dll_free]
and qword [rsp + 0x58], 0
test rdi, rdi
je 0x14001d00f
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x60], 0
test rsi, rsi
je 0x14001d023
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x78], 0
mov eax, 0x8007000e
jmp 0x14001d02c
xor eax, eax
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.14001d6c0
mov rbx, qword [rsp + 0x318]
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret