Function at 0x1401a56e0
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp + 0x2f], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov r15, rdx
mov rsi, rcx
mov eax, dword [rdx + 8]
test eax, eax
jle 0x1401a5aac
xor r13d, r13d
mov r12d, r13d
test eax, eax
jle 0x1401a5aac
mov r14d, r13d
lea rdi, vtable.Core::Array_class_Core::Xml::XmlElement____ptr64_.0
nop dword [rax]
nop dword [rax + rax]
mov ebx, r13d
mov rax, qword [r15 + 0x10]
lea r8, str.path
lea rdx, [rbp - 0x59]
mov rcx, qword [r14 + rax]
call fcn.1401edd30
nop
mov rdx, qword [rbp - 0x59]
lea rcx, str.____File:__s_r_n
call fcn.1401a2060
cmp dword [rbp - 0x4d], 0
jle 0x1401a5a8c
mov r8d, 1
lea rdx, [0x1403232c8]
lea rcx, [rbp - 0x59]
call fcn.1401e8ee0
test al, al
je 0x1401a57df
lea rdx, [rbp - 0x59]
mov rcx, rsi
call fcn.1401a60c0
movzx ebx, al
test al, al
jne 0x1401a57c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
cmp ecx, 1
jbe 0x1401a57c1
mov edx, eax
lea rcx, str._tError__d_r_n
call fcn.1401a2060
jmp 0x1401a57d3
mov bl, 1
lea rcx, [rsi + 0xb0]
mov rax, qword [rcx]
lea rdx, [rbp - 0x59]
call qword [rax]
neg bl
sbb ebx, ebx
add ebx, 2
jmp 0x1401a5a7b
mov qword [rbp + 0x17], rdi
mov dword [rbp + 0x1f], r13d
mov qword [rbp + 0x27], r13
mov qword [rbp - 0x31], r13
mov edx, 0xa
lea rcx, [rbp - 0x39]
call fcn.1401e9030
mov eax, dword [rbp - 0x31]
inc eax
movsxd rdx, eax
mov r9d, 0xa
lea r8, str.SectorData
mov rcx, qword [rbp - 0x39]
call fcn.14029b4d8
mov edx, 0xa
lea rcx, [rbp - 0x39]
call fcn.1401ea290
nop
mov rax, qword [r15 + 0x10]
lea r8, [rbp + 0x17]
lea rdx, [rbp - 0x39]
mov rcx, qword [r14 + rax]
call fcn.1401f0b30
test eax, eax
setg dil
cmp dword [rbp - 0x31], 0
jle 0x1401a5854
mov rcx, qword [rbp - 0x39]
call fcn.140298600
test dil, dil
je 0x1401a587d
cmp byte [rsi + 8], 0
jne 0x1401a5a66
mov rax, qword [r15 + 0x10]
xor r8d, r8d
mov rdx, qword [r14 + rax]
mov rcx, rsi
call fcn.1401a6610
mov ebx, eax
jmp 0x1401a5a57
mov rax, qword [r15 + 0x10]
lea r8, str.rootkit
lea rdx, [rbp + 7]
mov rcx, qword [r14 + rax]
call fcn.1401edd30
nop
mov rax, qword [r15 + 0x10]
lea r8, str.repair
lea rdx, [rbp - 0x49]
mov rcx, qword [r14 + rax]
call fcn.1401edd30
nop
mov rax, qword [r15 + 0x10]
lea r8, str.replacement
lea rdx, [rbp - 0x19]
mov rcx, qword [r14 + rax]
call fcn.1401edd30
nop
xor r8d, r8d
lea rdx, [0x140328268]
lea rcx, [rbp + 7]
call fcn.1401e9310
movzx edi, al
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x29]
call fcn.1400d1ab0
nop
mov r8, qword [rsi + 0xb0]
lea rdx, [rbp - 0x29]
lea rcx, [rsi + 0xb0]
call qword [r8 + 0x10]
test al, al
jne 0x1401a591a
mov rax, qword [rsi + 0xb0]
lea rdx, [rbp - 0x29]
lea rcx, [rsi + 0xb0]
call qword [rax]
cmp dword [rbp - 0xd], 0
jle 0x1401a5937
movzx r9d, byte [rsi + 8]
lea r8, [rbp - 0x19]
lea rdx, [rbp - 0x59]
call fcn.1401a7360
jmp 0x1401a5a16
cmp byte [rsi + 8], 0
jne 0x1401a59c8
cmp dword [rbp - 0x3d], 0
jle 0x1401a59c2
xor r8d, r8d
mov rdx, qword [rbp - 0x59]
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1401a5966
mov ebx, 1
jmp 0x1401a5a18
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401a5984
and eax, 0xfffffffc
mov edx, eax
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor r8d, r8d
mov rdx, qword [rbp - 0x59]
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1401a595c
mov rbx, qword [rbp - 0x59]
mov rdi, qword [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov r9, rbx
mov r8, rdi
lea rcx, str.CopyFileW___failed__error__d__r_nSource_s_r_nDestination_s_r_n
call fcn.1401a2060
mov ebx, 3
jmp 0x1401a5a18
movzx r8d, dil
jmp 0x1401a5a0a
cmp dword [rbp - 0x3d], 0
jle 0x1401a5a07
test dil, dil
je 0x1401a5947
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 9]
call fcn.1401a7890
nop
xor r8d, r8d
lea rdx, [rbp - 9]
mov rcx, rsi
call fcn.1401a7940
mov ebx, eax
cmp dword [rbp - 1], 0
jle 0x1401a5a18
mov rcx, qword [rbp - 9]
call fcn.140298600
jmp 0x1401a5a18
xor r8d, r8d
lea rdx, [rbp - 0x59]
mov rcx, rsi
call fcn.1401a7940
mov ebx, eax
cmp dword [rbp - 0x21], 0
jle 0x1401a5a28
mov rcx, qword [rbp - 0x29]
call fcn.140298600
nop
cmp dword [rbp - 0x11], 0
jle 0x1401a5a38
mov rcx, qword [rbp - 0x19]
call fcn.140298600
nop
cmp dword [rbp - 0x41], 0
jle 0x1401a5a48
mov rcx, qword [rbp - 0x49]
call fcn.140298600
nop
cmp dword [rbp + 0xf], 0
jle 0x1401a5a57
mov rcx, qword [rbp + 7]
call fcn.140298600
cmp byte [rsi + 8], 0
jne 0x1401a5a66
cmp ebx, 2
jne 0x1401a5a66
mov byte [rsi + 0x11], 1
mov rcx, qword [rbp + 0x27]
test rcx, rcx
je 0x1401a5a74
call fcn.1402983dc
lea rdi, vtable.Core::Array_class_Core::Xml::XmlElement____ptr64_.0
lea rdx, [rsi + 0x40]
mov r9d, ebx
lea r8, [rbp - 0x59]
call fcn.1401a9ed0
nop
cmp dword [rbp - 0x51], 0
jle 0x1401a5a9b
mov rcx, qword [rbp - 0x59]
call fcn.140298600
inc r12d
add r14, 8
cmp r12d, dword [r15 + 8]
jl 0x1401a5740
mov al, 1
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret