Function at 0x4b63fc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x4b6405
mov eax, dword [ebp - 4]
add esp, 0xffffffdc
push ebx
push esi
push edi
mov ebx, eax
push 0xffffffffffffffeb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call sub.user32.dll_GetWindowLongA
push eax
push ebx
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
push 0x18
call sub.user32.dll_GetSysColor
push eax
call sub.gdi32.dll_CreateSolidBrush
mov esi, eax
push esi
push ebx
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x10], eax
push 0x17
call sub.user32.dll_GetSysColor
push eax
push 0
push 0
call sub.gdi32.dll_CreatePen
mov edi, eax
push edi
push ebx
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x14], eax
push 0x2000
lea eax, [ebp - 0x2026]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 0x2026]
mov dl, 0xa
call fcn.004b8284
test eax, eax
sete byte [ebp - 0x15]
lea eax, [ebp - 0x25]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call sub.user32.dll_GetClientRect
cmp byte [ebp - 0x15], 0
je 0x4b64e0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x2026]
call fcn.004b8144
push eax
lea eax, [ebp - 0x2026]
push eax
push ebx
call sub.gdi32.dll_GetTextExtentPoint32A
mov eax, dword [ebp - 0x25]
add eax, dword [ebp - 8]
add eax, 3
mov dword [ebp - 0x1d], eax
mov eax, dword [ebp - 0x21]
add eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 0x19], eax
jmp 0x4b650a
push 0x400
lea eax, [ebp - 0x25]
push eax
lea eax, [ebp - 0x2026]
call fcn.004b8144
push eax
lea eax, [ebp - 0x2026]
push eax
push ebx
call sub.user32.dll_DrawTextA
add dword [ebp - 0x19], 2
add dword [ebp - 0x1d], 3
mov eax, dword [0x4be33c]
cmp byte [eax], 0
jne 0x4b653e
push 0x52
mov eax, dword [ebp - 0x19]
sub eax, dword [ebp - 0x21]
push eax
mov eax, dword [ebp - 0x1d]
sub eax, dword [ebp - 0x25]
push eax
push 0
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call sub.user32.dll_SetWindowPos
mov eax, dword [0x4be33c]
mov byte [eax], 1
mov ecx, dword [ebp - 0x19]
mov edx, dword [ebp - 0x21]
sub ecx, edx
push ecx
mov ecx, dword [ebp - 0x1d]
mov eax, dword [ebp - 0x25]
sub ecx, eax
push ecx
push edx
push eax
push ebx
call sub.gdi32.dll_Rectangle
push 1
push ebx
call sub.gdi32.dll_SetBkMode
push 0x17
call sub.user32.dll_GetSysColor
push eax
push ebx
call sub.gdi32.dll_SetTextColor
cmp byte [ebp - 0x15], 0
je 0x4b65a1
lea eax, [ebp - 0x2026]
call fcn.004b8144
push eax
lea eax, [ebp - 0x2026]
push eax
mov eax, dword [0x4bedec]
movzx eax, byte [eax]
mov edx, 1
sub edx, eax
push edx
push 1
push ebx
call sub.gdi32.dll_TextOutA
jmp 0x4b65cd
push 0
push 1
lea eax, [ebp - 0x25]
push eax
call sub.user32.dll_OffsetRect
push 0
lea eax, [ebp - 0x25]
push eax
lea eax, [ebp - 0x2026]
call fcn.004b8144
push eax
lea eax, [ebp - 0x2026]
push eax
push ebx
call sub.user32.dll_DrawTextA
mov eax, dword [ebp - 0xc]
push eax
push ebx
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 0x10]
push eax
push ebx
call sub.gdi32.dll_SelectObject
push esi
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 0x14]
push eax
push ebx
call sub.gdi32.dll_SelectObject
push edi
call sub.gdi32.dll_DeleteObject
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret