Function at 0x40134f
Capabilities:
Get graphical window text

Disassembly:
push 0xe8
mov eax, 0x40991a
call fcn.004092af
mov ebx, ecx
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0xc4]
push eax
push dword [ebx + 4]
mov dword [ebp - 0xc4], edi
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xbc], edi
mov dword [ebp - 0xb8], edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xf4]
push eax
lea edx, [ebp - 0xc4]
call fcn.004058dd
mov byte [ebp - 4], 1
lea eax, [ebp - 0xa4]
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 - 0xa4]
push ecx
push eax
mov dword [ebp - 0xc8], eax
call esi
test eax, eax
je 0x4013e8
lea eax, [ebp - 0x9c]
push eax
push dword [ebp - 0xc8]
call esi
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0xa4]
mov esi, dword [sym.imp.GDI32.dll_SetViewportOrgEx]
push edi
neg eax
push eax
neg ecx
push ecx
push dword [ebp - 0xf4]
call esi
push edi
push dword [ebp - 0xf4]
push 0xf
push dword [ebp - 0xc8]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push edi
push edi
push dword [ebp - 0xf4]
call esi
cmp dword [ebx + 0x48], edi
je 0x401502
mov al, byte [ebx + 0x24]
push dword [ebx + 4]
and al, 1
mov byte [ebp - 0xc9], al
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x40144f
mov eax, dword [ebx + 0x38]
jmp 0x401471
mov eax, dword [ebx + 0x44]
test al, 4
je 0x40145b
mov eax, dword [ebx + 0x30]
jmp 0x401471
cmp byte [ebp - 0xc9], 0
jne 0x40146a
test al, 2
jne 0x40146e
jmp 0x40147c
test al, 1
je 0x40147c
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0xc8], eax
cmp eax, 0xffffffff
jne 0x401485
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0xc8], eax
mov esi, dword [ebx + 0x48]
call fcn.0040120c
xor edx, edx
div dword [ebx + 0x4c]
mov esi, dword [ebx + 0x48]
mov edi, eax
call fcn.0040122d
push dword [ebp - 0xf4]
lea esi, [ebp - 0x9c]
mov dword [ebp - 0xd0], eax
call fcn.004010f8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xd0]
push eax
push edi
mov dword [ebp - 0xac], edi
imul edi, dword [ebp - 0xc8]
xor ecx, ecx
push ecx
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0xb0], ecx
mov ecx, dword [ebx + 0x48]
mov dword [ebp - 0xa8], eax
push edi
lea eax, [ebp - 0xb4]
call fcn.00401124
mov byte [ebp - 4], 1
push dword [ebp - 0x9c]
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
xor edi, edi
xor eax, eax
push 0x7e
mov word [ebp - 0x94], ax
lea eax, [ebp - 0x92]
push edi
push eax
call sub.MSVCR100.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 0x40160e
test byte [ebx + 0x44], 4
lea esi, [ebp - 0xc4]
lea edi, [ebp - 0xb4]
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 0x401563
push 1
push 1
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov esi, dword [sym.imp.GDI32.dll_SetBkMode]
push 1
push dword [ebp - 0xf4]
call esi
push 0x11
mov dword [ebp - 0xc8], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp - 0xf4]
call edi
push dword [ebx + 0x50]
mov ebx, dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebp - 0xf4]
mov dword [ebp - 0xd4], eax
call ebx
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0xd0], eax
push 0x25
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.MSVCR100.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x94]
push eax
push dword [ebp - 0xd0]
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 0xc8]
push dword [ebp - 0xf4]
call esi
push dword [ebp - 0xd4]
push dword [ebp - 0xf4]
call edi
push dword [ebp - 0x98]
push dword [ebp - 0xf4]
call ebx
mov byte [ebp - 4], 0
lea eax, [ebp - 0xf4]
push eax
call fcn.0040583a
or dword [ebp - 4], 0xffffffff
call fcn.00409332
ret 4