Function at 0x4066a2
Capabilities:
Get graphical window text

Disassembly:
push 0xc0
mov eax, 0x407fee
call fcn.00407f5f
mov esi, ecx
mov dword [ebp - 0xb4], esi
xor edi, edi
mov dword [ebp - 4], edi
mov eax, esi
neg eax
lea ecx, [esi - 0x20]
sbb eax, eax
and eax, ecx
lea ecx, [ebp - 0xa8]
push ecx
push dword [eax + 4]
mov dword [ebp - 0xb0], eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 4]
cmp eax, edi
push 4
pop ebx
je 0x40696b
lea ecx, [ebp - 0xcc]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov dword [ebp - 0x94], edi
mov byte [ebp - 4], 1
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x94], eax
push dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, 0xcc0020
push esi
push edi
push edi
push dword [ebp - 0x94]
mov dword [ebp - 0xac], eax
push 0x1b
push ebx
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [ebp - 0xc8]
mov eax, dword [ebp - 0xa0]
sub eax, dword [ebp - 0xa8]
push esi
push 0x1b
add ecx, 0xfffffff8
push ecx
push edi
push ebx
push dword [ebp - 0x94]
sub eax, 8
push 0x1b
push eax
push edi
mov edi, dword [sym.imp.GDI32.dll_StretchBlt]
push ebx
push dword [ebp + 8]
call edi
mov ecx, dword [ebp - 0xc8]
mov eax, dword [ebp - 0xa0]
sub eax, dword [ebp - 0xa8]
push esi
push 0
add ecx, 0xfffffffc
push ecx
push dword [ebp - 0x94]
sub eax, ebx
push 0x1b
push ebx
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [ebp - 0xc4]
mov eax, dword [ebp - 0x9c]
sub eax, dword [ebp - 0xa4]
push esi
add ecx, 0xffffffbe
push ecx
push ebx
push 0x1b
push 0
push dword [ebp - 0x94]
sub eax, 0x42
push eax
push ebx
push 0x1b
push 0
push dword [ebp + 8]
call edi
mov eax, dword [ebp - 0xc4]
mov edx, dword [ebp - 0xc8]
add eax, 0xffffffbe
mov dword [ebp - 0x98], eax
add edx, 0xfffffff8
mov eax, dword [ebp - 0x9c]
sub eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xa0]
sub ecx, dword [ebp - 0xa8]
push esi
push dword [ebp - 0x98]
sub eax, 0x42
push edx
push 0x1b
push ebx
push dword [ebp - 0x94]
sub ecx, 8
push eax
push ecx
push 0x1b
push ebx
push dword [ebp + 8]
call edi
mov edx, dword [ebp - 0xc4]
mov eax, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0xa0]
sub ecx, dword [ebp - 0xa8]
push esi
add edx, 0xffffffbe
push edx
push ebx
push 0x1b
add eax, 0xfffffffc
mov dword [ebp - 0x98], eax
push dword [ebp - 0x98]
mov eax, dword [ebp - 0x9c]
push dword [ebp - 0x94]
sub eax, dword [ebp - 0xa4]
sub ecx, ebx
sub eax, 0x42
push eax
push ebx
push 0x1b
push ecx
push dword [ebp + 8]
call edi
mov ecx, dword [ebp - 0xc4]
mov eax, dword [ebp - 0x9c]
sub eax, dword [ebp - 0xa4]
push esi
add ecx, 0xffffffd9
push ecx
push 0
push dword [ebp - 0x94]
sub eax, 0x27
push 0x27
push ebx
push eax
push 0
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [ebp - 0xc8]
mov eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0x9c]
sub ecx, dword [ebp - 0xa4]
push esi
push 0x27
add eax, 0xffffffd9
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0xa0]
sub eax, dword [ebp - 0xa8]
add edx, 0xfffffff8
push edx
push dword [ebp - 0x98]
sub eax, 8
push ebx
push dword [ebp - 0x94]
sub ecx, 0x27
push 0x27
push eax
push ecx
push ebx
push dword [ebp + 8]
call edi
mov edx, dword [ebp - 0xc4]
add edx, 0xffffffd9
mov edi, dword [ebp - 0xc8]
mov eax, dword [ebp - 0x9c]
sub eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xa0]
sub ecx, dword [ebp - 0xa8]
push esi
mov esi, dword [ebp - 0x94]
push edx
add edi, 0xfffffffc
push edi
push esi
push 0x27
push ebx
sub eax, 0x27
push eax
sub ecx, ebx
push ecx
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0xac]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov byte [ebp - 4], 0
test esi, esi
je 0x406963
and dword [ebp - 0x94], 0
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov esi, dword [ebp - 0xb4]
xor edi, edi
mov eax, dword [ebp - 0xb0]
push edi
push edi
push 0x7f
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, edi
mov dword [ebp - 0xac], eax
je 0x4069c3
push 3
push edi
push edi
push 0x32
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 0x31
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push dword [ebp - 0xac]
push 0x32
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x1b
pop ecx
sub ecx, eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawIconEx]
push 0x7e
lea eax, [ebp - 0x8e]
push edi
push eax
mov word [ebp - 0x90], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x40
lea eax, [ebp - 0x90]
push eax
mov eax, dword [ebp - 0xb0]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x90], di
je 0x406abb
mov ebx, dword [ebp - 0xa0]
push 0x31
add ebx, 0xfffffffc
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add eax, 7
push 0x11
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xb8], 0x1b
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp + 8]
call ebx
mov edi, dword [sym.imp.GDI32.dll_SetBkMode]
push 1
push dword [ebp + 8]
mov dword [ebp - 0xb0], eax
call edi
push dword [esi + 0x5c]
mov esi, dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebp + 8]
mov dword [ebp - 0x98], eax
call esi
mov dword [ebp - 0xac], eax
push 0x24
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x90]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 0xac]
push dword [ebp + 8]
call esi
push dword [ebp - 0x98]
push dword [ebp + 8]
call edi
push dword [ebp - 0xb0]
push dword [ebp + 8]
call ebx
or dword [ebp - 4], 0xffffffff
call fcn.00407fa9
ret 4