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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x284
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
mov ebx, ecx
push 8
call edi
push eax
push 1
push 0
lea ecx, [esp + 0x68]
call sub.MFC42.DLL_CPen::CPen
push 0xcccccc
push 1
push 2
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CPen::CPen
push 0xb00000
push 2
push 0
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_CPen::CPen
push 0
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CBrush::CBrush
mov esi, dword [ebp + 8]
mov dword [esp + 0x2c], 0
test esi, esi
mov dword [esp + 0x28], 0x565230
je 0x52ccb5
lea eax, [ebx + 0x40]
push eax
mov dword [esp + 0x70], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x7b0]
mov dword [esp + 0x10], 0x20
cmp eax, 0x20
jl 0x52c428
mov dword [esp + 0x10], eax
mov ecx, dword [ebx + 0x68]
mov edx, dword [ebx + 0x60]
fild dword [esp + 0x10]
mov eax, ecx
sub eax, edx
fst qword [esp + 0x38]
sub eax, 4
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fdivrp st(1)
fst qword [ebx + 0x908]
fcomp qword [0x56e078]
fnstsw ax
test ah, 0x41
je 0x52c639
cmp ecx, 0x64
jl 0x52c5d7
cmp dword [ebx + 0x6c], 0x32
jl 0x52c5d7
lea ecx, [esp + 0x10]
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0x565230
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [ebx + 0x68]
mov eax, 0x66666667
imul ecx
sar edx, 1
mov ecx, edx
push 0
shr ecx, 0x1f
add edx, ecx
push str.Impact
push edx
lea ecx, [esp + 0x70]
call sub.MFC42.DLL_CFont::CreatePointFont
mov edx, dword [esi]
lea eax, [esp + 0x64]
push eax
mov ecx, esi
call dword [edx + 0x30]
mov edx, dword [esi]
push 0x808080
mov ecx, esi
mov dword [esp + 0x18], eax
call dword [edx + 0x38]
mov ecx, dword [0x5a0f78]
lea eax, [esp + 0x10]
push eax
push 0x1584
call fcn.004c27f0
mov ecx, dword [ebx + 0x918]
mov edx, dword [ebx + 0x914]
mov eax, dword [ebx + 0x910]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
lea edx, [esp + 0xa0]
push 0x1ff
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
mov eax, dword [ebx + 0x60]
mov ecx, dword [ebx + 0x64]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x6c]
add esp, 0x18
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], ecx
push 0x400
push eax
lea edi, [esp + 0x98]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebx + 0x68]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x28], edx
mov edx, dword [esi]
push ecx
lea ecx, [esp + 0x9c]
push ecx
mov ecx, esi
call dword [edx + 0x70]
mov edx, dword [ebx + 0x68]
mov ecx, dword [ebx + 0x6c]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x20], edx
mov edx, dword [ebx + 0x64]
mov eax, ecx
sub eax, edx
mov edx, dword [esp + 0x1c]
sub eax, edi
add eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x1c], eax
sub ecx, eax
lea eax, [esp + 0x18]
push 1
mov dword [esp + 0x28], ecx
push eax
lea edi, [esp + 0x98]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x9c]
push ecx
mov ecx, esi
call dword [edx + 0x70]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x52c5ba
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x30]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov ebx, 0x565318
lea ecx, [esp + 0x64]
mov dword [esp + 0x64], ebx
call sub.MFC42.DLL_CGdiObject::DeleteObject
jmp 0x52c5dc
mov ebx, 0x565318
mov eax, dword [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], ebx
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov esi, 0x565304
lea ecx, [esp + 0x44]
mov dword [esp + 0x28], esi
mov dword [esp + 0x44], ebx
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x4c]
mov dword [esp + 0x44], esi
mov dword [esp + 0x4c], ebx
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x30]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x30], ebx
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x30], esi
mov dword [esp + 0x5c], ebx
jmp 0x52cd07
lea ecx, [esp + 0x70]
lea edx, [esp + 0x80]
push ecx
push edx
mov ecx, ebx
call fcn.0052d5d0
push esi
push 0x5810d8
push 0x46
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CFont::CreatePointFont
mov eax, dword [esi]
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call dword [eax + 0x30]
push 6
mov ecx, esi
mov dword [esp + 0x90], eax
call sub.MFC42.DLL_CDC::SetTextAlign
mov edx, dword [esi]
push 8
mov dword [esp + 0x18], edx
call edi
mov edx, dword [esp + 0x14]
push eax
mov ecx, esi
call dword [edx + 0x38]
mov edi, dword [esi]
push 5
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov ecx, esi
call dword [edi + 0x34]
lea eax, [esp + 0x5c]
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::SelectObject
fld qword [ebx + 0x908]
fcomp qword [0x573f90]
mov dword [esp + 0x64], eax
fnstsw ax
test ah, 1
je 0x52c7db
mov eax, dword [ebx + 0x68]
mov ecx, dword [ebx + 0x60]
mov edx, eax
sub edx, ecx
lea edi, [ecx + 1]
dec edx
dec eax
mov dword [esp + 0x10], edx
cmp edi, eax
fild dword [esp + 0x10]
mov dword [esp + 0x14], edi
fdivr qword [esp + 0x38]
fstp qword [esp + 0x38]
jge 0x52c8e0
lea eax, [edi + 1]
mov dword [esp + 0x10], eax
jmp 0x52c6fd
mov edi, dword [esp + 0x14]
test byte [ebx + 0x58], 0x10
je 0x52c742
mov ecx, dword [ebx + 0x60]
inc ecx
cmp edi, ecx
je 0x52c742
lea edx, [esp + 0x30]
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::SelectObject
mov eax, dword [ebx + 0x64]
lea ecx, [esp + 0x54]
inc eax
push eax
push edi
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [ebx + 0x6c]
mov ecx, esi
dec edx
push edx
push edi
call sub.MFC42.DLL_CDC::LineTo
lea eax, [esp + 0x5c]
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::SelectObject
mov ecx, dword [ebx + 0x6c]
lea edx, [esp + 0x78]
push ecx
push edi
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [ebx + 0x6c]
mov ecx, esi
add eax, 2
push eax
push edi
call sub.MFC42.DLL_CDC::LineTo
fild dword [esp + 0x14]
fmul qword [esp + 0x38]
call sub.MSVCRT.dll__ftol
push eax
push 0x581330
lea ecx, [esp + 0x98]
push 0x1ff
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
lea edi, [esp + 0xa0]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
mov edi, dword [esp + 0x10]
mov edx, dword [esi]
dec ecx
lea eax, [esp + 0x90]
push ecx
mov ecx, dword [ebx + 0x6c]
add ecx, 2
push eax
push ecx
push edi
mov ecx, esi
call dword [edx + 0x64]
mov eax, dword [esp + 0x14]
mov edx, dword [ebx + 0x68]
add eax, 0x20
add edi, 0x20
dec edx
mov dword [esp + 0x14], eax
cmp eax, edx
mov dword [esp + 0x10], edi
jl 0x52c6f9
jmp 0x52c8e0
mov ecx, dword [esp + 0x10]
mov eax, 1
cmp ecx, eax
mov dword [esp + 0x14], eax
jle 0x52c8e0
test byte [ebx + 0x58], 0x10
je 0x52c843
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::SelectObject
fild dword [esp + 0x14]
fmul qword [ebx + 0x908]
call sub.MSVCRT.dll__ftol
mov ecx, dword [ebx + 0x60]
mov edi, eax
add edi, ecx
mov ecx, dword [ebx + 0x64]
inc ecx
lea edx, [esp + 0x78]
push ecx
push edi
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [ebx + 0x6c]
mov ecx, esi
dec eax
push eax
push edi
call sub.MFC42.DLL_CDC::LineTo
lea ecx, [esp + 0x5c]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject
fild dword [esp + 0x14]
fmul qword [ebx + 0x908]
call sub.MSVCRT.dll__ftol
mov ecx, dword [ebx + 0x60]
mov edx, dword [ebx + 0x6c]
mov edi, eax
push edx
add edi, ecx
lea eax, [esp + 0x3c]
push edi
push eax
mov ecx, esi
mov dword [esp + 0x60], edi
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [ebx + 0x6c]
add ecx, 2
push ecx
push edi
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x90]
push edx
push 0x581330
push 0x1ff
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea edi, [esp + 0xa0]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
mov edx, dword [esi]
dec ecx
lea eax, [esp + 0x90]
push ecx
mov ecx, dword [ebx + 0x6c]
push eax
mov eax, dword [esp + 0x5c]
add ecx, 2
inc eax
push ecx
push eax
mov ecx, esi
call dword [edx + 0x64]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x52c7f0
lea ecx, [ebx + 0x60]
mov edx, ecx
mov eax, dword [edx]
mov dword [esp + 0x18], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x44]
mov edx, dword [edx + 0xc]
neg eax
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x48]
sbb eax, eax
and eax, edx
push eax
mov eax, dword [esi + 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_FrameRect]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
inc edx
lea edi, [ecx - 2]
cmp edi, edx
jle 0x52c9a2
test byte [ebx + 0x58], 0x10
je 0x52c976
mov eax, dword [esp + 0x24]
add eax, 0xfffffffe
cmp edi, eax
je 0x52c976
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject
mov edx, dword [esp + 0x18]
push edi
inc edx
lea eax, [esp + 0x7c]
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x20]
push edi
add ecx, 0xfffffffe
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
lea edx, [esp + 0x5c]
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::SelectObject
mov eax, dword [esp + 0x20]
push edi
lea ecx, [esp + 0x3c]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esp + 0x20]
push edi
inc edx
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x1c]
sub edi, 0x20
inc eax
cmp edi, eax
jg 0x52c92a
push 0
mov ecx, esi
call sub.MFC42.DLL_CDC::SetTextAlign
fld qword [esp + 0x80]
fcomp qword [ebx + 0x7d0]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
inc edx
dec ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], ecx
fnstsw ax
test ah, 1
jne 0x52c9eb
mov eax, dword [ebx + 0x7d0]
mov dword [ebx + 0x8f8], eax
mov eax, dword [ebx + 0x7d4]
mov dword [ebx + 0x8fc], eax
jmp 0x52ca05
mov eax, dword [esp + 0x80]
mov edi, dword [esp + 0x84]
mov dword [ebx + 0x8f8], eax
mov dword [ebx + 0x8fc], edi
fld qword [esp + 0x70]
fsub qword [ebx + 0x8f8]
fmul qword [0x56e078]
fld qword [esp + 0x70]
fcomp qword [ebx + 0x8f8]
fnstsw ax
test ah, 0x40
je 0x52ca2e
fstp st(0)
fld qword [0x579c10]
fld st(0)
fadd st(0), st(0)
mov eax, ecx
mov dword [esp + 0x14], ecx
sub eax, edx
fadd qword [esp + 0x70]
dec eax
inc edx
mov dword [esp + 0x54], eax
cmp ecx, edx
fst qword [esp + 0x38]
fstp qword [ebx + 0x900]
fsubr qword [ebx + 0x8f8]
fst qword [ebx + 0x8f8]
fld qword [esp + 0x38]
fsub st(1)
fild dword [esp + 0x54]
fdivp st(1)
fstp qword [esp + 0x38]
fstp st(0)
jle 0x52caf5
jmp 0x52ca7a
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov edx, dword [ebx + 0x7e0]
sub ecx, eax
push edx
mov dword [esp + 0x58], ecx
sub esp, 8
fild dword [esp + 0x60]
lea eax, [esp + 0x9c]
fmul qword [esp + 0x44]
fadd qword [ebx + 0x8f8]
fstp qword [esp]
push 0x200
push eax
call fcn.00429bd0
lea edi, [esp + 0xa4]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x14]
mov edx, dword [esi]
not ecx
dec ecx
lea eax, [esp + 0x90]
push ecx
push eax
mov eax, dword [esp + 0x28]
lea ecx, [edi - 7]
add eax, 4
push ecx
push eax
mov ecx, esi
call dword [edx + 0x64]
mov ecx, dword [esp + 0x1c]
sub edi, 0x20
inc ecx
mov dword [esp + 0x14], edi
cmp edi, ecx
jg 0x52ca76
mov eax, dword [ebx + 0x7ac]
test eax, eax
je 0x52cc8f
mov eax, dword [ebx + 0x7b0]
test eax, eax
jle 0x52cc8f
lea edx, [esp + 0x18]
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::IntersectClipRect_1
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov eax, edi
sub eax, ecx
dec eax
mov dword [esp + 0x54], eax
fild dword [esp + 0x54]
fld qword [ebx + 0x900]
fsub qword [ebx + 0x8f8]
fdivp st(1)
fstp qword [esp + 0x38]
fld qword [ebx + 0x7d0]
fsub qword [ebx + 0x8f8]
fmul qword [esp + 0x38]
call sub.MSVCRT.dll__ftol
lea ecx, [esp + 0x4c]
sub edi, eax
push ecx
mov ecx, esi
dec edi
call sub.MFC42.DLL_CDC::SelectObject
mov edx, dword [esp + 0x18]
push edi
inc edx
lea eax, [esp + 0x7c]
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [ebx + 0x7b0]
xor ecx, ecx
cmp eax, ecx
jle 0x52cc02
mov dword [esp + 0x10], ecx
mov edx, dword [ebx + 0x7ac]
mov eax, dword [esp + 0x10]
fld qword [eax + edx + 8]
fcom qword [0x57bf38]
fnstsw ax
test ah, 0x40
je 0x52cbae
fstp st(0)
fld qword [ebx + 0x900]
fsub qword [ebx + 0x8f8]
lea edi, [ecx + 1]
mov dword [esp + 0x54], edi
fmul qword [esp + 0x38]
call sub.MSVCRT.dll__ftol
fild dword [esp + 0x54]
mov ecx, dword [esp + 0x24]
sub ecx, eax
fmul qword [ebx + 0x908]
dec ecx
push ecx
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x1c]
mov ecx, esi
lea eax, [eax + edx + 1]
push eax
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 0x7b0]
mov ecx, edi
add edx, 0x10
cmp ecx, eax
mov dword [esp + 0x10], edx
jl 0x52cb8b
push 2
mov ecx, esi
call sub.MFC42.DLL_CDC::SetBkMode
push 0
mov ecx, esi
call sub.MFC42.DLL_CDC::SetTextAlign
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x52cc4b
push eax
lea ecx, [esp + 0x14]
call fcn.005625b4
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
mov ecx, dword [eax - 8]
push ecx
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
add eax, 2
add ecx, 4
push eax
push ecx
mov ecx, esi
call dword [edx + 0x64]
lea ecx, [esp + 0x10]
jmp 0x52cc7f
add ebx, 0x7e4
lea ecx, [esp + 0x10]
push ebx
call fcn.005625b4
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
mov ecx, dword [eax - 8]
push ecx
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
add eax, 2
add ecx, 4
push eax
push ecx
mov ecx, esi
call dword [edx + 0x64]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
push 5
push 0
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectClipRgn
mov edx, dword [esp + 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x8c]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov edx, dword [esp + 0x64]
mov ecx, esi
push edx
call sub.MFC42.DLL_CDC::SelectObject
mov edi, 0x565318
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], edi
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov esi, 0x565304
lea ecx, [esp + 0x44]
mov dword [esp + 0x28], esi
mov dword [esp + 0x44], edi
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x4c]
mov dword [esp + 0x44], esi
mov dword [esp + 0x4c], edi
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x30]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x30], edi
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x30], esi
mov dword [esp + 0x5c], edi
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CGdiObject::DeleteObject
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8