Function at 0x1400a7640
Capabilities:
Copy file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x13b0]
mov eax, 0x14b0
call fcn.1401e33b0
sub rsp, rax
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0x13a0], rax
mov esi, r9d
mov r14, r8
mov rdi, rdx
lea rdx, str.OperateTempFolder::CopyFileFromMediaToTemp
lea rcx, [rsp + 0x30]
call fcn.14001abe0
nop
lea r15, [0x1402a8360]
lea rbx, [0x1402bbdb0]
mov rcx, qword [0x1402a8360]
cmp rcx, r15
je 0x1400a7714
test byte [rcx + 0x1c], 1
je 0x1400a76dc
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x30
lea r8, [0x14025a4c8]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
mov rcx, qword [0x1402a8360]
cmp rcx, r15
je 0x1400a7714
test byte [rcx + 0x1c], 1
je 0x1400a7714
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x31
mov qword [rsp + 0x20], rdi
lea r8, [0x14025a4c8]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x3a0]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0xba0]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x190]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x80]
call fcn.1401e7e40
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
lea r8, [rbp + 0x3a0]
lea rdx, str.SOURCEDIR
mov rcx, r9
call qword [case.0x1400136d6.0]
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
lea r8, [rbp + 0xba0]
lea rdx, str.TEMPPATH
mov rcx, r9
call qword [case.0x1400136d6.0]
lea rcx, [rbp + 0xba0]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov r9, rdi
lea r8, [rbp + 0x3a0]
lea rdx, [0x1402528f8]
lea rcx, [rbp + 0x190]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r9, rdi
lea r8, [rbp + 0xba0]
lea rdx, [0x1402528f8]
lea rcx, [rbp - 0x80]
call qword [sym.imp.USER32.dll_wsprintfW]
xor r8d, r8d
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1400a7881
test esi, esi
jne 0x1400a7854
mov rcx, qword [0x1402bbf68]
mov rax, qword [rcx]
mov r8, rdi
lea edx, [rsi + 0x19]
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
mov dword [0x1402bbd98], 0x26
mov byte [rsp + 0x38], 1
mov edi, 0x80010026
mov rax, qword [0x1402a8360]
cmp rax, r15
je 0x1400a78e7
test byte [rax + 0x1c], 1
je 0x1400a78e7
mov edx, 0x32
jmp 0x1400a78b9
mov edx, 0x20
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rdx, [rbp - 0x80]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov byte [rsp + 0x38], 1
xor edi, edi
mov rax, qword [0x1402a8360]
cmp rax, r15
je 0x1400a78e7
test byte [rax + 0x1c], 1
je 0x1400a78e7
lea edx, [rdi + 0x33]
mov r9, rbx
cmp qword [0x1402bbdc8], 8
mov dword [rsp + 0x20], edi
cmovae r9, qword [0x1402bbdb0]
lea r8, [0x14025a4c8]
mov rcx, qword [rax + 0x10]
call fcn.140001b40
mov rax, qword [0x1402a8360]
lea rcx, vtable.WppTrace.0
mov qword [rsp + 0x30], rcx
cmp byte [rsp + 0x38], 0
jne 0x1400a7943
cmp rax, r15
je 0x1400a7943
test byte [rax + 0x1c], 1
je 0x1400a7943
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], rcx
mov r9, rbx
lea r8, [0x140252818]
mov rcx, qword [rax + 0x10]
call fcn.140006c90
lea rcx, [rsp + 0x60]
call fcn.1400048a0
lea rcx, [rsp + 0x40]
call fcn.1400048a0
mov eax, edi
mov rcx, qword [rbp + 0x13a0]
xor rcx, rsp
call fcn.1401e2900
mov rbx, qword [rsp + 0x14e0]
add rsp, 0x14b0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret