Function at 0x401798
Capabilities:
Get graphical window text

Disassembly:
push 0xf8
mov eax, 0x4098d5
call fcn.004092af
mov ebx, ecx
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0xa4]
push eax
push dword [ebx + 4]
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x98], edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
lea edx, [ebp - 0xa4]
call fcn.004058dd
mov byte [ebp - 4], 1
lea eax, [ebp - 0xb4]
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 - 0xb4]
push ecx
push eax
mov dword [ebp - 0xb8], eax
call esi
test eax, eax
je 0x401831
lea eax, [ebp - 0xac]
push eax
push dword [ebp - 0xb8]
call esi
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xb4]
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 - 0xb8]
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 - 0xb9], al
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x401898
mov eax, dword [ebx + 0x64]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebx + 0x38]
jmp 0x4018ce
mov eax, dword [ebx + 0x44]
test al, 4
je 0x4018ad
mov eax, dword [ebx + 0x60]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebx + 0x30]
jmp 0x4018ce
cmp byte [ebp - 0xb9], 0
jne 0x401bd5
test al, 2
jne 0x401bdd
mov eax, dword [ebx + 0x58]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0xc0], eax
cmp dword [ebx + 0x48], edi
je 0x401a78
cmp dword [ebx + 0x4c], edi
je 0x401a78
cmp dword [ebx + 0x50], edi
je 0x401a78
push dword [ebp - 0x104]
lea esi, [ebp - 0xac]
call fcn.004010f8
mov byte [ebp - 4], 2
mov esi, dword [ebx + 0x48]
call fcn.0040120c
xor edx, edx
div dword [ebx + 0x54]
mov esi, dword [ebx + 0x48]
mov dword [ebp - 0xe4], eax
call fcn.0040122d
mov esi, dword [ebx + 0x4c]
mov dword [ebp - 0xcc], eax
call fcn.0040120c
xor edx, edx
div dword [ebx + 0x54]
mov esi, dword [ebx + 0x4c]
mov dword [ebp - 0xc4], eax
call fcn.0040122d
mov esi, dword [ebx + 0x50]
mov dword [ebp - 0xc8], eax
call fcn.0040120c
xor edx, edx
div dword [ebx + 0x54]
mov esi, dword [ebx + 0x50]
mov edi, eax
call fcn.0040122d
push dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xe4]
push ecx
mov dword [ebp - 0xd8], ecx
imul ecx, dword [ebp - 0xc0]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0x98]
sub eax, dword [ebp - 0xa0]
xor edx, edx
push edx
mov dword [ebp - 0xd4], eax
push ecx
mov ecx, dword [ebx + 0x48]
lea eax, [ebp - 0xe0]
lea esi, [ebp - 0xac]
mov dword [ebp - 0xe0], edx
mov dword [ebp - 0xdc], edx
call fcn.00401124
mov eax, dword [ebp - 0x9c]
sub eax, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xe4]
push dword [ebp - 0xc8]
mov ecx, dword [ebp - 0x98]
sub ecx, dword [ebp - 0xa0]
and dword [ebp - 0xdc], 0
sub eax, edi
sub eax, edx
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xc4]
imul eax, dword [ebp - 0xc0]
push 1
push 0
mov dword [ebp - 0xd4], ecx
mov ecx, dword [ebx + 0x4c]
push eax
lea eax, [ebp - 0xe0]
mov dword [ebp - 0xe0], edx
call fcn.00401124
mov ecx, dword [ebp - 0x9c]
push dword [ebp - 0xd0]
sub ecx, dword [ebp - 0xa4]
mov eax, dword [ebp - 0x98]
sub eax, dword [ebp - 0xa0]
and dword [ebp - 0xdc], 0
push edi
sub ecx, edi
mov dword [ebp - 0xd8], edi
imul edi, dword [ebp - 0xc0]
push 0
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xe0], ecx
push edi
lea eax, [ebp - 0xe0]
mov ecx, dword [ebx + 0x50]
call fcn.00401124
mov byte [ebp - 4], 1
push dword [ebp - 0xac]
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 0x401bb9
lea esi, [ebp - 0xa4]
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]
mov esi, dword [ebx + 0x48]
test esi, esi
je 0x401af4
cmp dword [ebx + 0x50], 0
je 0x401af4
call fcn.0040120c
xor edx, edx
div dword [ebx + 0x54]
mov esi, dword [ebx + 0x50]
mov edi, eax
call fcn.0040120c
xor edx, edx
div dword [ebx + 0x54]
add dword [ebp - 0xb4], edi
sub dword [ebp - 0xac], eax
test byte [ebx + 0x44], 4
je 0x401b0b
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 - 0x104]
call esi
push 0x11
mov dword [ebp - 0xc4], 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 - 0xb8]
mov ebx, dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebp - 0x104]
mov dword [ebp - 0xc8], eax
call ebx
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0x104]
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 - 0xc4]
push dword [ebp - 0x104]
call esi
push dword [ebp - 0xc8]
push dword [ebp - 0x104]
call edi
push dword [ebp - 0xcc]
push dword [ebp - 0x104]
call ebx
mov byte [ebp - 4], 0
lea eax, [ebp - 0x104]
push eax
call fcn.0040583a
or dword [ebp - 4], 0xffffffff
call fcn.00409332
ret 4
test al, 1
je 0x4018c2
mov eax, dword [ebx + 0x5c]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebx + 0x34]
jmp 0x4018ce