Function at 0x4b7d3c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
push 2
lea eax, [ebp - 0x17]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 0x27]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
call sub.user32.dll_GetClientRect
mov bl, byte [ebp - 0x17]
sub bl, 0x30
push 5
call sub.gdi32.dll_GetStockObject
push eax
push esi
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
mov eax, dword [0x4be784]
mov al, byte [eax + 0x187e]
cmp al, 3
jne 0x4b7d91
mov bl, 3
mov edx, dword [0x4be784]
cmp al, 4
jne 0x4b7d9d
mov bl, 4
push 0x14
call sub.user32.dll_GetSysColor
push eax
push 1
push 0
call sub.gdi32.dll_CreatePen
mov edi, eax
push 0x10
call sub.user32.dll_GetSysColor
push eax
push 1
push 0
call sub.gdi32.dll_CreatePen
mov dword [ebp - 0x10], eax
cmp bl, 1
jne 0x4b7dd5
push edi
push esi
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x14], eax
jmp 0x4b7de2
mov eax, dword [ebp - 0x10]
push eax
push esi
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x14], eax
cmp bl, 2
ja 0x4b7fae
mov eax, dword [0x4be784]
cmp byte [eax + 0x187e], 0
jne 0x4b7e0f
mov eax, dword [0x4be9e8]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [0x4bebb0]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x4b7e23
mov eax, dword [0x4be494]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [0x4be5ec]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov ax, word [ebp - 0x27]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [0x4be678]
mov eax, dword [eax]
push eax
push 0x46
mov cx, word [ebp - 0x1b]
sub cx, 2
mov dx, word [ebp - 0x23]
mov eax, esi
call fcn.004b6290
mov eax, dword [0x4be784]
cmp byte [eax + 0x187e], 2
jne 0x4b7e82
mov ax, word [ebp - 0x27]
inc eax
push eax
mov eax, dword [0x4bee98]
mov eax, dword [eax]
push eax
mov eax, dword [0x4be678]
mov eax, dword [eax]
push eax
push 0x46
mov cx, word [ebp - 0x1b]
sub cx, 3
mov dx, word [ebp - 0x23]
mov eax, esi
call fcn.004b6290
mov ax, word [ebp - 0x1f]
dec eax
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x4be678]
mov eax, dword [eax]
push eax
push 0x46
mov cx, word [ebp - 0x23]
inc ecx
mov dx, word [ebp - 0x1b]
mov eax, esi
call fcn.004b6290
mov eax, dword [0x4be784]
cmp byte [eax + 0x187e], 2
jne 0x4b7ee2
mov ax, word [ebp - 0x1f]
sub ax, 2
push eax
mov eax, dword [0x4bebb0]
mov eax, dword [eax]
push eax
mov eax, dword [0x4be678]
mov eax, dword [eax]
push eax
push 0x46
mov cx, word [ebp - 0x23]
add cx, 2
mov dx, word [ebp - 0x1b]
mov eax, esi
call fcn.004b6290
mov ax, word [ebp - 0x23]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [0x4be678]
mov eax, dword [eax]
push eax
push 0x46
mov cx, word [ebp - 0x1f]
sub cx, 2
mov dx, word [ebp - 0x27]
inc edx
mov eax, esi
call fcn.004b6128
mov eax, dword [0x4be784]
cmp byte [eax + 0x187e], 2
jne 0x4b7f46
mov ax, word [ebp - 0x23]
inc eax
push eax
mov eax, dword [0x4bee98]
mov eax, dword [eax]
push eax
mov eax, dword [0x4be678]
mov eax, dword [eax]
push eax
push 0x46
mov cx, word [ebp - 0x1f]
sub cx, 3
mov dx, word [ebp - 0x27]
add dx, 2
mov eax, esi
call fcn.004b6128
mov ax, word [ebp - 0x1b]
dec eax
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x4be678]
mov eax, dword [eax]
push eax
push 0x46
mov cx, word [ebp - 0x27]
inc ecx
mov dx, word [ebp - 0x1f]
sub dx, 2
mov eax, esi
call fcn.004b6128
mov eax, dword [0x4be784]
cmp byte [eax + 0x187e], 2
jne 0x4b7fae
mov ax, word [ebp - 0x1b]
sub ax, 2
push eax
mov eax, dword [0x4bebb0]
mov eax, dword [eax]
push eax
mov eax, dword [0x4be678]
mov eax, dword [eax]
push eax
push 0x46
mov cx, word [ebp - 0x27]
add cx, 2
mov dx, word [ebp - 0x1f]
sub dx, 3
mov eax, esi
call fcn.004b6128
cmp bl, 3
jne 0x4b7ff4
push edi
push esi
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 0x1b]
push eax
mov eax, dword [ebp - 0x1f]
push eax
mov eax, dword [ebp - 0x23]
inc eax
push eax
mov eax, dword [ebp - 0x27]
inc eax
push eax
push esi
call sub.gdi32.dll_Rectangle
mov eax, dword [ebp - 0x10]
push eax
push esi
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 0x1b]
dec eax
push eax
mov eax, dword [ebp - 0x1f]
dec eax
push eax
mov eax, dword [ebp - 0x23]
push eax
mov eax, dword [ebp - 0x27]
push eax
push esi
call sub.gdi32.dll_Rectangle
cmp bl, 4
jne 0x4b803a
mov eax, dword [ebp - 0x10]
push eax
push esi
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 0x1b]
push eax
mov eax, dword [ebp - 0x1f]
push eax
mov eax, dword [ebp - 0x23]
inc eax
push eax
mov eax, dword [ebp - 0x27]
inc eax
push eax
push esi
call sub.gdi32.dll_Rectangle
push edi
push esi
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 0x1b]
dec eax
push eax
mov eax, dword [ebp - 0x1f]
dec eax
push eax
mov eax, dword [ebp - 0x23]
push eax
mov eax, dword [ebp - 0x27]
push eax
push esi
call sub.gdi32.dll_Rectangle
cmp bl, 1
jne 0x4b804b
mov eax, dword [ebp - 0x10]
push eax
push esi
call sub.gdi32.dll_SelectObject
jmp 0x4b8052
push edi
push esi
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 0x14]
push eax
push esi
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 0xc]
push eax
push esi
call sub.gdi32.dll_SelectObject
push edi
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_DeleteObject
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret