Function at 0x448750
Capabilities:
Delete file
Get common file path
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4fcf91
push eax
mov eax, 0x2020
mov dword fs:[0], esp
call fcn.00445f30
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x2048]
mov dword [esp + 0x2038], 0
test eax, eax
je 0x4487a2
lea eax, [esi + 0x4c]
push str._Attachment_
mov dword [esp + 0x18], eax
jmp 0x4487ae
lea ecx, [esi + 0x50]
push str._RelativeFile_
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x1c]
call fcn.00446670
mov eax, dword [esp + 0x2044]
mov byte [esp + 0x2038], 1
test eax, eax
jne 0x44895e
mov edx, dword [esp + 0x14]
mov edi, dword [edx]
test edi, edi
je 0x448c21
mov eax, dword [edi + 4]
lea esi, [edi + 4]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call dword [eax + 0x18]
mov eax, dword [eax]
push 0x5b2c3c
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x44881f
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
push 0
mov ecx, edi
call sub.MFC42.DLL_CString::GetBuffer
push 0x5936d8
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x44887a
mov eax, dword [esp + 0x14]
mov edi, dword [eax]
test edi, edi
je 0x448c21
mov edx, dword [edi + 4]
lea esi, [edi + 4]
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call dword [edx + 0x18]
mov eax, dword [eax]
push 0x5b2c3c
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
sete bl
jmp 0x44893b
mov esi, dword [esp + 0x2040]
push 0x59197c
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x5c]
mov eax, dword [esp + 0x18]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x5c]
mov edx, dword [esi]
push 0x59197c
mov ecx, esi
call dword [edx + 0x5c]
test byte [ebp + 0xc], 0x10
jne 0x4488ed
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push ebp
push 0xfff
lea eax, [esp + 0x38]
push 1
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x30]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00446680
mov edx, dword [esi]
mov edi, eax
push edi
mov ecx, esi
call dword [edx + 0x5c]
push edi
call dword [sym.imp.MSVCRT.dll_free]
mov al, byte [ebp + 0xc]
add esp, 4
test al, 0x10
je 0x4488b1
mov eax, dword [esi]
push 0x59396c
mov ecx, esi
call dword [eax + 0x5c]
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [esp + 0x18]
add esp, 4
mov edi, dword [ecx]
test edi, edi
je 0x448c21
mov edx, dword [edi + 4]
lea esi, [edi + 4]
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call dword [edx + 0x18]
mov eax, dword [eax]
push 0x5b2c3c
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x448c21
mov edi, dword [edi]
mov edx, dword [esi]
push 0
push 0x8010
push edi
mov ecx, esi
call dword [edx + 0x28]
jmp 0x448c21
mov ebp, dword [esp + 0x2040]
mov ecx, ebp
mov eax, dword [ebp]
call dword [eax + 0x14]
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], eax
call sub.MFC42.DLL_CString::CString_3
mov esi, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
mov byte [esp + 0x203c], 2
call fcn.0042cc90
mov eax, dword [eax]
add esp, 4
lea edx, [esp + 0x1030]
push edx
push 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push eax
call esi
test eax, eax
lea ecx, [esp + 0x10]
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4489e4
lea eax, [esp + 0x10]
push eax
call fcn.0042cc90
mov eax, dword [eax]
add esp, 4
lea ecx, [esp + 0x1030]
push ecx
push 0
push 0x5b2c3c
push eax
call esi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x1030]
lea ecx, [esp + 0x20]
push edx
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [esp + 0x20]
push 0x5936d4
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x448c10
mov edx, dword [ebp]
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x30]
push 0xffc
push eax
mov ecx, ebp
call dword [edx + 0x3c]
test eax, eax
je 0x448aa1
lea ecx, [esp + 0x30]
push str._r_n__t
push ecx
call dword [sym.imp.MSVCRT.dll_strpbrk]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x448a52
mov byte [ebp], 0
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x30]
mov dword [esp + 0x10], ecx
push edx
push eax
lea ecx, [esp + 0x24]
call fcn.00446840
mov ecx, dword [esp + 0x10]
push ebx
mov esi, eax
push ecx
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0x14
test ebp, ebp
mov ebp, dword [esp + 0x2040]
je 0x448a12
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x20]
push 0
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov esi, dword [edx]
test esi, esi
je 0x448b66
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x448b5c
test esi, esi
mov dword [esp + 0x28], esi
je 0x448b5c
mov edx, dword [esi + 4]
lea edi, [esi + 4]
lea eax, [esp + 0x10]
mov ecx, edi
push eax
mov byte [esp + 0x203c], 4
call dword [edx + 0x18]
mov ecx, dword [eax]
push 0x5b2c3c
push ecx
call fcn.004244b0
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x448b23
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x54]
push 0
mov ecx, esi
call sub.MFC42.DLL_CString::GetBuffer
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, edi
mov byte [esp + 0x2038], 3
call fcn.00445726
mov ecx, esi
mov byte [esp + 0x2038], 2
call sub.MFC42.DLL_CString::CString
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [eax], 0
push 0x18
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [esp + 0x28], edi
test edi, edi
mov byte [esp + 0x2038], 5
je 0x448bf1
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CString::CString_1
lea esi, [edi + 4]
mov byte [esp + 0x2038], 6
mov ecx, esi
call sub.MFC42.DLL_CFile::CFile
mov edx, dword [esi]
lea eax, [esp + 0x24]
push eax
mov ecx, esi
mov byte [esp + 0x203c], 7
mov dword [edi + 0x14], 1
call dword [edx + 0x18]
mov eax, dword [eax]
push 0x5b2c3c
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x24]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x448bf3
mov eax, dword [edi]
mov edx, dword [esi]
push 0
push 0x8010
push eax
mov ecx, esi
call dword [edx + 0x28]
jmp 0x448bf3
xor edi, edi
mov eax, dword [esp + 0x14]
push 0
mov ecx, ebp
mov byte [esp + 0x203c], 2
mov dword [eax], edi
mov eax, dword [esp + 0x30]
mov edx, dword [ebp]
push eax
call dword [edx + 0x30]
lea ecx, [esp + 0x20]
mov byte [esp + 0x2038], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2038], 0
call fcn.00425c90
lea ecx, [esp + 0x18]
mov dword [esp + 0x2038], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x2030]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x202c
ret 0xc