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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1e4
push ebx
push esi
push edi
mov esi, ecx
push 8
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push 1
push 0
lea ecx, [esp + 0x6c]
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 0
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CPen::CPen
push 0
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CBrush::CBrush
mov ebx, dword [ebp + 8]
mov dword [esp + 0x48], 0
test ebx, ebx
mov dword [esp + 0x44], 0x565230
mov dword [esp + 0x4c], 0xffffff9c
je 0x52d564
mov eax, dword [esi + 0x7bc]
test eax, eax
je 0x52d564
lea eax, [esi + 0x40]
push eax
mov dword [esp + 0x9c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x7cc]
test eax, eax
jne 0x52cdc9
mov ecx, esi
call fcn.0052bf10
mov ecx, dword [esi + 0x7a4]
lea edi, [esi + 0x178]
lea ecx, [ecx + ecx*2]
mov edx, dword [edi + 0x600]
shl ecx, 3
mov eax, dword [ecx + edi + 8]
mov ecx, dword [ecx + esi + 0x184]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x60]
lea eax, [eax + eax*4]
shl eax, 4
fild dword [esp + 0x1c]
add eax, edx
mov edx, dword [esi + 0x68]
sub edx, ecx
sub edx, 4
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 0x2c]
fild dword [esp + 0x18]
mov dword [esp + 0xa4], ecx
mov ecx, dword [eax + 0x30]
mov dword [esp + 0xac], edx
mov dword [esp + 0xbc], ecx
fdiv st(1)
mov edx, ecx
mov ecx, dword [eax + 0x34]
mov dword [esp + 0xb4], ecx
mov ecx, dword [esi + 0x7a8]
mov dword [esp + 0xb0], edx
mov edx, dword [eax + 0x38]
mov eax, dword [eax + 0x3c]
lea ecx, [ecx + ecx*2]
shl ecx, 3
mov dword [esp + 0xcc], eax
mov dword [esp + 0xc8], edx
mov eax, dword [ecx + edi + 8]
mov edx, dword [edi + 0x600]
mov ecx, dword [ecx + esi + 0x184]
lea eax, [eax + eax*4]
mov dword [esp + 0x68], ecx
mov ecx, dword [esi + 0x64]
shl eax, 4
add eax, edx
mov edx, dword [esi + 0x6c]
sub edx, ecx
sub edx, 4
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 0x2c]
mov dword [esp + 0xa8], ecx
mov ecx, dword [eax + 0x30]
mov dword [esp + 0xa0], edx
mov edx, ecx
mov dword [esp + 0x9c], ecx
mov ecx, dword [eax + 0x34]
mov dword [esp + 0xd0], edx
mov edx, dword [eax + 0x38]
mov eax, dword [eax + 0x3c]
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xdc], eax
lea eax, [esi + 0x60]
mov ecx, eax
mov dword [esp + 0xd8], edx
mov eax, dword [ecx]
inc eax
mov edx, dword [ecx + 4]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x3c], edx
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x40], ecx
fstp qword [esp + 0x80]
fild dword [esp + 0x68]
fst qword [esp + 0x78]
fild dword [esp + 0x18]
fdiv st(1)
fstp qword [esp + 0x88]
fstp st(0)
fmul qword [esp + 0x80]
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
fld qword [esp + 0x78]
fmul qword [esp + 0x88]
lea eax, [eax + edx - 1]
mov dword [esp + 0x3c], eax
inc eax
inc ecx
mov dword [esi + 0x68], eax
mov dword [esp + 0x38], ecx
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x38]
mov edx, dword [esi + 0x7bc]
fld qword [0x56d600]
lea eax, [eax + ecx - 1]
mov ecx, dword [esi + 0x7c0]
fst qword [esp + 0x90]
mov dword [esp + 0x40], eax
inc eax
test ecx, ecx
mov dword [esi + 0x6c], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0xc16312d0
jle 0x52cfe2
mov dword [esp + 0x10], ecx
mov eax, dword [edx + 4]
test eax, eax
jl 0x52cfc9
jg 0x52cf9a
cmp dword [edx], 0
jb 0x52cfc9
fld qword [edx + 8]
fcomp qword [esp + 0x28]
fnstsw ax
test ah, 0x41
jne 0x52cfba
mov eax, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x28], eax
fcom qword [edx + 8]
fnstsw ax
test ah, 0x41
jne 0x52cfc9
fstp st(0)
fld qword [edx + 8]
mov eax, dword [esp + 0x10]
add edx, 0x10
dec eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], eax
jne 0x52cf8c
fst qword [esp + 0x90]
fcom qword [esi + 0x7d0]
fnstsw ax
test ah, 0x41
jne 0x52cffe
fstp st(0)
fld qword [esi + 0x7d0]
fst qword [esp + 0x90]
fld qword [esp + 0x28]
fsub st(1)
mov edx, dword [esi + 0x7bc]
mov dword [esp + 0x14], 0
test ecx, ecx
fmul qword [0x57bf48]
mov dword [esp + 0x24], edx
fstp qword [esp + 0xc0]
fstp st(0)
jle 0x52d1e8
mov eax, dword [edx + 4]
mov ecx, dword [edx]
test eax, eax
jl 0x52d1ca
jg 0x52d044
test ecx, ecx
jb 0x52d1ca
push eax
push ecx
mov ecx, edi
call fcn.004e03e0
mov eax, dword [esi + 0x7a4]
lea eax, [eax + eax*2]
mov ecx, dword [esi + eax*8 + 0x188]
mov eax, dword [esi + 0x7a8]
mov dword [esp + 0x74], ecx
lea edx, [eax + eax*2]
mov eax, dword [esi + edx*8 + 0x188]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x7d8]
test eax, eax
jne 0x52d08f
mov ecx, dword [esp + 0x24]
fld qword [ecx + 8]
fsub qword [esp + 0x90]
jmp 0x52d09a
mov edx, dword [esp + 0x24]
fld qword [esp + 0x28]
fsub qword [edx + 8]
fdiv qword [esp + 0xc0]
call sub.MSVCRT.dll__ftol
mov ecx, 0xc8
sub ecx, eax
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fmul qword [str.333333]
call sub.MSVCRT.dll__ftol
mov ecx, 0xffffffab
sub ecx, eax
mov dword [esp + 0x20], ecx
jns 0x52d0d7
mov dword [esp + 0x20], 0
jmp 0x52d0e7
cmp ecx, 0xff
jle 0x52d0e7
mov dword [esp + 0x20], 0xff
mov eax, dword [esp + 0x10]
add eax, 0x55
test eax, eax
mov dword [esp + 0x10], eax
jge 0x52d100
mov dword [esp + 0x10], 0
jmp 0x52d10f
cmp eax, 0xff
jle 0x52d10f
mov dword [esp + 0x10], 0xff
fild dword [esp + 0x34]
fild dword [esp + 0x74]
fmul qword [esp + 0x80]
fadd st(1)
call sub.MSVCRT.dll__ftol
fild dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xe0], eax
inc ecx
fstp qword [esp + 0x78]
mov dword [esp + 0x30], ecx
fild dword [esp + 0x30]
fmul qword [esp + 0x88]
fsubr qword [esp + 0x78]
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x74]
mov dword [esp + 0xe4], eax
inc edx
mov dword [esp + 0x30], edx
fild dword [esp + 0x30]
fmul qword [esp + 0x80]
fadd st(1)
call sub.MSVCRT.dll__ftol
fstp st(0)
fild dword [esp + 0x18]
mov dword [esp + 0xe8], eax
fmul qword [esp + 0x88]
fsubr qword [esp + 0x78]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x20]
and ecx, 0xff
and eax, 0xff
mov edx, eax
shl edx, 8
or edx, ecx
mov ecx, ebx
shl edx, 8
or edx, eax
lea eax, [esp + 0xe0]
push edx
push eax
call sub.MFC42.DLL_CDC::FillSolidRect_1
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x7c0]
inc eax
add edx, 0x10
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], edx
jl 0x52d02d
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x58]
neg eax
mov ecx, dword [ebx + 4]
sbb eax, eax
and eax, edx
push eax
lea eax, [esi + 0x60]
push eax
push ecx
call dword [sym.imp.USER32.dll_FrameRect]
push ebx
push 0x5810d8
push 0x46
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CFont::CreatePointFont
mov edx, dword [ebx]
lea eax, [esp + 0x44]
push eax
mov ecx, ebx
call dword [edx + 0x30]
push 6
mov ecx, ebx
mov dword [esp + 0x34], 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]
mov edi, dword [ebx]
push 5
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov ecx, ebx
call dword [edi + 0x34]
lea ecx, [esp + 0x60]
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CDC::SelectObject
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x14], 0
jle 0x52d3c7
mov edx, dword [esp + 0xac]
mov dword [esp + 0x10], edx
fild dword [esp + 0x14]
fst qword [esp + 0x28]
fmul qword [esp + 0x80]
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x4c]
mov edi, eax
add edi, dword [esp + 0x34]
mov eax, edi
mov dword [esp + 0x20], edi
sub eax, edx
cmp eax, 0x1e
jle 0x52d3a1
test byte [esi + 0x58], 0x10
je 0x52d2f5
mov eax, dword [esp + 0x14]
test eax, eax
je 0x52d2f5
lea ecx, [esp + 0x50]
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CDC::SelectObject
mov edx, dword [esp + 0x38]
lea eax, [esp + 0xc0]
push edx
push edi
push eax
mov ecx, ebx
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x40]
push ecx
push edi
mov ecx, ebx
call sub.MFC42.DLL_CDC::LineTo
lea edx, [esp + 0x60]
mov ecx, ebx
push edx
call sub.MFC42.DLL_CDC::SelectObject
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x78]
inc eax
push eax
push edi
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esp + 0x40]
mov ecx, ebx
lea eax, [edx + 3]
push eax
push edi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0xa4]
test eax, eax
jne 0x52d342
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xf0]
push eax
push 0x581330
push 0xff
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
jmp 0x52d369
fld qword [esp + 0x28]
fmul qword [esp + 0xc8]
lea edx, [esp + 0xf0]
push edx
push 4
fadd qword [esp + 0xb8]
sub esp, 8
fstp qword [esp]
call fcn.004291a0
lea edi, [esp + 0x100]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
mov edi, dword [esp + 0x20]
dec ecx
mov edx, dword [ebx]
push ecx
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0xf4]
push eax
lea eax, [ecx + 3]
mov ecx, ebx
push eax
lea eax, [edi + 1]
push eax
call dword [edx + 0x64]
mov dword [esp + 0x4c], edi
mov ecx, dword [esp + 0xbc]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add edx, ecx
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
jl 0x52d27e
push 0
mov ecx, ebx
call sub.MFC42.DLL_CDC::SetTextAlign
mov eax, dword [esp + 0x68]
mov dword [esp + 0x14], 0
test eax, eax
jle 0x52d53e
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x1c], edx
fild dword [esp + 0x14]
fst qword [esp + 0x28]
fmul qword [esp + 0x88]
call sub.MSVCRT.dll__ftol
mov edi, dword [esp + 0x40]
sub edi, eax
mov eax, dword [esp + 0x4c]
dec edi
sub eax, edi
mov dword [esp + 0x20], edi
cmp eax, 0xf
jle 0x52d518
test byte [esi + 0x58], 0x10
je 0x52d469
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x52d469
lea ecx, [esp + 0x50]
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CDC::SelectObject
mov edx, dword [esp + 0x34]
push edi
inc edx
lea eax, [esp + 0xc4]
push edx
push eax
mov ecx, ebx
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x3c]
push edi
add ecx, 0xfffffffe
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CDC::LineTo
lea edx, [esp + 0x60]
mov ecx, ebx
push edx
call sub.MFC42.DLL_CDC::SelectObject
mov eax, dword [esp + 0x3c]
push edi
inc eax
lea ecx, [esp + 0xb4]
push eax
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esp + 0x3c]
push edi
add edx, 3
mov ecx, ebx
push edx
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0xa8]
test eax, eax
jne 0x52d4b9
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xf0]
push eax
push 0x581330
push 0xff
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
jmp 0x52d4e0
fld qword [esp + 0x28]
fmul qword [esp + 0xd8]
lea edx, [esp + 0xf0]
push edx
push 4
fadd qword [esp + 0xd8]
sub esp, 8
fstp qword [esp]
call fcn.004291a0
lea edi, [esp + 0x100]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x20]
mov edx, dword [ebx]
not ecx
dec ecx
lea eax, [esp + 0xf0]
push ecx
push eax
mov eax, dword [esp + 0x44]
lea ecx, [edi - 5]
add eax, 6
push ecx
push eax
mov ecx, ebx
call dword [edx + 0x64]
mov dword [esp + 0x4c], edi
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
add edx, ecx
mov ecx, dword [esp + 0x68]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edx
jl 0x52d3ef
mov edx, dword [esp + 0x98]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x30]
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x30]
mov edx, dword [esp + 0x18]
mov ecx, ebx
push edx
call sub.MFC42.DLL_CDC::SelectObject
mov esi, 0x565318
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], esi
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov edi, 0x565304
lea ecx, [esp + 0x58]
mov dword [esp + 0x44], edi
mov dword [esp + 0x58], esi
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x6c]
mov dword [esp + 0x58], edi
mov dword [esp + 0x6c], esi
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x50]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x50], esi
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x60]
mov dword [esp + 0x50], edi
mov dword [esp + 0x60], esi
call sub.MFC42.DLL_CGdiObject::DeleteObject
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8