Function at 0x14016f6a0
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x2c0
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
xor edi, edi
mov dword [rsp + 0x30], edi
call fcn.1400494c0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
mov dword [rsp + 0x30], ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x40]
mov rcx, rax
mov edx, 0x2000000
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rcx, qword [rsp + 0x40]
mov dword [rsp + 0x3c], edi
mov dword [rsp + 0x38], 0x12
mov rax, qword [rsp + 0x38]
lea r9d, [rdi + 0x10]
lea r8, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x54], rax
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x5c], 2
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x40]
mov rcx, rax
mov edx, 0x2000000
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rcx, qword [rsp + 0x40]
mov dword [rsp + 0x3c], edi
mov dword [rsp + 0x38], 0x11
mov rax, qword [rsp + 0x38]
lea r9d, [rdi + 0x10]
lea r8, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x54], rax
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x5c], 2
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov r11, qword [rbx]
mov rcx, rbx
call qword [r11 + 0x20]
test eax, eax
je 0x14016f9b0
call fcn.140049400
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x80]
movsx ebx, al
mov ecx, ebx
call qword [sym.imp.ntdll.dll_isalpha]
test eax, eax
je 0x14016f9b0
lea rcx, [rsp + 0x91]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x90], dil
call sub.ntdll.dll_memset
lea rdx, str._C:WindowsSystem32ConfigSoftware
lea rcx, [rsp + 0x90]
mov r8d, ebx
call qword [sym.imp.ntdll.dll_sprintf]
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14016f845
lea rdx, str._C:WinntSystem32ConfigSoftware
lea rcx, [rsp + 0x90]
mov r8d, ebx
call qword [sym.imp.ntdll.dll_sprintf]
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14016f9b0
xor eax, eax
lea rcx, [rsp + 0x1a1]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x68], dil
mov qword [rsp + 0x69], rax
mov qword [rsp + 0x71], rax
mov qword [rsp + 0x79], rax
mov dword [rsp + 0x81], eax
mov byte [rsp + 0x85], al
mov byte [rsp + 0x1a0], al
call sub.ntdll.dll_memset
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rdx, [0x140365084]
lea rcx, [rsp + 0x68]
mov r8d, eax
call qword [sym.imp.ntdll.dll_sprintf]
lea r8, [rsp + 0x68]
lea rdx, str._sMicrosoftWindows_NTCurrentVersion
lea rcx, [rsp + 0x1a0]
call qword [sym.imp.ntdll.dll_sprintf]
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x68]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegLoadKeyA]
test eax, eax
jne 0x14016f9b0
lea rax, [rsp + 0x40]
lea rdx, [rsp + 0x1a0]
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14016f91f
lea rdx, [rsp + 0x68]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegUnLoadKeyA]
jmp 0x14016f9b0
mov rcx, qword [rsp + 0x40]
xor eax, eax
lea rdx, str.CurrentVersion
mov qword [rsp + 0x51], rax
mov qword [rsp + 0x59], rax
mov word [rsp + 0x61], ax
mov byte [rsp + 0x63], al
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x48], 0x14
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x68]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegUnLoadKeyA]
test ebx, ebx
jne 0x14016f9b0
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x30]
lea rdx, [0x1403653b8]
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x38], edi
call qword [sym.imp.ntdll.dll_sscanf]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x2c0
pop rdi
ret