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

Disassembly:
push 0xffffffffffffffff
push 0x4a16a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
mov dword [esp + 0xc], ecx
push esi
push edi
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString_4
xor ebx, ebx
lea ecx, [esp + 0x38]
mov dword [esp + 0x70], ebx
call sub.MFC42.DLL_CString::CString_4
mov byte [esp + 0x70], 1
call fcn.00441900
add eax, 0x1464
mov ecx, eax
call fcn.00480360
xor ebp, ebp
xor edi, edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], ebx
call sub.MFC42.DLL_AfxGetThread
cmp eax, ebx
je 0x40e580
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x40e582
xor eax, eax
mov eax, dword [eax + 0x6ec]
mov esi, dword [eax]
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x40e59c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x40e59e
xor eax, eax
cmp esi, dword [eax + 0x6ec]
je 0x40e5d5
mov eax, dword [esi + 8]
mov edx, 1
mov ecx, dword [eax + 4]
cmp ecx, edx
jne 0x40e5c6
cmp dword [eax + 8], edx
jne 0x40e5bb
inc ebp
cmp ecx, edx
jne 0x40e5c6
cmp dword [eax + 8], 2
jne 0x40e5c6
inc ebx
cmp ecx, 2
jne 0x40e5d1
cmp dword [eax + 8], edx
jne 0x40e5d1
inc edi
mov esi, dword [esi]
jmp 0x40e58a
push 0x2800
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], ebp
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
mov dword [esp + 0x18], ebx
call fcn.00441900
mov ecx, eax
add ecx, 0x1464
call fcn.00480360
mov esi, eax
mov edi, ebx
mov ecx, 0xa00
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_4
mov byte [esp + 0x70], 2
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x40e631
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x40e633
xor eax, eax
mov eax, dword [eax + 0x6ec]
xor esi, esi
mov ebp, dword [eax]
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x40e820
mov edi, ebx
mov bl, 3
push 0x10
push edi
call fcn.00441900
mov ecx, eax
add ecx, 0x161c
call fcn.004332c0
test eax, eax
je 0x40e809
mov ecx, dword [esp + 0x14]
push 1
call fcn.0040d5b0
lea ecx, [esp + 0x50]
call fcn.0040c820
mov byte [esp + 0x70], bl
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x40e694
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x40e696
xor eax, eax
cmp ebp, dword [eax + 0x6ec]
je 0x40e7a3
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x50]
add eax, 0x14
push eax
call sub.MFC42.DLL_CString::operator
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x40e6c4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x40e6c6
xor eax, eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x1c]
lea eax, [eax + edx*4 + 0x6b8]
push eax
call sub.MFC42.DLL_CString::operator
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
cmp eax, 1
jne 0x40e75b
lea edx, [esp + 0x30]
push 0x8099
push edx
mov ecx, 0x4dc390
call fcn.004984a0
push 0x4d51bc
push eax
lea eax, [esp + 0x34]
mov byte [esp + 0x78], 4
push eax
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x28]
push ecx
push eax
push edx
mov byte [esp + 0x7c], 5
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x74], 6
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x28]
mov byte [esp + 0x70], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], 4
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x70], bl
lea ecx, [esp + 0x30]
jmp 0x40e78b
cmp eax, 2
jne 0x40e790
lea eax, [esp + 0x34]
push 0x809a
push eax
mov ecx, 0x4dc390
call fcn.004984a0
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x74], 7
call sub.MFC42.DLL_CString::operator
mov byte [esp + 0x70], bl
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString
lea eax, [esi + 0x1a32]
mov dword [esp + 0x48], eax
add eax, 0xffff
mov dword [esp + 0x64], eax
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x40e7b5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x40e7b7
xor eax, eax
lea ecx, [esp + 0x44]
push 0
push ecx
lea ecx, [eax + 0x568]
call fcn.00432e90
lea edx, [esp + 0x50]
mov dword [esp + 0x40], edx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x70], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x58]
mov byte [esp + 0x70], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x54]
mov byte [esp + 0x70], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0x70], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
mov ebp, dword [ebp]
inc esi
add edi, 0x10
cmp esi, eax
jl 0x40e64d
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x78]
mov ecx, 0x500
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x20]
test edi, edi
jle 0x40e909
lea esi, [ebx + 0x1500]
mov bl, 0xf
push 0x10
push esi
call fcn.00441900
mov ecx, eax
add ecx, 0x161c
call fcn.004332c0
test eax, eax
je 0x40e8f8
mov ecx, dword [esp + 0x14]
push 1
call fcn.0040d5b0
lea eax, [esp + 0x50]
lea ecx, [esp + 0x50]
mov dword [esp + 0x40], eax
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x54]
mov byte [esp + 0x70], 0xb
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x58]
mov byte [esp + 0x70], 0xc
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x5c]
mov byte [esp + 0x70], 0xd
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [ebp + 8]
mov byte [esp + 0x70], 0xe
add ecx, 0x14
push ecx
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x50]
mov dword [esp + 0x40], edx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x70], 0x11
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x58]
mov byte [esp + 0x70], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x54]
mov byte [esp + 0x70], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0x70], 2
call sub.MFC42.DLL_CString::CString
mov ebp, dword [ebp]
add esi, 0x10
dec edi
jne 0x40e841
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x78]
mov ecx, 0x4c0
lea esi, [ebx + 0x1500]
lea edi, [eax + 0x1500]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x24]
test edi, edi
jle 0x40e9fc
lea esi, [ebx + 0x1400]
mov bl, 0x16
push 0x10
push esi
call fcn.00441900
mov ecx, eax
add ecx, 0x161c
call fcn.004332c0
test eax, eax
je 0x40e9eb
mov ecx, dword [esp + 0x14]
push 1
call fcn.0040d5b0
lea ecx, [esp + 0x50]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x54]
mov byte [esp + 0x70], 0x12
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x58]
mov byte [esp + 0x70], 0x13
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x5c]
mov byte [esp + 0x70], 0x14
call sub.MFC42.DLL_CString::CString_4
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x50]
add edx, 0x14
mov byte [esp + 0x70], 0x15
push edx
call sub.MFC42.DLL_CString::operator
lea eax, [esp + 0x50]
mov dword [esp + 0x40], eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x70], 0x18
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x58]
mov byte [esp + 0x70], 0x17
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x54]
mov byte [esp + 0x70], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0x70], 2
call sub.MFC42.DLL_CString::CString
mov ebp, dword [ebp]
add esi, 0x10
dec edi
jne 0x40e934
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x78]
lea esi, [ebx + 0x1400]
push ebx
lea edi, [ecx + 0x1400]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x70], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov dword [esp + 0x70], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 4