Function at 0x402c00
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x40cfe1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], ecx
push 0x939393
push 1
push 0
lea ecx, [esp + 0x70]
call sub.MFC42.DLL_CPen::CPen
lea ecx, [esp + 0x34]
mov dword [esp + 0xbc], 0
call fcn.00401b60
mov dword [esp + 0x34], 0x40eac4
push 0
push 0x412194
push 0x5a
lea ecx, [esp + 0x40]
mov byte [esp + 0xc8], 1
call sub.MFC42.DLL_CFont::CreatePointFont
mov esi, dword [esp + 0xc8]
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x30]
lea edx, [esp + 0x4c]
mov dword [esp + 0x60], eax
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
push 1
mov ecx, esi
call sub.MFC42.DLL_CDC::SetBkMode
mov ecx, dword [esi + 8]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x7c]
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x8c]
mov edi, 0x412188
or ecx, 0xffffffff
lea ebx, [eax + edx]
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esi + 8]
lea edx, [esp + 0x2c]
not ecx
dec ecx
push edx
push ecx
push 0x412188
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x2c]
lea ebp, [ebx + ebx*2]
lea edx, [edi - 3]
shl ebp, 1
lea eax, [eax + ecx + 3]
mov dword [esp + 0x58], ebp
sub edi, ebp
mov dword [esp + 0x48], edx
lea ebp, [ecx + 3]
mov edx, eax
sub edx, ebp
sub edi, 3
add edx, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x44], eax
cmp edx, dword [ecx + 0x60]
jl 0x402d37
mov edx, eax
lea ecx, [ebp + ebp - 6]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x48]
sub ecx, eax
lea eax, [ebp - 6]
mov dword [esp + 0x6c], ebp
mov ebp, ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x50]
mov eax, edi
sub eax, ecx
add eax, edx
test eax, eax
jg 0x402d69
mov edx, dword [esp + 0x44]
mov eax, ecx
sub eax, edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x78], ecx
mov dword [esp + 0x44], edx
lea edi, [eax + edi + 6]
lea eax, [eax + ecx + 6]
mov dword [esp + 0x48], eax
push 5
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push ecx
mov dword [esp + 0x58], eax
mov eax, dword [esi + 4]
push edx
push edi
push ebp
push eax
call dword [sym.imp.GDI32.dll_Rectangle]
mov ecx, dword [esp + 0x2c]
add edi, 2
add ecx, ebp
push 0x41217c
lea eax, [edi + ebx]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], eax
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
lea ecx, [esp + 0x1c]
push 1
push ecx
mov ecx, dword [eax - 8]
push ecx
push eax
mov ecx, esi
mov byte [esp + 0xcc], 2
call dword [edx + 0x70]
mov edx, dword [esp + 0x14]
lea eax, [edi + ebx*2]
mov dword [esp + 0x2c], eax
push eax
mov eax, dword [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x28]
push ebp
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0xc4]
lea ecx, [esp + 0x10]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
push str.__d__d_
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
mov edx, dword [esi]
add esp, 0x10
lea ecx, [esp + 0x1c]
push 1
push ecx
mov ecx, dword [eax - 8]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x70]
mov ecx, dword [esp + 0x2c]
lea edx, [edi + ebx*2]
lea eax, [ebx + edx]
mov dword [esp + 0x18], eax
push eax
mov eax, dword [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x28]
push ebp
push edx
call dword [sym.imp.USER32.dll_SetRect]
push 0x412168
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
lea ecx, [esp + 0x1c]
push 1
push ecx
mov ecx, dword [eax - 8]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x70]
mov edx, dword [esp + 0x14]
lea eax, [edi + ebx*4]
mov dword [esp + 0x2c], eax
push eax
mov eax, dword [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x28]
push ebp
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0xc4]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 4]
sub edx, ecx
mov ecx, dword [eax + 8]
push edx
mov edx, dword [eax]
sub ecx, edx
lea edx, [esp + 0x14]
push ecx
push str.__d__d_
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
mov edx, dword [esi]
add esp, 0x10
lea ecx, [esp + 0x1c]
push 1
push ecx
mov ecx, dword [eax - 8]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x70]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
lea edx, [edi + ebx*4]
add ebx, edx
lea edx, [esp + 0x1c]
push ebx
push eax
push ecx
push ebp
push edx
call dword [sym.imp.USER32.dll_SetRect]
push 0x41215c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
lea ecx, [esp + 0x1c]
push 1
push ecx
mov ecx, dword [eax - 8]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x70]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x14]
add edi, edx
push edi
push eax
push ebx
lea ecx, [esp + 0x28]
push ebp
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
push edx
push eax
lea ecx, [esp + 0x18]
push str.__d__d_
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
mov edx, dword [esi]
add esp, 0x10
lea edi, [esp + 0x1c]
mov ecx, dword [eax - 8]
push 1
push edi
push ecx
push eax
mov ecx, esi
call dword [edx + 0x70]
mov eax, dword [esp + 0x5c]
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::SetBkMode
mov eax, dword [esp + 0x60]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x30]
mov ecx, dword [esp + 0x54]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject
lea ecx, [esp + 0x10]
mov byte [esp + 0xbc], 1
call fcn.0040c77a
mov esi, 0x40e7b8
mov dword [esp + 0x34], esi
lea ecx, [esp + 0x34]
mov byte [esp + 0xbc], 3
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x34], 0x40e7a4
mov dword [esp + 0x64], esi
lea ecx, [esp + 0x64]
mov dword [esp + 0xbc], 4
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb0
ret 8