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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40de80
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 0x300], ebx
jne 0x40a31a
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov dword [esp + 0x74], ebx
call sub.MFC42.DLL_CString::CString_2
push 0x32
lea ecx, [esp + 0x1c]
mov byte [esp + 0x78], 1
call sub.MFC42.DLL_CString::LoadStringA
push 0x1d
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push 0x10
push eax
push ecx
mov ecx, ebp
call sub.MFC42.DLL_CWnd::MessageBoxA
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], bl
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x74], 0xffffffff
lea ecx, [esp + 0x18]
jmp 0x40a5ed
cmp dword [0x412464], ebx
je 0x40a389
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
mov dword [esp + 0x74], 2
call sub.MFC42.DLL_CString::CString_2
push 0x33
lea ecx, [esp + 0x18]
mov byte [esp + 0x78], 3
call sub.MFC42.DLL_CString::LoadStringA
push 0x31
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::LoadStringA
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push 0x40
push edx
push eax
mov ecx, ebp
call sub.MFC42.DLL_CWnd::MessageBoxA
lea ecx, [esp + 0x18]
mov byte [esp + 0x74], 2
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x74], 0xffffffff
lea ecx, [esp + 0x14]
jmp 0x40a5ed
push 0x104
call sub.MFC42.DLL_operatornew
push 0x104
mov dword [0x412464], eax
call sub.MFC42.DLL_operatornew
mov dword [0x412468], eax
mov eax, dword [ebp + 0x304]
add esp, 8
lea ecx, [eax + eax*2]
lea edx, [eax + ecx*4]
or ecx, 0xffffffff
xor eax, eax
mov edi, dword [ebp + edx*8 + 0x564]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [0x412464]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x412464]
cmp byte [ecx], bl
jne 0x40a47a
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
mov dword [esp + 0x74], 4
call sub.MFC42.DLL_CString::CString_2
push 0x34
lea ecx, [esp + 0x18]
mov byte [esp + 0x78], 5
call sub.MFC42.DLL_CString::LoadStringA
push 0x35
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::LoadStringA
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push 0x20
push edx
push eax
mov ecx, ebp
call sub.MFC42.DLL_CWnd::MessageBoxA
mov ecx, dword [0x412464]
push ecx
call sub.MFC42.DLL_operatordelete
mov edx, dword [0x412468]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 8
lea ecx, [esp + 0x18]
mov dword [0x412464], ebx
mov dword [0x412468], ebx
mov byte [esp + 0x74], 4
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x74], 0xffffffff
lea ecx, [esp + 0x14]
jmp 0x40a5ed
mov ecx, 0x12
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], ebx
rep stosd dword es:[edi], eax
mov eax, dword [0x412468]
lea ecx, [esp + 0x10]
mov byte [eax], bl
call sub.MFC42.DLL_CString::CString_2
push 0x36
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], 6
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [ebp + 0x20]
mov edx, dword [0x412468]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0x4c
push ecx
mov dword [esp + 0x30], 0x41204c
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], 0x104
mov dword [esp + 0x54], eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x60], 0x412048
mov dword [esp + 0x58], 0x1801
mov dword [esp + 0x50], ebx
call sub.comdlg32.dll_GetSaveFileNameA
test eax, eax
jne 0x40a53c
mov edx, dword [0x412464]
push edx
call sub.MFC42.DLL_operatordelete
mov eax, dword [0x412468]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 8
mov dword [0x412464], ebx
mov dword [0x412468], ebx
jmp 0x40a5e1
mov esi, dword [0x412468]
mov eax, dword [0x412464]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40a56b
cmp cl, bl
je 0x40a567
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40a56b
add eax, 2
add esi, 2
cmp cl, bl
jne 0x40a547
xor eax, eax
jmp 0x40a570
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40a5d2
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_2
push 0x37
lea ecx, [esp + 0x20]
mov byte [esp + 0x78], 7
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esp + 0x1c]
push ebx
push ebx
push eax
mov ecx, ebp
call sub.MFC42.DLL_CWnd::MessageBoxA
mov ecx, dword [0x412464]
push ecx
call sub.MFC42.DLL_operatordelete
mov edx, dword [0x412468]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 8
lea ecx, [esp + 0x1c]
mov dword [0x412464], ebx
mov dword [0x412468], ebx
mov byte [esp + 0x74], 6
call sub.MFC42.DLL_CString::CString
jmp 0x40a5e1
push ebx
push ebx
push ebx
push ebx
push ebp
push 0x40a660
call sub.MFC42.DLL_AfxBeginThread
mov dword [esp + 0x74], 0xffffffff
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x68
ret