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

Disassembly:
push 0xffffffffffffffff
push 0x408d28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x338
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x8ec]
push edi
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x90]
push eax
call fcn.004045a0
mov dword [esp + 0x10], eax
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov dword [esp + 0x28], eax
lea eax, [ebx + 0x78]
push 0x20
mov dword [esp + 0x20], 0x7559
mov ecx, dword [eax]
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 4
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x34], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x38], eax
call sub.MFC42.DLL_operatornew
mov ebp, eax
mov ecx, 8
xor eax, eax
mov edi, ebp
mov edx, dword [esp + 0x14]
lea esi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov ecx, 7
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
add esp, 4
lea ecx, [ebp + 0x1c]
mov dword [ecx], edx
push 0x20
push ebp
mov ecx, ebx
call fcn.00404030
test eax, eax
push ebp
jge 0x40422b
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, ebx
call fcn.00404110
jmp 0x40451f
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, ebx
call fcn.00403920
test eax, eax
mov ecx, ebx
jne 0x404254
call fcn.00403770
mov eax, dword [ebx + 0x30]
push 0
push 0
push 0x12
push eax
jmp 0x404519
call fcn.00404c40
mov eax, dword [ebx + 0xa0]
mov ebp, dword [ebx + 0x8dc]
mov dword [ebx + 0x9c], 0
mov esi, dword [ebx + 0x8d4]
test eax, eax
mov dword [esp + 0x10], ebp
je 0x4044f3
jmp 0x404287
mov esi, dword [esp + 0x38]
test ebp, ebp
jle 0x4044f3
cmp dword [ebx + 0x9c], ebp
jge 0x4044f3
mov ecx, ebx
call fcn.004055e0
test eax, eax
jne 0x4044f3
mov ecx, dword [ebx + 0x9c]
push ebp
push ecx
mov ecx, dword [esp + 0x20]
call fcn.00402120
test esi, esi
je 0x4044d4
mov edx, dword [esi]
mov eax, esi
mov dword [esp + 0x38], edx
lea edx, [ebx + 0xac]
mov esi, dword [eax + 8]
mov ecx, 0x208
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0xa0]
mov ecx, 0x208
mov edi, edx
rep movsd dword es:[edi], dword [esi]
xor esi, esi
cmp eax, esi
je 0x4044b7
cmp dword [ebx + 0x6c], esi
jne 0x40432f
push 0x10
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x3c], eax
cmp eax, esi
mov dword [esp + 0x350], esi
je 0x40431f
mov ecx, eax
call sub.MFC42.DLL_CFile::CFile
jmp 0x404321
xor eax, eax
mov dword [esp + 0x350], 0xffffffff
mov dword [ebx + 0x6c], eax
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x1c]
mov ebp, 1
rep stosd dword es:[edi], eax
mov ecx, 0xc2
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
lea eax, [ebx + 0x78]
mov dword [esp + 0x1c], 0xbbc
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], 0x308
mov ecx, dword [eax]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ecx
lea ecx, [ebx + 0x4b0]
mov edx, dword [eax + 4]
push ecx
mov dword [esp + 0x34], edx
lea edx, [ebx + 0x3b0]
mov eax, dword [eax + 8]
push edx
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x50]
push str._s__s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
mov ecx, ebx
call fcn.00404740
push ecx
lea esi, [ebx + 0x8cc]
mov ecx, esp
mov dword [esp + 0x40], esp
push esi
call sub.MFC42.DLL_CString::CString_1
mov ecx, ebx
call fcn.00404600
fst qword [esp + 0x40]
fcomp qword [0x40ac08]
fnstsw ax
test ah, 0x41
jne 0x40443f
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esi]
lea edx, [esp + 0x14]
push ecx
push 0x40d10c
push edx
mov dword [esp + 0x35c], ebp
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add esp, 0xc
push 0x24
push 0x40d0ec
push eax
call sub.MFC42.DLL_CWnd::MessageBoxA
cmp eax, 7
jne 0x404421
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
push 0
jmp 0x404422
push ebp
mov ecx, ebx
call fcn.004046d0
lea ecx, [esp + 0x14]
mov dword [esp + 0x350], 0xffffffff
call fcn.00407dc0
jmp 0x404448
push 0
mov ecx, ebx
call fcn.004046d0
push 0x324
call sub.MFC42.DLL_operatornew
mov ebp, eax
mov ecx, 0xc9
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, 7
lea esi, [esp + 0x20]
mov edi, ebp
add esp, 4
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xc2
lea esi, [esp + 0x40]
lea edi, [ebp + 0x1c]
push 0x324
rep movsd dword es:[edi], dword [esi]
push ebp
mov ecx, ebx
call fcn.00404030
test eax, eax
push ebp
jle 0x4044e4
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, ebx
call fcn.00403920
mov ecx, dword [ebx + 0x6c]
test ecx, ecx
je 0x4044b3
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [ebx + 0x6c], 0
mov ebp, dword [esp + 0x10]
mov ecx, dword [ebx + 0x9c]
mov eax, dword [ebx + 0xa0]
inc ecx
test eax, eax
mov dword [ebx + 0x9c], ecx
jne 0x404283
jmp 0x4044f3
push 0
push 0
push str.List
call sub.MFC42.DLL_AfxMessageBox
jmp 0x40451f
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, ebx
call fcn.00404110
mov ecx, dword [ebx + 0x6c]
test ecx, ecx
je 0x404508
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [ebx + 0x6c], 0
mov ecx, ebx
call fcn.00403770
mov ecx, dword [ebx + 0x30]
push 0
push 0
push 0x12
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov ecx, dword [esp + 0x348]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x344
ret