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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x546b01
push eax
mov eax, 0x2020
mov dword fs:[0], esp
call fcn.00450700
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esp + 0x2048]
mov dword [esp + 0x2038], 0
test eax, eax
je 0x469672
lea eax, [esi + 0x4c]
push str._Attachment_
mov dword [esp + 0x18], eax
jmp 0x46967e
lea ecx, [esi + 0x50]
push str._RelativeFile_
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x1c]
call fcn.0044fce0
lea ecx, [esp + 0x1c]
call fcn.00482e30
mov eax, dword [esp + 0x2044]
mov byte [esp + 0x2038], 1
test eax, eax
jne 0x46982e
mov edx, dword [esp + 0x14]
mov edi, dword [edx]
test edi, edi
je 0x469af1
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 0x617d8c
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 0x4696ef
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
push 0
mov ecx, edi
call sub.MFC42.DLL_CString::GetBuffer
push 0x5ef944
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x46974a
mov eax, dword [esp + 0x14]
mov edi, dword [eax]
test edi, edi
je 0x469af1
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 0x617d8c
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
sete bl
jmp 0x46980b
mov esi, dword [esp + 0x2040]
push 0x5f1244
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 0x5f1244
mov ecx, esi
call dword [edx + 0x5c]
test byte [ebp + 0xc], 0x10
jne 0x4697bd
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.00482e50
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 0x469781
mov eax, dword [esi]
push 0x5f1d40
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 0x469af1
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 0x617d8c
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 0x469af1
mov edi, dword [edi]
mov edx, dword [esi]
push 0
push 0x8010
push edi
mov ecx, esi
call dword [edx + 0x28]
jmp 0x469af1
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_4
mov esi, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
mov byte [esp + 0x203c], 2
call fcn.00402536
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 0x4698b4
lea eax, [esp + 0x10]
push eax
call fcn.00402536
mov eax, dword [eax]
add esp, 4
lea ecx, [esp + 0x1030]
push ecx
push 0
push 0x617d8c
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 fcn.0044fce0
mov eax, dword [esp + 0x20]
push 0x5f09b4
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x469ae0
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 0x469971
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 0x469922
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.00483010
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 0x4698e2
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 0x469a36
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x469a2c
test esi, esi
mov dword [esp + 0x28], esi
je 0x469a2c
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 0x617d8c
push ecx
call fcn.00401aeb
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4699f3
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 sub.MFC42.DLL_CFile::CFile
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 0x469ac1
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CString::CString_2
lea esi, [edi + 4]
mov byte [esp + 0x2038], 6
mov ecx, esi
call sub.MFC42.DLL_CFile::CFile_1
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 0x617d8c
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 0x469ac3
mov eax, dword [edi]
mov edx, dword [esi]
push 0
push 0x8010
push eax
mov ecx, esi
call dword [edx + 0x28]
jmp 0x469ac3
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.00482e40
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