Function at 0x4017f0
Capabilities:
Get graphical window text

Disassembly:
push 0xf8
mov eax, 0x4099d2
call fcn.0040924f
mov ebx, ecx
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0xe0]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
lea edx, [ebp - 0xe0]
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 0x401871
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 - 0x104]
call esi
push edi
push dword [ebp - 0x104]
push 0xf
push dword [ebp - 0x98]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push edi
push edi
push dword [ebp - 0x104]
call esi
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 0x4018d8
mov eax, dword [ebx + 0x64]
mov dword [ebp - 0x98], eax
mov eax, dword [ebx + 0x38]
jmp 0x40190e
mov eax, dword [ebx + 0x44]
test al, 4
je 0x4018ed
mov eax, dword [ebx + 0x60]
mov dword [ebp - 0x98], eax
mov eax, dword [ebx + 0x30]
jmp 0x40190e
cmp byte [ebp - 0x99], 0
jne 0x401c12
test al, 2
jne 0x401c1a
mov eax, dword [ebx + 0x58]
mov dword [ebp - 0x98], eax
mov eax, dword [ebx + 0x2c]
cmp dword [ebx + 0x48], edi
mov dword [ebp - 0xa0], eax
je 0x401ab7
cmp dword [ebx + 0x4c], edi
je 0x401ab7
cmp dword [ebx + 0x50], edi
je 0x401ab7
push dword [ebp - 0x104]
lea esi, [ebp - 0xa8]
call fcn.00401105
mov byte [ebp - 4], 2
mov esi, dword [ebx + 0x48]
call fcn.00401212
xor edx, edx
div dword [ebx + 0x54]
mov esi, dword [ebx + 0x48]
mov dword [ebp - 0xe4], eax
call fcn.00401232
mov esi, dword [ebx + 0x4c]
mov dword [ebp - 0xbc], eax
call fcn.00401212
xor edx, edx
div dword [ebx + 0x54]
mov esi, dword [ebx + 0x4c]
mov dword [ebp - 0xb4], eax
call fcn.00401232
mov esi, dword [ebx + 0x50]
mov dword [ebp - 0xc0], eax
call fcn.00401212
xor edx, edx
div dword [ebx + 0x54]
mov esi, dword [ebx + 0x50]
mov edi, eax
call fcn.00401232
push dword [ebp - 0xbc]
mov ecx, dword [ebp - 0xe4]
push ecx
mov dword [ebp - 0xc8], ecx
imul ecx, dword [ebp - 0xa0]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xd4]
sub eax, dword [ebp - 0xdc]
xor edx, edx
push edx
mov dword [ebp - 0xc4], eax
push ecx
mov ecx, dword [ebx + 0x48]
lea eax, [ebp - 0xd0]
lea esi, [ebp - 0xa8]
mov dword [ebp - 0xd0], edx
mov dword [ebp - 0xcc], edx
call fcn.0040112f
mov eax, dword [ebp - 0xd8]
sub eax, dword [ebp - 0xe0]
mov edx, dword [ebp - 0xe4]
push dword [ebp - 0xc0]
mov ecx, dword [ebp - 0xd4]
sub ecx, dword [ebp - 0xdc]
and dword [ebp - 0xcc], 0
sub eax, edi
sub eax, edx
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xb4]
imul eax, dword [ebp - 0xa0]
push 1
push 0
mov dword [ebp - 0xc4], ecx
mov ecx, dword [ebx + 0x4c]
push eax
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xd0], edx
call fcn.0040112f
mov ecx, dword [ebp - 0xd8]
push dword [ebp - 0xb8]
sub ecx, dword [ebp - 0xe0]
mov eax, dword [ebp - 0xd4]
sub eax, dword [ebp - 0xdc]
and dword [ebp - 0xcc], 0
push edi
sub ecx, edi
mov dword [ebp - 0xc8], edi
imul edi, dword [ebp - 0xa0]
push 0
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xd0], ecx
push edi
lea eax, [ebp - 0xd0]
mov ecx, dword [ebx + 0x50]
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 0x401bf6
lea esi, [ebp - 0xe0]
lea edi, [ebp - 0xb0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebx + 0x48]
test esi, esi
je 0x401b31
cmp dword [ebx + 0x50], 0
je 0x401b31
call fcn.00401212
xor edx, edx
div dword [ebx + 0x54]
mov esi, dword [ebx + 0x50]
mov edi, eax
call fcn.00401212
xor edx, edx
div dword [ebx + 0x54]
add dword [ebp - 0xb0], edi
sub dword [ebp - 0xa8], eax
test byte [ebx + 0x44], 4
je 0x401b48
push 1
push 1
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov esi, dword [sym.imp.GDI32.dll_SetBkMode]
push 1
push dword [ebp - 0x104]
call esi
push 0x11
mov dword [ebp - 0xb4], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp - 0x104]
call edi
push dword [ebp - 0x98]
mov ebx, dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebp - 0x104]
mov dword [ebp - 0xc0], eax
call ebx
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0xb8], eax
push 0x25
lea eax, [ebp - 0xb0]
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 - 0xb8]
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 0xb4]
push dword [ebp - 0x104]
call esi
push dword [ebp - 0xc0]
push dword [ebp - 0x104]
call edi
push dword [ebp - 0xbc]
push dword [ebp - 0x104]
call ebx
mov byte [ebp - 4], 0
lea eax, [ebp - 0x104]
push eax
call fcn.0040587c
or dword [ebp - 4], 0xffffffff
call fcn.00409299
ret 4
test al, 1
je 0x401902
mov eax, dword [ebx + 0x5c]
mov dword [ebp - 0x98], eax
mov eax, dword [ebx + 0x34]
jmp 0x40190e