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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
mov esi, ecx
push 8
mov dword [esp + 0x44], esi
call edi
push eax
push 1
push 0
lea ecx, [esp + 0x90]
call sub.MFC42.DLL_CPen::CPen
push 0xcccccc
push 1
push 2
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CPen::CPen
push 0xb00000
push 2
push 0
lea ecx, [esp + 0x80]
call sub.MFC42.DLL_CPen::CPen
push 0xb000
push 1
push 0
lea ecx, [esp + 0x70]
call sub.MFC42.DLL_CPen::CPen
push 0
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_CBrush::CBrush
lea ecx, [esp + 0x24]
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0x565230
call sub.MFC42.DLL_CString::CString_2
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x52901e
lea eax, [esi + 0x40]
push eax
mov dword [esp + 0xa0], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
fld qword [esi + 0x2a8]
fadd qword [0x56a748]
fcomp qword [esi + 0x2b0]
fnstsw ax
test ah, 1
je 0x528109
mov dword [esi + 0x5c], 1
fld qword [esi + 0x2b0]
fmul qword [0x57baa0]
mov eax, dword [esi + 0x254]
cmp eax, 0x20
mov dword [esp + 0x30], eax
fstp qword [esp + 0xb8]
jge 0x528133
mov dword [esp + 0x30], 0x20
mov eax, dword [esi + 0x6c]
mov edx, dword [esi + 0x64]
fild dword [esp + 0x30]
sub eax, edx
sub eax, 4
fstp qword [esp + 0x38]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fdiv qword [esp + 0x38]
fst qword [esi + 0x290]
fcomp qword [0x565ac0]
fnstsw ax
test ah, 0x41
je 0x528178
mov ecx, dword [esp + 0x9c]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x52901e
lea edx, [esp + 0x6c]
mov ecx, ebx
push edx
call sub.MFC42.DLL_CDC::SelectObject
push ebx
push 0x5810d8
push 0x46
lea ecx, [esp + 0x68]
mov dword [esp + 0xac], eax
call sub.MFC42.DLL_CFont::CreatePointFont
mov eax, dword [ebx]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, ebx
call dword [eax + 0x30]
push 0
mov ecx, ebx
mov dword [esp + 0xa8], eax
call sub.MFC42.DLL_CDC::SetTextAlign
mov edx, dword [ebx]
push 8
mov dword [esp + 0x14], edx
call edi
mov edx, dword [esp + 0x10]
push eax
mov ecx, ebx
call dword [edx + 0x38]
push 2
mov ecx, ebx
call sub.MFC42.DLL_CDC::SetTextAlign
fld qword [esi + 0x290]
fcomp qword [0x573f90]
fnstsw ax
test ah, 1
je 0x5282e8
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x64]
mov edx, eax
sub edx, ecx
lea edi, [ecx + 0x20]
dec edx
dec eax
mov dword [esp + 0x10], edx
cmp edi, eax
fild dword [esp + 0x10]
fdivr qword [esp + 0x38]
fstp qword [esp + 0x38]
jge 0x528239
mov eax, dword [esi + 0x68]
lea ecx, [esp + 0x10]
inc eax
push eax
push edi
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esi + 0x70]
mov ecx, ebx
dec edx
push edx
push edi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esi + 0x6c]
add edi, 0x20
dec eax
cmp edi, eax
jl 0x52820f
lea ecx, [esp + 0x84]
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CDC::SelectObject
mov eax, dword [esi + 0x64]
mov edx, dword [esi + 0x6c]
add eax, 0x20
dec edx
cmp eax, edx
mov dword [esp + 0x20], eax
jge 0x5283f8
mov eax, dword [esi + 0x70]
mov edi, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
push edi
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esi + 0x70]
mov ecx, ebx
inc edx
push edx
push edi
call sub.MFC42.DLL_CDC::LineTo
fild dword [esp + 0x20]
push 0
lea eax, [esp + 0xc4]
sub esp, 8
fmul qword [esp + 0x44]
fstp qword [esp]
push 0x80
push eax
call fcn.00429bd0
lea edi, [esp + 0xd4]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
mov edi, dword [esp + 0x20]
mov edx, dword [ebx]
dec ecx
lea eax, [esp + 0xc0]
push ecx
mov ecx, dword [esi + 0x70]
inc ecx
push eax
push ecx
push edi
mov ecx, ebx
call dword [edx + 0x64]
mov edx, dword [esi + 0x6c]
add edi, 0x20
dec edx
mov dword [esp + 0x20], edi
cmp edi, edx
jl 0x52825e
jmp 0x5283f8
mov eax, dword [esp + 0x30]
mov edi, 1
cmp eax, edi
mov dword [esp + 0x1c], edi
jle 0x528344
fild dword [esp + 0x1c]
fmul qword [esi + 0x290]
call sub.MSVCRT.dll__ftol
mov edi, eax
mov eax, dword [esi + 0x64]
add edi, eax
mov eax, dword [esi + 0x68]
inc eax
lea ecx, [esp + 0x38]
push eax
push edi
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esi + 0x70]
mov ecx, ebx
dec edx
push edx
push edi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x5282f9
mov edi, 1
lea eax, [esp + 0x84]
mov ecx, ebx
push eax
call sub.MFC42.DLL_CDC::SelectObject
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], edi
cmp eax, edi
jle 0x5283f8
fild dword [esp + 0x1c]
fmul qword [esi + 0x290]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esi + 0x70]
mov edi, eax
mov eax, dword [esi + 0x64]
push ecx
add edi, eax
lea edx, [esp + 0x3c]
push edi
push edx
mov ecx, ebx
mov dword [esp + 0x34], edi
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [esi + 0x70]
mov ecx, ebx
inc eax
push eax
push edi
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0xc0]
push ecx
push 0x581330
push 0x7f
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
lea edi, [esp + 0xd0]
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 + 0x70]
lea eax, [esp + 0xc4]
inc ecx
push eax
mov eax, dword [esp + 0x30]
push ecx
push eax
mov ecx, ebx
call dword [edx + 0x64]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x528363
lea eax, [esi + 0x64]
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x44], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x48], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x4c], edx
mov edx, dword [eax + 4]
mov edi, dword [ecx + 0xc]
mov ecx, dword [eax]
mov dword [esp + 0x8c], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x90], edx
mov edx, dword [eax + 0xc]
mov eax, dword [esi + 0x5c]
mov dword [esp + 0x50], edi
cmp eax, 1
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], edx
jne 0x52848e
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 0x68]
sub ecx, edx
mov eax, 0x99999999
imul ecx
sar edx, 1
mov eax, edx
mov ecx, dword [esp + 0x58]
shr eax, 0x1f
add edx, eax
lea eax, [esp + 0x54]
add edi, edx
mov edx, dword [ebx + 4]
mov dword [esp + 0x50], edi
inc edi
neg eax
sbb eax, eax
mov dword [esp + 0x90], edi
and eax, ecx
lea ecx, [esp + 0x8c]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_FrameRect]
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x54]
neg eax
mov ecx, dword [ebx + 4]
sbb eax, eax
and eax, edx
push eax
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.USER32.dll_FrameRect]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x48]
inc eax
lea edi, [edx - 2]
cmp edi, eax
jle 0x5284e8
mov ecx, dword [esp + 0x4c]
push edi
lea edx, [esp + 0x3c]
push ecx
push edx
mov ecx, ebx
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [esp + 0x4c]
push edi
inc eax
mov ecx, ebx
push eax
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x48]
sub edi, 0x20
inc ecx
cmp edi, ecx
jg 0x5284bc
lea edx, [esp + 0x6c]
mov ecx, ebx
push edx
call sub.MFC42.DLL_CDC::SelectObject
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
inc ecx
lea edi, [eax - 0x22]
cmp edi, ecx
jle 0x528533
mov edx, dword [esp + 0x44]
push edi
inc edx
lea eax, [esp + 0x3c]
push edx
push eax
mov ecx, ebx
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x4c]
push edi
add ecx, 0xfffffffe
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esp + 0x48]
sub edi, 0x20
inc edx
cmp edi, edx
jg 0x528504
push 0
mov ecx, ebx
call sub.MFC42.DLL_CDC::SetTextAlign
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x8c]
mov eax, dword [ebx]
push 1
inc ecx
push 0x58e6b8
inc edx
push ecx
push edx
mov ecx, ebx
call dword [eax + 0x64]
fld qword [esi + 0x260]
fcomp qword [0x565ac0]
fnstsw ax
test ah, 0x41
jne 0x528ff2
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x50]
inc edi
fld qword [edx + 0x298]
fcomp qword [0x565ac0]
xor esi, esi
dec ecx
mov dword [edx + 0x280], esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x50], ecx
mov dword [edx + 0x284], esi
fnstsw ax
test ah, 0x41
jne 0x5285e9
fld qword [edx + 0x298]
fcomp qword [edx + 0x260]
fnstsw ax
test ah, 1
jne 0x5285d1
mov eax, dword [edx + 0x260]
mov dword [edx + 0x280], eax
mov eax, dword [edx + 0x264]
jmp 0x5285e3
mov eax, dword [edx + 0x298]
mov dword [edx + 0x280], eax
mov eax, dword [edx + 0x29c]
mov dword [edx + 0x284], eax
fld qword [edx + 0x2a0]
fsub qword [edx + 0x280]
fmul qword [0x56e078]
fld qword [edx + 0x2a0]
fcomp qword [edx + 0x280]
fnstsw ax
test ah, 0x40
je 0x528616
fstp st(0)
fld qword [0x579c10]
fld st(0)
fadd st(0), st(0)
fadd qword [edx + 0x2a0]
fst qword [esp + 0x38]
fstp qword [edx + 0x288]
fsubr qword [edx + 0x280]
fst qword [edx + 0x280]
fcomp qword [0x565ac0]
fnstsw ax
test ah, 1
je 0x52864f
mov dword [edx + 0x280], esi
mov dword [edx + 0x284], esi
fld qword [esp + 0x38]
fsub qword [edx + 0x280]
mov edx, ecx
mov esi, ecx
sub edx, edi
dec edx
inc edi
mov dword [esp + 0x10], edx
cmp ecx, edi
fild dword [esp + 0x10]
fdivp st(1)
fstp qword [esp + 0x38]
jle 0x5286ed
jmp 0x528679
mov ecx, dword [esp + 0x50]
sub ecx, esi
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], ecx
push 0
fild dword [esp + 0x14]
sub esp, 8
lea ecx, [esp + 0xcc]
fmul qword [esp + 0x44]
fadd qword [eax + 0x280]
fstp qword [esp]
push 0x80
push ecx
call fcn.00429bd0
lea edi, [esp + 0xd4]
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 + 0xc0]
push ecx
push eax
mov eax, dword [esp + 0x54]
lea ecx, [esi - 8]
add eax, 4
push ecx
push eax
mov ecx, ebx
call dword [edx + 0x64]
mov ecx, dword [esp + 0x48]
lea eax, [ecx + 1]
cmp esi, eax
je 0x5286ed
sub esi, 0x20
cmp esi, eax
jg 0x528675
mov esi, dword [esp + 0x40]
mov eax, dword [esi + 0x250]
test eax, eax
je 0x528e74
mov eax, dword [esi + 0x254]
test eax, eax
jle 0x528e74
lea edx, [esp + 0x44]
mov ecx, ebx
push edx
call sub.MFC42.DLL_CDC::IntersectClipRect_1
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x48]
sub eax, edx
dec eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x60]
fild dword [esp + 0x10]
fld qword [esi + 0x288]
fsub qword [esi + 0x280]
test eax, eax
fdivp st(1)
fstp qword [esp + 0x38]
je 0x528907
lea ecx, [esp + 0x64]
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CDC::SelectObject
fld qword [esi + 0x260]
fsub qword [esi + 0x280]
fmul qword [esp + 0x38]
call sub.MSVCRT.dll__ftol
mov edi, dword [esp + 0x50]
mov edx, dword [esp + 0x44]
sub edi, eax
mov ecx, ebx
dec edi
lea eax, [edx + 1]
push edi
mov dword [esp + 0x2c], eax
push eax
lea eax, [esp + 0x18]
push eax
call sub.MFC42.DLL_CDC::MoveTo
fld qword [esi + 0x290]
fcomp qword [0x56e368]
fnstsw ax
test ah, 0x41
je 0x5287b5
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x7c], edi
mov ecx, dword [esi + 0x254]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x20], eax
jle 0x528907
mov dword [esp + 0x10], eax
mov edx, dword [esi + 0x250]
mov eax, dword [esp + 0x10]
fld qword [eax + edx + 8]
fsub qword [esi + 0x280]
fmul qword [esp + 0x38]
call sub.MSVCRT.dll__ftol
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x20]
sub edi, eax
dec edi
inc ecx
mov dword [esp + 0x20], ecx
fild dword [esp + 0x20]
fmul qword [esi + 0x290]
call sub.MSVCRT.dll__ftol
fld qword [esi + 0x290]
mov edx, dword [esp + 0x44]
fcomp qword [0x56e368]
lea eax, [eax + edx + 1]
mov dword [esp + 0x28], eax
fnstsw ax
test ah, 0x41
je 0x5288d9
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
cmp eax, ecx
je 0x5288bf
mov edx, dword [esp + 0x7c]
mov eax, ecx
push edx
push eax
mov ecx, ebx
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
cmp eax, ecx
je 0x528898
mov eax, dword [esp + 0x2c]
mov edx, ecx
push edx
lea ecx, [esp + 0xb4]
push eax
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
push edx
push eax
mov ecx, ebx
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
lea eax, [esp + 0xac]
push edx
push eax
mov ecx, ebx
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x28]
push edi
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esp + 0x28]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x7c], edi
jmp 0x5288e6
cmp dword [esp + 0x34], edi
jge 0x5288c9
mov dword [esp + 0x34], edi
cmp dword [esp + 0x1c], edi
jle 0x5288d3
mov dword [esp + 0x1c], edi
mov dword [esp + 0x30], edi
jmp 0x5288e6
mov eax, dword [esp + 0x28]
push edi
push eax
mov ecx, ebx
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x254]
add edx, 0x20
cmp eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
jl 0x5287cd
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CDC::SelectObject
fld qword [esi + 0x260]
fsub qword [esi + 0x280]
fmul qword [esp + 0x38]
call sub.MSVCRT.dll__ftol
mov edi, dword [esp + 0x50]
mov edx, dword [esp + 0x44]
sub edi, eax
mov ecx, ebx
dec edi
lea eax, [edx + 1]
push edi
mov dword [esp + 0x2c], eax
push eax
lea eax, [esp + 0xb0]
push eax
call sub.MFC42.DLL_CDC::MoveTo
fld qword [esi + 0x290]
fcomp qword [0x56e368]
fnstsw ax
test ah, 0x41
je 0x528976
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x7c], edi
mov eax, dword [esi + 0x254]
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x20], ecx
jle 0x528ad6
mov dword [esp + 0x10], ecx
mov edx, dword [esi + 0x250]
add ecx, edx
fld qword [ecx]
fcomp qword [0x565ac0]
fnstsw ax
test ah, 0x40
jne 0x528ab4
fld qword [ecx]
fsub qword [esi + 0x280]
fmul qword [esp + 0x38]
call sub.MSVCRT.dll__ftol
mov edi, dword [esp + 0x50]
sub edi, eax
mov eax, dword [esp + 0x20]
dec edi
inc eax
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fmul qword [esi + 0x290]
call sub.MSVCRT.dll__ftol
fld qword [esi + 0x290]
fcomp qword [0x56e368]
mov ecx, dword [esp + 0x44]
lea edx, [eax + ecx + 1]
fnstsw ax
mov dword [esp + 0x28], edx
test ah, 0x41
je 0x528aa7
mov eax, dword [esp + 0x2c]
mov ecx, edx
cmp ecx, eax
je 0x528a8d
mov ecx, dword [esp + 0x7c]
mov edx, eax
push ecx
push edx
mov ecx, ebx
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
je 0x528a66
mov edx, dword [esp + 0x2c]
mov ecx, eax
push ecx
lea eax, [esp + 0xac]
push edx
push eax
mov ecx, ebx
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
push ecx
push edx
mov ecx, ebx
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push eax
lea edx, [esp + 0xb4]
push ecx
push edx
mov ecx, ebx
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [esp + 0x28]
push edi
push eax
mov ecx, ebx
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x7c], edi
jmp 0x528ab4
cmp dword [esp + 0x34], edi
jge 0x528a97
mov dword [esp + 0x34], edi
cmp dword [esp + 0x1c], edi
jle 0x528aa1
mov dword [esp + 0x1c], edi
mov dword [esp + 0x30], edi
jmp 0x528ab4
mov edx, dword [esp + 0x28]
push edi
push edx
mov ecx, ebx
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x254]
inc eax
add ecx, 0x20
cmp eax, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ecx
jl 0x52898e
push 2
mov ecx, ebx
call sub.MFC42.DLL_CDC::SetBkMode
push 0
mov ecx, ebx
call sub.MFC42.DLL_CDC::SetTextAlign
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x528b60
push edi
lea ecx, [esp + 0x14]
call fcn.005625b4
mov eax, dword [esp + 0x10]
mov edx, dword [ebx]
mov ecx, dword [eax - 8]
push ecx
mov ecx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x50]
add eax, 2
add ecx, 4
push eax
push ecx
mov ecx, ebx
call dword [edx + 0x64]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
push edi
lea ecx, [esp + 0x14]
call fcn.005625b4
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
lea edx, [esp + 0x38]
mov ecx, dword [eax - 8]
push edx
mov edx, dword [ebx + 4]
push ecx
push eax
push edx
call edi
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], eax
call sub.MFC42.DLL_CString::CString
jmp 0x528c92
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [0x5a0f78]
push 0x13c7
call fcn.004c2690
mov eax, dword [esi + 0x60]
mov dword [esp + 0x10], 0
test eax, eax
je 0x528b94
mov edx, dword [ebx]
push 0xb00000
mov ecx, ebx
call dword [edx + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
mov edx, dword [ebx]
mov ecx, dword [eax - 8]
push ecx
mov ecx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x50]
add eax, 2
add ecx, 4
push eax
push ecx
mov ecx, ebx
call dword [edx + 0x64]
mov eax, dword [esp + 0x24]
mov edi, dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
lea edx, [esp + 0x38]
mov ecx, dword [eax - 8]
push edx
mov edx, dword [ebx + 4]
push ecx
push eax
push edx
call edi
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x3c], eax
mov eax, dword [ecx + 0x60]
test eax, eax
je 0x528c92
mov eax, dword [esp + 0x10]
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 0x38]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov edx, dword [ebx]
push 3
add eax, 2
push 0x58e9f4
push eax
lea eax, [esi + ecx + 4]
push eax
mov ecx, ebx
call dword [edx + 0x64]
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x7c]
push ecx
push 3
push 0x58e9f4
push edx
call edi
mov eax, dword [esp + 0x7c]
mov edx, dword [ebx]
push 0xb000
mov ecx, ebx
add esi, eax
call dword [edx + 0x38]
mov ecx, dword [0x5a0f78]
lea eax, [esp + 0x24]
push eax
push 0x13d0
call fcn.004c2690
mov eax, dword [esp + 0x24]
mov edx, dword [ebx]
mov ecx, dword [eax - 8]
push ecx
mov ecx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x50]
add eax, 2
push eax
lea eax, [esi + ecx + 4]
push eax
mov ecx, ebx
call dword [edx + 0x64]
mov eax, dword [esp + 0x10]
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 0x38]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push ecx
mov edx, dword [eax - 8]
push edx
push eax
mov eax, dword [ebx + 4]
push eax
call edi
add esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
mov al, byte [ecx + 0x164]
test al, al
je 0x528e65
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Empty
mov edx, dword [esp + 0x40]
mov eax, dword [edx + 0x1f4]
sub eax, 0
je 0x528cda
dec eax
je 0x528cce
dec eax
jne 0x528cef
lea eax, [esp + 0x24]
push eax
push 0x152e
jmp 0x528ce4
lea ecx, [esp + 0x24]
push ecx
push 0x152d
jmp 0x528ce4
lea edx, [esp + 0x24]
push edx
push 0x152c
mov ecx, dword [0x5a0f78]
call fcn.004c2690
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov eax, dword [ebx]
push 3
add ecx, 2
push 0x58e9f4
push ecx
lea ecx, [esi + edx + 4]
push ecx
mov ecx, ebx
call dword [eax + 0x64]
mov eax, dword [ebx + 4]
lea edx, [esp + 0x10]
push edx
push 3
push 0x58e9f4
push eax
call edi
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
add esi, ecx
mov edx, dword [ebx]
mov ecx, dword [eax + 0x1f4]
neg ecx
sbb ecx, ecx
and ecx, 0xff
push ecx
mov ecx, ebx
call dword [edx + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
mov edx, dword [ebx]
mov ecx, dword [eax - 8]
push ecx
mov ecx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x50]
add eax, 2
push eax
lea eax, [esi + ecx + 4]
push eax
mov ecx, ebx
call dword [edx + 0x64]
mov eax, dword [esp + 0x10]
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 0x38]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push ecx
mov edx, dword [eax - 8]
push edx
push eax
mov eax, dword [ebx + 4]
push eax
call edi
mov ecx, dword [esp + 0x10]
add esi, ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x38], esi
mov eax, dword [ecx + 0x1f4]
test eax, eax
jne 0x528e65
mov edx, ecx
fld qword [edx + 0x210]
fcomp qword [0x565ac0]
fnstsw ax
test ah, 0x41
jne 0x528e65
mov eax, ecx
fld qword [eax + 0x210]
fst qword [esp + 0x10]
fcomp qword [0x56cc48]
fnstsw ax
test ah, 0x41
je 0x528e65
cmp dword [ecx + 0x248], 0x64
jge 0x528e06
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
push str.____.2lf__
lea ecx, [esp + 0xcc]
push 0x7f
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
jmp 0x528e33
mov edi, str.___n_a
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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]
mov esi, dword [esp + 0x38]
lea edi, [esp + 0xc0]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebx]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0xc0]
push ecx
mov ecx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x4c]
add ecx, 2
push ecx
lea ecx, [esi + eax + 4]
push ecx
mov ecx, ebx
call dword [edx + 0x64]
push 5
push 0
mov ecx, ebx
call sub.MFC42.DLL_CDC::SelectClipRgn
mov esi, dword [esp + 0x40]
cmp dword [esi + 0x5c], 1
jne 0x528ff2
lea edx, [esp + 0x8c]
mov ecx, ebx
push edx
call sub.MFC42.DLL_CDC::IntersectClipRect_1
mov ecx, dword [esp + 0x90]
mov eax, dword [esp + 0x98]
inc ecx
dec eax
mov dword [esp + 0x98], eax
sub eax, ecx
dec eax
mov dword [esp + 0x90], ecx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fdiv qword [esp + 0xb8]
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x64]
push eax
mov ecx, ebx
call sub.MFC42.DLL_CDC::SelectObject
mov eax, dword [esi + 0x254]
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], 0xffffffff
jle 0x528fa5
mov dword [esp + 0x10], ecx
mov edx, dword [esi + 0x250]
add ecx, edx
fld qword [ecx]
fcomp qword [0x565ac0]
fnstsw ax
test ah, 0x40
jne 0x528f83
fild dword [esp + 0x7c]
fmul qword [ecx + 0x10]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x98]
mov edx, eax
mov eax, ecx
add ecx, 0xfffffffe
sub eax, edx
mov dword [esp + 0x1c], ecx
dec eax
cmp eax, ecx
mov dword [esp + 0x34], eax
jge 0x528f83
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
fmul qword [esi + 0x290]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x8c]
lea edi, [eax + ecx + 1]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x528f83
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0xa8]
push edx
push edi
push eax
mov ecx, ebx
mov dword [esp + 0x38], edi
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x34]
push ecx
push edi
mov ecx, ebx
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x254]
inc eax
add ecx, 0x20
cmp eax, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ecx
jl 0x528ef2
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 edx, [esp + 0x24]
push edx
push 0x1407
call fcn.004c2690
mov eax, dword [esp + 0x24]
mov edx, dword [ebx]
mov ecx, dword [eax - 8]
push ecx
mov ecx, dword [esp + 0x90]
push eax
mov eax, dword [esp + 0x98]
add eax, 2
add ecx, 4
push eax
push ecx
mov ecx, ebx
call dword [edx + 0x64]
mov edx, dword [esp + 0x9c]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0xa4]
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x30]
mov edx, dword [esp + 0xa0]
mov ecx, ebx
push edx
call sub.MFC42.DLL_CDC::SelectObject
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
mov esi, 0x565318
lea ecx, [esp + 0x5c]
mov dword [esp + 0x5c], esi
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov edi, 0x565304
lea ecx, [esp + 0x54]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x54], esi
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x64]
mov dword [esp + 0x54], edi
mov dword [esp + 0x64], esi
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x74]
mov dword [esp + 0x64], edi
mov dword [esp + 0x74], esi
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x6c]
mov dword [esp + 0x74], edi
mov dword [esp + 0x6c], esi
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x84]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x84], esi
call sub.MFC42.DLL_CGdiObject::DeleteObject
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8