Function at 0x424288
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 + 8]
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
xor eax, eax
push ebp
push 0x424557
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
je 0x424302
push 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.gdi32.dll_GetDeviceCaps
cmp eax, 0xf
jl 0x424302
mov edx, esi
mov eax, dword [ebp - 0xc]
call fcn.00423e18
mov byte [ebp - 0xd], al
push edi
call sub.user32.dll_IsWindowEnabled
test eax, eax
je 0x4242f3
lea eax, [ebp - 0xc]
mov cl, byte [ebp - 0xd]
mov edx, esi
call fcn.00423e70
jmp 0x424302
mov edx, esi
shr edx, 1
lea eax, [ebp - 0xc]
mov cl, byte [ebp - 0xd]
call fcn.00423e70
test ebx, ebx
je 0x424313
push edi
mov esi, ebx
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
jmp 0x42431d
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 0x424443
mov eax, dword [ebp - 4]
cmp dword [eax + 0x6c], 0
je 0x424443
cmp dword [ebp + 0xc], 0xffffffff
jne 0x42437e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
call fcn.0040aef4
imul dword [ebp - 0x2c]
add eax, 0x7530
mov ecx, 0xea60
xor edx, edx
div ecx
mov esi, eax
jmp 0x424381
mov esi, dword [ebp + 0xc]
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.00423f44
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 0x424443
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.00423f44
pop ecx
push ebp
mov eax, esi
sub eax, ebx
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
call fcn.00423f44
pop ecx
inc ebx
cmp ebx, 4
jne 0x4243e1
push ebp
mov ecx, dword [ebp - 0xc]
mov edx, edi
mov eax, dword [0x489664]
call fcn.00424004
pop ecx
test al, al
jne 0x42446b
push ebp
push 0
call sub.kernel32.dll_GetModuleHandleA_2
mov ecx, dword [ebp - 0xc]
mov edx, edi
call fcn.00424004
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.004047d0
mov ecx, dword [ebp - 0x58]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00423d88
mov esi, dword [ebp - 0x2c]
sub esi, dword [ebp - 0x34]
sub esi, eax
sub esi, 0x1b
sub esi, 8
sar esi, 1
jns 0x4244ad
adc esi, 0
push edi
call sub.user32.dll_IsWindowEnabled
test eax, eax
jne 0x4244f5
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 0x424505
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 4
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 + 0x10]
push eax
call sub.gdi32.dll_BitBlt
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42455e
lea eax, [ebp - 0x58]
call fcn.00404560
ret