Function at 0x414599
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 [0x492110]
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.0042f1f0
add esp, 0xc
mov dword [ebp - 0x730], 0x114
test edi, edi
je 0x41481d
xor eax, eax
cmp ax, word [edi]
je 0x41481d
lea eax, [ebp - 0x730]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x414601
push 0x11
jmp 0x41481f
xor eax, eax
cmp dword [ebp - 0x720], 2
sete al
mov dword [ebp - 0x734], eax
cmp dword [ebp + 0x10], esi
je 0x41463b
push edi
call fcn.0041635e
pop ecx
test eax, eax
jne 0x414635
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 0x414798
test ebx, ebx
je 0x41477e
xor eax, eax
cmp ax, word [ebx]
je 0x41477e
push ebx
call fcn.0041635e
pop ecx
test eax, eax
jne 0x414685
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 0x414811
push 0x410
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0042f1f0
push ebx
call fcn.004388b8
add esp, 0x10
mov dword [ebp - 0x734], eax
test eax, eax
jne 0x4146b4
mov eax, 0x80004005
jmp 0x414820
push 0x5c
push eax
call fcn.00430ebe
pop ecx
pop ecx
test eax, eax
je 0x4146c9
xor ecx, ecx
mov word [eax], cx
jmp 0x4146e7
push 0x471a1c
push dword [ebp - 0x734]
call fcn.00435dfe
pop ecx
inc eax
push eax
push dword [ebp - 0x734]
call fcn.00404b00
push 0x410
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0042f1f0
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push esi
push 0x471a20
push dword [ebp - 0x734]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x41476d
xor eax, eax
cmp ax, word [ebp - 0x414]
je 0x41476d
push dword [ebp - 0x734]
call fcn.00432c0b
lea eax, [ebp - 0x414]
pop ecx
cmp dword [ebp + 0x10], esi
je 0x414747
push 0xb
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x414750
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x414811
push 4
push ebx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x41480d
push dword [ebp - 0x734]
call fcn.00432c0b
pop ecx
jmp 0x4146aa
push 4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x414819
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x414811
push 0x208
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.0042f1f0
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 0x4147fa
xor eax, eax
cmp ax, word [ebx]
je 0x4147fa
push 0x208
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0042f1f0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push ebx
call edi
lea eax, [ebp - 0x20c]
push eax
jmp 0x4147ff
push 0x471a30
lea eax, [ebp - 0x61c]
push eax
call fcn.00414a6d
pop ecx
pop ecx
test eax, eax
jne 0x414819
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
jmp 0x414820
push 0x57
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042db8f
leave
ret