Function at 0x40155f
Capabilities:
Enumerate pe sections
Get common file path
Set current directory
Write file on windows

Disassembly:
jmp 0x4353e0
push 0xffffffffffffffff
push 0x450f84
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x37c
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
lea eax, [edi + 0x520]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x398], 0
call fcn.0044cea6
push str.model
lea ecx, [esp + 0x14]
mov byte [esp + 0x398], 1
call fcn.0044d1d0
push 0x460f1c
lea ecx, [esp + 0x14]
call fcn.0044d1d0
lea ecx, [edi + 0x3ec]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
push 0x460f1c
lea ecx, [esp + 0x14]
call fcn.0044d1d0
lea edx, [esp + 0x12c]
push edx
push 0x64
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0
push str.PRList_Files__.prl___.prl__All_Files__.___._
push 0x80004
push str..prl
push 0
push 0
lea ecx, [esp + 0x1a8]
call sub.MFC42.DLL_CFileDialog::CFileDialog
lea ecx, [esp + 0x190]
mov byte [esp + 0x394], 2
call sub.MFC42.DLL_CFileDialog::DoModal
cmp eax, 1
je 0x435510
lea ecx, [esp + 0x240]
mov byte [esp + 0x394], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x190]
mov byte [esp + 0x394], 1
call fcn.0044cf84
lea ecx, [esp + 0x10]
mov byte [esp + 0x394], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x394], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x43570b
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x194]
call sub.MFC42.DLL_CFileDialog::GetFileName
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x398], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x394], 2
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x14]
push 0x469398
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
lea ecx, [esp + 0x1c]
mov ebp, eax
push 0
push 0
call fcn.004015c3
push edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x398], 5
call fcn.004010e1
push 5
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CWnd::ShowWindow
lea eax, [esp + 0x80]
push 0x11
mov ecx, edi
mov dword [edi + 0x3c8], eax
call fcn.00402185
mov esi, dword [esp + 0x39c]
mov byte [0x46d591], 0
mov byte [0x46d592], 0
mov byte [0x46d590], 0x4c
mov ecx, dword [esi]
push esi
add ecx, 0x107c
mov dword [esi + 0x14], 3
mov dword [esi + 0x10], ecx
mov ecx, edi
mov dword [esi + 0xc], 0x46d590
mov dword [esi + 0x18], 0x7d0
call fcn.0040202c
cmp eax, 0x17
je 0x435667
mov ebx, dword [sym.imp.MSVCRT.dll_fwrite]
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x5ac]
test eax, eax
je 0x435667
mov eax, dword [esi]
xor ecx, ecx
add eax, 0x107c
push ebp
mov dword [0x46d588], eax
mov cx, word [eax + 6]
add eax, 8
shr ecx, 3
push ecx
push 1
push eax
call ebx
mov dl, byte [0x46d591]
mov eax, dword [0x46d588]
add esp, 0x10
inc dl
mov byte [0x46d591], dl
mov cl, byte [eax + 5]
cmp cl, 1
jne 0x435726
mov ecx, dword [esi]
push esi
add ecx, 0x107c
mov dword [esi + 0x14], 3
mov dword [esi + 0x10], ecx
mov ecx, edi
mov dword [esi + 0xc], 0x46d590
mov dword [esi + 0x18], 0x7d0
call fcn.0040202c
cmp eax, 0x17
jne 0x4355ec
push 0
push 0
push str.PR_List_Read_Fail___
call sub.MFC42.DLL_AfxMessageBox
push 0
push 0x17
mov ecx, edi
call fcn.0040168b
lea ecx, [esp + 0xec]
mov byte [esp + 0x394], 7
call sub.MFC42.DLL_CAnimateCtrl::CAnimateCtrl
lea ecx, [esp + 0x80]
mov byte [esp + 0x394], 6
call fcn.004018d4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x394], 2
call fcn.0044cf84
lea ecx, [esp + 0x240]
mov byte [esp + 0x394], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x190]
mov byte [esp + 0x394], 1
call fcn.0044cf84
lea ecx, [esp + 0x10]
mov byte [esp + 0x394], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x394], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0x17
mov ecx, dword [esp + 0x38c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x388
ret 4
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CWnd::DestroyWindow
lea edx, [esp + 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0xec]
mov byte [esp + 0x394], 0xa
call sub.MFC42.DLL_CAnimateCtrl::CAnimateCtrl
lea ecx, [esp + 0x80]
mov byte [esp + 0x394], 9
call fcn.004018d4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x394], 2
call fcn.0044cf84
lea ecx, [esp + 0x240]
mov byte [esp + 0x394], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x190]
mov byte [esp + 0x394], 1
call fcn.0044cf84
lea ecx, [esp + 0x10]
mov byte [esp + 0x394], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x394], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x43570b