Function at 0x40dd17
Capabilities:
Copy file
Get common file path
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x734
mov eax, dword [0x4c143c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x72c]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x110
push esi
push eax
call fcn.0045b1d0
add esp, 0xc
mov dword [ebp - 0x730], 0x114
test edi, edi
je 0x40df9b
xor eax, eax
cmp ax, word [edi]
je 0x40df9b
lea eax, [ebp - 0x730]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40dd7f
push 0x11
jmp 0x40df9d
xor eax, eax
cmp dword [ebp - 0x720], 2
sete al
mov dword [ebp - 0x734], eax
cmp dword [ebp + 0x10], esi
je 0x40ddb9
push edi
call fcn.0040e3f3
pop ecx
test eax, eax
jne 0x40ddb3
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x734]
test eax, eax
je 0x40df16
test ebx, ebx
je 0x40defc
xor eax, eax
cmp ax, word [ebx]
je 0x40defc
push ebx
call fcn.0040e3f3
pop ecx
test eax, eax
jne 0x40de03
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x40df8f
push 0x410
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0045b1d0
push ebx
call fcn.00465a2f
add esp, 0x10
mov dword [ebp - 0x734], eax
test eax, eax
jne 0x40de32
mov eax, 0x80004005
jmp 0x40df9e
push 0x5c
push eax
call fcn.0045b45b
pop ecx
pop ecx
test eax, eax
je 0x40de47
xor ecx, ecx
mov word [eax], cx
jmp 0x40de65
push 0x4b5994
push dword [ebp - 0x734]
call fcn.0045ef01
pop ecx
inc eax
push eax
push dword [ebp - 0x734]
call fcn.00401380
push 0x410
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0045b1d0
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push esi
push 0x494b4c
push dword [ebp - 0x734]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x40deeb
xor eax, eax
cmp ax, word [ebp - 0x414]
je 0x40deeb
push dword [ebp - 0x734]
call fcn.0045f1d9
lea eax, [ebp - 0x414]
pop ecx
cmp dword [ebp + 0x10], esi
je 0x40dec5
push 0xb
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x40dece
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40df8f
push 4
push ebx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x40df8b
push dword [ebp - 0x734]
call fcn.0045f1d9
pop ecx
jmp 0x40de28
push 4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40df97
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40df8f
push 0x208
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.0045b1d0
add esp, 0xc
lea eax, [ebp - 0x61c]
push 0x104
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
call edi
test ebx, ebx
je 0x40df78
xor eax, eax
cmp ax, word [ebx]
je 0x40df78
push 0x208
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0045b1d0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push ebx
call edi
lea eax, [ebp - 0x20c]
push eax
jmp 0x40df7d
push 0x494b5c
lea eax, [ebp - 0x61c]
push eax
call fcn.0040e1eb
pop ecx
pop ecx
test eax, eax
jne 0x40df97
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
jmp 0x40df9e
push 0x57
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00458eeb
leave
ret