Function at 0x140008950
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xe0]
sub rsp, 0x1e0
mov qword [rbp - 0x70], 0xfffffffffffffffe
movaps xmmword [rsp + 0x1d0], xmm6
mov rax, qword [0x14009b088]
xor rax, rsp
mov qword [rbp + 0xc8], rax
mov r15d, edx
mov r14, rcx
movups xmm6, xmmword [r8]
lea rcx, [0x1400ab950]
call fcn.14000d210
movdqa xmmword [rsp + 0x30], xmm6
lea rdx, [rsp + 0x30]
lea rcx, [0x1400ab950]
call fcn.14000c880
mov rcx, rax
call fcn.14000d210
lea rbx, [0x1400abb74]
cmp qword [r14 + 0x80], 0
je 0x1400089d7
mov rcx, qword [r14 + 0x78]
jmp 0x1400089da
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140008a2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 2
je 0x140008a2c
lea rdx, [0x140049d18]
lea rcx, [rsp + 0x40]
call fcn.140003a10
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
mov r8d, edi
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 8]
call fcn.14000bc60
lea rdx, [0x140098a90]
lea rcx, [rbp - 8]
call fcn.1400267a0
int3
xor edi, edi
mov qword [rbp + 0xb0], rdi
mov qword [rbp + 0xb8], rdi
mov qword [rbp + 0xc0], rdi
call fcn.14001eca0
mov r12, rax
cmp qword [r14 + 0x80], rdi
je 0x140008a5a
mov rdx, qword [r14 + 0x78]
jmp 0x140008a5d
mov rdx, rbx
cmp qword [r14 + 0x60], rdi
je 0x140008a69
mov rcx, qword [r14 + 0x58]
jmp 0x140008a6c
mov rcx, rbx
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0xb0]
lea r8, [0x140008920]
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x140008b27
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rcx, [rsp + 0x70]
call fcn.14000ad70
nop
lea r8, [r14 + 0x50]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14000bee0
nop
lea r8, [0x140049d38]
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.14000b4c0
nop
lea r8, [r14 + 0x70]
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.14000bee0
nop
lea r8, [0x140049d30]
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.14000aa30
nop
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.1400043d0
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
mov r8d, edi
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 8]
call fcn.14000bc60
lea rdx, [0x140098a90]
lea rcx, [rbp - 8]
call fcn.1400267a0
nop
mov rax, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0xb8]
cmp rax, rdx
je 0x140008d0d
lea rsi, [rsp + 0x40]
jae 0x140008b57
lea rax, str.less
mov qword [rsp + 0x48], 4
jmp 0x140008b67
lea rax, str.greater
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rax
xor r9d, r9d
lea r8d, [r9 + 0xa]
lea rcx, [rsp + 0x70]
call fcn.14000b480
mov r15, rax
xor r9d, r9d
lea r8d, [r9 + 0xa]
mov rdx, qword [rbp + 0xc0]
lea rcx, [rsp + 0x50]
call fcn.14000b480
mov r14, rax
lea rax, str.CopyFileExW_reported_total_bytes_transferred
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0x2d
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [0x1400ab950]
call fcn.14000c880
mov r8, rax
mov rcx, qword [r14 + 0x10]
test rcx, rcx
lea rdx, [rcx - 1]
jne 0x140008be1
mov rdx, rdi
jmp 0x140008be7
mov rax, qword [r14 + 8]
jmp 0x140008bea
mov rax, rbx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rdx
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
mov rcx, r8
call fcn.14000c880
lea rcx, str._as
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], 4
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.14000c880
movups xmm0, xmmword [rsi]
movaps xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.14000c880
lea rcx, str._than_total_stream_sizes
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], 0x19
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.14000c880
mov rcx, qword [r15 + 0x10]
test rcx, rcx
je 0x140008c8c
lea rdi, [rcx - 1]
mov rbx, qword [r15 + 8]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.14000c880
mov rcx, rax
call fcn.14000d210
nop
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140008cda
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140008cda
add rcx, rcx
mov rdi, rax
xor eax, eax
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x58]
mov rcx, rax
call fcn.140024f38
nop
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x140008d05
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140008d05
add rcx, rcx
mov rdi, rax
xor eax, eax
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x78]
mov rcx, rax
call fcn.140024f38
call fcn.14001eca0
mov r9, qword [rbp + 0xb8]
mov r8, rax
mov rdx, r12
call fcn.140007f40
mov rcx, qword [rbp + 0xc8]
xor rcx, rsp
call fcn.140024b90
movaps xmm6, xmmword [rsp + 0x1d0]
add rsp, 0x1e0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret