Function at 0x14000a240
Capabilities:
Check if file exists
Copy file
Enumerate files on windows
Get common file path
Get file attributes
Get session user name

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x440
mov qword [rsp + 0x1a8], 0xfffffffffffffffe
mov rax, qword [0x1400395a0]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov r8, qword [str.SynRemoveUserSettings.dat]
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x450]
call fcn.140006370
nop
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0xf0], rax
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14000a2d4
mov dword [rsp + 0x64], 0
mov rax, qword [rsp + 0x28]
sub rax, 0x18
mov qword [rsp + 0x180], rax
mov rcx, qword [rsp + 0x180]
call fcn.140007d70
mov eax, dword [rsp + 0x64]
jmp 0x14000a85b
mov byte [rsp + 0x320], 0
lea rax, [rsp + 0x321]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
mov dword [rsp + 0x3c], 0x104
lea rdx, [rsp + 0x3c]
lea rcx, [rsp + 0x320]
call qword [sym.imp.USERENV.dll_GetProfilesDirectoryA]
test eax, eax
jne 0x14000a33e
mov dword [rsp + 0x60], 0
mov rax, qword [rsp + 0x28]
sub rax, 0x18
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xb0]
call fcn.140007d70
mov eax, dword [rsp + 0x60]
jmp 0x14000a85b
lea rdx, [rsp + 0x320]
lea rcx, [rsp + 0x1a0]
call fcn.140001760
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0xc0], rax
lea r8, [0x14002aea0]
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x40]
call fcn.140002220
nop
mov rax, qword [rsp + 0x1a0]
sub rax, 0x18
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0xd0]
call fcn.140007d70
lea r8, [0x14002ad68]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x198]
call fcn.140002220
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x150]
mov rax, qword [rax]
mov qword [rsp + 0xe0], rax
lea rdx, [rsp + 0x1e0]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x198]
sub rax, 0x18
mov qword [rsp + 0x98], rax
mov rcx, qword [rsp + 0x98]
call fcn.140007d70
cmp qword [rsp + 0x58], 0xffffffffffffffff
jne 0x14000a46c
mov dword [rsp + 0x70], 0
mov rax, qword [rsp + 0x40]
sub rax, 0x18
mov qword [rsp + 0x160], rax
mov rcx, qword [rsp + 0x160]
call fcn.140007d70
nop
mov rax, qword [rsp + 0x28]
sub rax, 0x18
mov qword [rsp + 0x100], rax
mov rcx, qword [rsp + 0x100]
call fcn.140007d70
mov eax, dword [rsp + 0x70]
jmp 0x14000a85b
lea rdx, str.AppDataRoamingMicrosoftWindowsStart_MenuProgramsStartup_
lea rcx, [rsp + 0x90]
call fcn.140001760
nop
lea r9, [0x14002aea0]
lea r8, [0x14002af50]
xor edx, edx
lea rcx, [rsp + 0x1b8]
call fcn.140012ab0
mov qword [rsp + 0x188], rax
mov rax, qword [rsp + 0x188]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
cmp qword [rax + 0x18], 0x10
jb 0x14000a4db
mov rax, qword [rsp + 0x1b0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
jmp 0x14000a4e5
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x120]
call fcn.140001760
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x170], rax
lea r8, str.SynRemoveUserSettings.bat
mov rdx, qword [rsp + 0x170]
lea rcx, [rsp + 0x80]
call fcn.140002220
nop
mov rax, qword [rsp + 0x120]
sub rax, 0x18
mov qword [rsp + 0x190], rax
mov rcx, qword [rsp + 0x190]
call fcn.140007d70
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1b8]
call fcn.14000c230
mov eax, 1
imul rax, rax, 0
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0x104
jae 0x14000a57b
jmp 0x14000a580
call fcn.140013a2c
mov rax, qword [rsp + 0x78]
mov byte [rsp + rax + 0x320], 0
lea rdx, [rsp + 0x3c]
lea rcx, [rsp + 0x320]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea rdx, [rsp + 0x320]
lea rcx, [rsp + 0x88]
call fcn.140001760
nop
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x1e0]
and eax, 0x10
test eax, eax
je 0x14000a786
lea rdx, [0x14002b5ac]
lea rcx, [rsp + 0x20c]
call fcn.140015b60
test eax, eax
je 0x14000a786
lea rdx, [0x14002b5b0]
lea rcx, [rsp + 0x20c]
call fcn.140015b60
test eax, eax
je 0x14000a786
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x130], rax
mov rdx, qword [rsp + 0x130]
lea rcx, [rsp + 0x20c]
call fcn.140015b60
test eax, eax
je 0x14000a786
lea r8, [rsp + 0x20c]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xb8]
call fcn.140002220
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
lea r8, [rsp + 0x90]
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x30]
call fcn.140002100
nop
mov rax, qword [rsp + 0xb8]
sub rax, 0x18
mov qword [rsp + 0xc8], rax
mov rcx, qword [rsp + 0xc8]
call fcn.140007d70
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xd8], rax
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000a768
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xe8], rax
mov edx, 0x80
mov rcx, qword [rsp + 0xe8]
call fcn.140015f3c
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call fcn.140002340
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x108], rax
xor r8d, r8d
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x14000a768
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x118], rax
mov edx, 0xc0
mov rcx, qword [rsp + 0x118]
call fcn.140015f3c
nop
mov rax, qword [rsp + 0x30]
sub rax, 0x18
mov qword [rsp + 0x128], rax
mov rcx, qword [rsp + 0x128]
call fcn.140007d70
lea rdx, [rsp + 0x1e0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14000a5c6
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x88]
sub rax, 0x18
mov qword [rsp + 0x138], rax
mov rcx, qword [rsp + 0x138]
call fcn.140007d70
nop
mov rax, qword [rsp + 0x80]
sub rax, 0x18
mov qword [rsp + 0x148], rax
mov rcx, qword [rsp + 0x148]
call fcn.140007d70
nop
mov rax, qword [rsp + 0x90]
sub rax, 0x18
mov qword [rsp + 0x158], rax
mov rcx, qword [rsp + 0x158]
call fcn.140007d70
nop
mov rax, qword [rsp + 0x40]
sub rax, 0x18
mov qword [rsp + 0x168], rax
mov rcx, qword [rsp + 0x168]
call fcn.140007d70
nop
mov rax, qword [rsp + 0x28]
sub rax, 0x18
mov qword [rsp + 0x178], rax
mov rcx, qword [rsp + 0x178]
call fcn.140007d70
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.1400168f0
add rsp, 0x440
pop rdi
ret