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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x4e412c]
xor eax, ebp
mov dword [ebp - 0xc], eax
push 0x5c
mov eax, dword [ebp + 0x10]
push eax
call fcn.00468590
add esp, 8
mov dword [ebp - 4], eax
mov dword [ebp - 0x334], 0
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x468b16
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x468b1c
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x4c9678
lea edx, [ebp - 0x440]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x4c9680
lea edx, [ebp - 0x330]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x330]
push eax
lea ecx, [ebp - 0x440]
push ecx
push str.UpdateP2PFile___copy_from__s_to__s
push 0
call fcn.00468960
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x14]
push eax
push str._s_s.tmp
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 1
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x468c26
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x444], 0xb7
je 0x468bea
cmp dword [ebp - 0x444], 0x50
je 0x468bea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CopyFile___fail__d__n
push 0
call fcn.00468960
add esp, 0xc
xor eax, eax
jmp 0x468d23
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
push str._s_s.tmp__d_
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0xa
jle 0x468c21
xor eax, eax
jmp 0x468d23
jmp 0x468b90
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0xffffffff
jne 0x468c5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetFileAttributes___fail__d__n
push 0
call fcn.00468960
add esp, 0xc
xor eax, eax
jmp 0x468d23
mov ecx, dword [ebp - 0x11c]
and ecx, 0xfffffffe
mov dword [ebp - 0x11c], ecx
mov edx, dword [ebp - 0x11c]
push edx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x468c9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetFileAttributes___fail__d__n
push 0
call fcn.00468960
add esp, 0xc
lea ecx, [ebp - 0x338]
push ecx
push 0
push 0
push 0x41
lea edx, [ebp - 0x330]
push edx
push 0
lea eax, [ebp - 0x118]
push eax
push 0
push 0
call dword [sym.imp.SETUPAPI.dll_SetupInstallFileExA]
test eax, eax
jne 0x468d1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0xb7
je 0x468d1e
cmp dword [ebp - 0x448], 0x50
je 0x468d1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c9720
push 0
call fcn.00468960
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetupInstallFileEx___fail__d__n
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor eax, eax
jmp 0x468d23
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00488550
mov esp, ebp
pop ebp
ret