Function at 0x402b80
Capabilities:
Access peb ldr_data
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x403c88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [esp + 0x38]
push ebp
push esi
mov esi, ecx
push edi
push eax
lea ebp, [esi + 0x40]
mov ecx, ebp
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
call fcn.004030a0
mov dword [esp + 0x1c], 0x4047b8
mov eax, dword [esi + 0x54]
mov cl, byte [esi + 0x5c]
push eax
push 0
mov byte [esp + 0x4c], cl
mov edx, dword [esp + 0x4c]
push 0
mov ecx, dword [esi + 0x58]
push 0
push 0
push 0
and edx, 0xff
push 0
push edx
push 0
push 0
push 0
push 0
push 0
push ecx
mov dword [esp + 0x74], 0
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CGdiObject::Attach
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [esp + 0x20]
mov edi, eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x64]
test eax, eax
jle 0x402cc2
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x24]
push ebx
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
lea edx, [esp + 0x28]
mov ecx, eax
push edx
call sub.MFC42.DLL_CWnd::ScreenToClient
mov eax, dword [esi + 0x64]
lea ecx, [esp + 0x48]
push eax
push 0x61
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [ebp]
mov edx, dword [esp + 0x48]
mov ebp, dword [ecx - 8]
mov ecx, dword [edx - 8]
mov eax, ebp
cdq
idiv ecx
mov ebx, eax
mov eax, ebp
cdq
idiv ecx
test edx, edx
je 0x402c85
inc ebx
lea eax, [esp + 0x18]
push eax
push ecx
mov ecx, dword [esp + 0x50]
push ecx
push edi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
imul ecx, ebx
add eax, edx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x2c]
add ecx, eax
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x48]
call fcn.00403328
pop ebx
jmp 0x402d01
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebp, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
mov eax, dword [ebp - 8]
push eax
push ebp
push edi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
add eax, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
add edx, ecx
mov dword [esp + 0x30], edx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
sub eax, edx
sub ecx, ebp
push eax
push ecx
lea edx, [esp + 0x14]
push str.CControlText::SetText_rectC.Width__:_d__rectC.Height__:_d_n
push edx
mov byte [esp + 0x4c], 1
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov eax, dword [esi + 0x20]
sub ecx, edx
mov edx, dword [esp + 0x2c]
push 6
sub edx, ebp
push ecx
push edx
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x10]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esi + 0x20]
push edi
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esi + 0x20]
push 0
push 0
push 0xf
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 0
call fcn.00403328
mov dword [esp + 0x1c], 0x404408
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x34
ret 4