Function at 0x140097cf0
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::FS_RestoreLatestICC
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 0x140097daa
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 0x140097dee
movzx ebx, r13w
mov ecx, ebx
call fcn.1401027e8
test rax, rax
je 0x140097dff
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140005b00
jmp 0x140097dff
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 0x1400980d0
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400980d0
mov rbx, qword [rsi + 0xb8]
cmp rbx, qword [rsi + 0xc0]
je 0x1400980d0
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 0x140097f5a
cmp qword [rsp + 0x58], 8
jb 0x140097ef9
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 0x140097f2d
mov r8, qword [rdi + 0x10]
inc r8
add r8, r8
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140246c50
jmp 0x140097f38
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 0x140097f6a
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 0x140097ffa
cmp qword [rbp - 0x80], 8
jb 0x140097f9b
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 0x140097fce
mov r8, qword [rdi + 0x10]
inc r8
add r8, r8
mov rdx, rdi
lea rcx, [rsp + 0x68]
call fcn.140246c50
jmp 0x140097fd9
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 0x14009800a
mov rcx, qword [rbp - 0x70]
call fcn.1401026ec
mov rcx, qword [0x1403b9768]
lea r8, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae r8, qword [rsp + 0x40]
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rdx, qword [rsp + 0x68]
mov rax, qword [rcx]
mov r9d, 1
call qword [rax + 0x58]
cmp eax, 1
jne 0x140098088
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
lea edx, [rax + 0x1f]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rcx, qword [rsp + 0x68]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
nop
cmp qword [rsp + 0x58], 8
jb 0x14009809a
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 0x1400980bf
mov rcx, qword [rsp + 0x68]
call fcn.1401026ec
add rbx, 0x28
cmp rbx, qword [rsi + 0xc0]
jne 0x140097e81
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 0x14009810a
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