Function at 0x1800017c0
Capabilities:
Copy file
Get common file path
Move file

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x628]
sub rsp, 0x710
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x18001c290]
xor rax, rsp
mov qword [rbp + 0x600], rax
lea rdx, [rbp + 0x1e0]
mov ebx, 0x104
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov r8d, ebx
lea rdx, [rbp + 0x3f0]
mov rcx, qword [0x18001f368]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, ebx
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rcx, [0x180019190]
call fcn.180003358
mov r15d, 7
mov qword [rbp - 0x40], r15
xor r14d, r14d
mov qword [rbp - 0x48], r14
mov word [rbp - 0x58], r14w
lea rdx, [rbp + 0x1e0]
lea rcx, [rbp - 0x58]
call fcn.180002698
nop
lea ebx, [r15 + 2]
mov edx, ebx
lea rcx, [rsp + 0x28]
call fcn.180001538
nop
lea esi, [rbx - 1]
cmp qword [rax + 0x18], rsi
jb 0x180001883
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.1800024d0
nop
cmp qword [rsp + 0x40], rsi
jb 0x1800018a1
mov rcx, qword [rsp + 0x28]
call fcn.180003c64
lea rcx, [0x180018edc]
call fcn.180003358
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.1800024d0
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x68], r14
mov word [rbp - 0x78], r14w
lea rdx, [rbp + 0x1e0]
lea rcx, [rbp - 0x78]
call fcn.180002698
nop
mov edx, ebx
lea rcx, [rsp + 0x28]
call fcn.180001538
nop
cmp qword [rax + 0x18], rsi
jb 0x1800018ed
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.1800024d0
nop
cmp qword [rsp + 0x40], rsi
jb 0x18000190b
mov rcx, qword [rsp + 0x28]
call fcn.180003c64
lea rcx, [0x180018edc]
call fcn.180003358
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.1800024d0
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x58], r14
mov word [rsp + 0x48], r14w
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x48]
call fcn.180002698
nop
lea rcx, [0x180019190]
call fcn.180003358
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1800024d0
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], rsi
cmovae rdx, qword [rsp + 0x48]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r14
mov word [rsp + 0x28], r14w
lea rcx, [rsp + 0x28]
call fcn.180002698
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], rsi
cmovae rcx, qword [rsp + 0x28]
lea rdx, [0x180018ed8]
call fcn.1800043e8
mov dil, 1
test rax, rax
je 0x1800019b6
mov rcx, rax
call fcn.18000478c
mov bl, dil
jmp 0x1800019b9
mov bl, r14b
cmp qword [rsp + 0x40], rsi
jb 0x1800019ca
mov rcx, qword [rsp + 0x28]
call fcn.180003c64
test bl, bl
je 0x1800019f1
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], rsi
cmovae rdx, qword [rbp - 0x58]
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], rsi
cmovae rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], rsi
cmovae rdx, qword [rsp + 0x48]
xor r8d, r8d
lea rcx, [rbp + 0x3f0]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov qword [rbp - 0x80], r15
mov qword [rsp + 0x78], r14
mov word [rsp + 0x68], r14w
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x68]
call fcn.180002698
nop
lea rcx, [0x180019268]
call fcn.180003358
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.1800024d0
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], rsi
cmovae rdx, qword [rsp + 0x68]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r14
mov word [rsp + 0x28], r14w
lea rcx, [rsp + 0x28]
call fcn.180002698
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], rsi
cmovae rcx, qword [rsp + 0x28]
lea rdx, [0x180018ed8]
call fcn.1800043e8
test rax, rax
je 0x180001a9c
mov rcx, rax
call fcn.18000478c
jmp 0x180001a9f
mov dil, r14b
cmp qword [rsp + 0x40], rsi
jb 0x180001ab0
mov rcx, qword [rsp + 0x28]
call fcn.180003c64
test dil, dil
je 0x180001ad7
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], rsi
cmovae rdx, qword [rbp - 0x78]
lea rcx, [rsp + 0x68]
cmp qword [rbp - 0x80], rsi
cmovae rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], rsi
cmovae rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], rsi
cmovae rcx, qword [rsp + 0x48]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
nop
cmp qword [rbp - 0x80], rsi
jb 0x180001b10
mov rcx, qword [rsp + 0x68]
call fcn.180003c64
mov qword [rbp - 0x80], r15
mov qword [rsp + 0x78], r14
mov word [rsp + 0x68], r14w
cmp qword [rsp + 0x60], rsi
jb 0x180001b30
mov rcx, qword [rsp + 0x48]
call fcn.180003c64
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x58], r14
mov word [rsp + 0x48], r14w
cmp qword [rbp - 0x60], rsi
jb 0x180001b4f
mov rcx, qword [rbp - 0x78]
call fcn.180003c64
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x68], r14
mov word [rbp - 0x78], r14w
cmp qword [rbp - 0x40], rsi
jb 0x180001b6b
mov rcx, qword [rbp - 0x58]
call fcn.180003c64
mov rcx, qword [rbp + 0x600]
xor rcx, rsp
call fcn.180003c80
lea r11, [rsp + 0x710]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret