Function at 0x14007af00
Capabilities:
Copy file
Set file attributes

Disassembly:
push rbp
lea rbp, [rsp - 0x1370]
mov eax, 0x1470
call fcn.14024c240
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x1480], rbx
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x1360], rax
mov rbx, rdx
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_CopyIniFileFromMediaToTemp
lea rcx, [rsp + 0x20]
call fcn.1400075a0
nop
mov r9, rbx
lea r8, str.szIniFile___x
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.140007780
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rbp + 0x360]
lea rdx, str.SOURCEDIR
mov rcx, rax
call qword [r9 + 0x18]
lea rcx, [rbp + 0x360]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rbp + rcx*2 + 0x35e], 0x5c
je 0x14007afbe
lea rdx, [0x1402e5094]
lea rcx, [rbp + 0x360]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rbp + 0xb60]
lea rdx, str.TEMPPATH
mov rcx, rax
call qword [r9 + 0x18]
lea rcx, [rbp + 0xb60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rbp + rcx*2 + 0xb5e], 0x5c
je 0x14007b012
lea rdx, [0x1402e5094]
lea rcx, [rbp + 0xb60]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r9, str.InsDrv.ini
lea r8, [rbp + 0x360]
lea rdx, [0x1402e3978]
lea rcx, [rbp + 0x150]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, str.InsDrv.ini
lea r8, [rbp + 0xb60]
lea rdx, [0x1402e3978]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_wsprintfW]
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x150]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x14007b0c1
mov rcx, qword [0x1403b9770]
mov rax, qword [rcx]
lea r8, str.InsDrv.ini
mov edx, 0x19
call qword [rax + 0x18]
mov dword [0x1403b95bc], 0x26
mov r9d, 0x80010026
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x20]
call fcn.140007780
nop
lea rcx, [rsp + 0x20]
call fcn.140007730
mov eax, 0x80010026
jmp 0x14007b1c0
mov edx, 0x20
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea r9, str.Envini.INI
lea r8, [rbp + 0x360]
lea rdx, [0x1402e3978]
lea rcx, [rbp + 0x150]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, str.Envini.INI
lea r8, [rbp + 0xb60]
lea rdx, [0x1402e3978]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_wsprintfW]
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x150]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x14007b18b
mov rcx, qword [0x1403b9770]
mov rax, qword [rcx]
lea r8, str.Envini.INI
mov edx, 0x19
call qword [rax + 0x18]
mov dword [0x1403b95bc], 0x26
mov r9d, 0x80010026
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x20]
call fcn.140007780
nop
lea rcx, [rsp + 0x20]
call fcn.140007730
mov eax, 0x80010026
jmp 0x14007b1c0
mov edx, 0x20
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x20]
call fcn.140007780
nop
lea rcx, [rsp + 0x20]
call fcn.140007730
xor eax, eax
mov rcx, qword [rbp + 0x1360]
xor rcx, rsp
call fcn.140245660
mov rbx, qword [rsp + 0x1480]
add rsp, 0x1470
pop rbp
ret