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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
push ebx
push esi
push edi
mov esi, ecx
push 8
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
xor edi, edi
push 1
push edi
lea ecx, [esp + 0x8c]
call sub.MFC42.DLL_CPen::CPen
push 0xcccccc
push 1
push 2
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CPen::CPen
push 0xb00000
push 2
push edi
lea ecx, [esp + 0x64]
call sub.MFC42.DLL_CPen::CPen
push 0xb000
push 2
push edi
lea ecx, [esp + 0x6c]
call sub.MFC42.DLL_CPen::CPen
push 0xb0
push 2
push edi
lea ecx, [esp + 0x74]
call sub.MFC42.DLL_CPen::CPen
push 0xb000
push 1
push 2
lea ecx, [esp + 0x7c]
call sub.MFC42.DLL_CPen::CPen
push edi
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CBrush::CBrush
lea ecx, [esp + 0x4c]
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], 0x565230
call sub.MFC42.DLL_CString::CString_2
mov ebx, dword [ebp + 8]
cmp ebx, edi
je 0x504797
mov ecx, dword [esi + 0x254]
cmp ecx, edi
je 0x504797
fld qword [esi + 0x260]
mov eax, dword [esi + 0x258]
fst qword [esp + 0x78]
fstp qword [esp + 0x20]
cmp eax, edi
jle 0x50402d
push 1
push 8
push eax
push ecx
call fcn.00407580
mov eax, dword [esi + 0x258]
mov edx, dword [esi + 0x254]
fld qword [esi + 0x260]
add esp, 0x10
mov dword [esp + 0x14], edi
test eax, eax
mov ecx, edx
jle 0x504033
fld qword [esp + 0x78]
mov dword [esp + 0x2c], eax
cmp ecx, edx
jne 0x503fa6
cmp dword [ecx + 0x18], 6
je 0x50400b
mov eax, dword [ecx + 0x18]
cmp eax, 2
jl 0x503fb3
cmp eax, 5
jle 0x50400b
fld qword [0x565ac0]
test eax, eax
je 0x503fc2
cmp eax, 1
jne 0x503fd6
fstp st(0)
fld qword [ecx + 0x88]
fadd qword [ecx + 0x60]
fadd qword [ecx + 0x80]
fadd qword [ecx + 0x70]
cmp eax, 6
je 0x503fe0
cmp eax, 7
jne 0x503fe8
fstp st(0)
fld qword [ecx + 0x80]
faddp st(2)
fld qword [esp + 0x20]
fcomp st(2)
fnstsw ax
test ah, 1
je 0x503ffd
fld st(1)
fstp qword [esp + 0x20]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x50400a
fstp st(0)
fld st(0)
inc edi
mov eax, dword [esp + 0x2c]
add ecx, 0xe0
dec eax
mov dword [esp + 0x2c], eax
jne 0x503f9c
fstp qword [esp + 0x78]
mov dword [esp + 0x14], edi
fstp st(0)
cmp edi, 0x20
jge 0x50403d
jmp 0x504035
mov edi, dword [esp + 0x14]
jmp 0x504026
fstp st(0)
mov dword [esp + 0x14], 0x20
mov ecx, dword [esi + 0x278]
mov edx, dword [esi + 0x270]
fild dword [esp + 0x14]
lea eax, [esi + 0x270]
sub ecx, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], eax
fst qword [esp + 0x30]
fild dword [esp + 0x10]
fdivrp st(1)
fst qword [esp + 0x90]
fcomp qword [0x565ac0]
fnstsw ax
test ah, 0x41
jne 0x504797
lea edx, [esp + 0x50]
mov ecx, ebx
push edx
call sub.MFC42.DLL_CDC::SelectObject
push ebx
push 0x5810d8
push 0x46
lea ecx, [esp + 0x48]
mov dword [esp + 0xa4], eax
call sub.MFC42.DLL_CFont::CreatePointFont
mov eax, dword [ebx]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebx
call dword [eax + 0x30]
push 0
mov ecx, ebx
mov dword [esp + 0xa0], eax
call sub.MFC42.DLL_CDC::SetTextAlign
mov edi, dword [ebx]
push 8
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov ecx, ebx
call dword [edi + 0x38]
push 2
mov ecx, ebx
call sub.MFC42.DLL_CDC::SetTextAlign
fld qword [esp + 0x90]
fcomp qword [0x573f90]
fnstsw ax
test ah, 1
je 0x504215
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x278]
mov ecx, dword [edx]
mov edx, eax
sub edx, ecx
dec edx
lea edi, [ecx + 0x20]
mov dword [esp + 0x10], edx
dec eax
fild dword [esp + 0x10]
cmp edi, eax
fdivr qword [esp + 0x30]
fstp qword [esp + 0x88]
jge 0x50414f
mov eax, dword [esi + 0x274]
lea ecx, [esp + 0x30]
inc eax
push eax
push edi
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esi + 0x27c]
mov ecx, ebx
dec edx
push edx
push edi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esi + 0x278]
add edi, 0x20
dec eax
cmp edi, eax
jl 0x50411c
lea ecx, [esp + 0x80]
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CDC::SelectObject
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x278]
mov edi, dword [edx]
add edi, 0x20
dec eax
cmp edi, eax
mov dword [esp + 0x18], edi
jge 0x50433c
jmp 0x504180
mov edi, dword [esp + 0x18]
mov ecx, dword [esi + 0x27c]
lea edx, [esp + 0x30]
push ecx
push edi
push edx
mov ecx, ebx
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [esi + 0x27c]
mov ecx, ebx
inc eax
push eax
push edi
call sub.MFC42.DLL_CDC::LineTo
fild dword [esp + 0x18]
push 0
lea ecx, [esp + 0xa4]
sub esp, 8
fmul qword [esp + 0x94]
fstp qword [esp]
push 0x80
push ecx
call fcn.00429bd0
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
mov edi, dword [esp + 0x18]
mov edx, dword [ebx]
dec ecx
lea eax, [esp + 0xa0]
push ecx
mov ecx, dword [esi + 0x27c]
inc ecx
push eax
push ecx
push edi
mov ecx, ebx
call dword [edx + 0x64]
mov edx, dword [esi + 0x278]
add edi, 0x20
dec edx
mov dword [esp + 0x18], edi
cmp edi, edx
jl 0x50417c
jmp 0x50433c
mov eax, dword [esp + 0x14]
mov edi, 1
cmp eax, edi
mov dword [esp + 0xc], edi
jle 0x50427b
fild dword [esp + 0xc]
fmul qword [esp + 0x90]
call sub.MSVCRT.dll__ftol
mov edi, eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x30]
mov ecx, dword [eax]
add edi, ecx
mov ecx, dword [esi + 0x274]
inc ecx
push ecx
push edi
push edx
mov ecx, ebx
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [esi + 0x27c]
mov ecx, ebx
dec eax
push eax
push edi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x504226
mov edi, 1
lea ecx, [esp + 0x80]
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CDC::SelectObject
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], edi
cmp eax, edi
jle 0x50433c
fild dword [esp + 0xc]
fmul qword [esp + 0x90]
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x1c]
mov edi, eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
add edi, eax
mov eax, dword [esi + 0x27c]
push eax
push edi
push ecx
mov ecx, ebx
mov dword [esp + 0x38], edi
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esi + 0x27c]
mov ecx, ebx
inc edx
push edx
push edi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xa0]
push eax
push 0x581330
push 0x7f
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
lea edi, [esp + 0xb0]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
mov edx, dword [ebx]
dec ecx
push ecx
mov ecx, dword [esi + 0x27c]
lea eax, [esp + 0xa4]
inc ecx
push eax
mov eax, dword [esp + 0x34]
push ecx
push eax
mov ecx, ebx
call dword [edx + 0x64]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x50429a
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x44]
mov edx, dword [ebx + 4]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_FrameRect]
mov edi, dword [esi + 0x27c]
mov eax, dword [esi + 0x274]
sub edi, 2
inc eax
cmp edi, eax
jle 0x5043a0
mov ecx, dword [esi + 0x278]
push edi
lea edx, [esp + 0x34]
push ecx
push edx
mov ecx, ebx
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [esi + 0x278]
push edi
inc eax
mov ecx, ebx
push eax
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esi + 0x274]
sub edi, 0x20
inc ecx
cmp edi, ecx
jg 0x50436e
lea edx, [esp + 0x50]
mov ecx, ebx
push edx
call sub.MFC42.DLL_CDC::SelectObject
mov edi, dword [esi + 0x27c]
mov eax, dword [esi + 0x274]
sub edi, 0x22
inc eax
cmp edi, eax
jle 0x5043f5
mov ecx, dword [esp + 0x1c]
push edi
lea eax, [esp + 0x34]
mov edx, dword [ecx]
mov ecx, ebx
inc edx
push edx
push eax
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esi + 0x278]
push edi
sub ecx, 2
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esi + 0x274]
sub edi, 0x20
inc edx
cmp edi, edx
jg 0x5043c0
push 0
mov ecx, ebx
call sub.MFC42.DLL_CDC::SetTextAlign
mov ecx, dword [esi + 0x27c]
mov edx, dword [esp + 0x1c]
mov eax, dword [ebx]
push 1
inc ecx
push 0x58e6b8
push ecx
mov ecx, dword [edx]
inc ecx
push ecx
mov ecx, ebx
call dword [eax + 0x64]
fld qword [0x565ac0]
fld qword [esp + 0x78]
mov ecx, dword [esi + 0x274]
mov eax, dword [esi + 0x27c]
fcomp qword [0x565ac0]
inc ecx
dec eax
mov dword [esi + 0x27c], eax
mov edx, eax
mov dword [esi + 0x274], ecx
fnstsw ax
test ah, 0x41
jne 0x50446e
fstp st(0)
fld qword [esp + 0x78]
fcomp qword [esi + 0x260]
fnstsw ax
test ah, 1
jne 0x50446a
fld qword [esi + 0x260]
jmp 0x50446e
fld qword [esp + 0x78]
fld qword [esp + 0x20]
fsub st(1)
fmul qword [0x56e078]
fld qword [esp + 0x20]
fcomp st(2)
fnstsw ax
test ah, 0x40
je 0x50448f
fstp st(0)
fld qword [0x579c10]
fld st(0)
fadd st(0), st(0)
mov eax, edx
sub eax, ecx
fadd qword [esp + 0x20]
dec eax
inc ecx
mov dword [esp + 0x10], eax
mov eax, edx
cmp eax, ecx
mov dword [esp + 0x18], eax
fstp qword [esp + 0x20]
fxch st(1)
fsub st(1)
fstp qword [esp + 0x30]
fstp st(0)
fld qword [esp + 0x20]
fsub qword [esp + 0x30]
fst qword [esp + 0x20]
fild dword [esp + 0x10]
fdivr st(1)
fstp qword [esp + 0x88]
fstp st(0)
jle 0x504576
lea ecx, [eax - 8]
mov dword [esp + 0xc], ecx
jmp 0x5044e5
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 0x27c]
push 0
sub edx, eax
sub esp, 8
mov dword [esp + 0x1c], edx
lea eax, [esp + 0xac]
fild dword [esp + 0x1c]
fmul qword [esp + 0x94]
fadd qword [esp + 0x3c]
fstp qword [esp]
push 0x80
push eax
call fcn.00429bd0
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
mov edx, dword [ebx]
dec ecx
lea eax, [esp + 0xa0]
push ecx
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [esi + 0x278]
push ecx
add eax, 4
mov ecx, ebx
push eax
call dword [edx + 0x64]
mov eax, dword [esi + 0x274]
mov ecx, dword [esp + 0x18]
inc eax
cmp ecx, eax
je 0x504576
mov edi, dword [esp + 0xc]
sub ecx, 0x20
sub edi, 0x20
cmp ecx, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], edi
jg 0x5044e1
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x504779
mov edi, dword [esp + 0x1c]
mov eax, 0xfffe7960
push edi
mov ecx, ebx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x18], eax
call sub.MFC42.DLL_CDC::IntersectClipRect_1
mov ecx, dword [esi + 0x27c]
mov eax, dword [esi + 0x274]
sub ecx, eax
lea edx, [esp + 0x58]
dec ecx
push edx
mov dword [esp + 0x14], ecx
mov ecx, ebx
fild dword [esp + 0x14]
fdiv qword [esp + 0x24]
fstp qword [esp + 0x8c]
call sub.MFC42.DLL_CDC::SelectObject
fld qword [esi + 0x260]
fsub qword [esp + 0x30]
fmul qword [esp + 0x88]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esi + 0x27c]
mov edx, dword [edi]
sub ecx, eax
lea eax, [esp + 0x20]
dec ecx
inc edx
push ecx
push edx
push eax
mov ecx, ebx
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esi + 0x260]
mov eax, dword [esi + 0x258]
mov edx, dword [esi + 0x264]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x254]
mov dword [esp + 0x24], edx
test eax, eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], ecx
jle 0x504727
cmp ecx, dword [esi + 0x254]
jne 0x504647
cmp dword [ecx + 0x18], 6
je 0x504702
mov eax, dword [ecx + 0x18]
cmp eax, 2
jl 0x504658
cmp eax, 5
jle 0x504702
fld qword [0x565ac0]
test eax, eax
je 0x504667
cmp eax, 1
jne 0x50467b
fstp st(0)
fld qword [ecx + 0x88]
fadd qword [ecx + 0x60]
fadd qword [ecx + 0x80]
fadd qword [ecx + 0x70]
cmp eax, 6
je 0x504685
cmp eax, 7
jne 0x50468d
fstp st(0)
fld qword [ecx + 0x80]
fadd qword [esp + 0x20]
fst qword [esp + 0x20]
fsub qword [esp + 0x30]
fmul qword [esp + 0x88]
call sub.MSVCRT.dll__ftol
fild dword [esp + 0xc]
mov edi, dword [esi + 0x27c]
sub edi, eax
fmul qword [esp + 0x90]
dec edi
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x78]
add eax, edx
lea edx, [ecx + 1]
mov dword [esp + 0x2c], eax
cmp edi, edx
jg 0x5046e0
dec ecx
cmp edi, ecx
jl 0x5046e0
cmp eax, dword [esp + 0x14]
je 0x5046ed
push edi
push eax
mov ecx, ebx
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x78], edi
inc eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 0x258]
inc eax
add ecx, 0xe0
cmp eax, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
jl 0x504635
mov edi, dword [esp + 0x1c]
push 2
mov ecx, ebx
call sub.MFC42.DLL_CDC::SetBkMode
push 0
mov ecx, ebx
call sub.MFC42.DLL_CDC::SetTextAlign
mov ecx, dword [0x5a0f78]
lea eax, [esp + 0x4c]
push eax
push 0x13c7
call fcn.004c2690
mov eax, dword [esp + 0x4c]
mov edx, dword [ebx]
mov ecx, dword [eax - 8]
push ecx
mov ecx, dword [edi]
push eax
mov eax, dword [esi + 0x274]
add eax, 2
add ecx, 4
push eax
push ecx
mov ecx, ebx
call dword [edx + 0x64]
push 5
push 0
mov ecx, ebx
call sub.MFC42.DLL_CDC::SelectClipRgn
mov eax, dword [esp + 0x9c]
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 0x30]
mov ecx, dword [esp + 0x98]
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CDC::SelectObject
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CString::CString
mov esi, 0x565318
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], esi
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov edi, 0x565304
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x44], esi
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x70]
mov dword [esp + 0x44], edi
mov dword [esp + 0x70], esi
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x68]
mov dword [esp + 0x70], edi
mov dword [esp + 0x68], esi
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x60]
mov dword [esp + 0x68], edi
mov dword [esp + 0x60], esi
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x58]
mov dword [esp + 0x60], edi
mov dword [esp + 0x58], esi
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x50]
mov dword [esp + 0x58], edi
mov dword [esp + 0x50], esi
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x80]
mov dword [esp + 0x50], edi
mov dword [esp + 0x80], esi
call sub.MFC42.DLL_CGdiObject::DeleteObject
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4