Function at 0x4013c6
Capabilities:
Get graphical window text

Disassembly:
push 0xe8
mov eax, 0x409a17
call fcn.0040924f
mov ebx, ecx
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0xf4]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xe4]
push eax
lea edx, [ebp - 0xf4]
call fcn.004058f9
mov byte [ebp - 4], 1
lea eax, [ebp - 0xb0]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetParent]
mov esi, dword [sym.imp.USER32.dll_ScreenToClient]
lea ecx, [ebp - 0xb0]
push ecx
push eax
mov dword [ebp - 0x98], eax
call esi
test eax, eax
je 0x401447
lea eax, [ebp - 0xa8]
push eax
push dword [ebp - 0x98]
call esi
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xb0]
mov esi, dword [sym.imp.GDI32.dll_SetViewportOrgEx]
push edi
neg eax
push eax
neg ecx
push ecx
push dword [ebp - 0xe4]
call esi
push edi
push dword [ebp - 0xe4]
push 0xf
push dword [ebp - 0x98]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push edi
push edi
push dword [ebp - 0xe4]
call esi
cmp dword [ebx + 0x48], edi
je 0x401560
mov al, byte [ebx + 0x24]
push dword [ebx + 4]
and al, 1
mov byte [ebp - 0x99], al
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x4014ae
mov eax, dword [ebx + 0x38]
jmp 0x4014d0
mov eax, dword [ebx + 0x44]
test al, 4
je 0x4014ba
mov eax, dword [ebx + 0x30]
jmp 0x4014d0
cmp byte [ebp - 0x99], 0
jne 0x4014c9
test al, 2
jne 0x4014cd
jmp 0x4014db
test al, 1
je 0x4014db
mov eax, dword [ebx + 0x34]
cmp eax, 0xffffffff
mov dword [ebp - 0x98], eax
jne 0x4014e4
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0x98], eax
mov esi, dword [ebx + 0x48]
call fcn.00401212
xor edx, edx
div dword [ebx + 0x4c]
mov esi, dword [ebx + 0x48]
mov edi, eax
call fcn.00401232
push dword [ebp - 0xe4]
lea esi, [ebp - 0xa8]
mov dword [ebp - 0xa0], eax
call fcn.00401105
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xa0]
push eax
push edi
mov dword [ebp - 0xb8], edi
imul edi, dword [ebp - 0x98]
xor ecx, ecx
push ecx
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0xbc], ecx
mov ecx, dword [ebx + 0x48]
mov dword [ebp - 0xb4], eax
push edi
lea eax, [ebp - 0xc0]
call fcn.0040112f
mov byte [ebp - 4], 1
push dword [ebp - 0xa8]
call sub.gdiplus.dll_GdipDeleteGraphics
xor edi, edi
push 0x7e
lea eax, [ebp - 0x92]
push edi
push eax
mov word [ebp - 0x94], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x40
lea eax, [ebp - 0x94]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x94], di
je 0x40166a
test byte [ebx + 0x44], 4
lea esi, [ebp - 0xf4]
lea edi, [ebp - 0xc0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
je 0x4015bf
push 1
push 1
lea eax, [ebp - 0xc0]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov esi, dword [sym.imp.GDI32.dll_SetBkMode]
push 1
push dword [ebp - 0xe4]
call esi
push 0x11
mov dword [ebp - 0x98], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp - 0xe4]
call edi
push dword [ebx + 0x50]
mov ebx, dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebp - 0xe4]
mov dword [ebp - 0xc4], eax
call ebx
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0xa0], eax
push 0x25
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x94]
push eax
push dword [ebp - 0xa0]
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 0x98]
push dword [ebp - 0xe4]
call esi
push dword [ebp - 0xc4]
push dword [ebp - 0xe4]
call edi
push dword [ebp - 0xa4]
push dword [ebp - 0xe4]
call ebx
mov byte [ebp - 4], 0
lea eax, [ebp - 0xe4]
push eax
call fcn.0040587c
or dword [ebp - 4], 0xffffffff
call fcn.00409299
ret 4