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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42363c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x584
push edi
mov dword [ebp - 0x56c], 0
mov dword [ebp - 0x224], 0
mov byte [ebp - 0x340], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x33f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x114], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x44c], 0xffffffff
mov dword [ebp - 0x568], 0
mov byte [ebp - 0x220], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x21f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0x460]
call fcn.004226f2
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x45c]
call sub.MFC42.DLL_CFile::CFile
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x23c]
call fcn.004226f2
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x11c]
call fcn.004226f2
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x234]
call fcn.004226f2
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x448]
call fcn.004226f2
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x228]
call fcn.004226f2
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x10]
call fcn.004226f2
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x118]
call fcn.004226f2
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x230]
call fcn.004226f2
mov byte [ebp - 4], 9
mov dword [ebp - 0x238], 0
mov byte [ebp - 0x564], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x563]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x444], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x443]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x444]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x406f4c
jmp 0x40722a
push 0x104
lea ecx, [ebp - 0x564]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov dword [ebp - 0x56c], eax
lea edx, [ebp - 0x564]
push edx
call fcn.00405200
add esp, 4
cmp dword [ebp - 0x224], 0
jne 0x406f81
jmp 0x40722a
call fcn.00406cce
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push str.Process_Share_File__s_to__s.
lea edx, [ebp - 0x230]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
push 0
lea ecx, [ebp - 0x230]
call fcn.004040f0
push eax
call fcn.00410257
add esp, 8
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x580], eax
cmp dword [ebp - 0x580], 0
jle 0x407220
cmp dword [ebp - 0x580], 2
jle 0x407081
cmp dword [ebp - 0x580], 3
je 0x406ff2
jmp 0x407220
push 0xa0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 0x224], eax
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x340]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x4320f8
lea ecx, [ebp - 0x340]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
push 0
lea edx, [ebp - 0x340]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x407055
jmp 0x40722a
push 5
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x340]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x40707c
jmp 0x40722a
jmp 0x407220
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x340]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x4320fc
lea edx, [ebp - 0x340]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
push 0
lea eax, [ebp - 0x340]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x4070de
push 0
push str.Process_Share_File_CopyFile_Failed.
call fcn.00410257
add esp, 8
jmp 0x40722a
push 0x80
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push str.CopyFile.ini
lea eax, [ebp - 0x444]
push eax
lea ecx, [ebp - 0x574]
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 0x584], eax
mov ecx, dword [ebp - 0x584]
mov dword [ebp - 0x588], ecx
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x588]
push edx
lea eax, [ebp - 0x578]
push eax
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x58c], eax
mov ecx, dword [ebp - 0x58c]
mov dword [ebp - 0x590], ecx
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x590]
push edx
lea ecx, [ebp - 0x460]
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x578]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x574]
call sub.MFC42.DLL_CString::CString
push 0x5c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
mov dword [ebp - 0x570], eax
cmp dword [ebp - 0x570], 0
jne 0x407196
jmp 0x40722a
mov ecx, dword [ebp - 0x570]
add ecx, 1
push ecx
lea edx, [ebp - 0x114]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x4071fe
lea ecx, [ebp - 0x460]
call fcn.004040f0
push eax
lea eax, [ebp - 0x340]
push eax
push 0x432134
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [ebp - 0x460]
call fcn.004040f0
push eax
mov edx, dword [ebp + 8]
push edx
push 0x432138
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x407220
lea ecx, [ebp - 0x460]
call fcn.004040f0
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x43213c
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov dword [ebp - 0x56c], 1
mov eax, dword [ebp - 0x56c]
mov dword [ebp - 0x57c], eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x230]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x118]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x228]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x448]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x234]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x11c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x23c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x45c]
call fcn.00422740
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x460]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x57c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret