Function at 0x140008270
Capabilities:
Copy file
Delete file
Get common file path
Get disk information
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x2a0]
sub rsp, 0x3a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x290], rax
lea rcx, str.Copy_unattended_XML_...
mov edi, edx
call fcn.140005180
lea rdx, [rsp + 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
movzx ebx, byte [rsp + 0x60]
lea eax, [rbx - 0x41]
cmp al, 0x19
jbe 0x1400082d0
lea eax, [rbx - 0x61]
cmp al, 0x19
jbe 0x1400082d0
mov bl, 0x58
jmp 0x1400082df
lea rcx, str.Current_Drive_Letter:__C
movsx edx, bl
call fcn.140005180
movsx ebx, bl
lea r8, str._C:Unattend.xml
lea rcx, [rsp + 0x60]
mov r9d, ebx
mov edx, 0x104
call fcn.14000d244
call fcn.140007540
test eax, eax
je 0x140008343
lea r8, str._C:__Autounattend
lea rcx, [rbp + 0x70]
mov r9d, ebx
mov edx, 0x104
call fcn.14000d244
lea rdx, [rbp + 0x70]
call fcn.140008040
lea r8, [rsp + 0x60]
lea rdx, str.X:_vtoy_auto_install
lea rcx, str.Expand_Copy_file___s________s_
call fcn.140005180
lea rcx, [rbp + 0x70]
jmp 0x140008362
lea r8, [rsp + 0x60]
lea rdx, str.X:_vtoy_auto_install
lea rcx, str.No_var_expand_copy_file___s________s_
call fcn.140005180
lea rcx, str.X:_vtoy_auto_install
lea rdx, [rsp + 0x60]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileA]
lea rdx, [rbp + 0x180]
mov ecx, edi
call fcn.140006450
mov bl, 0x54
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, 2
nop dword [rax + rax]
bt eax, ecx
jae 0x14000839e
inc ecx
cmp ecx, 0x1a
jl 0x140008390
jmp 0x1400083a1
lea ebx, [rcx + 0x41]
movsx ebx, bl
lea rcx, str.FirstFreeDriveLetter__u__C:
xor edx, edx
mov r8d, ebx
call fcn.140005180
lea rdx, [rbp + 0x180]
lea rcx, str._s__a__s_64M__m__C:__p___fs:FAT32__q__y_
mov r8d, ebx
call fcn.140005070
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r8, str._C:Unattend.xml
lea rcx, [rbp + 0x70]
mov r9d, ebx
mov edx, 0x104
call fcn.14000d244
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x60]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x140008495
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea r8, [rbp + 0x70]
lea rdx, [rsp + 0x60]
lea rcx, str.Move_file___s______s___use_the_later_as_unattend_XML
call fcn.140005180
lea rax, [rsp + 0x58]
lea rdx, str.SystemSetup
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor eax, eax
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140008534
lea rcx, [rbp + 0x70]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140008480
inc eax
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x70]
jmp 0x140008514
lea r8, [rbp + 0x70]
lea rdx, [rsp + 0x60]
lea rcx, str.Failed_to_copy_file___s______s___use_OLD
call fcn.140005180
lea rax, [rsp + 0x58]
lea rdx, str.SystemSetup
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor eax, eax
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140008534
lea rcx, [rsp + 0x60]
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140008500
inc eax
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
lea rdx, str.UnattendFile
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor eax, eax
mov rcx, qword [rbp + 0x290]
xor rcx, rsp
call fcn.14000d130
lea r11, [rsp + 0x3a0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret