Function at 0x40248f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push 1
call dword [sym.imp.USER32.dll_BeginDeferWindowPos]
test eax, eax
mov dword [ebp - 4], eax
jne 0x4024ab
xor al, al
leave
ret
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp dword [esi], 0
je 0x4026d1
mov dword [ebp - 0x1c], esi
mov ax, word [esi + 0xa]
movsx ecx, ax
cmp ecx, dword [ebp + 0x10]
je 0x4024d2
test ax, ax
je 0x4024d2
xor edi, edi
jmp 0x4024dd
cmp byte [esi + 8], 0
push 1
pop ebx
mov edi, ebx
jne 0x4024df
xor ebx, ebx
push dword [esi]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x4026bf
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x402599
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x34]
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 0x402599
xor eax, eax
cmp ebx, eax
je 0x40253d
mov cl, byte [esi + 4]
neg cl
sbb ecx, ecx
and ecx, dword [ebp + 0x14]
add ecx, dword [ebp - 0x20]
mov dword [ebp - 8], ecx
jmp 0x402540
mov dword [ebp - 8], eax
cmp ebx, eax
je 0x402556
mov cl, byte [esi + 5]
neg cl
sbb ecx, ecx
and ecx, dword [ebp + 0x18]
add ecx, dword [ebp - 0x24]
mov dword [ebp - 0xc], ecx
jmp 0x402559
mov dword [ebp - 0xc], eax
cmp ebx, eax
je 0x402572
mov cl, byte [esi + 6]
neg cl
sbb ecx, ecx
and ecx, dword [ebp + 0x1c]
sub ecx, dword [ebp - 0x34]
add ecx, dword [ebp - 0x2c]
mov dword [ebp + 0xc], ecx
jmp 0x402575
mov dword [ebp + 0xc], eax
cmp ebx, eax
je 0x40258e
mov cl, byte [esi + 7]
neg cl
sbb ecx, ecx
and ecx, dword [ebp + 0x20]
sub ecx, dword [ebp - 0x38]
add ecx, dword [ebp - 0x30]
mov dword [ebp - 0x10], ecx
jmp 0x402591
mov dword [ebp - 0x10], eax
cmp ebx, eax
je 0x402599
and byte [esi + 8], 0
neg edi
sbb edi, edi
and edi, 0xffffffc0
add edi, 0x80
or edi, 0x14
test ebx, ebx
je 0x402682
mov ebx, 0x1f3
lea eax, [ebp - 0x22c]
push ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jle 0x402682
push str.Cats_and_Catapults
push str.PRODUCT_NAME
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.004026e7
mov esi, eax
push str.products
push str.PRODUCT_DESCRIPTION
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.004026e7
add esp, 0x20
test eax, eax
je 0x402609
push 1
pop esi
push 0x408554
push str.HOMEPAGE_DESCRIPTION
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.004026e7
add esp, 0x10
test eax, eax
je 0x40262a
push 1
pop esi
and dword [ebp - 0x18], 0
and dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00401117
cmp dword [ebp - 0x18], 0
pop ecx
pop ecx
mov eax, str.Internet_Explorer
jne 0x402651
mov eax, str.Firefox
push eax
push str.BROWSER_DESCRIPTION
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.004026e7
add esp, 0x10
test eax, eax
je 0x40266e
push 1
pop esi
test esi, esi
je 0x402682
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetWindowTextA]
xor eax, eax
cmp dword [ebp + 0xc], eax
jne 0x402691
cmp dword [ebp - 0x10], eax
jne 0x402691
or edi, 1
cmp dword [ebp - 8], eax
jne 0x40269e
cmp dword [ebp - 0xc], eax
jne 0x40269e
or edi, 2
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp - 0xc]
push eax
push dword [ebp - 0x14]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_DeferWindowPos]
test eax, eax
mov dword [ebp - 4], eax
je 0x4026e0
mov esi, dword [ebp - 0x1c]
add esi, 0xc
mov dword [ebp - 0x1c], esi
cmp dword [esi], 0
jne 0x4024bd
cmp dword [ebp - 4], 0
je 0x4026e0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_EndDeferWindowPos]
pop edi
pop esi
mov al, 1
pop ebx
leave
ret