Function at 0x402e57
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 0x40535c
push 0x4052f4
push 0x80000002
call fcn.00403e6c
add esp, 0x14
mov ebx, 0x406c0c
test eax, eax
je 0x402ec7
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 0x402ec7
push 3
lea eax, [ebp - 0x136]
push ebx
push eax
call fcn.00403c38
add esp, 0xc
test eax, eax
je 0x402f17
lea eax, [ebp - 0x138]
push esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x402f1e
cmp eax, esi
jae 0x402f1e
lea eax, [ebp - 0x138]
push 0x2e
push eax
call fcn.00403bfe
pop ecx
test eax, eax
pop ecx
je 0x402f1e
and byte [eax], 0
lea eax, [ebp - 0x138]
push 0x2e
push eax
call fcn.00403bfe
pop ecx
test eax, eax
pop ecx
je 0x402f1e
push ebx
push eax
call fcn.00403b08
pop ecx
test eax, eax
pop ecx
je 0x402f1e
mov dword [ebp - 0x18], 1
push 1
call dword [sym.imp.USER32.dll_BeginDeferWindowPos]
test eax, eax
mov dword [ebp - 4], eax
jne 0x402f34
xor al, al
jmp 0x403151
mov esi, dword [ebp + 0xc]
cmp dword [esi], 0
je 0x403140
mov dword [ebp - 0x1c], esi
mov ax, word [esi + 0xa]
movsx ecx, ax
cmp ecx, dword [ebp + 0x10]
je 0x402f58
test ax, ax
je 0x402f58
xor edi, edi
jmp 0x402f63
cmp byte [esi + 8], 0
push 1
pop ebx
mov edi, ebx
jne 0x402f65
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 0x40312e
lea ecx, [ebp - 0x34]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x40301f
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 0x40301f
xor eax, eax
cmp ebx, eax
je 0x402fc3
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 0x402fc6
mov dword [ebp - 0xc], eax
cmp ebx, eax
je 0x402fdc
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 0x402fdf
mov dword [ebp - 0x10], eax
cmp ebx, eax
je 0x402ff8
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 0x402ffb
mov dword [ebp + 0xc], eax
cmp ebx, eax
je 0x403014
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 0x403017
mov dword [ebp - 0x14], eax
cmp ebx, eax
je 0x40301f
and byte [esi + 8], 0
neg edi
sbb edi, edi
and edi, 0xffffffc0
add edi, 0x80
or edi, 0x14
test ebx, ebx
je 0x4030f1
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 0x4030f1
push 0x406778
push str.PRODUCT_NAME
lea eax, [ebp - 0x32c]
push ebx
push eax
call fcn.00403156
mov esi, eax
push str.products
push str.PRODUCT_DESCRIPTION
lea eax, [ebp - 0x32c]
push ebx
push eax
call fcn.00403156
add esp, 0x20
test eax, eax
je 0x40308f
push 1
pop esi
push str.MyWebSearch
push str.HOMEPAGE_DESCRIPTION
lea eax, [ebp - 0x32c]
push ebx
push eax
call fcn.00403156
add esp, 0x10
test eax, eax
je 0x4030b0
push 1
pop esi
cmp dword [ebp - 0x18], 0
mov eax, str.__Firefox_new_tab_
jne 0x4030c0
mov eax, str._and
push eax
push str.TABPAGE_DESCRIPTION
lea eax, [ebp - 0x32c]
push ebx
push eax
call fcn.00403156
add esp, 0x10
test eax, eax
je 0x4030dd
push 1
pop esi
test esi, esi
je 0x4030f1
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 0x403100
cmp dword [ebp - 0x14], eax
jne 0x403100
or edi, 1
cmp dword [ebp - 0xc], eax
jne 0x40310d
cmp dword [ebp - 0x10], eax
jne 0x40310d
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 0x40314f
mov esi, dword [ebp - 0x1c]
add esi, 0xc
mov dword [ebp - 0x1c], esi
cmp dword [esi], 0
jne 0x402f43
cmp dword [ebp - 4], 0
je 0x40314f
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_EndDeferWindowPos]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret