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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140015018]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r12, qword [rbp + 0x1d0]
lea rax, [rsp + 0x50]
mov rbx, rdx
mov qword [rsp + 0x20], rax
mov r14, r9
lea rdx, str.Files
mov r15d, r8d
xor edi, edi
and qword [rsp + 0x50], rdi
mov rcx, rbx
and qword [rsp + 0x58], rdi
mov r9d, 0x2001f
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400021bf
test r15d, r15d
je 0x1400021bf
lea r8, [rsp + 0x50]
mov rcx, rbx
lea rdx, str.Files
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x140002395
lea rax, [rsp + 0x58]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.FilesFlags
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140002208
test r15d, r15d
je 0x140002208
lea r8, [rsp + 0x58]
mov rcx, rbx
lea rdx, str.FilesFlags
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x140002395
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x1400022ba
xor edx, edx
mov dword [rsp + 0x40], 1
mov r8d, 0x208
mov dword [rsp + 0x48], 0x104
lea rcx, [rsp + 0x60]
xor esi, esi
call sub.msvcrt.dll_memset
and qword [rsp + 0x38], rsi
lea rax, [rsp + 0x40]
and qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rsi
xor edx, edx
jmp 0x1400022a6
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x48], 0x104
inc esi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140002286
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x60]
xor esi, esi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
and qword [rsp + 0x38], rdi
lea rax, [rsp + 0x40]
and qword [rsp + 0x30], rdi
mov edx, esi
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rdi
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x14000225a
xor ebx, ebx
test r15d, r15d
je 0x1400023a3
mov rsi, r12
mov rdx, qword [r14]
test rdx, rdx
je 0x140002381
mov rcx, qword [rsp + 0x50]
lea rax, [0x140011c10]
mov dword [rsp + 0x28], 1
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140002395
test r12, r12
je 0x140002381
mov rcx, qword [r14]
lea edx, [rax + 0x5c]
call qword [sym.imp.msvcrt.dll_wcsrchr]
test rax, rax
je 0x140002320
add rax, 2
jmp 0x140002323
mov rax, qword [r14]
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x48]
and qword [rsp + 0x48], rdi
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x140002395
mov eax, dword [rsi]
lea rdx, str.RedirectToHKCU
mov rcx, qword [rsp + 0x48]
mov r9d, 4
mov dword [rsp + 0x40], eax
xor r8d, r8d
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140002395
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebx
add r14, 8
add rsi, 4
cmp ebx, r15d
jae 0x1400023a3
jmp 0x1400022c8
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x1400023b6
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400023c6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14000e250
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret