Function at 0x140171bb0
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 [0x140418a10]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rdi, rcx
xor esi, esi
mov dword [rsp + 0x40], esi
mov eax, dword [0x14042e340]
test al, 1
jne 0x140171c23
or eax, 1
mov dword [0x14042e340], eax
lea rdx, str.Logs
lea rcx, [0x14042e348]
call fcn.1400f2bd0
lea rcx, [0x140301be0]
call fcn.1402bb344
nop
lea rdx, [rsp + 0x20]
lea rcx, [0x14042e348]
call fcn.140201da0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140171c5b
test al, 0x10
je 0x140171c5b
cmp dword [rsp + 0x28], 0
jle 0x140171c7e
mov rcx, qword [rsp + 0x20]
call fcn.1402b9c20
jmp 0x140171c7e
cmp dword [rsp + 0x28], 0
jle 0x140171c6c
mov rcx, qword [rsp + 0x20]
call fcn.1402b9c20
xor r8d, r8d
mov rdx, qword [0x14042e348]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea rcx, [rsp + 0x30]
call fcn.140171aa0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140201da0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140171cbf
test al, 0x10
je 0x140171cbf
cmp dword [rsp + 0x28], 0
jle 0x140171d19
mov rcx, qword [rsp + 0x20]
call fcn.1402b9c20
jmp 0x140171d19
cmp dword [rsp + 0x28], 0
jle 0x140171cd0
mov rcx, qword [rsp + 0x20]
call fcn.1402b9c20
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x140171d19
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.140170d40
mov rdx, qword [0x14041a158]
mov rcx, rdi
call fcn.1401fd200
jmp 0x140171f03
mov qword [rsp + 0x28], rsi
mov edx, 0xf
lea rcx, [rsp + 0x20]
call fcn.1401ff260
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.1402bd21c
mov edx, 0xf
lea rcx, [rsp + 0x20]
call fcn.140200570
nop
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.1400d2bd0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x30]
call fcn.1401ff260
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.1402bd21c
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x30]
call fcn.140200570
nop
cmp dword [rsp + 0x50], 0
jle 0x140171dbb
mov rcx, qword [rsp + 0x48]
call fcn.1402b9c20
nop
cmp dword [rsp + 0x28], 0
jle 0x140171dcc
mov rcx, qword [rsp + 0x20]
call fcn.1402b9c20
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.1401ff540
lea r14, [0x140348ca0]
test al, al
jne 0x140171ec3
lea rax, [rsp + 0x60]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140171e10
mov qword [rsp + 0x28], rsi
test ebx, ebx
jne 0x140171e2a
mov qword [rsp + 0x20], r14
jmp 0x140171e51
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rsp + 0x28]
inc eax
movsxd rdx, eax
lea r8, [rsp + 0x60]
mov rcx, qword [rsp + 0x20]
call fcn.1402bd21c
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.140200570
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 0x140171e86
mov rcx, qword [rsp + 0x20]
call fcn.1402b9c20
test bl, bl
jne 0x140171ead
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.140170d40
jmp 0x140171ec3
mov r8, qword [rsp + 0x30]
lea rdx, str.Copied_to__ls
mov ecx, 1
call fcn.140170d40
mov qword [rdi + 8], rsi
mov edx, dword [rsp + 0x3c]
test edx, edx
jne 0x140171ed4
mov qword [rdi], r14
jmp 0x140171efa
mov rcx, rdi
call fcn.1401ff260
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.1402bd21c
mov edx, dword [rsp + 0x3c]
mov rcx, rdi
call fcn.140200570
nop
cmp dword [rsp + 0x38], 0
jle 0x140171f14
mov rcx, qword [rsp + 0x30]
call fcn.1402b9c20
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1402b9610
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret