Function at 0x10014350
Capabilities:
Copy file
Delete file
Get common file path
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x80c
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x41d]
mov byte [esp + 0x41c], 0
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x1d]
mov dword [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x41c]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x41c]
push ecx
push 0
push 0x1002db5c
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
lea esi, [ebp + 0x10]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
mov ecx, esi
push ebx
mov dword [esp + 0x18], esi
call fcn.1000ac10
test al, al
je 0x10014418
mov eax, dword [esp + 0x10]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x1c]
mov edi, dword [eax + 4]
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
call fcn.1000abf0
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov edi, eax
push edi
push str..csv
call ebx
test eax, eax
jne 0x10014456
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea edx, [esp + 0x1c]
push 0x80
push edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp + 4]
test eax, eax
jne 0x10014462
mov eax, 0x100213c4
lea ecx, [esp + 0x1c]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [ebp + 4]
test eax, eax
jne 0x1001447c
mov eax, 0x100213c4
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.10009480
add esp, 8
test eax, eax
jne 0x100144de
mov eax, dword [esi + 4]
test eax, eax
jne 0x1001449a
mov eax, 0x100213c4
mov ecx, dword [esp + 0x834]
mov edx, dword [esp + 0x830]
push ecx
mov ecx, dword [esp + 0x830]
push edx
mov edx, dword [esp + 0x830]
push ecx
mov ecx, dword [esp + 0x830]
push edx
mov edx, dword [esp + 0x830]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80c
ret 0x18
push edi
push str..csv
call ebx
test eax, eax
jne 0x10014502
mov eax, dword [ebp + 4]
test eax, eax
jne 0x100144f6
mov eax, 0x100213c4
mov ecx, dword [esp + 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x14]
push esi
push edx
mov ecx, 0x100313dc
call fcn.10014760
mov eax, dword [esi + 4]
test eax, eax
jne 0x1001451e
mov eax, 0x100213c4
mov ecx, dword [esp + 0x834]
mov edx, dword [esp + 0x830]
push ecx
mov ecx, dword [esp + 0x830]
push edx
mov edx, dword [esp + 0x830]
push ecx
mov ecx, dword [esp + 0x830]
push edx
mov edx, dword [esp + 0x830]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x1c]
mov dword [ebp + 0x30], eax
push ecx
push eax
push str.CTempFile::CreateTempFile_021___x___s_
push 0x10027760
call fcn.1000b440
add esp, 0x10
call dword [sym.imp.DSCOPipe.dll_Ordinal_1]
mov esi, eax
test esi, esi
je 0x100145b0
mov eax, dword [ebp + 4]
test eax, eax
jne 0x10014588
mov eax, 0x100213c4
push eax
push str.CTempFile::CreateTempFile_021_Set___s_
push 0x10027760
call fcn.1000b440
mov eax, dword [ebp + 4]
add esp, 0xc
test eax, eax
jne 0x100145a7
mov eax, 0x100213c4
push eax
mov ecx, esi
call dword [sym.imp.DSCOPipe.dll_public:_void___thiscall_CSDSCOPipe::SetLastOpenedDocumentFile_char__]
mov eax, dword [ebp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80c
ret 0x18