Function at 0x140170920
Capabilities:
Check if file exists
Copy file
Create directory
Get file attributes

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x198]
sub rsp, 0x280
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rdi, rcx
xor esi, esi
mov dword [rsp + 0x40], esi
mov eax, dword [0x14042b360]
test al, 1
jne 0x140170993
or eax, 1
mov dword [0x14042b360], eax
lea rdx, str.Logs
lea rcx, [0x14042b368]
call fcn.1400f1930
lea rcx, [0x1402ff1d0]
call fcn.1402b8a74
nop
lea rdx, [rsp + 0x20]
lea rcx, [0x14042b368]
call fcn.1401ff680
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401709cb
test al, 0x10
je 0x1401709cb
cmp dword [rsp + 0x28], 0
jle 0x1401709ee
mov rcx, qword [rsp + 0x20]
call fcn.1402b7350
jmp 0x1401709ee
cmp dword [rsp + 0x28], 0
jle 0x1401709dc
mov rcx, qword [rsp + 0x20]
call fcn.1402b7350
xor r8d, r8d
mov rdx, qword [0x14042b368]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea rcx, [rsp + 0x30]
call fcn.140170810
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.1401ff680
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140170a2f
test al, 0x10
je 0x140170a2f
cmp dword [rsp + 0x28], 0
jle 0x140170a89
mov rcx, qword [rsp + 0x20]
call fcn.1402b7350
jmp 0x140170a89
cmp dword [rsp + 0x28], 0
jle 0x140170a40
mov rcx, qword [rsp + 0x20]
call fcn.1402b7350
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x140170a89
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.CreateDirectory
lea rdx, str._ls___failed__error__d_
mov ecx, 2
call fcn.14016fab0
mov rdx, qword [0x140416ee8]
mov rcx, rdi
call fcn.1401faae0
jmp 0x140170c73
mov qword [rsp + 0x28], rsi
mov edx, 0xf
lea rcx, [rsp + 0x20]
call fcn.1401fcb40
mov eax, dword [rsp + 0x28]
inc eax
movsxd rdx, eax
mov r9d, 0xf
lea r8, str.SophosClean.exe
mov rcx, qword [rsp + 0x20]
call fcn.1402ba94c
mov edx, 0xf
lea rcx, [rsp + 0x20]
call fcn.1401fde50
nop
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.1400d2ba0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x30]
call fcn.1401fcb40
movsxd r9, dword [rbx + 0xc]
mov ecx, dword [rsp + 0x38]
inc ecx
movsxd rdx, ecx
mov r8, qword [rbx]
mov rcx, qword [rsp + 0x30]
call fcn.1402ba94c
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x30]
call fcn.1401fde50
nop
cmp dword [rsp + 0x50], 0
jle 0x140170b2b
mov rcx, qword [rsp + 0x48]
call fcn.1402b7350
nop
cmp dword [rsp + 0x28], 0
jle 0x140170b3c
mov rcx, qword [rsp + 0x20]
call fcn.1402b7350
mov r8d, 0x104
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.1401fce20
lea r14, [0x140346ce0]
test al, al
jne 0x140170c33
lea rax, [rsp + 0x60]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140170b80
mov qword [rsp + 0x28], rsi
test ebx, ebx
jne 0x140170b9a
mov qword [rsp + 0x20], r14
jmp 0x140170bc1
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rsp + 0x28]
inc eax
movsxd rdx, eax
lea r8, [rsp + 0x60]
mov rcx, qword [rsp + 0x20]
call fcn.1402ba94c
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.1401fde50
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne bl
cmp dword [rsp + 0x28], 0
jle 0x140170bf6
mov rcx, qword [rsp + 0x20]
call fcn.1402b7350
test bl, bl
jne 0x140170c1d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.CopyFile
lea rdx, str._ls___failed__error__d_
mov ecx, 2
call fcn.14016fab0
jmp 0x140170c33
mov r8, qword [rsp + 0x30]
lea rdx, str.Copied_to__ls
mov ecx, 1
call fcn.14016fab0
mov qword [rdi + 8], rsi
mov edx, dword [rsp + 0x3c]
test edx, edx
jne 0x140170c44
mov qword [rdi], r14
jmp 0x140170c6a
mov rcx, rdi
call fcn.1401fcb40
movsxd r9, dword [rsp + 0x3c]
mov eax, dword [rdi + 8]
inc eax
movsxd rdx, eax
mov r8, qword [rsp + 0x30]
mov rcx, qword [rdi]
call fcn.1402ba94c
mov edx, dword [rsp + 0x3c]
mov rcx, rdi
call fcn.1401fde50
nop
cmp dword [rsp + 0x38], 0
jle 0x140170c84
mov rcx, qword [rsp + 0x30]
call fcn.1402b7350
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1402b6d40
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret