Function at 0x14000e9e0
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x78
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov rax, r8
mov r8, rdx
mov r12, rcx
xor ebx, ebx
mov qword [rbp - 0x38], rbx
and qword [rbp - 0x40], rbx
xor r14d, r14d
mov qword [rbp - 0x30], r14
xor r15d, r15d
mov qword [rbp - 0x28], r15
xor esi, esi
mov qword [rbp - 0x20], rsi
xor edi, edi
mov qword [rbp - 0x18], rdi
xor r13d, r13d
test rdx, rdx
jne 0x14000ea9a
mov r13d, 0x80070057
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
xor ecx, ecx
test rax, rax
je 0x14000ea90
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 0x26b
lea r9, str.CSetupHost::SetPostInstallPaths
lea r8, str._s__d_:_Result__0x_X
mov edx, 4
mov rcx, rax
call fcn.14002374c
test eax, eax
mov ecx, eax
jns 0x14000ea90
call fcn.140025d30
call fcn.140025d50
jmp 0x14000f0b5
test rax, rax
je 0x14000eb18
lea rdx, [rbp - 0x48]
mov rcx, rax
call fcn.140029fcc
mov r13d, eax
test eax, eax
jns 0x14000eabb
mov ecx, eax
call fcn.140025d30
jmp 0x14000eadd
lea r8, [rbp - 0x38]
mov edx, dword [rbp - 0x48]
mov rcx, qword [rbp + 0x58]
call fcn.140028308
mov r13d, eax
test eax, eax
jns 0x14000ead9
mov ecx, eax
call fcn.140025d30
mov rbx, qword [rbp - 0x38]
mov ecx, r13d
call fcn.140025d50
test r13d, r13d
jns 0x14000eb14
mov rax, qword [r12]
mov rcx, r12
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
xor ecx, ecx
test rax, rax
je 0x14000ea90
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 0x26f
jmp 0x14000ea6a
mov r8, qword [rbp + 0x50]
cmp qword [rbp + 0x60], 0
jne 0x14000eb31
cmp qword [rbp + 0x68], 0
jne 0x14000eb31
cmp qword [rbp + 0x70], 0
je 0x14000ef58
lea r9, [rbp - 0x40]
lea rdx, str.Scripts
mov rcx, r8
call fcn.140024234
mov r13d, eax
test eax, eax
jns 0x14000eb79
mov rcx, qword [r12]
mov rax, qword [rcx + 0x18]
mov rcx, r12
call qword [str.PN_t_]
xor ecx, ecx
test rax, rax
je 0x14000ea90
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 0x276
jmp 0x14000ea6a
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14000eb99
shr eax, 4
and eax, 1
mov dword [rbp - 0x48], eax
jmp 0x14000eb9d
and dword [rbp - 0x48], 0
xor ecx, ecx
call fcn.140025d50
xor ecx, ecx
call fcn.140025d50
xor r13d, r13d
cmp dword [rbp - 0x48], r13d
jne 0x14000ebf2
mov rcx, qword [rbp - 0x40]
call fcn.14002436c
mov r13d, eax
test eax, eax
jns 0x14000ebf2
mov rax, qword [r12]
mov rcx, r12
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
xor ecx, ecx
test rax, rax
je 0x14000ea90
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 0x27a
jmp 0x14000ea6a
cmp qword [rbp + 0x60], 0
je 0x14000ed62
lea r9, [rbp - 0x30]
lea rdx, str.preoobescript.cmd
lea rcx, str.Scripts
call fcn.140024234
mov r13d, eax
test eax, eax
jns 0x14000ec72
mov rax, qword [r12]
mov rcx, r12
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
xor ecx, ecx
test rax, rax
je 0x14000ec64
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 0x27f
lea r9, str.CSetupHost::SetPostInstallPaths
lea r8, str._s__d_:_Result__0x_X
lea edx, [rcx + 4]
mov rcx, rax
call fcn.14002374c
mov ecx, eax
test eax, eax
jns 0x14000ec64
call fcn.140025d30
call fcn.140025d50
mov r14, qword [rbp - 0x30]
jmp 0x14000f0b5
mov r14, qword [rbp - 0x30]
lea r9, [rbp - 0x28]
mov rdx, r14
mov rcx, qword [rbp + 0x50]
call fcn.140024234
mov r13d, eax
test eax, eax
jns 0x14000ece4
mov rax, qword [r12]
mov rcx, r12
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
xor ecx, ecx
test rax, rax
je 0x14000ecd6
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 0x280
lea r9, str.CSetupHost::SetPostInstallPaths
lea r8, str._s__d_:_Result__0x_X
lea edx, [rcx + 4]
mov rcx, rax
call fcn.14002374c
mov ecx, eax
test eax, eax
jns 0x14000ecd6
call fcn.140025d30
call fcn.140025d50
mov r15, qword [rbp - 0x28]
jmp 0x14000f0b5
mov r15, qword [rbp - 0x28]
xor r8d, r8d
mov rdx, r15
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14000ed62
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x14000ed1a
mov r13d, 0x80004005
jmp 0x14000ed2b
movzx r13d, ax
or r13d, 0x80070000
test eax, eax
cmovle r13d, eax
mov rax, qword [r12]
mov rcx, r12
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
xor ecx, ecx
test r13d, r13d
jns 0x14000ea90
test rax, rax
je 0x14000ea90
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 0x281
jmp 0x14000ea6a
cmp qword [rbp + 0x68], 0
je 0x14000ee5d
lea r9, [rbp - 0x20]
lea rdx, str.setupcomplete.cmd
mov rcx, qword [rbp - 0x40]
call fcn.140024234
mov r13d, eax
test eax, eax
jns 0x14000eddf
mov rax, qword [r12]
mov rcx, r12
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
xor ecx, ecx
test rax, rax
je 0x14000edd1
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 0x286
lea r9, str.CSetupHost::SetPostInstallPaths
lea r8, str._s__d_:_Result__0x_X
lea edx, [rcx + 4]
mov rcx, rax
call fcn.14002374c
mov ecx, eax
test eax, eax
jns 0x14000edd1
call fcn.140025d30
call fcn.140025d50
mov rsi, qword [rbp - 0x20]
jmp 0x14000f0b5
mov rsi, qword [rbp - 0x20]
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14000ee5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x14000ee15
mov r13d, 0x80004005
jmp 0x14000ee26
movzx r13d, ax
or r13d, 0x80070000
test eax, eax
cmovle r13d, eax
mov rax, qword [r12]
mov rcx, r12
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
xor ecx, ecx
test r13d, r13d
jns 0x14000ea90
test rax, rax
je 0x14000ea90
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 0x287
jmp 0x14000ea6a
cmp qword [rbp + 0x70], 0
je 0x14000ef58
lea r9, [rbp - 0x18]
lea rdx, str.setuprollback.cmd
mov rcx, qword [rbp - 0x40]
call fcn.140024234
mov r13d, eax
test eax, eax
jns 0x14000eeda
mov rax, qword [r12]
mov rcx, r12
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
xor ecx, ecx
test rax, rax
je 0x14000eecc
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 0x28c
lea r9, str.CSetupHost::SetPostInstallPaths
lea r8, str._s__d_:_Result__0x_X
lea edx, [rcx + 4]
mov rcx, rax
call fcn.14002374c
mov ecx, eax
test eax, eax
jns 0x14000eecc
call fcn.140025d30
call fcn.140025d50
mov rdi, qword [rbp - 0x18]
jmp 0x14000f0b5
mov rdi, qword [rbp - 0x18]
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14000ef58
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x14000ef10
mov r13d, 0x80004005
jmp 0x14000ef21
movzx r13d, ax
or r13d, 0x80070000
test eax, eax
cmovle r13d, eax
mov rax, qword [r12]
mov rcx, r12
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
xor ecx, ecx
test r13d, r13d
jns 0x14000ea90
test rax, rax
je 0x14000ea90
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 0x28d
jmp 0x14000ea6a
mov rcx, rbx
mov qword [rbp + 0x50], rbx
xor ebx, ebx
mov rax, qword [r12 + 0x70]
test rax, rax
je 0x14000ef9e
lea r12, [rax - 4]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
xor ecx, ecx
call fcn.140025d50
mov r12, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x50]
xor eax, eax
test rcx, rcx
cmovne rax, rcx
mov qword [r12 + 0x70], rax
mov rcx, r14
mov qword [rbp + 0x50], rcx
xor r14d, r14d
mov rax, qword [r12 + 0x78]
test rax, rax
je 0x14000eff3
lea r12, [rax - 4]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
xor ecx, ecx
call fcn.140025d50
mov r12, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x50]
xor eax, eax
test rcx, rcx
cmovne rax, rcx
mov qword [r12 + 0x78], rax
mov rcx, rsi
mov qword [rbp + 0x50], rcx
xor esi, esi
mov rax, qword [r12 + 0x80]
test rax, rax
je 0x14000f04a
lea r12, [rax - 4]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
xor ecx, ecx
call fcn.140025d50
mov r12, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x50]
xor eax, eax
test rcx, rcx
cmovne rax, rcx
mov qword [r12 + 0x80], rax
mov rcx, rdi
mov qword [rbp + 0x50], rcx
xor edi, edi
mov rax, qword [r12 + 0x88]
test rax, rax
je 0x14000f0a4
lea r12, [rax - 4]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
xor ecx, ecx
call fcn.140025d50
mov r12, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x50]
xor eax, eax
test rcx, rcx
cmovne rax, rcx
mov qword [r12 + 0x88], rax
mov ecx, r13d
call fcn.140025d50
nop
test rdi, rdi
je 0x14000f0ec
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
lea r8, [rdi - 4]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
xor ecx, ecx
call fcn.140025d50
nop
test rsi, rsi
je 0x14000f11a
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
lea r8, [rsi - 4]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
xor ecx, ecx
call fcn.140025d50
nop
test r15, r15
je 0x14000f148
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
lea r8, [r15 - 4]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
xor ecx, ecx
call fcn.140025d50
nop
test r14, r14
je 0x14000f176
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
lea r8, [r14 - 4]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
xor ecx, ecx
call fcn.140025d50
nop
mov rax, qword [rbp - 0x40]
test rax, rax
je 0x14000f1ab
lea rdi, [rax - 4]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
xor ecx, ecx
call fcn.140025d50
nop
test rbx, rbx
je 0x14000f1d8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
lea r8, [rbx - 4]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
xor ecx, ecx
call fcn.140025d50
mov eax, r13d
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret