Function at 0x4012f3
Capabilities:
Get common file path
Set current directory
Write file on windows

Disassembly:
jmp 0x4358e0
push 0xffffffffffffffff
push 0x451065
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd8c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
xor edi, edi
push 0x80
mov dword [esp + 0xda8], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov esi, dword [esp + 0xdac]
lea edx, [ebp + 0x520]
push edx
mov eax, dword [esi + 4]
mov dword [eax + 0x5ec], edi
mov ecx, dword [esi + 4]
mov dword [ecx + 0x5f0], edi
lea ecx, [esp + 0x14]
mov dword [ebp + 0xb9e0], 1
call fcn.0044cea6
push str.model
lea ecx, [esp + 0x14]
mov byte [esp + 0xda8], 1
call fcn.0044d1d0
push 0x460f1c
lea ecx, [esp + 0x14]
call fcn.0044d1d0
lea eax, [ebp + 0x3ec]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator
push 0x460f1c
lea ecx, [esp + 0x14]
call fcn.0044d1d0
lea ecx, [esp + 0x328]
push ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push edi
push str.pim_Files__.pim___.pim__All_Files__.___._
push 0x80004
push 0x464f78
push edi
push edi
lea ecx, [esp + 0x144]
call sub.MFC42.DLL_CFileDialog::CFileDialog
lea ecx, [esp + 0x12c]
mov byte [esp + 0xda4], 2
call sub.MFC42.DLL_CFileDialog::DoModal
cmp eax, 1
je 0x4359f9
mov byte [esp + 0xda4], 3
jmp 0x435c9d
lea eax, [esp + 0x18]
lea ecx, [esp + 0x12c]
push eax
call sub.MFC42.DLL_CFileDialog::GetFileName
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xda8], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0xda4], 2
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
push 0x469398
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
lea ecx, [esp + 0x1c]
mov ebx, eax
push edi
push edi
call fcn.004015c3
push ebp
lea ecx, [esp + 0x20]
mov byte [esp + 0xda8], 5
call fcn.004010e1
push 5
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CWnd::ShowWindow
lea edx, [esp + 0x80]
push 0x802
mov ecx, ebp
mov dword [ebp + 0x3c8], edx
call fcn.00402185
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov ecx, ebp
mov dword [eax + 0x120], edi
call fcn.004014a1
test eax, eax
jne 0x435ae2
lea ecx, [esp + 0xec]
mov byte [esp + 0xda4], 7
call sub.MFC42.DLL_CAnimateCtrl::CAnimateCtrl
lea ecx, [esp + 0x80]
mov byte [esp + 0xda4], 6
call fcn.004018d4
lea ecx, [esp + 0x1c]
mov byte [esp + 0xda4], 2
call fcn.0044cf84
mov byte [esp + 0xda4], 8
jmp 0x435c9d
xor eax, eax
mov dword [0x46d584], eax
jmp 0x435aed
xor edi, edi
mov ecx, dword [esi]
mov word [esp + 0x38d], ax
add ecx, 0x107c
lea eax, [esp + 0x38c]
mov dword [esi + 0x10], ecx
push esi
mov ecx, ebp
mov byte [esp + 0x390], 0x11
mov byte [esp + 0x393], 4
mov dword [esi + 0x14], 4
mov dword [esi + 0xc], eax
mov dword [esi + 0x18], 0x7d0
call fcn.0040202c
cmp eax, 0x17
je 0x435c33
mov ecx, ebp
call fcn.00401370
mov edi, dword [esi]
xor edx, edx
add edi, 0x107c
push ebx
mov dl, byte [edi + 3]
lea eax, [edi + 4]
push edx
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
mov eax, dword [0x46d584]
xor ecx, ecx
mov cl, byte [edi + 3]
add esp, 0x10
add eax, ecx
cmp eax, 0x2000
mov dword [0x46d584], eax
jb 0x435aeb
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CWnd::DestroyWindow
lea ecx, [esp + 0xec]
mov byte [esp + 0xda4], 0xd
call sub.MFC42.DLL_CAnimateCtrl::CAnimateCtrl
lea ecx, [esp + 0x80]
mov byte [esp + 0xda4], 0xc
call fcn.004018d4
lea ecx, [esp + 0x1c]
mov byte [esp + 0xda4], 2
call fcn.0044cf84
lea ecx, [esp + 0x1dc]
mov byte [esp + 0xda4], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x12c]
mov byte [esp + 0xda4], 1
call fcn.0044cf84
lea ecx, [esp + 0x10]
mov byte [esp + 0xda4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0xda4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0xd9c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xd98
ret 4
push edi
push edi
push str.EEPRom_Read_Fail_
call sub.MFC42.DLL_AfxMessageBox
push edi
push 0x17
mov ecx, ebp
call fcn.0040168b
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CWnd::DestroyWindow
lea ecx, [esp + 0xec]
mov byte [esp + 0xda4], 0xa
call sub.MFC42.DLL_CAnimateCtrl::CAnimateCtrl
lea ecx, [esp + 0x80]
mov byte [esp + 0xda4], 9
call fcn.004018d4
lea ecx, [esp + 0x1c]
mov byte [esp + 0xda4], 2
call fcn.0044cf84
mov byte [esp + 0xda4], 0xb
lea ecx, [esp + 0x1dc]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x12c]
mov byte [esp + 0xda4], 1
call fcn.0044cf84
lea ecx, [esp + 0x10]
mov byte [esp + 0xda4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0xda4], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x435c18