Function at 0x40f9fc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4d0859
mov eax, dword fs:[0]
push eax
mov edx, ebx
add byte [eax], al
add byte [eax], al
sub esp, 0x380
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0x20]
mov dword [esp - 0x25], esi
call sub.MFC42.DLL_CString::CString
xor ebx, ebx
lea ecx, [esp + 0x40]
mov dword [esp + 0x390], ebx
call 0x135e054
lea ecx, [esp + 0x3c]
mov byte [esp + 0x390], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp - 0x4d]
mov byte [esp + 0x390], 2
call sub.MFC42.DLL_CString::CString
push 0x4fd450
lea ecx, [esp - 0x31]
mov byte [esp + 0x394], 3
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x2c]
push ebx
push eax
push 0x8fd06
push ebx
push str..dtm
push 1
lea ecx, [esp + 0x1a4]
mov byte [esp + 0xfca8], 4
call fcn.004ce0c6
lea ecx, [esp + 0x18c]
mov byte [esp - 0xfffc70], 5
call sub.MFC42.DLL_CFileDialog::DoModal
cmp eax, 2
jne 0x40fb32
lea ecx, [esp - 0xfffdc4]
mov byte [esp + 0x390], 6
call fcn.004ce042
lea ecx, [esp + 0x18c]
invalid
push edi
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax - 5]
call sub.MFC42.DLL_CCmdTarget::BeginWaitCursor
push 0x4ffb68
lea ecx, [esp + 0x78]
mov dword [esp + 0x3c], ebx
call 0x135e0cc
mov al, 0xff
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x78], al
mov byte [esp + 0x79], al
mov byte [esp + 0x7a], al
mov dword [ebx + ebx*8 + 0x80], ebx
mov byte [esp + 0x84], 1
mov dword [esp + 0x8c], 0xff0000
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0x3f7f0000
mov dword [esp + 0x6c], 0x4dffc8
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 0
cmp byte [esp + 0x18], al
add byte [eax], al
add byte [eax], al
mov dword [esp + 0x1c], 0
mov ecx, dword [esi + 0x14]
mov byte [esp + 0x36b], 8
mov dword [esp + 0x4c], 0
call fcn.00493ba0
fstp dword [esp + 0x3c]
je 0x40fc24
adc al, 0xe8
aam 0x3f
or byte [eax], al
fstp dword [esp + 0xb8]
xor eax, eax
lea ecx, [esp + 0x20]
mov dword [ebx + 0x44895c24], esp
and al, 0x64
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], ebx
call sub.MFC42.DLL_CString::CString
lea ecx, [ebx + ebx*8 + 0x2c]
mov byte [esp + 0x394], 9
call sub.MFC42.DLL_CString::CString
mov cl, byte [0x4ffb68]
mov ebp, dword [ebx + 0x24]
or al, 2
add byte [eax], al
mov byte [esp + 0x13c], cl
mov ecx, 0x14
adc al, 0
add byte [eax], al
xor eax, eax
lea edi, [ebx + ebx*8 + 0x13d]
rep stosd dword es:[edi], eax
mov eax, dword [esi]
mov byte [esp + 0x394], 0xa
cmp eax, ebx
mov dword [esp - 0x35], edx
je 0x40fc60
mov ecx, dword [esi + 4]
sub ecx, eax
sar ecx, 2
je 0x40fc60
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
jbe 0x40fc78
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
cmp dword [esp + 0x34], ebx
je 0x410280
mov ebx, dword [0xb2f6ec]
push ebp
lea edx, [esp + 0x38]
lea eax, [esp + 0xcc]
push edx
push eax
lea ecx, [esp - 0xfffe64]
call sub.MFC42.DLL_CFileDialog::GetNextPathName
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x39c], 0xb
call 0x135e0b4
lea ecx, [esp + 0xcc]
mov byte [esp + 0x398], 0xa
call fcn.004ce042
je 0x40fcfe
int3
and al, 0x28
push 0x4fd484
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test dword [edx], edx
je 0x410273
lea edx, [esp + 0x3c]
push edx
push 0x4fd440
push ebp
call ebx
mov eax, dword [ebx + ebx*8 + 0x48]
add esp, 0xc
test eax, eax
mov dword [esp + 0x5c], 0
jle 0x410269
mov ecx, 0xeb
xor eax, eax
lea edi, [esp + 0x140]
push ebp
rep stosd dword es:[edi], eax
add byte [ebp - 0xd], dl
stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0xff0144]
push 0x50
push eax
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
lea ecx, [esp + 0x140]
invalid
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0xfffffffb
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x40fc71
pop ebp
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
pop ss
lodsd eax, dword [esi]
fisttp word [ebx]
add byte [ebp - 0x39d3dbb4], cl
test byte [esp + edx*4], ah
add eax, dword [eax]
add byte [ecx], cl
call fcn.004ce042
jb 0x4102ec
and al, 0x20
mov byte [esp + 0x394], 8
call fcn.004ce042
lea ecx, [esp + 0x74]
invalid
lodsb al, byte [esi]
fisttp qword [ebx]
add byte [ebp - 0x39cfdbb4], cl
test bl, bl
xchg esp, eax
add eax, dword [eax]
add byte [ebx], al
call fcn.004ce042
lea ecx, [esp + 0x50]
mov byte [esp + 0x394], 0xfd
call fcn.004ce042
lea ecx, [esp + 0x40]
mov byte [esp + 0x394], 1
call 0xff4ce042
lea ecx, [esp + 0x44]
mov byte [esp + 0x394], 0
call fcn.004ce042
lea ecx, [esp + 0x24]
cmp byte [esp + 0x394], al