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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x80fcf6
push eax
mov eax, 0x1014
mov dword fs:[0], esp
call fcn.0072bd20
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x103c]
mov dword [esp + 0x102c], 0
test eax, eax
je 0x71cb5e
lea edi, [esi + 0x64]
push str._Attachment_
jmp 0x71cb66
lea edi, [esi + 0x68]
push str._RelativeFile_
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 0x14]
call fcn.006fe140
mov eax, dword [esp + 0x1038]
mov byte [esp + 0x102c], 1
test eax, eax
jne 0x71cc6b
mov eax, dword [edi]
push 0x8bd670
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x71cde0
mov edi, dword [edi]
push 0x8aaa14
push edi
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x71cde0
push 2
push 0
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push esi
mov edi, eax
call dword [sym.imp.MSVCRT.dll_rewind]
add esp, 0x14
test edi, edi
jg 0x71cbf4
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
jmp 0x71cde0
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x1034]
mov ebx, dword [sym.imp.MSVCRT.dll_fprintf]
push eax
push str._r_n_s_r_n
push ebp
call ebx
mov al, byte [esi + 0xc]
add esp, 0xc
test al, 0x10
jne 0x71cc54
push esi
push 0xfff
lea ecx, [esp + 0x2c]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
lea edx, [esp + 0x24]
lea ecx, [esp + 0x14]
push eax
push edx
call fcn.006fe160
mov edi, eax
push edi
push ebp
call ebx
push edi
call dword [sym.imp.MSVCRT.dll_free]
mov al, byte [esi + 0xc]
add esp, 0xc
test al, 0x10
je 0x71cc18
push str._r_n_r_n
push ebp
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0xc
jmp 0x71cde0
mov ebp, dword [esp + 0x1034]
push ebp
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
lea ecx, [esi + 0x34]
push eax
push 0
call fcn.00401a05
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x8bd670
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x28]
push ecx
call fcn.0071dbf0
add esp, 8
mov ecx, eax
call fcn.00401a05
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push eax
call esi
test eax, eax
lea ecx, [esp + 0x18]
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x71cd0d
lea edx, [esp + 0x24]
push edx
push 0
push 0x8bd670
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x8bd670
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x28]
push eax
call fcn.0071dbf0
add esp, 8
mov ecx, eax
call fcn.00401a05
push eax
call esi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CString::operator_3
mov edi, dword [edi]
push 0x8ab824
push edi
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x71cde0
test byte [ebp + 0xc], 0x10
jne 0x71cdc8
push ebp
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x28]
push 0xffc
lea edx, [esp + 0x2c]
push 1
push edx
rep stosd dword es:[edi], eax
call dword [sym.imp.MSVCRT.dll_fread]
lea eax, [esp + 0x34]
push str._r_n__t
push eax
call dword [sym.imp.MSVCRT.dll_strpbrk]
mov esi, eax
add esp, 0x18
test esi, esi
je 0x71cd7a
mov byte [esi], 0
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.006fe320
mov edi, eax
mov eax, dword [esp + 0x18]
push ebx
push eax
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0x14
test esi, esi
jne 0x71cdc8
test byte [ebp + 0xc], 0x10
je 0x71cd3e
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [esp + 0x24]
push 0
push ecx
push ebp
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x102c], 0
call fcn.006fe150
lea ecx, [esp + 0x10]
mov dword [esp + 0x102c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1024]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1020
ret 0xc