Function at 0x1400035f0
Capabilities:
Check if file exists
Copy file
Delete registry key
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x3b8]
sub rsp, 0x490
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rax, qword [0x1400a7470]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov rsi, r8
mov ebx, 1
lea rdx, [0x14008ac00]
mov rcx, qword [0x1400a8288]
call fcn.140004450
mov edx, 0x104
mov rcx, rsi
call fcn.1400358f0
lea rdx, [rax + 1]
mov rcx, rsi
call fcn.1400361f8
mov r8, rsi
lea rdx, [0x14008ac18]
mov rcx, qword [0x1400a8288]
call fcn.1400041d0
xor r12d, r12d
mov dword [rsp + 0x58], r12d
mov dword [rsp + 0x5c], 4
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9d, [rbx + 0xf]
lea r8, [0x14008aaa0]
lea rdx, [0x14008aad0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov rcx, qword [0x1400a8288]
test eax, eax
je 0x1400036db
mov r8d, eax
lea rdx, [0x14008ab30]
call fcn.1400041d0
xor dil, dil
jmp 0x1400036f6
mov r8d, dword [rsp + 0x58]
lea rdx, [0x14008abb0]
call fcn.1400041d0
cmp dword [rsp + 0x58], ebx
sete dil
je 0x14000370d
lea rdx, [0x14008ac50]
mov rcx, rsi
call fcn.140029cec
test rax, rax
je 0x14000373d
movzx edi, bl
lea rdx, [0x14008ac68]
mov rcx, rsi
call fcn.140029cec
test rax, rax
jne 0x140003ae1
lea rdx, str.ZZ_nD
mov rcx, rsi
call fcn.140029cec
test rax, rax
jne 0x140003ae1
lea rdx, [0x14008b498]
mov rcx, rsi
call fcn.140029cec
test rax, rax
je 0x14000383d
lea rdx, [0x14008b4b0]
mov rcx, qword [0x1400a8288]
call fcn.1400041d0
lea rcx, [rbp - 0x70]
call fcn.140001110
lea rcx, [rbp - 0x70]
call fcn.140025fc0
cmp eax, ebx
jbe 0x140003791
lea rdx, [0x14008b4f0]
mov rcx, qword [0x1400a8288]
call fcn.1400041d0
lea r8, [0x140089510]
lea rdx, str.Opening_the_reg_path___s__n
mov rcx, qword [0x1400a8288]
call fcn.1400041d0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x102
xor r8d, r8d
lea rdx, [0x140089510]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140004130
lea r8, [0x140089510]
lea rdx, [0x14008b560]
mov rcx, qword [0x1400a8288]
call fcn.1400041d0
lea rdx, [0x14008b5a8]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x14000382d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, [0x140089970]
lea rdx, [0x14008b5c0]
mov rcx, qword [0x1400a8288]
call fcn.1400041d0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140004130
lea rdx, [0x14008b618]
mov rcx, rsi
call fcn.140029cec
test rax, rax
je 0x140003aad
lea rdx, [0x14008b618]
mov rcx, rsi
call fcn.140029cec
lea rdi, [rax + 0x10]
lea rcx, [rbp - 0x70]
call fcn.140001110
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.140027270
lea rcx, [rbp - 0x70]
call fcn.140025a50
mov rcx, qword [0x1400a8288]
cmp eax, ebx
jbe 0x1400038a6
mov ebx, r12d
lea rdx, [0x14008b630]
call fcn.1400041d0
jmp 0x140003a9d
xor sil, sil
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x58], r12d
mov dword [rsp + 0x70], r12d
mov dword [rsp + 0x5c], r12d
lea r8, [0x140089bd0]
lea rdx, [0x140089c30]
call fcn.1400041d0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
lea rdx, [0x140089bd0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140003941
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [0x140089c78]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140003936
cmp dword [rsp + 0x58], r12d
setne sil
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx r9d, sil
movzx r8d, bl
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x70]
call fcn.140025820
cmp eax, ebx
jbe 0x1400039c5
cmp eax, 0x12
jne 0x14000397b
lea ebx, [rax - 0xf]
lea rdx, [0x14008b680]
mov rcx, qword [0x1400a8288]
call fcn.1400041d0
jmp 0x140003a9d
cmp eax, 0x10
jne 0x14000399e
lea ebx, [rax - 0xe]
mov r8, rdi
lea rdx, [0x14008b6f0]
mov rcx, qword [0x1400a8288]
call fcn.1400041d0
jmp 0x140003a9d
cmp eax, 0x15
jne 0x140003a9d
lea ebx, [rax - 0x11]
mov r8, rdi
lea rdx, [0x14008b740]
mov rcx, qword [0x1400a8288]
call fcn.1400041d0
jmp 0x140003a9d
xor edx, edx
lea rcx, [rbp - 0x70]
call fcn.140026ae0
cmp eax, ebx
jbe 0x1400039ef
mov ebx, r12d
lea rdx, [0x14008b7b0]
mov rcx, qword [0x1400a8288]
call fcn.1400041d0
jmp 0x140003a9d
lea rcx, [rbp + 0x80]
call fcn.140001110
lea rcx, [rsp + 0x60]
call fcn.140027320
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x80]
call fcn.140002160
cmp eax, ebx
jne 0x140003a85
lea rdx, [0x140089fd8]
lea rcx, [rsp + 0x60]
call fcn.140027a90
lea rdx, [0x14008b808]
lea rcx, [rsp + 0x60]
call fcn.140027a90
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140003a71
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str._U_nn
mov rcx, qword [0x1400a8288]
call fcn.1400041d0
jmp 0x140003a85
lea rdx, [0x14008b880]
mov rcx, qword [0x1400a8288]
call fcn.1400041d0
nop
lea rcx, [rsp + 0x60]
call fcn.140027b80
nop
lea rcx, [rbp + 0x80]
call fcn.140023f50
nop
lea rcx, [rsp + 0x78]
call fcn.140027b80
nop
jmp 0x140004130
mov rcx, qword [0x1400a8288]
test dil, dil
je 0x140003ad0
mov r8, rsi
lea rdx, [0x14008b8c8]
call fcn.1400041d0
mov ebx, r12d
jmp 0x140004139
lea rdx, [0x14008b8f8]
call fcn.1400041d0
jmp 0x140004139
lea rdx, [0x14008ac90]
mov rcx, qword [0x1400a8288]
call fcn.1400041d0
lea rdx, [0x14008ac68]
mov rcx, rsi
call fcn.140029cec
test rax, rax
je 0x140004093
lea rcx, [rbp - 0x70]
call fcn.140001110
lea rcx, [rsp + 0x78]
call fcn.140027320
lea rcx, [rsp + 0x60]
call fcn.140027320
lea rdx, [0x14008acc8]
mov rcx, qword [0x1400a8288]
call fcn.1400041d0
lea r8, [0x14008acf8]
lea rdx, [0x14008ad10]
mov rcx, qword [0x1400a8288]
call fcn.1400041d0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x170]
call fcn.14002a600
mov edx, 0x104
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp word [rbp + 0x170], r12w
je 0x140003ba8
lea rdx, [rbp + 0x170]
lea rcx, [rsp + 0x78]
call fcn.1400274d0
lea rdx, [0x14008ad58]
lea rcx, [rsp + 0x78]
call fcn.140027a90
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x60]
call fcn.140027370
lea rdx, [0x14008ad70]
lea rcx, [rsp + 0x60]
call fcn.140027a90
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, qword [0x1400a8288]
cmp eax, 0xffffffff
je 0x140004057
mov r14, qword [rsp + 0x78]
lea rdx, [0x14008a840]
call fcn.1400041d0
mov rcx, qword [0x1400a8288]
call fcn.140004360
mov r15d, ebx
mov qword [rsp + 0x50], r12
mov r8, r14
lea rdx, [0x14008a898]
mov rcx, qword [0x1400a8288]
call fcn.1400041d0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rdi, 0xffffffffffffffff
mov rcx, qword [0x1400a8288]
cmp eax, 0xffffffff
jne 0x140003c4e
mov r15d, r12d
lea rdx, [0x14008a8e0]
call fcn.1400041d0
jmp 0x140003d29
lea r8, [0x140089970]
lea rdx, [0x1400899d0]
call fcn.1400041d0
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0xf013f
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140089970]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea r8, [0x140089970]
mov rcx, qword [0x1400a8288]
test eax, eax
jne 0x140003d1a
lea rdx, [0x14008a950]
call fcn.1400041d0
mov rax, rdi
nop dword [rax]
lea rax, [rax + 1]
cmp word [r14 + rax*2], r12w
jne 0x140003cc0
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
mov r9d, ebx
xor r8d, r8d
lea rdx, [0x14008a9a0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140003d0d
mov r15d, r12d
lea rdx, [0x14008a9c0]
mov rcx, qword [0x1400a8288]
call fcn.1400041d0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140003d29
lea rdx, [0x140089b00]
call fcn.1400041d0
mov r15d, r12d
mov rcx, qword [0x1400a8288]
call fcn.1400043a0
mov r8d, r15d
lea rdx, [0x14008aa40]
mov rcx, qword [0x1400a8288]
call fcn.1400041d0
mov rcx, qword [0x1400a8288]
test r15d, r15d
lea rdx, [0x14008adc0]
je 0x140003d65
lea rdx, [0x14008ae20]
call fcn.1400041d0
mov r8, qword [rsp + 0x60]
lea rdx, [0x14008ae80]
mov rcx, qword [0x1400a8288]
call fcn.1400041d0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x70]
call fcn.140025820
mov rcx, qword [0x1400a8288]
cmp eax, ebx
jbe 0x140003db2
lea rdx, [0x14008af20]
call fcn.1400041d0
mov ebx, r12d
jmp 0x140003dbe
lea rdx, [0x14008aec0]
call fcn.1400041d0
lea rcx, [rbp - 0x70]
call fcn.140001470
test eax, eax
jne 0x140003de3
lea rdx, [0x14008af90]
mov rcx, qword [0x1400a8288]
call fcn.1400041d0
jmp 0x140004068
cmp ebx, 1
jne 0x14000406b
lea rdx, [0x1400897f0]
mov rcx, qword [0x1400a8288]
call fcn.1400041d0
mov rcx, qword [0x1400a8288]
call fcn.140004360
mov r14d, ebx
mov qword [rsp + 0x70], r12
mov ecx, 0x20a
call fcn.140027f3c
mov rbx, rax
xor edx, edx
mov r8d, 0x20a
mov rcx, rax
call fcn.14002a600
lea rdx, [0x140089850]
mov rcx, qword [0x1400a8288]
call fcn.1400041d0
mov qword [rsp + 0x50], r12
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14008e8f0]
call sub.SHELL32.dll_SHGetKnownFolderPath
mov r8, qword [rsp + 0x50]
test r8, r8
je 0x140003e80
mov edx, 0x105
mov rcx, rbx
call fcn.140034b0c
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r8, rbx
lea rdx, [0x1400898b0]
mov rcx, qword [0x1400a8288]
call fcn.1400041d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, qword [0x1400a8288]
cmp eax, 0xffffffff
jne 0x140003ebf
mov r14d, r12d
lea rdx, [0x140089900]
call fcn.1400041d0
jmp 0x140003f99
lea r8, [0x140089970]
lea rdx, [0x1400899d0]
call fcn.1400041d0
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0xf013f
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140089970]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea r8, [0x140089970]
mov rcx, qword [0x1400a8288]
test eax, eax
jne 0x140003f8a
lea rdx, [0x140089a20]
call fcn.1400041d0
nop dword [rax + rax]
lea rdi, [rdi + 1]
cmp word [rbx + rdi*2], r12w
jne 0x140003f30
lea eax, [rdi*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, r14d
xor r8d, r8d
lea rdx, [0x140089a60]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140003f7d
mov r14d, r12d
lea rdx, [0x140089a80]
mov rcx, qword [0x1400a8288]
call fcn.1400041d0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140003f99
lea rdx, [0x140089b00]
call fcn.1400041d0
mov r14d, r12d
mov rcx, rbx
call fcn.140027f44
mov rcx, qword [0x1400a8288]
call fcn.1400043a0
mov r8d, r14d
lea rdx, [0x140089b70]
mov rcx, qword [0x1400a8288]
call fcn.1400041d0
mov r8d, r14d
lea rdx, [0x14008b0a0]
mov rcx, qword [0x1400a8288]
call fcn.1400041d0
mov ebx, 1
lea rdx, [0x14008b0e0]
mov rcx, qword [0x1400a8288]
call fcn.1400041d0
lea rcx, [rsp + 0x50]
call fcn.140001b50
mov r8d, eax
mov rdi, qword [rsp + 0x50]
mov rdx, rdi
lea rcx, [rbp - 0x70]
call fcn.140026d30
cmp eax, ebx
jbe 0x14000401f
mov ebx, r12d
lea rdx, [0x14008b160]
jmp 0x140004041
xor edx, edx
lea rcx, [rbp - 0x70]
call fcn.140026ae0
cmp eax, ebx
jbe 0x14000403a
mov ebx, r12d
lea rdx, [0x14008b160]
jmp 0x140004041
lea rdx, [0x14008b1d0]
mov rcx, qword [0x1400a8288]
call fcn.1400041d0
mov rcx, rdi
call fcn.140027f44
jmp 0x14000406b
mov r8, qword [rsp + 0x60]
lea rdx, [0x14008b030]
call fcn.1400041d0
mov ebx, r12d
lea rcx, [rsp + 0x60]
call fcn.140027b80
nop
lea rcx, [rsp + 0x78]
call fcn.140027b80
nop
lea rcx, [rbp - 0x70]
call fcn.140023f50
cmp ebx, 1
jne 0x140004139
lea rdx, str.ZZ_nD
mov rcx, rsi
call fcn.140029cec
test rax, rax
je 0x140004139
lea rdx, [0x14008b238]
mov rcx, qword [0x1400a8288]
call fcn.1400041d0
lea rcx, [rbp - 0x70]
call fcn.140001110
lea rcx, [rbp - 0x70]
call fcn.140025a50
cmp eax, 1
jbe 0x1400040e1
mov ebx, r12d
lea rdx, [0x14008b270]
jmp 0x140004124
lea rcx, [rbp - 0x70]
call fcn.140003170
cmp eax, 1
jne 0x140004118
xor edx, edx
lea rcx, [rbp - 0x70]
call fcn.140026ae0
mov rcx, qword [0x1400a8288]
cmp eax, 1
jbe 0x14000410f
lea rdx, [0x14008b320]
jmp 0x14000412b
lea rdx, [0x14008b3c0]
jmp 0x14000412b
cmp eax, 5
je 0x140004130
lea rdx, [0x14008b430]
mov rcx, qword [0x1400a8288]
call fcn.1400041d0
lea rcx, [rbp - 0x70]
call fcn.140023f50
mov rcx, qword [0x1400a8288]
call fcn.1400043e0
mov edx, 0x6b8
mov rcx, qword [0x1400a8288]
call fcn.140027f34
mov qword [0x1400a8288], r12
mov eax, ebx
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140028060
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret