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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42abe6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
push ebx
push ebp
push esi
mov ebx, ecx
push edi
push 0x44730c
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_1
push 0x412
mov ecx, ebx
mov dword [esp + 0xb4], 0
call sub.MFC42.DLL_CWnd::GetDlgItem
mov esi, eax
test esi, esi
je 0x4094c4
mov eax, dword [esi + 0x20]
push 0x105
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_RedrawWindow]
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x5c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x5c]
mov ecx, ebx
push eax
call sub.MFC42.DLL_CWnd::ScreenToClient
push 0xfffffffffffffffb
lea ecx, [esp + 0x60]
push 0xfffffffffffffffb
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x68]
sub eax, ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x60]
sub edx, eax
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x190]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x94], edx
mov ecx, dword [eax + 0xc8]
test ecx, ecx
je 0x4099b2
push 0x70
call sub.MFC42.DLL_operatornew
push 0x70
mov dword [esp + 0x18], eax
call sub.MFC42.DLL_operatornew
push 0xe8
mov ebp, eax
call sub.MFC42.DLL_operatornew
push 0x70
mov dword [esp + 0x5c], eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x20]
add esp, 0x10
mov dword [esp + 0x70], eax
xor esi, esi
sub ecx, ebp
sub eax, ebp
mov edi, ebp
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
mov ecx, dword [ebx + 0x190]
mov edx, dword [ecx + 0xe0]
mov eax, dword [edx + esi + 4]
push eax
mov ecx, dword [edx + esi]
push ecx
mov ecx, ebx
call fcn.004090d0
mov edx, dword [esp + 0x74]
add esi, 8
fstp qword [edx + edi]
mov eax, dword [ebx + 0x190]
mov edx, dword [esp + 0x78]
add edi, 8
cmp esi, 0x70
mov ecx, dword [eax + 0xe4]
fld qword [ecx + esi - 8]
fst qword [edi - 8]
fstp qword [edx + edi - 8]
jl 0x40955e
mov edi, dword [esp + 0x4c]
mov ecx, 0x42fe20
mov eax, edi
sub ecx, edi
mov edx, 0x1d
mov esi, dword [ecx + eax]
mov dword [eax], esi
mov esi, dword [ecx + eax + 4]
mov dword [eax + 4], esi
add eax, 8
dec edx
jne 0x4095b9
fld qword [edi + 0xe0]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
fild dword [esp + 0x6c]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
fxch st(1)
fsub qword [esp + 0x4c]
mov edx, dword [ebp + 0x68]
mov ecx, dword [ebp]
mov eax, dword [ebp + 0x6c]
mov dword [esp + 0x8c], edx
fdivp st(1)
mov edx, dword [ebp + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x90], eax
mov eax, ebp
mov ecx, 0xe
fild dword [esp + 0x94]
fld qword [esp + 0x14]
fsub qword [esp + 0x8c]
fdivr st(1)
fild dword [esp + 0x24]
fstp qword [esp + 0x14]
fild dword [esp + 0x20]
mov edx, dword [esp + 0x74]
add eax, 8
dec ecx
fld qword [eax + edx - 8]
fsub qword [esp + 0x4c]
fmul st(4)
fadd qword [esp + 0x14]
fstp qword [eax + edx - 8]
fld qword [eax - 8]
fsub qword [esp + 0x8c]
mov edx, dword [esp + 0x78]
fmul st(2)
fsubr st(3)
fadd st(1)
fst qword [eax - 8]
fstp qword [eax + edx - 8]
jne 0x409633
fstp st(0)
fstp st(0)
fstp st(0)
mov eax, edi
mov ecx, 0x1d
fld qword [eax]
fsub qword [esp + 0x4c]
add eax, 8
dec ecx
fmul st(1)
fadd qword [esp + 0x14]
fstp qword [eax - 8]
jne 0x409677
push ebx
lea ecx, [esp + 0x2c]
fstp st(0)
call sub.MFC42.DLL_CClientDC::CClientDC
xor ebx, ebx
mov eax, 0x431d00
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], 0x431cec
mov esi, dword [sym.imp.GDI32.dll_CreatePen]
push 0x3aea00
push 1
push ebx
mov byte [esp + 0xbc], 4
call esi
push eax
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_CGdiObject::Attach
push 0x828282
push 1
push ebx
call esi
push eax
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CGdiObject::Attach
push ebx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CGdiObject::Attach
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x28]
push eax
call sub.MFC42.DLL_CDC::SelectObject_1
mov esi, dword [esp + 0x70]
mov dword [esp + 0x24], eax
mov ebx, 0xe
fld qword [esi]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x5c]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CDC::MoveTo
fld qword [esi]
call sub.MSVCRT.dll__ftol
push eax
mov eax, dword [esp + 0x68]
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CDC::LineTo
add esi, 8
dec ebx
jne 0x40971d
mov esi, edi
mov ebx, 0x1d
mov ecx, dword [esp + 0x60]
fld qword [esi]
push ecx
call sub.MSVCRT.dll__ftol
lea edx, [esp + 0x18]
push eax
push edx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [esp + 0x68]
fld qword [esi]
push eax
call sub.MSVCRT.dll__ftol
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CDC::LineTo
add esi, 8
dec ebx
jne 0x40975b
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CDC::SelectObject_1
fld qword [ebp]
call sub.MSVCRT.dll__ftol
mov ebx, dword [esp + 0x10]
push eax
fld qword [ebx]
call sub.MSVCRT.dll__ftol
lea edx, [esp + 0x18]
push eax
push edx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CDC::MoveTo
mov eax, ebp
lea esi, [ebx + 8]
sub eax, ebx
mov dword [esp + 0x10], 0xd
mov dword [esp + 0x20], eax
jmp 0x4097dc
mov eax, dword [esp + 0x20]
fld qword [eax + esi]
call sub.MSVCRT.dll__ftol
fld qword [esi]
push eax
call sub.MSVCRT.dll__ftol
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x10]
add esi, 8
dec eax
mov dword [esp + 0x10], eax
jne 0x4097d8
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x14]
push 5
mov eax, ecx
push 5
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x74]
cdq
sub eax, edx
sar esi, 1
sar eax, 1
sub eax, esi
mov esi, dword [esp + 0x64]
add eax, esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0xa0], eax
mov dword [esp + 0x84], eax
lea edx, [ecx + eax]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0xa8], edx
add ecx, 0x19
mov dword [esp + 0x8c], edx
lea edx, [esp + 0x84]
add esi, ecx
push edx
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xb0], esi
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x94], esi
call dword [sym.imp.USER32.dll_InflateRect]
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x28]
push eax
call sub.MFC42.DLL_CDC::SelectObject_1
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CDC::SelectObject
mov edx, dword [esp + 0x88]
mov ecx, dword [esp + 0x80]
mov esi, eax
mov eax, dword [esp + 0x84]
push edx
mov edx, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_Rectangle]
push 1
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CDC::SetBkMode
push 0xffff
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CDC::SetTextColor
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x98]
push 0x28
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x38]
call dword [eax + 0x70]
push ebx
call sub.MFC42.DLL_operatordelete
push ebp
call sub.MFC42.DLL_operatordelete
push edi
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x7c]
push ecx
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x34]
add esp, 0x10
lea ecx, [esp + 0x28]
push edx
call sub.MFC42.DLL_CDC::SelectObject_1
push esi
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CDC::SelectObject
mov edi, 0x431cd8
mov dword [esp + 0x44], edi
lea ecx, [esp + 0x44]
mov byte [esp + 0xb0], 5
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov esi, 0x42e444
mov dword [esp + 0x3c], edi
mov dword [esp + 0x44], esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0xb0], 6
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x3c], esi
mov dword [esp + 0x54], edi
lea ecx, [esp + 0x54]
mov byte [esp + 0xb0], 7
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x28]
mov dword [esp + 0x54], esi
mov byte [esp + 0xb0], 0
call fcn.00429ee0
lea ecx, [esp + 0x1c]
mov dword [esp + 0xb0], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xa8]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret