Function at 0x14001b4d4
Capabilities:
Query environment variable
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x608]
sub rsp, 0x6f0
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rbp + 0x5e0], rax
mov qword [rsp + 0x68], r8
mov qword [rsp + 0x60], rdx
mov byte [rsp + 0x40], cl
and dword [rsp + 0x44], 0
xor esi, esi
xor edi, edi
mov qword [rsp + 0x70], rdi
and qword [rsp + 0x78], rsi
and qword [rbp - 0x80], rsi
and dword [rsp + 0x48], edi
and dword [rsp + 0x54], edi
and dword [rsp + 0x50], edi
xor ebx, ebx
mov dword [rsp + 0x4c], ebx
test esi, esi
jne 0x14001b78c
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1c0]
call sub.msvcrt.dll_memset
mov esi, 0x208
mov r8d, esi
xor edx, edx
lea rcx, [rbp - 0x50]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x48], 0x104
lea r9, [rsp + 0x48]
lea r8, [rbp + 0x1c0]
mov edx, ebx
cmp byte [rsp + 0x40], 2
jae 0x14001b646
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
test eax, eax
jne 0x14001b767
test rdi, rdi
je 0x14001b5cf
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov qword [rsp + 0x70], rdi
and qword [rsp + 0x58], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0x1c0]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test eax, eax
jne 0x14001b618
test rdi, rdi
je 0x14001b60e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov rdi, qword [rsp + 0x58]
mov qword [rsp + 0x70], rdi
test esi, esi
jne 0x14001b767
mov cl, byte [rsp + 0x40]
inc cl
mov r8, qword [rsp + 0x68]
mov rdx, rdi
call fcn.14001b4d4
mov dword [rsp + 0x44], eax
test eax, eax
jns 0x14001b767
mov ebx, eax
jmp 0x14001b790
mov dword [rsp + 0x50], esi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RegEnumValueW]
mov esi, eax
test eax, eax
jne 0x14001b767
mov ebx, dword [rsp + 0x54]
lea eax, [rbx - 1]
cmp eax, 1
ja 0x14001b767
lea rdx, [rbp + 0x1c0]
lea rcx, str.ModificationTime
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x14001b767
cmp ebx, 2
jne 0x14001b6f9
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x3d0]
call sub.msvcrt.dll_memset
mov ebx, 0x104
mov r8d, ebx
lea rdx, [rbp + 0x3d0]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14001b785
lea r8, [rbp + 0x3d0]
mov edx, ebx
lea rcx, [rbp - 0x50]
call fcn.140006470
lea rcx, [rbp - 0x50]
call fcn.14002ed7c
lea rcx, [rbp - 0x50]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rbp - 0x70], rax
test rax, rax
je 0x14001b7cd
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14001b7c2
lea r8, [rsp + 0x58]
lea rdx, [rbp - 0x68]
mov rcx, qword [rsp + 0x68]
call fcn.14001c7dc
nop
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [rsp + 0x4c]
lea eax, [rcx + 1]
test esi, esi
cmovne eax, ecx
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x44], 0
jl 0x14001b78c
mov ebx, eax
jmp 0x14001b53c
mov ebx, 0x80004005
jmp 0x14001b790
mov ebx, dword [rsp + 0x44]
test rdi, rdi
je 0x14001b79e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x5e0]
xor rcx, rsp
call fcn.1400362c0
mov rbx, qword [rsp + 0x728]
add rsp, 0x6f0
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x8007000e
call fcn.140001648
nop
mov ecx, 0x8007000e
call fcn.140001648
int3