Function at 0x406fa0
Capabilities:
Encode data using xor
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x447f44
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov edi, dword [sym.imp.MSVCR71.dll_fseek]
push 2
push 0
push ebp
call edi
push ebp
call dword [sym.imp.MSVCR71.dll_ftell]
push 0
push 0
push ebp
mov esi, eax
call edi
lea eax, [esi + 0xc]
push eax
mov dword [esp + 0x38], eax
call fcn.00427580
mov edi, eax
mov eax, dword [esp + 0x50]
add esp, 0x20
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push 0x2e
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::ReverseFind]
lea ecx, [esp + 0x10]
mov ebx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
sub eax, ebx
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Right]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::MakeLower]
push ebp
push esi
lea ebx, [edi + 0xc]
push 1
push ebx
mov dword [edi], 0x100
mov dword [edi + 4], esi
mov dword [edi + 8], 0
call dword [sym.imp.MSVCR71.dll_fread]
push ebp
mov ebp, dword [sym.imp.MSVCR71.dll_fclose]
call ebp
add esp, 0x14
test esi, esi
jle 0x407095
mov dl, byte [ebx]
xor dl, 0x48
sub dl, 4
mov byte [ebx], dl
inc ebx
dec esi
jne 0x407087
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov bl, 2
push 0x2e
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::ReverseFind]
push eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x34]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push str..mxf
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
push 0x450c30
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x407146
push edi
call sub.MFC71.DLL_operator_delete_1
add esp, 4
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 8
mov edx, dword [esp + 0x18]
push esi
push edx
push 1
push edi
call dword [sym.imp.MSVCR71.dll_fwrite]
push esi
call ebp
push edi
call sub.MFC71.DLL_operator_delete_1
add esp, 0x18
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 8