Function at 0x4085ab
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
push esi
push edi
xor eax, eax
mov word [esp + 0x18], ax
lea edi, [esp + 0x1a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 8
lea eax, [esp + 0x1c]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x408658
push str.static
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x408658
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push dword [ebx + 4]
call esi
mov ecx, eax
or ecx, 0x100
cmp eax, ecx
je 0x408616
push ecx
push 0xfffffffffffffff0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0xfffffffffffffff0
push dword [ebx + 4]
call esi
and eax, 0xff
cmp eax, 3
je 0x408654
cmp eax, 4
je 0x408654
cmp eax, 5
je 0x408654
cmp eax, 6
je 0x408654
cmp eax, 7
je 0x408654
cmp eax, 8
je 0x408654
cmp eax, 9
je 0x408654
cmp eax, 0xd
je 0x408654
cmp eax, 0xe
je 0x408654
cmp eax, 0xf
jne 0x408658
and byte [ebx + 0x58], 0xfe
push 0x7f89
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_LoadCursorW]
test byte [ebx + 0x58], 1
mov dword [ebx + 0x2c], eax
je 0x4086b6
cmp dword [ebx + 0x34], edi
jne 0x4086aa
push 0x58
lea eax, [esp + 0x48]
push edi
push eax
mov dword [esp + 0x4c], edi
call fcn.00423fe0
add esp, 0xc
push edi
lea eax, [esp + 0x44]
push eax
push 0x5c
push 0x1f
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
or byte [ebx + 0x58], 0x10
mov dword [ebx + 0x34], eax
cmp dword [ebx + 0x30], edi
jne 0x4086b6
mov esi, ebx
call fcn.00408df3
mov eax, dword [ebx + 4]
mov ecx, dword [0x43cfac]
mov edx, dword [0x43cfa8]
push edi
push dword [0x43e624]
lea esi, [ebx + 0x48]
push edi
push eax
mov eax, dword [0x43cfa4]
sub ecx, eax
push ecx
mov ecx, dword [0x43cfa0]
sub edx, ecx
push edx
push eax
push ecx
push edi
push edi
push str.tooltips_class32
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi], eax
cmp dword [ebx + 0x24], edi
jne 0x408734
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp eax, edi
jle 0x408734
lea edi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004220a9
pop ecx
mov dword [ebx + 0x24], eax
test eax, eax
je 0x408732
push edi
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor edi, edi
mov eax, ebx
call fcn.00408fb3
cmp dword [ebx + 0x28], edi
jne 0x40875b
mov eax, dword [ebx + 0x54]
shr eax, 2
test al, 1
jne 0x40875b
mov eax, dword [ebx + 0x24]
cmp eax, edi
je 0x408780
push eax
mov esi, ebx
call fcn.004083b5
jmp 0x408780
push edi
push 1
push 0x401
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebx + 0x38]
push eax
push ecx
mov ecx, dword [ebx + 0x28]
mov eax, esp
mov dword [eax], ecx
push dword [ebx + 4]
push esi
call fcn.00408457
test byte [ebx + 0x58], 1
je 0x408834
push str.SoftwareMicrosoftInternet_ExplorerSettings
push SysReAllocStringLen
mov eax, 0x2001f
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call fcn.00407401
test eax, eax
jne 0x408824
mov word [esp + 0x28], ax
lea edi, [esp + 0x2a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.Anchor_Color
lea eax, [esp + 0x14]
push eax
lea esi, [esp + 0x14]
lea edi, [esp + 0x30]
mov dword [esp + 0x14], 0xc
call fcn.004084c2
test eax, eax
jne 0x4087f0
mov eax, edi
call fcn.0040852a
cmp eax, 0xffffffff
je 0x4087f0
mov dword [ebx + 0x4c], eax
push str.Anchor_Color_Visited
lea eax, [esp + 0x14]
push eax
lea esi, [esp + 0x14]
lea edi, [esp + 0x30]
mov dword [esp + 0x14], 0xc
call fcn.004084c2
test eax, eax
jne 0x408822
mov eax, edi
call fcn.0040852a
cmp eax, 0xffffffff
je 0x408822
mov dword [ebx + 0x50], eax
xor edi, edi
cmp dword [esp + 0x10], edi
je 0x408834
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret