Function at 0x14001de20
Capabilities:
Copy file
Get common file path
Set file attributes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x8b0]
sub rsp, 0x9b0
mov rax, qword [0x14016b140]
xor rax, rsp
mov qword [rbp + 0x8a0], rax
mov rbx, rdx
mov r12, rcx
mov edx, 0x80
mov rcx, r8
mov r15d, r9d
mov rdi, r8
xor esi, esi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov qword [rsp + 0x30], rsi
lea r8d, [rsi + 1]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp r14, 0xffffffffffffffff
jne 0x14001e1b5
cmp eax, 0xb7
je 0x14001e1b5
cmp eax, 0x20
je 0x14001e1b5
mov rdx, rbx
lea rcx, str.____File_does_not_exist___s__try_compress_version_n
call fcn.1400213c0
lea rcx, [rbp + 0x60]
sub rcx, rbx
nop
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x14001ded0
lea rcx, [rbp + 0x60]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x14001def0
mov ecx, 0x5f
mov qword [rsp + 0x30], rsi
mov word [rbp + rax*2 + 0x5e], cx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [rcx - 0x5e]
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp rbx, 0xffffffffffffffff
jne 0x14001df60
cmp eax, 0xb7
je 0x14001df60
cmp eax, 0x20
je 0x14001df60
lea rdx, [rbp + 0x60]
lea rcx, str.____File_does_not_exist___s__n
call fcn.1400213c0
jmp 0x14001e192
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
lea rcx, [rbp + 0x270]
mov r8d, 0x208
call fcn.1400c0ac0
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x60]
call sub.LZ32.dll_LZOpenFileW
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14001e059
xor edx, edx
lea rcx, [rbp + 0x690]
mov r8d, 0x208
call fcn.1400c0ac0
lea rdx, [rbp + 0x690]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14001e059
xor edx, edx
lea rcx, [rbp + 0x480]
mov r8d, 0x208
call fcn.1400c0ac0
lea r9, [rbp + 0x480]
xor r8d, r8d
lea rdx, [rbp + 0x60]
mov rcx, r12
call fcn.140020d70
lea r9, [rbp + 0x480]
lea r8, [rbp + 0x690]
lea rdx, [0x1401062c8]
lea rcx, [rbp + 0x270]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9d, [rbx + 2]
mov rcx, r12
lea r8, [rbp + 0x270]
lea rdx, [rbp + 0x60]
call fcn.14001de20
mov edx, 0x80
lea rcx, [rbp + 0x270]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, ebx
call sub.LZ32.dll_LZClose
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x270]
call sub.LZ32.dll_LZOpenFileW
mov ebx, eax
mov r8d, 0x1001
lea rdx, [rbp - 0x30]
mov rcx, rdi
call sub.LZ32.dll_LZOpenFileW
mov r14d, eax
cmp eax, 0xffffffff
jne 0x14001e0bf
mov r8, rdi
lea rdx, [rbp + 0x60]
lea rcx, str.LZCopy_LZERROR_BADINHANDLE_error___can_not_create_target_file._n_____s_____s__n
call fcn.1400213c0
mov ecx, ebx
call sub.LZ32.dll_LZClose
mov ecx, r14d
call sub.LZ32.dll_LZClose
cmp word [rbp + 0x270], si
je 0x14001e0ad
lea rdx, [rbp + 0x270]
mov rcx, r12
call fcn.14001e940
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14001e194
mov edx, r14d
mov ecx, ebx
call sub.LZ32.dll_LZCopy
test eax, eax
jns 0x14001e153
cmp eax, 0xfffffffa
je 0x14001e13e
cmp eax, 0xfffffffb
je 0x14001e129
cmp eax, 0xfffffffd
je 0x14001e114
cmp eax, 0xfffffffe
je 0x14001e0ff
cmp eax, 0xffffffff
jne 0x14001e158
mov r8, rdi
lea rdx, [rbp + 0x60]
lea rcx, str.LZCopy_LZERROR_BADINHANDLE_error_n_____s_____s__n
call fcn.1400213c0
jmp 0x14001e158
mov r8, rdi
lea rdx, [rbp + 0x60]
lea rcx, str.LZCopy_LZERROR_BADOUTHANDLE_error_n_____s_____s__n
call fcn.1400213c0
jmp 0x14001e158
mov r8, rdi
lea rdx, [rbp + 0x60]
lea rcx, str.LZCopy_LZERROR_READ_error_n_____s_____s__n
call fcn.1400213c0
jmp 0x14001e158
mov r8, rdi
lea rdx, [rbp + 0x60]
lea rcx, str.LZCopy_LZERROR_GLOBALLOC_error_n_____s_____s__n
call fcn.1400213c0
jmp 0x14001e158
mov r8, rdi
lea rdx, [rbp + 0x60]
lea rcx, str.LZCopy_LZERROR_GLOBLOCK_error_n_____s_____s__n
call fcn.1400213c0
jmp 0x14001e158
mov esi, 1
mov ecx, ebx
call sub.LZ32.dll_LZClose
mov ecx, r14d
call sub.LZ32.dll_LZClose
cmp word [rbp + 0x270], 0
je 0x14001e180
lea rdx, [rbp + 0x270]
mov rcx, r12
call fcn.14001e940
test esi, esi
je 0x14001e192
mov edx, 0x80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
mov rcx, qword [rbp + 0x8a0]
xor rcx, rsp
call fcn.140027790
add rsp, 0x9b0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, r15d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
test eax, eax
jne 0x14001e184
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rdi
lea rcx, str.CopyFile__s__returned__d
mov r8d, eax
call fcn.140021160
jmp 0x14001e192