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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.Copy_unattended_XML_...
mov dword [ebp - 0x328], edx
call fcn.004044f0
add esp, 4
lea eax, [ebp - 0x110]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov bl, byte [ebp - 0x110]
cmp bl, 0x41
jl 0x40732b
cmp bl, 0x5a
jle 0x407332
lea eax, [ebx - 0x61]
cmp al, 0x19
ja 0x407345
movsx eax, bl
push eax
push str.Current_Drive_Letter:__C
call fcn.004044f0
add esp, 8
jmp 0x407347
mov bl, 0x58
movsx esi, bl
lea eax, [ebp - 0x110]
push esi
push str._C:Unattend.xml
push 0x104
push eax
call fcn.0040b3ad
add esp, 0x10
call fcn.00406650
test eax, eax
je 0x4073ba
push esi
push str._C:__Autounattend
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040b3ad
lea edx, [ebp - 0x218]
call fcn.004070c0
lea eax, [ebp - 0x110]
push eax
push str.X:_vtoy_auto_install
push str.Expand_Copy_file___s________s_
call fcn.004044f0
add esp, 0x1c
lea eax, [ebp - 0x110]
push 0
push eax
lea eax, [ebp - 0x218]
push eax
jmp 0x4073e1
lea eax, [ebp - 0x110]
push eax
push str.X:_vtoy_auto_install
push str.No_var_expand_copy_file___s________s_
call fcn.004044f0
add esp, 0xc
lea eax, [ebp - 0x110]
push 0
push eax
push str.X:_vtoy_auto_install
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
call edi
mov ecx, dword [ebp - 0x328]
lea edx, [ebp - 0x320]
call fcn.00405670
mov bl, 0x54
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, 2
mov edx, 1
shl edx, cl
test eax, edx
je 0x40741a
inc ecx
cmp ecx, 0x1a
jl 0x407407
jmp 0x40741d
lea ebx, [ecx + 0x41]
movsx esi, bl
push esi
push 0
push str.FirstFreeDriveLetter__u__C:
call fcn.004044f0
add esp, 0xc
lea eax, [ebp - 0x320]
push esi
push eax
push str._s__a__s_64M__m__C:__p___fs:FAT32__q__y_
call fcn.00404420
add esp, 0xc
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push str._C:Unattend.xml
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040b3ad
add esp, 0x10
lea eax, [ebp - 0x218]
push 0
push eax
lea eax, [ebp - 0x110]
push eax
call edi
test eax, eax
je 0x4074f9
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push eax
push str.Move_file___s______s___use_the_later_as_unattend_XML
call fcn.004044f0
add esp, 0xc
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x328]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SystemSetup
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x407579
lea ecx, [ebp - 0x218]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4074e4
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x218]
jmp 0x407563
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push eax
push str.Failed_to_copy_file___s______s___use_OLD
call fcn.004044f0
add esp, 0xc
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x328]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SystemSetup
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x407579
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407550
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x110]
push eax
push 1
push 0
push str.UnattendFile
push dword [ebp - 0x328]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret