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

Disassembly:
jmp 0x40e6f0
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5254cf
push eax
mov dword fs:[0], esp
sub esp, 0x43c
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x34]
cmp eax, 1
jne 0x40e766
mov edx, dword [ebx + 0x38]
mov eax, dword [esp + 0x450]
mov ecx, dword [esp + 0x454]
mov dword [ebx + 0x74], edx
mov edx, dword [ebx + 0x3c]
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x78], edx
mov edx, dword [ebx + 0x38]
mov dword [ebx + 0x7c], edx
mov edx, dword [ebx + 0x3c]
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x8c], eax
mov dword [ebx + 0x54], ecx
mov dword [ebx + 0x34], 2
mov dword [ebx + 0x80], edx
mov dword [ebx + 0x88], ecx
mov dword [ebx + 0x90], ecx
jmp 0x40e7c4
cmp eax, 2
jne 0x40e7a4
mov ecx, ebx
call fcn.00401753
mov ecx, dword [eax + 0x2c]
mov eax, dword [esp + 0x450]
cmp ecx, 1
mov ecx, dword [esp + 0x454]
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], ecx
jne 0x40e79f
mov dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x34]
add eax, 2
mov dword [ebx + 0x4c], ecx
mov dword [ebx + 0x34], eax
jmp 0x40e7c4
inc dword [ebx + 0x34]
jmp 0x40e7c4
cmp eax, 3
jne 0x40e7c4
mov edx, dword [esp + 0x450]
mov eax, dword [esp + 0x454]
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x4c], eax
mov dword [ebx + 0x34], 4
cmp dword [ebx + 0x34], 4
jne 0x40ec25
mov eax, dword [ebx + 0x58]
push ebp
push esi
push edi
mov edx, dword [eax + 4]
lea ecx, [ebx + 0x74]
push 4
push ecx
push edx
call dword [sym.imp.GDI32.dll_PolyBezier]
mov eax, dword [ebx + 0x3c]
mov ecx, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
call fcn.00401753
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x40]
mov edx, 3
mov ecx, dword [eax + 4]
mov ebp, dword [esp + 0x1c]
cmp ecx, ebp
jge 0x40e824
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 4]
mov ebp, dword [esp + 0x24]
cmp ecx, ebp
jle 0x40e833
mov dword [esp + 0x24], ecx
mov ecx, dword [eax]
cmp ecx, edi
jge 0x40e83f
mov edi, ecx
mov dword [esp + 0x18], edi
mov ecx, dword [eax]
cmp ecx, esi
jle 0x40e84b
mov esi, ecx
mov dword [esp + 0x20], esi
add eax, 8
dec edx
jne 0x40e815
mov ecx, ebx
call fcn.004030df
cmp eax, 0x28
je 0x40e898
mov eax, dword [ebx + 0x5c]
mov ecx, dword [ebx + 0x58]
push eax
call sub.MFC42.DLL_CDC::SelectObject_2
mov ecx, dword [ebx + 0x58]
push 0xd
call sub.MFC42.DLL_CDC::SetROP2
mov eax, dword [ebx + 0x58]
lea ecx, [ebx + 0x38]
push 4
push ecx
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.GDI32.dll_PolyBezier]
mov edx, dword [ebx + 0x58]
mov ecx, ebx
push edx
call fcn.00401712
mov ebp, eax
jmp 0x40eb4b
mov eax, dword [ebx + 0x58]
mov ecx, ebx
push eax
call fcn.00401cc6
push 0x10
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x34], eax
xor edi, edi
cmp eax, edi
mov dword [esp + 0x454], edi
je 0x40e8cd
mov ecx, eax
call fcn.004fe082
mov esi, eax
mov dword [esp + 0x30], esi
jmp 0x40e8d3
mov dword [esp + 0x30], edi
mov esi, edi
push edi
mov dword [esp + 0x458], 0xffffffff
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::Attach
push 0xd
mov ecx, esi
call sub.MFC42.DLL_CDC::SetROP2
mov ecx, dword [ebx + 0x5c]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject_2
mov ecx, ebx
mov dword [esp + 0x34], eax
call fcn.0040114f
mov ebp, eax
push 0x18
mov dword [esp + 0x3c], ebp
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, edi
mov dword [esp + 0x454], 1
je 0x40e973
mov ebp, dword [ebp + 4]
cmp ebp, edi
je 0x40e93e
xor ecx, ecx
mov cx, word [ebp + 0xe]
jmp 0x40e940
xor ecx, ecx
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x1c]
push edi
push edi
mov edx, dword [edx]
push edi
shl edx, 1
push ecx
mov ecx, edx
sub ecx, ebp
mov ebp, dword [esp + 0x34]
add ecx, ebp
mov ebp, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x2c]
sub edx, ecx
mov ecx, eax
add edx, ebp
push edx
call fcn.00492900
mov ebp, eax
jmp 0x40e975
xor ebp, ebp
push edi
mov ecx, ebp
mov dword [esp + 0x458], 0xffffffff
call fcn.00493450
cmp ebp, edi
mov dword [esp + 0x2c], eax
je 0x40e9a0
mov ecx, ebp
call fcn.00492f70
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
lea eax, [ebx + 0x38]
mov edi, 4
mov ebp, dword [edx]
mov edx, dword [esp + 0x18]
sub ecx, ebp
mov dword [esp + 0x14], ebp
sub edx, ebp
sub dword [eax], edx
sub dword [eax + 4], ecx
add eax, 8
dec edi
jne 0x40e9be
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40e9e2
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x28], eax
jmp 0x40e9ea
mov dword [esp + 0x28], 0
mov ecx, dword [esi + 4]
lea edi, [ebx + 0x38]
push 4
push edi
push ecx
call dword [sym.imp.GDI32.dll_PolyBezier]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
mov eax, dword [edx]
mov edx, dword [esp + 0x1c]
shl eax, 1
mov ecx, eax
sub ecx, edx
add ecx, esi
mov esi, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x1c]
sub eax, ecx
mov ecx, ebx
add eax, esi
push eax
call fcn.00401168
mov edx, dword [ebx + 0x60]
mov esi, eax
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject_2
mov eax, dword [esi + 4]
push 4
push edi
push eax
call dword [sym.imp.GDI32.dll_PolyBezier]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
sub edi, ebp
mov ebp, dword [esp + 0x18]
push esi
mov ecx, ebx
sub ebp, edx
call fcn.00401d7a
push 0x18
mov esi, eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x454], 2
je 0x40ea88
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, eax
call fcn.00492b60
mov dword [esp + 0x14], eax
jmp 0x40ea90
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x40]
push 0
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 4]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x1c]
push ecx
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x44]
push esi
push edx
push 0
push edi
mov dword [esp + 0x470], 0xffffffff
mov dword [esp + 0x58], ebp
mov dword [esp + 0x60], eax
call fcn.004968f0
add esp, 0x1c
mov ebp, eax
test esi, esi
je 0x40eae9
mov ecx, esi
call fcn.00492f70
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov esi, dword [esp + 0x14]
test esi, esi
je 0x40eb01
mov ecx, esi
call fcn.00492f70
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject_2
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40eb24
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, esi
call sub.MFC42.DLL_CDC::DeleteDC
test esi, esi
je 0x40eb38
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
mov ecx, ebx
call fcn.00402b17
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
mov eax, dword [ecx]
push eax
push eax
push edx
call dword [sym.imp.USER32.dll_InflateRect]
lea ecx, [esp + 0x10]
call fcn.004fdecc
mov dword [esp + 0x454], 3
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
lea ecx, [esp + 0x4c]
push 0x400
push ecx
push 0x4e9c
push eax
call fcn.0040182a
add esp, 0x10
lea ecx, [esp + 0x10]
push 0x400
call sub.MFC42.DLL_CString::GetBuffer
mov edx, eax
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xffffffffffffffff
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
push ebp
mov ecx, ebx
mov dword [esp + 0x460], 4
call fcn.00402504
lea ecx, [esp + 0x10]
mov dword [esp + 0x454], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebx + 0x5c]
pop edi
pop esi
pop ebp
test ecx, ecx
je 0x40ec10
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, dword [ebx + 0x60]
test ecx, ecx
je 0x40ec1e
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [ebx + 0x34], 0
mov ecx, dword [esp + 0x440]
pop ebx
mov dword fs:[0], ecx
add esp, 0x448
ret 0xc