Function at 0x47c104
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 0x1c]
xor eax, eax
push ebp
push 0x47c40b
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
je 0x47c17e
push 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.gdi32.dll_GetDeviceCaps
cmp eax, 0xf
jl 0x47c17e
mov edx, esi
mov eax, dword [ebp - 0xc]
call fcn.0047bc94
mov byte [ebp - 0xd], al
push edi
call sub.user32.dll_IsWindowEnabled
test eax, eax
je 0x47c16f
lea eax, [ebp - 0xc]
mov cl, byte [ebp - 0xd]
mov edx, esi
call fcn.0047bcec
jmp 0x47c17e
mov edx, esi
shr edx, 1
lea eax, [ebp - 0xc]
mov cl, byte [ebp - 0xd]
call fcn.0047bcec
test ebx, ebx
je 0x47c192
push edi
mov esi, ebx
lea edi, [ebp - 0x34]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
jmp 0x47c19c
lea eax, [ebp - 0x34]
push eax
push edi
call sub.user32.dll_GetClientRect
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_CreateSolidBrush
mov ebx, eax
push ebx
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.user32.dll_FillRect
push ebx
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 4]
cmp edi, dword [eax + 0x44]
jne 0x47c2c2
mov eax, dword [ebp - 4]
cmp dword [eax + 0x6c], 0
je 0x47c2c2
cmp dword [ebp + 0x10], 0xffffffff
jne 0x47c1fd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
call fcn.0041ce20
imul dword [ebp - 0x2c]
add eax, 0x7530
mov ecx, 0xea60
xor edx, edx
div ecx
mov esi, eax
jmp 0x47c200
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
mov dword [eax + 0x74], esi
push 0xf
call sub.user32.dll_GetSysColor
mov dword [ebp - 0x14], eax
push ebp
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov eax, esi
call fcn.0047bdc0
pop ecx
push 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.gdi32.dll_GetDeviceCaps
cmp eax, 0xf
jl 0x47c2c2
mov eax, dword [ebp - 0x14]
and eax, 0xff00
mov dword [ebp - 0x18], eax
and dword [ebp - 0x14], 0xff00ff
mov eax, dword [ebp - 0xc]
and eax, 0xff00
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
and eax, 0xff00ff
mov dword [ebp - 0x1c], eax
xor ebx, ebx
mov eax, 4
sub eax, ebx
imul dword [ebp - 0x14]
mov edx, ebx
imul edx, dword [ebp - 0x1c]
add eax, edx
shr eax, 2
and eax, 0xff00ff
mov edx, 4
sub edx, ebx
imul edx, dword [ebp - 0x18]
mov ecx, ebx
imul ecx, dword [ebp - 0x20]
add edx, ecx
shr edx, 2
and edx, 0xff00
add eax, edx
mov dword [ebp - 0x24], eax
push ebp
lea eax, [ebx + esi]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
call fcn.0047bdc0
pop ecx
push ebp
mov eax, esi
sub eax, ebx
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
call fcn.0047bdc0
pop ecx
inc ebx
cmp ebx, 4
jne 0x47c260
cmp byte [ebp + 8], 0
je 0x47c2e1
push 0x210
push 4
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.user32.dll_DrawFrameControl
jmp 0x47c2f5
push 0x10
push 4
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.user32.dll_DrawFrameControl
push ebp
mov eax, dword [0x5bbdf4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov edx, edi
call fcn.0047be80
pop ecx
test al, al
jne 0x47c31f
push ebp
push 0
call sub.kernel32.dll_GetModuleHandleA_1
mov ecx, dword [ebp - 0xc]
mov edx, edi
call fcn.0047be80
pop ecx
push 0x1e
lea eax, [ebp - 0x53]
push eax
push edi
call sub.user32.dll_GetWindowTextA
mov ebx, eax
push 0
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x53]
mov ecx, 0x1f
call fcn.00403ec8
mov ecx, dword [ebp - 0x58]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0047bc04
mov esi, dword [ebp - 0x2c]
sub esi, dword [ebp - 0x34]
sub esi, eax
sub esi, 0x1b
sub esi, 8
sar esi, 1
jns 0x47c361
adc esi, 0
push edi
call sub.user32.dll_IsWindowEnabled
test eax, eax
jne 0x47c3a9
push 0xffffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.gdi32.dll_SetTextColor
push ebx
lea eax, [ebp - 0x53]
push eax
push 5
lea eax, [esi + 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.gdi32.dll_TextOutA
push 0x15
call sub.user32.dll_GetSysColor
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.gdi32.dll_SetTextColor
jmp 0x47c3b9
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.gdi32.dll_SetTextColor
push ebx
lea eax, [ebp - 0x53]
push eax
push 6
add esi, 0x1b
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.gdi32.dll_TextOutA
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0
mov eax, dword [ebp + 0x14]
push eax
call sub.gdi32.dll_BitBlt
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c412
lea eax, [ebp - 0x58]
call fcn.00403c9c
ret