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

Disassembly:
push rbp
push r12
push r13
lea rbp, [rsp - 0xff0]
mov eax, 0x10f0
call fcn.14024c240
sub rsp, rax
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x1118], rbx
mov qword [rsp + 0x1120], rsi
mov qword [rsp + 0x1128], rdi
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0xfe0], rax
mov rsi, rcx
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FN_CopyBacukUpICC
lea rcx, [rsp + 0x28]
call fcn.1400075a0
nop
xor r12d, r12d
mov word [rbp + 0x7e0], r12w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp + 0x7e2]
call fcn.14024b970
mov word [rbp - 0x20], r12w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x1e]
call fcn.14024b970
call fcn.140102a14
mov r11, rax
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
jne 0x14009796a
mov ecx, 0x80004005
call fcn.140005210
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea r13, [0x1402dc4e0]
test r13, 0xffffffffffff0000
jne 0x1400979ae
movzx ebx, r13w
mov ecx, ebx
call fcn.1401027e8
test rax, rax
je 0x1400979bf
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140005b00
jmp 0x1400979bf
xor r8d, r8d
mov rdx, r13
lea rcx, [rsp + 0x20]
call fcn.140005d50
nop
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rbp + 0x7e0]
lea rdx, str.RESTORE_COLOR_FOLDER
mov rcx, rax
call qword [r9 + 0x18]
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rbp - 0x20]
lea rdx, str.COLOR_FOLDER
mov rcx, rax
call qword [r9 + 0x18]
lea rcx, [rbp + 0x7e0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140097c76
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140097c76
mov rbx, qword [rsi + 0xb8]
cmp rbx, qword [rsi + 0xc0]
je 0x140097c76
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], r12
mov word [rsp + 0x68], r12w
xor r8d, r8d
mov rdx, r13
lea rcx, [rsp + 0x68]
call fcn.140001f40
nop
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r12
mov word [rsp + 0x40], r12w
xor r8d, r8d
mov rdx, r13
lea rcx, [rsp + 0x40]
call fcn.140001f40
nop
mov r8, rbx
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x48]
call fcn.1400a1ea0
mov rdi, rax
lea rax, [rsp + 0x40]
cmp rax, rdi
je 0x140097b1a
cmp qword [rsp + 0x58], 8
jb 0x140097ab9
mov rcx, qword [rsp + 0x40]
call fcn.1401026ec
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r12
mov word [rsp + 0x40], r12w
cmp qword [rdi + 0x18], 8
jae 0x140097aed
mov r8, qword [rdi + 0x10]
inc r8
add r8, r8
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140246c50
jmp 0x140097af8
mov rax, qword [rdi]
mov qword [rsp + 0x40], rax
mov qword [rdi], r12
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x50], rax
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x58], rax
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r12
mov word [rdi], r12w
cmp qword [rbp - 0x30], 8
jb 0x140097b2a
mov rcx, qword [rbp - 0x48]
call fcn.1401026ec
mov r8, rbx
lea rdx, [rbp + 0x7e0]
lea rcx, [rbp - 0x70]
call fcn.1400a1ea0
mov rdi, rax
lea rax, [rsp + 0x68]
cmp rax, rdi
je 0x140097bba
cmp qword [rbp - 0x80], 8
jb 0x140097b5b
mov rcx, qword [rsp + 0x68]
call fcn.1401026ec
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], r12
mov word [rsp + 0x68], r12w
cmp qword [rdi + 0x18], 8
jae 0x140097b8e
mov r8, qword [rdi + 0x10]
inc r8
add r8, r8
mov rdx, rdi
lea rcx, [rsp + 0x68]
call fcn.140246c50
jmp 0x140097b99
mov rax, qword [rdi]
mov qword [rsp + 0x68], rax
mov qword [rdi], r12
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x78], rax
mov rax, qword [rdi + 0x18]
mov qword [rbp - 0x80], rax
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r12
mov word [rdi], r12w
cmp qword [rbp - 0x58], 8
jb 0x140097bca
mov rcx, qword [rbp - 0x70]
call fcn.1401026ec
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140097c2e
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_CopyFileW]
lea rcx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rcx, qword [rsp + 0x68]
mov edx, 0x20
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop
cmp qword [rsp + 0x58], 8
jb 0x140097c40
mov rcx, qword [rsp + 0x40]
call fcn.1401026ec
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r12
mov word [rsp + 0x40], r12w
cmp qword [rbp - 0x80], 8
jb 0x140097c65
mov rcx, qword [rsp + 0x68]
call fcn.1401026ec
add rbx, 0x28
cmp rbx, qword [rsi + 0xc0]
jne 0x140097a41
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x28]
call fcn.140007780
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140097cb0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x28]
call fcn.140007730
xor eax, eax
mov rcx, qword [rbp + 0xfe0]
xor rcx, rsp
call fcn.140245660
lea r11, [rsp + 0x10f0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret