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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e2090
push eax
mov eax, 0x2ac0
mov dword fs:[0], esp
call fcn.004cf470
push ebx
push esi
mov esi, ecx
push edi
push 0x52d140
lea ecx, [esp + 0x14]
call fcn.00402e60
mov eax, dword [0x526620]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x2ad4], ebx
jne 0x4941ad
cmp dword [0x52661c], ebx
jne 0x4941ad
push 0x24
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebx
mov byte [esp + 0x2ad4], 1
je 0x494180
push ebx
mov ecx, eax
call fcn.00403720
jmp 0x494182
xor eax, eax
mov dword [0x52661c], eax
mov eax, dword [0x5177d4]
push eax
push 0x4036f0
mov ecx, 0x52b648
mov byte [esp + 0x2adc], bl
call fcn.00402160
mov dword [0x526620], 1
mov ecx, dword [esp + 0x10]
mov edi, dword [0x52661c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x2ad4], 0xffffffff
mov edx, dword [ecx]
call dword [edx + 8]
cmp edi, ebx
mov dword [esp + 0x44], edi
je 0x4941d9
mov eax, dword [edi]
push edi
call dword [eax + 4]
cmp edi, ebx
mov dword [esp + 0x2ad4], 2
je 0x4944ff
mov dword [esp + 0x18], ebx
mov ecx, dword [edi]
lea edx, [esp + 0x18]
push edx
push edi
mov byte [esp + 0x2adc], 3
call dword [ecx + 0xd0]
test eax, eax
jl 0x4944f4
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
call fcn.004ceb88
mov ecx, dword [esp + 0x1c]
push ebx
push esi
push ecx
push 0x2000206
push ebx
push ebx
push 1
lea ecx, [esp + 0x94]
mov byte [esp + 0x2af0], 4
call fcn.0041f080
lea ecx, [esp + 0x78]
mov byte [esp + 0x2ad4], 5
call fcn.0041f200
cmp eax, 1
jne 0x4944d2
mov eax, dword [0x52acd8]
cmp eax, ebx
je 0x4944d2
mov edx, dword [eax]
push eax
call dword [edx + 0xcc]
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0xf4]
mov edx, dword [0x52d140]
mov ecx, 0x52d140
mov byte [esp + 0x2ad4], 6
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x24], 0x52d140
call dword [edx + 4]
mov eax, dword [0x526620]
mov byte [esp + 0x2ad4], 7
cmp eax, ebx
jne 0x494311
cmp dword [0x52661c], ebx
jne 0x494311
push 0x24
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x40], eax
cmp eax, ebx
mov byte [esp + 0x2ad4], 8
je 0x4942e3
push ebx
mov ecx, eax
call fcn.00403720
jmp 0x4942e5
xor eax, eax
mov dword [0x52661c], eax
mov eax, dword [0x5177d4]
push eax
push 0x4036f0
mov ecx, 0x52b648
mov byte [esp + 0x2adc], 7
call fcn.00402160
mov dword [0x526620], 1
mov edx, dword [0x52d140]
push ebp
mov ebp, dword [0x52661c]
mov ecx, 0x52d140
mov byte [esp + 0x2ad8], 6
call dword [edx + 8]
cmp ebp, ebx
mov dword [esp + 0x44], ebp
je 0x49433d
mov eax, dword [ebp]
push ebp
call dword [eax + 4]
cmp ebp, ebx
mov byte [esp + 0x2ad8], 9
je 0x494358
mov ecx, dword [ebp]
lea edx, [esp + 0x40]
push edx
push ebp
call dword [ecx + 0xd8]
cmp dword [esp + 0x18], ebx
je 0x4944ad
lea eax, [esp + 0x18]
lea ecx, [esp + 0x28]
push eax
push ecx
lea ecx, [esp + 0x84]
call sub.MFC42.DLL_CFileDialog::GetNextPathName
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2adc], 0xa
call fcn.004ceb40
lea ecx, [esp + 0x28]
mov byte [esp + 0x2ad8], 9
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
push ebx
cmp eax, ebx
jne 0x4943c3
mov edx, dword [esp + 0x14]
push ebx
push 0x5265c0
push edx
mov ecx, 0x52af58
call fcn.004ab6c0
mov dword [esp + 0x14], 1
jmp 0x4943d9
mov eax, dword [esp + 0x14]
push 1
push 0x5265c0
push eax
mov ecx, 0x52af58
call fcn.004ab6c0
cmp dword [esp + 0x40], ebx
je 0x4944a3
mov dword [esp + 0x2c], vtable.CArray_class_CString__class_CString__.0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2ad8], 0xb
call fcn.004ba9b0
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
push ecx
push edx
lea ecx, [esp + 0x54]
mov byte [esp + 0x2ae0], 0xc
call fcn.004bab10
mov edi, eax
xor esi, esi
cmp edi, ebx
jle 0x49444e
mov eax, dword [esp + 0x30]
push ebx
push 1
push 0x5265c0
mov eax, dword [eax + esi*4]
mov ecx, 0x52af58
push eax
call fcn.004ab6c0
inc esi
cmp esi, edi
jl 0x49442f
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2ad8], 0xb
call fcn.004baa60
mov dword [esp + 0x2c], vtable.CArray_class_CString__class_CString__.0
mov eax, dword [esp + 0x30]
mov byte [esp + 0x2ad8], 0xd
cmp eax, ebx
je 0x49448f
mov ecx, dword [esp + 0x34]
push ecx
push eax
call sub.MFC42.DLL_DestructElements
mov edx, dword [esp + 0x30]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov edi, dword [esp + 0x24]
mov byte [esp + 0x2ad8], 9
mov dword [esp + 0x2c], vtable.CObject.0
cmp dword [esp + 0x18], ebx
jne 0x494362
cmp ebp, ebx
mov byte [esp + 0x2ad8], 6
je 0x4944c0
mov eax, dword [ebp]
push ebp
call dword [eax + 8]
lea ecx, [esp + 0x10]
mov byte [esp + 0x2ad8], 5
call sub.MFC42.DLL_CString::CString
pop ebp
lea ecx, [esp + 0x78]
mov byte [esp + 0x2ad4], 4
call fcn.0041f170
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2ad4], 3
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp edi, ebx
mov dword [esp + 0x2ad4], 0xffffffff
je 0x494514
mov edx, dword [edi]
push edi
call dword [edx + 8]
mov ecx, dword [esp + 0x2acc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2acc
ret