Function at 0x4032c6
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 0x4032e2
xor al, al
leave
ret
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp dword [esi], 0
je 0x403508
mov dword [ebp - 0x1c], esi
mov ax, word [esi + 0xa]
movsx ecx, ax
cmp ecx, dword [ebp + 0x10]
je 0x403309
test ax, ax
je 0x403309
xor edi, edi
jmp 0x403314
cmp byte [esi + 8], 0
push 1
pop ebx
mov edi, ebx
jne 0x403316
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 0x4034f6
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x4033d0
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 0x4033d0
xor eax, eax
cmp ebx, eax
je 0x403374
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 0x403377
mov dword [ebp - 8], eax
cmp ebx, eax
je 0x40338d
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 0x403390
mov dword [ebp - 0xc], eax
cmp ebx, eax
je 0x4033a9
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 0x4033ac
mov dword [ebp + 0xc], eax
cmp ebx, eax
je 0x4033c5
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 0x4033c8
mov dword [ebp - 0x10], eax
cmp ebx, eax
je 0x4033d0
and byte [esi + 8], 0
neg edi
sbb edi, edi
and edi, 0xffffffc0
add edi, 0x80
or edi, 0x14
test ebx, ebx
je 0x4034b9
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 0x4034b9
push 0x4067b8
push str.PRODUCT_NAME
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.0040351e
mov esi, eax
push str.products
push str.PRODUCT_DESCRIPTION
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.0040351e
add esp, 0x20
test eax, eax
je 0x403440
push 1
pop esi
push str.MyWebSearch
push str.HOMEPAGE_DESCRIPTION
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.0040351e
add esp, 0x10
test eax, eax
je 0x403461
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.0040200b
cmp dword [ebp - 0x18], 0
pop ecx
pop ecx
mov eax, str.Internet_Explorer
jne 0x403488
mov eax, 0x406ca4
push eax
push str.BROWSER_DESCRIPTION
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.0040351e
add esp, 0x10
test eax, eax
je 0x4034a5
push 1
pop esi
test esi, esi
je 0x4034b9
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 0x4034c8
cmp dword [ebp - 0x10], eax
jne 0x4034c8
or edi, 1
cmp dword [ebp - 8], eax
jne 0x4034d5
cmp dword [ebp - 0xc], eax
jne 0x4034d5
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 0x403517
mov esi, dword [ebp - 0x1c]
add esi, 0xc
mov dword [ebp - 0x1c], esi
cmp dword [esi], 0
jne 0x4032f4
cmp dword [ebp - 4], 0
je 0x403517
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_EndDeferWindowPos]
pop edi
pop esi
mov al, 1
pop ebx
leave
ret