Function at 0x402bde
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
push ebx
push esi
and dword [ebp - 0x18], 0
mov esi, 0x104
push edi
lea eax, [ebp - 0x138]
push esi
push eax
push 0x40534c
push 0x4052e4
push 0x80000002
call fcn.00403be2
add esp, 0x14
mov ebx, 0x406a0c
test eax, eax
je 0x402c4e
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x138]
push eax
call edi
lea eax, [ebp - 0x138]
push eax
call edi
cmp eax, 5
jl 0x402c4e
push 3
lea eax, [ebp - 0x136]
push ebx
push eax
call fcn.004039ae
add esp, 0xc
test eax, eax
je 0x402c9e
lea eax, [ebp - 0x138]
push esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x402ca5
cmp eax, esi
jae 0x402ca5
lea eax, [ebp - 0x138]
push 0x2e
push eax
call fcn.00403974
pop ecx
test eax, eax
pop ecx
je 0x402ca5
and byte [eax], 0
lea eax, [ebp - 0x138]
push 0x2e
push eax
call fcn.00403974
pop ecx
test eax, eax
pop ecx
je 0x402ca5
push ebx
push eax
call fcn.0040387e
pop ecx
test eax, eax
pop ecx
je 0x402ca5
mov dword [ebp - 0x18], 1
push 1
call dword [sym.imp.USER32.dll_BeginDeferWindowPos]
test eax, eax
mov dword [ebp - 4], eax
jne 0x402cbb
xor al, al
jmp 0x402ed8
mov esi, dword [ebp + 0xc]
cmp dword [esi], 0
je 0x402ec7
mov dword [ebp - 0x1c], esi
mov ax, word [esi + 0xa]
movsx ecx, ax
cmp ecx, dword [ebp + 0x10]
je 0x402cdf
test ax, ax
je 0x402cdf
xor edi, edi
jmp 0x402cea
cmp byte [esi + 8], 0
push 1
pop ebx
mov edi, ebx
jne 0x402cec
xor ebx, ebx
push dword [esi]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
mov dword [ebp - 8], eax
je 0x402eb5
lea ecx, [ebp - 0x34]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x402da6
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x402da6
xor eax, eax
cmp ebx, eax
je 0x402d4a
mov cl, byte [esi + 4]
neg cl
sbb ecx, ecx
and ecx, dword [ebp + 0x14]
add ecx, dword [ebp - 0x20]
mov dword [ebp - 0xc], ecx
jmp 0x402d4d
mov dword [ebp - 0xc], eax
cmp ebx, eax
je 0x402d63
mov cl, byte [esi + 5]
neg cl
sbb ecx, ecx
and ecx, dword [ebp + 0x18]
add ecx, dword [ebp - 0x24]
mov dword [ebp - 0x10], ecx
jmp 0x402d66
mov dword [ebp - 0x10], eax
cmp ebx, eax
je 0x402d7f
mov cl, byte [esi + 6]
neg cl
sbb ecx, ecx
and ecx, dword [ebp + 0x1c]
sub ecx, dword [ebp - 0x30]
add ecx, dword [ebp - 0x28]
mov dword [ebp + 0xc], ecx
jmp 0x402d82
mov dword [ebp + 0xc], eax
cmp ebx, eax
je 0x402d9b
mov cl, byte [esi + 7]
neg cl
sbb ecx, ecx
and ecx, dword [ebp + 0x20]
sub ecx, dword [ebp - 0x34]
add ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], ecx
jmp 0x402d9e
mov dword [ebp - 0x14], eax
cmp ebx, eax
je 0x402da6
and byte [esi + 8], 0
neg edi
sbb edi, edi
and edi, 0xffffffc0
add edi, 0x80
or edi, 0x14
test ebx, ebx
je 0x402e78
mov ebx, 0x1f3
lea eax, [ebp - 0x32c]
push ebx
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jle 0x402e78
push str.TelevisionFanatic
push str.PRODUCT_NAME
lea eax, [ebp - 0x32c]
push ebx
push eax
call fcn.00402edd
mov esi, eax
push str.products
push str.PRODUCT_DESCRIPTION
lea eax, [ebp - 0x32c]
push ebx
push eax
call fcn.00402edd
add esp, 0x20
test eax, eax
je 0x402e16
push 1
pop esi
push str.My_Web_Search
push str.HOMEPAGE_DESCRIPTION
lea eax, [ebp - 0x32c]
push ebx
push eax
call fcn.00402edd
add esp, 0x10
test eax, eax
je 0x402e37
push 1
pop esi
cmp dword [ebp - 0x18], 0
mov eax, str.new_tab_page_and
jne 0x402e47
mov eax, 0x406bf0
push eax
push str.TABPAGE_DESCRIPTION
lea eax, [ebp - 0x32c]
push ebx
push eax
call fcn.00402edd
add esp, 0x10
test eax, eax
je 0x402e64
push 1
pop esi
test esi, esi
je 0x402e78
lea eax, [ebp - 0x32c]
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
xor eax, eax
cmp dword [ebp + 0xc], eax
jne 0x402e87
cmp dword [ebp - 0x14], eax
jne 0x402e87
or edi, 1
cmp dword [ebp - 0xc], eax
jne 0x402e94
cmp dword [ebp - 0x10], eax
jne 0x402e94
or edi, 2
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x14]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_DeferWindowPos]
test eax, eax
mov dword [ebp - 4], eax
je 0x402ed6
mov esi, dword [ebp - 0x1c]
add esi, 0xc
mov dword [ebp - 0x1c], esi
cmp dword [esi], 0
jne 0x402cca
cmp dword [ebp - 4], 0
je 0x402ed6
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_EndDeferWindowPos]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret