Function at 0x14003aaf0
Capabilities:
Check if file exists
Copy file
Get file attributes
Set current directory
Set file attributes

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x7c8
mov qword [rsp + 0x6e8], 0xfffffffffffffffe
mov rax, qword [0x1402aa808]
xor rax, rsp
mov qword [rsp + 0x7b8], rax
lea rcx, [rsp + 0x418]
call fcn.140074884
nop
mov rdx, qword [rsp + 0x7d8]
lea rcx, [rsp + 0x110]
call fcn.140018590
nop
mov rdx, qword [rsp + 0x7d8]
lea rcx, [rsp + 0x408]
call fcn.140018590
nop
lea rcx, [rsp + 0x60]
call sym.Setup.exe_public:_void___cdecl_CDeviceInfSection::constructor_void____ptr64
nop
mov dword [rsp + 0x410], 1
mov dword [rsp + 0x400], 1
lea rcx, [rsp + 0x120]
call fcn.140065c10
nop
mov dx, 0x5c
lea rcx, [rsp + 0x110]
call fcn.140010180
lea rcx, [rsp + 0x110]
call fcn.14000e660
lea rdx, [0x140200738]
lea rcx, [rsp + 0x110]
call fcn.14000fd10
lea rcx, [rsp + 0x408]
call fcn.14000e660
lea rdx, str._LANGDIR_.INI
lea rcx, [rsp + 0x408]
call fcn.14000fd10
mov rdx, qword [rsp + 0x7d8]
lea rcx, [rsp + 0x50]
call fcn.140018590
nop
lea rcx, [rsp + 0x50]
call fcn.140001dc0
mov dword [rsp + 0x6f0], eax
mov dx, 0x5c
lea rcx, [rsp + 0x50]
call fcn.1400405d0
mov ecx, dword [rsp + 0x6f0]
sub ecx, eax
mov eax, ecx
mov r8d, eax
lea rdx, [rsp + 0x690]
lea rcx, [rsp + 0x50]
call fcn.140010240
mov qword [rsp + 0x6f8], rax
mov rax, qword [rsp + 0x6f8]
mov qword [rsp + 0x700], rax
mov rdx, qword [rsp + 0x700]
lea rcx, [rsp + 0x50]
call fcn.140001d70
nop
lea rcx, [rsp + 0x690]
call fcn.140001d50
mov rdx, qword [rsp + 0x7e0]
lea rcx, [rsp + 0x50]
call fcn.1400185f0
mov r8, qword [rsp + 0x50]
lea rdx, str.CIstDrvDlg::CopyDirectory_strTargetDirectory____1_s___n
mov ecx, 4
call fcn.14001c160
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.140001da0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x14003acbf
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.140001da0
mov rcx, rax
call fcn.14000e4a0
xor edx, edx
lea rcx, [rsp + 0x408]
call fcn.140001da0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003ad27
call fcn.140018340
add rax, 0x160
mov qword [rsp + 0x708], rax
xor edx, edx
lea rcx, [rsp + 0x408]
call fcn.140001da0
lea r9, [0x140200420]
mov rcx, qword [rsp + 0x708]
mov r8, rcx
mov rdx, rax
lea rcx, [rsp + 0x60]
call sym.Setup.exe_public:_int___cdecl_CDeviceInfSection::Init_wchar_t_const____ptr64__class_CInfStringTable____ptr64__wchar_t_const____ptr64____ptr64
lea rcx, [rsp + 0x60]
call sym.Setup.exe_public:_int___cdecl_CDeviceInfSection::GetList_void____ptr64
xor edx, edx
lea rcx, [rsp + 0x110]
call fcn.140001da0
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x418]
call fcn.14007498c
test eax, eax
je 0x14003b3a0
mov r8, qword [rsp + 0x110]
lea rdx, str.CIstDrvDlg::CopyDirectory_findfile__1_s___succeeded._n
mov ecx, 4
call fcn.14001c160
cmp dword [rsp + 0x410], 0
je 0x14003b393
mov rdx, qword [rsp + 0x7d8]
lea rcx, [rsp + 0x450]
call fcn.140018590
nop
lea rcx, [rsp + 0x418]
call fcn.14007438c
mov dword [rsp + 0x410], eax
lea rcx, [rsp + 0x418]
call fcn.140074830
test eax, eax
je 0x14003adc2
lea rcx, [rsp + 0x450]
call fcn.140001d50
jmp 0x14003ad6a
mov dx, 0x5c
lea rcx, [rsp + 0x450]
call fcn.140010180
lea rdx, [rsp + 0x698]
lea rcx, [rsp + 0x418]
call fcn.140074f54
mov qword [rsp + 0x710], rax
mov rax, qword [rsp + 0x710]
mov qword [rsp + 0x718], rax
mov r8, qword [rsp + 0x718]
lea rdx, [0x1402007f4]
lea rcx, [rsp + 0x6a0]
call fcn.140010300
mov qword [rsp + 0x720], rax
mov rax, qword [rsp + 0x720]
mov qword [rsp + 0x728], rax
mov rdx, qword [rsp + 0x728]
lea rcx, [rsp + 0x450]
call fcn.14000fce0
nop
lea rcx, [rsp + 0x6a0]
call fcn.140001d50
nop
lea rcx, [rsp + 0x698]
call fcn.140001d50
lea rcx, [rsp + 0x418]
call fcn.14000fc60
test eax, eax
je 0x14003b100
lea rdx, [rsp + 0x6a8]
lea rcx, [rsp + 0x418]
call fcn.140074f54
mov qword [rsp + 0x730], rax
mov rax, qword [rsp + 0x730]
mov qword [rsp + 0x738], rax
mov rax, qword [rsp + 0x738]
mov r8, qword [rax]
lea rdx, str.CIstDrvDlg::CopyDirectory_Directory___1_s__._n
mov ecx, 4
call fcn.14001c160
nop
lea rcx, [rsp + 0x6a8]
call fcn.140001d50
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x458]
call fcn.140001d20
nop
lea rcx, [rsp + 0x458]
call fcn.14000e660
lea rdx, [rsp + 0x6b0]
lea rcx, [rsp + 0x418]
call fcn.140074f54
mov qword [rsp + 0x740], rax
mov rax, qword [rsp + 0x740]
mov qword [rsp + 0x748], rax
mov rdx, qword [rsp + 0x748]
lea rcx, [rsp + 0x458]
call fcn.14000fce0
nop
lea rcx, [rsp + 0x6b0]
call fcn.140001d50
lea rcx, [rsp + 0x60]
call sym.Setup.exe_public:_unsigned_long_int___cdecl_CDeviceInfSection::Count_void____ptr64
test eax, eax
je 0x14003b09b
mov qword [rsp + 0x460], 0
jmp 0x14003af74
mov rax, qword [rsp + 0x460]
inc rax
mov qword [rsp + 0x460], rax
lea rcx, [rsp + 0x60]
call sym.Setup.exe_public:_unsigned_long_int___cdecl_CDeviceInfSection::Count_void____ptr64
mov eax, eax
cmp qword [rsp + 0x460], rax
jae 0x14003b099
lea rdx, [rsp + 0x6c0]
lea rcx, [rsp + 0x418]
call fcn.140074f54
mov qword [rsp + 0x750], rax
mov rax, qword [rsp + 0x750]
mov qword [rsp + 0x758], rax
xor edx, edx
mov rcx, qword [rsp + 0x758]
call fcn.140001da0
mov qword [rsp + 0x760], rax
mov edx, dword [rsp + 0x460]
lea rcx, [rsp + 0x60]
call sym.Setup.exe_public:_wchar_t_const____ptr64___cdecl_CDeviceInfSection::GetValue_unsigned_long_int____ptr64
mov rcx, qword [rsp + 0x760]
mov rdx, rcx
mov rcx, rax
call fcn.1401ac890
test eax, eax
je 0x14003b007
mov dword [rsp + 0x768], 1
jmp 0x14003b012
mov dword [rsp + 0x768], 0
movzx eax, byte [rsp + 0x768]
mov byte [rsp + 0x6b8], al
lea rcx, [rsp + 0x6c0]
call fcn.140001d50
movzx eax, byte [rsp + 0x6b8]
test eax, eax
je 0x14003b03f
jmp 0x14003af61
xor edx, edx
lea rcx, [rsp + 0x458]
call fcn.140001da0
mov qword [rsp + 0x770], rax
xor edx, edx
lea rcx, [rsp + 0x450]
call fcn.140001da0
mov rcx, qword [rsp + 0x770]
mov r8, rcx
mov rdx, rax
mov rcx, qword [rsp + 0x7d0]
call fcn.14003aaf0
mov ecx, dword [rsp + 0x400]
and ecx, eax
mov eax, ecx
mov dword [rsp + 0x400], eax
jmp 0x14003b099
jmp 0x14003b0ee
xor edx, edx
lea rcx, [rsp + 0x458]
call fcn.140001da0
mov qword [rsp + 0x778], rax
xor edx, edx
lea rcx, [rsp + 0x450]
call fcn.140001da0
mov rcx, qword [rsp + 0x778]
mov r8, rcx
mov rdx, rax
mov rcx, qword [rsp + 0x7d0]
call fcn.14003aaf0
mov ecx, dword [rsp + 0x400]
and ecx, eax
mov eax, ecx
mov dword [rsp + 0x400], eax
lea rcx, [rsp + 0x458]
call fcn.140001d50
jmp 0x14003b381
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x468]
call fcn.140001d20
nop
lea rcx, [rsp + 0x468]
call fcn.14000e660
lea rdx, [rsp + 0x6c8]
lea rcx, [rsp + 0x418]
call fcn.140074f54
mov qword [rsp + 0x780], rax
mov rax, qword [rsp + 0x780]
mov qword [rsp + 0x788], rax
mov rdx, qword [rsp + 0x788]
lea rcx, [rsp + 0x468]
call fcn.14000fce0
nop
lea rcx, [rsp + 0x6c8]
call fcn.140001d50
lea rdx, [rsp + 0x6d0]
lea rcx, [rsp + 0x418]
call fcn.140074f54
mov qword [rsp + 0x790], rax
mov rax, qword [rsp + 0x790]
mov qword [rsp + 0x798], rax
mov rax, qword [rsp + 0x798]
mov r8, qword [rax]
lea rdx, str.CIstDrvDlg::CopyDirectory_File___1_s__._n
mov ecx, 4
call fcn.14001c160
nop
lea rcx, [rsp + 0x6d0]
call fcn.140001d50
xor edx, edx
lea rcx, [rsp + 0x468]
call fcn.140001da0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003b201
xor edx, edx
lea rcx, [rsp + 0x468]
call fcn.140001da0
mov edx, 0x80
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov r8, qword [rsp + 0x450]
lea rdx, str.CIstDrvDlg::CopyDirectory_strCopyFile___1_s__n
mov ecx, 4
call fcn.14001c160
mov r8, qword [rsp + 0x468]
lea rdx, str.CIstDrvDlg::CopyDirectory_strTargetFile___1_s__n
mov ecx, 4
call fcn.14001c160
lea rdx, [rsp + 0x6d8]
lea rcx, [rsp + 0x418]
call fcn.140074f54
mov qword [rsp + 0x7a0], rax
mov rax, qword [rsp + 0x7a0]
mov qword [rsp + 0x7a8], rax
xor edx, edx
mov rcx, qword [rsp + 0x7a8]
call fcn.140001da0
mov qword [rsp + 0x40], 0x101
lea rcx, [rsp + 0x480]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.1401ab004
nop
lea rcx, [rsp + 0x6d8]
call fcn.140001d50
xor edx, edx
lea rcx, [rsp + 0x468]
call fcn.140001da0
mov qword [rsp + 0x7b0], rax
xor edx, edx
lea rcx, [rsp + 0x450]
call fcn.140001da0
xor r8d, r8d
mov rcx, qword [rsp + 0x7b0]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [rsp + 0x400]
and ecx, eax
mov eax, ecx
mov dword [rsp + 0x400], eax
cmp dword [rsp + 0x400], 0
jne 0x14003b331
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.CIstDrvDlg::CopyDirectory_CopyFile_Error_0x_1_lx___n
mov ecx, 4
call fcn.14001c160
xor edx, edx
lea rcx, [rsp + 0x468]
call fcn.140001da0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
mov dword [rsp + 0x470], eax
xor edx, edx
lea rcx, [rsp + 0x468]
call fcn.140001da0
mov edx, dword [rsp + 0x470]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop
lea rcx, [rsp + 0x468]
call fcn.140001d50
nop
lea rcx, [rsp + 0x450]
call fcn.140001d50
jmp 0x14003ad6a
lea rcx, [rsp + 0x418]
call fcn.1400742b8
mov eax, dword [rsp + 0x400]
mov dword [rsp + 0x6e0], eax
lea rcx, [rsp + 0x50]
call fcn.140001d50
nop
lea rcx, [rsp + 0x120]
call fcn.140066f20
nop
lea rcx, [rsp + 0x60]
call sym.Setup.exe_public_virtual:_void___cdecl_CDeviceInfSection::destructor_void____ptr64
nop
lea rcx, [rsp + 0x408]
call fcn.140001d50
nop
lea rcx, [rsp + 0x110]
call fcn.140001d50
nop
lea rcx, [rsp + 0x418]
call fcn.1400748e4
mov eax, dword [rsp + 0x6e0]
mov rcx, qword [rsp + 0x7b8]
xor rcx, rsp
call fcn.1401ab2d0
add rsp, 0x7c8
ret