Function at 0x401412
Capabilities:
Get graphical window text

Disassembly:
push 0xe8
mov eax, 0x408572
call fcn.00407f5f
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.00404bc6
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 0x401493
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 0x4015ad
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 0x4014fa
mov eax, dword [ebx + 0x38]
jmp 0x40151c
mov eax, dword [ebx + 0x44]
test al, 4
je 0x401506
mov eax, dword [ebx + 0x30]
jmp 0x40151c
cmp byte [ebp - 0x99], 0
jne 0x401515
test al, 2
jne 0x401519
jmp 0x401527
test al, 1
je 0x401527
mov eax, dword [ebx + 0x34]
cmp eax, 0xffffffff
mov dword [ebp - 0x98], eax
jne 0x401530
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0x98], eax
mov esi, dword [ebx + 0x48]
call fcn.0040115f
xor edx, edx
div dword [ebx + 0x4c]
mov esi, dword [ebx + 0x48]
mov edi, eax
call fcn.0040117f
push dword [ebp - 0xe4]
lea esi, [ebp - 0xa8]
mov dword [ebp - 0xa0], eax
call fcn.0040108d
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebx + 0x48]
and dword [ebp - 0xc0], 0
and dword [ebp - 0xbc], 0
push eax
push edi
mov dword [ebp - 0xb8], edi
imul edi, dword [ebp - 0x98]
mov dword [ebp - 0xb4], eax
push edi
lea eax, [ebp - 0xc0]
mov edi, esi
call fcn.004010b7
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 0x4016b7
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 0x40160c
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.00404b49
or dword [ebp - 4], 0xffffffff
call fcn.00407fa9
ret 4