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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42c663
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
mov eax, dword [ecx + 0x11c]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov edx, dword [eax + 0x94]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0x90]
mov esi, dword [edi + 8]
mov dword [esp + 0x1c], ecx
test esi, esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], esi
je 0x41daeb
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx + 8]
test eax, eax
je 0x41daeb
cmp esi, eax
jne 0x41daeb
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x7c]
push eax
call sub.MFC42.DLL_CClientDC::CClientDC
xor ecx, ecx
mov eax, 0x431d00
mov dword [esp + 0x98], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], eax
push 0xff00
push 1
push ecx
mov byte [esp + 0xa4], 2
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CGdiObject::Attach
push 0x8080ff
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CGdiObject::Attach
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x80]
call sub.MFC42.DLL_CDC::SelectObject_1
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edx
mov dword [esp + 0x34], eax
call sub.MFC42.DLL_CWnd::GetDlgItem
test eax, eax
mov dword [esp + 0xc], eax
je 0x41d58d
mov eax, dword [eax + 0x20]
push 0x105
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_RedrawWindow]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x5c]
push ecx
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CWnd::ScreenToClient
push 0xffffffffffffffec
lea edx, [esp + 0x60]
push 0xfffffffffffffffb
push edx
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [ebp + 0x1c]
lea ecx, [esp + 0x54]
push eax
lea edx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push ebx
lea eax, [esp + 0x6c]
push edi
push eax
call fcn.0041dd50
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x41d622
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x41d5f6
fild dword [ebp + 0x20]
mov edx, dword [ebp + 8]
fmul qword [esp + 0x44]
fstp qword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
push eax
push ecx
push eax
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
push edx
jmp 0x41d619
fild dword [ebp + 0x24]
sub esp, 8
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
sub esp, 8
fmul qword [esp + 0x64]
fstp qword [esp + 8]
fild dword [ebp + 0x20]
fmul qword [esp + 0x54]
fstp qword [esp]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.0041db10
mov edx, dword [ebx + 4]
fld qword [edx]
call sub.MSVCRT.dll__ftol
push eax
mov eax, dword [edi + 4]
fld qword [eax]
call sub.MSVCRT.dll__ftol
lea ecx, [esp + 0x50]
push eax
push ecx
lea ecx, [esp + 0x88]
call sub.MFC42.DLL_CDC::MoveTo
cmp esi, 1
mov dword [esp + 0xc], 1
jle 0x41d69c
mov edx, dword [esp + 0xc]
lea esi, [edx*8]
mov edx, dword [ebx + 4]
mov eax, esi
add eax, edx
fld qword [eax]
call sub.MSVCRT.dll__ftol
push eax
mov eax, dword [edi + 4]
add esi, eax
fld qword [esi]
call sub.MSVCRT.dll__ftol
push eax
lea ecx, [esp + 0x84]
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x41d656
mov esi, ecx
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x80]
call sub.MFC42.DLL_CDC::SelectObject_1
mov edx, dword [ebx + 4]
fld qword [edx]
call sub.MSVCRT.dll__ftol
push eax
mov eax, dword [edi + 4]
fld qword [eax]
call sub.MSVCRT.dll__ftol
lea ecx, [esp + 0x50]
push eax
push ecx
lea ecx, [esp + 0x88]
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x1c]
mov eax, 1
cmp ecx, eax
mov dword [esp + 0xc], eax
jle 0x41d72d
mov edx, dword [esp + 0xc]
lea esi, [edx*8]
mov edx, dword [ebx + 4]
mov eax, esi
add eax, edx
fld qword [eax]
call sub.MSVCRT.dll__ftol
push eax
mov eax, dword [edi + 4]
add esi, eax
fld qword [esi]
call sub.MSVCRT.dll__ftol
push eax
lea ecx, [esp + 0x84]
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x41d6e5
mov esi, dword [esp + 0x18]
mov ecx, dword [ebx + 4]
fld qword [ecx + esi*8 - 8]
call sub.MSVCRT.dll__ftol
mov edx, dword [edi + 4]
push eax
fld qword [edx + esi*8 - 8]
call sub.MSVCRT.dll__ftol
push eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x88]
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esp + 0x28]
mov ecx, esi
sub ecx, edx
lea eax, [esi - 2]
dec ecx
mov dword [esp + 0xc], eax
cmp eax, ecx
mov dword [esp + 0x28], ecx
jle 0x41d7ba
jmp 0x41d776
mov eax, dword [esp + 0xc]
lea esi, [eax*8]
mov eax, dword [ebx + 4]
mov edx, esi
add edx, eax
fld qword [edx]
call sub.MSVCRT.dll__ftol
push eax
mov eax, dword [edi + 4]
add esi, eax
fld qword [esi]
call sub.MSVCRT.dll__ftol
push eax
lea ecx, [esp + 0x84]
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x28]
dec eax
cmp eax, ecx
mov dword [esp + 0xc], eax
jg 0x41d772
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov ecx, edi
call fcn.0041c890
mov eax, dword [edi + 0x11c]
mov ecx, dword [eax + 0xd8]
lea edx, [eax + 0x68]
dec ecx
add eax, 0x54
push ecx
push edx
push eax
mov ecx, edi
call fcn.0041d270
mov ecx, dword [edi + 0x11c]
mov eax, dword [ecx + 0x6c]
mov edx, dword [eax]
mov dword [esp + 0xc], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0x58]
fld qword [eax]
mov edx, dword [eax]
mov ebx, dword [eax + 4]
fld qword [eax + esi*8 - 8]
mov al, byte [edi + 0x118]
mov dword [esp + 0x1c], edx
fstp qword [esp + 0x4c]
test al, al
mov dword [esp + 0x20], ebx
je 0x41da88
cmp esi, 1
jle 0x41d859
mov eax, dword [ecx + 0x58]
mov ecx, dword [ecx + 0x6c]
sub ecx, eax
dec esi
lea edx, [eax + 8]
fld qword [esp + 0xc]
fcomp qword [ecx + edx]
fnstsw ax
test ah, 0x41
jne 0x41d846
fld qword [ecx + edx]
fstp qword [esp + 0xc]
fcom qword [edx]
fnstsw ax
test ah, 0x41
jne 0x41d853
fstp st(0)
fld qword [edx]
add edx, 8
dec esi
jne 0x41d831
mov eax, dword [esp + 0x68]
mov ebx, dword [esp + 0x60]
sub eax, ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], eax
push ecx
fild dword [esp + 0x2c]
fld qword [edi + 0x110]
fsub qword [esp + 0x10]
lea ecx, [esp + 0x80]
fmul qword [esp + 0x58]
fsubp st(1)
fiadd dword [esp + 0x64]
fstp qword [esp + 0x10]
fild dword [esp + 0x60]
fld qword [esp + 0x20]
fsub st(2)
fmul qword [esp + 0x48]
fadd st(1)
fstp qword [esp + 0x20]
fld qword [esp + 0x50]
fsub st(2)
fmul qword [esp + 0x48]
fadd st(1)
fstp qword [esp + 0x50]
fstp st(0)
fstp st(0)
call sub.MFC42.DLL_CDC::SelectObject_1
fld qword [esp + 0xc]
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x1c]
mov edi, eax
push edi
call sub.MSVCRT.dll__ftol
lea edx, [esp + 0x2c]
push eax
push edx
lea ecx, [esp + 0x88]
call sub.MFC42.DLL_CDC::MoveTo
fld qword [esp + 0x4c]
push edi
call sub.MSVCRT.dll__ftol
push eax
lea ecx, [esp + 0x84]
call sub.MFC42.DLL_CDC::LineTo
fld qword [esp + 0x4c]
fadd qword [esp + 0x1c]
push 0x20
fmul qword [0x436bf8]
fstp qword [esp + 0x50]
call sub.MFC42.DLL_operatornew
fld qword [esp + 0x50]
add esp, 4
mov esi, eax
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x4c]
fadd qword [0x42e328]
mov ebx, eax
lea eax, [esi + 8]
mov dword [esi], ebx
mov dword [esi + 4], edi
mov dword [esp + 0x1c], eax
call sub.MSVCRT.dll__ftol
fld qword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
fsub qword [0x436f00]
mov dword [ecx], eax
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x4c]
fsub qword [0x42e328]
mov dword [esp + 0x28], eax
mov dword [esi + 0xc], eax
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x28]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], edi
mov esi, edi
mov eax, ebx
push esi
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x88]
call sub.MFC42.DLL_CDC::MoveTo
mov esi, dword [esp + 0x1c]
mov ebx, 3
mov ecx, dword [esi + 4]
mov eax, dword [esi]
push ecx
push eax
lea ecx, [esp + 0x84]
call sub.MFC42.DLL_CDC::LineTo
add esi, 8
dec ebx
jne 0x41d999
lea ecx, [esp + 0x18]
call fcn.0042996a
mov eax, dword [esp + 0x14]
mov byte [esp + 0x98], 3
mov ecx, dword [eax + 0x114]
mov edx, dword [eax + 0x110]
push ecx
push edx
lea eax, [esp + 0x20]
push 0x44d1a0
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x28]
add esp, 0x10
lea edx, [esp + 0x28]
mov ecx, dword [eax - 8]
push edx
push ecx
push eax
mov eax, dword [esp + 0x90]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
push 0xf915f9
lea ecx, [esp + 0x80]
call sub.MFC42.DLL_CDC::SetTextColor
fld qword [esp + 0x4c]
fadd qword [0x4404e8]
call sub.MSVCRT.dll__ftol
fild dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x6c], eax
add ecx, eax
mov dword [esp + 0x78], edi
fsubr qword [esp + 0xc]
mov dword [esp + 0x74], ecx
call sub.MSVCRT.dll__ftol
push 1
lea ecx, [esp + 0x80]
mov dword [esp + 0x74], eax
call sub.MFC42.DLL_CDC::SetBkMode
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x6c]
push 0x28
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x8c]
lea ecx, [esp + 0x8c]
call dword [eax + 0x70]
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 2
call sub.MFC42.DLL_CString::CString
jmp 0x41da8a
fstp st(0)
mov ecx, dword [esp + 0x30]
push ecx
lea ecx, [esp + 0x80]
call sub.MFC42.DLL_CDC::SelectObject_1
mov edi, 0x431cd8
mov dword [esp + 0x34], edi
lea ecx, [esp + 0x34]
mov byte [esp + 0x98], 4
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov esi, 0x42e444
mov dword [esp + 0x3c], edi
mov dword [esp + 0x34], esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x98], 5
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x7c]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x98], 0xffffffff
call fcn.00429ee0
mov ecx, dword [esp + 0x90]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x20