Function at 0x40ec7e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x433024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov word [ebp - 0x14], ax
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 8
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x40ed2e
push str.static
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40ed2e
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 0x40ecec
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 0x40ed2a
cmp eax, 4
je 0x40ed2a
cmp eax, 5
je 0x40ed2a
cmp eax, 6
je 0x40ed2a
cmp eax, 7
je 0x40ed2a
cmp eax, 8
je 0x40ed2a
cmp eax, 9
je 0x40ed2a
cmp eax, 0xd
je 0x40ed2a
cmp eax, 0xe
je 0x40ed2a
cmp eax, 0xf
jne 0x40ed2e
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 0x40ed94
cmp dword [ebx + 0x34], edi
jne 0x40ed88
push 0x58
lea eax, [ebp - 0x8c]
push edi
push eax
mov dword [ebp - 0x90], edi
call fcn.00416210
add esp, 0xc
push edi
lea eax, [ebp - 0x90]
push eax
push 0x5c
push 0x1f
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
lea eax, [ebp - 0x90]
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 0x40ed94
mov esi, ebx
call fcn.0041040b
mov eax, dword [ebx + 4]
push ecx
mov ecx, esp
push edi
push ecx
mov dword [ecx], edi
mov ecx, esp
push eax
push str.tooltips_class32
lea esi, [ebx + 0x48]
push esi
mov dword [ecx], edi
call fcn.00406362
cmp dword [ebx + 0x24], edi
jne 0x40edf1
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp eax, edi
jle 0x40edf1
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.0041679c
pop ecx
mov dword [ebx + 0x24], eax
test eax, eax
je 0x40edef
push edi
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor edi, edi
mov ecx, ebx
call fcn.0040ef16
cmp dword [ebx + 0x28], edi
jne 0x40ee18
mov eax, dword [ebx + 0x54]
shr eax, 2
test al, 1
jne 0x40ee18
mov eax, dword [ebx + 0x24]
cmp eax, edi
je 0x40ee3d
push eax
mov esi, ebx
call fcn.0040c555
jmp 0x40ee3d
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
mov ecx, dword [ebx + 4]
push esi
call fcn.0040d2dd
test byte [ebx + 0x58], 1
je 0x40ef08
push 0x2001f
push str.SoftwareMicrosoftInternet_ExplorerSettings
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x98], edi
push SysReAllocString
lea edi, [ebp - 0xa0]
call fcn.004048db
test eax, eax
jne 0x40eef3
mov word [ebp - 0x2c], ax
lea edi, [ebp - 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, [ebp - 0xa0]
push eax
lea esi, [ebp - 0x94]
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x94], 0xc
call fcn.00404922
test eax, eax
jne 0x40eebc
mov ecx, edi
call fcn.0041049c
cmp eax, 0xffffffff
je 0x40eebc
mov dword [ebx + 0x4c], eax
push str.Anchor_Color_Visited
lea eax, [ebp - 0xa0]
push eax
lea esi, [ebp - 0x94]
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x94], 0xc
call fcn.00404922
test eax, eax
jne 0x40eef3
mov ecx, edi
call fcn.0041049c
cmp eax, 0xffffffff
je 0x40eef3
mov dword [ebx + 0x50], eax
cmp dword [ebp - 0xa0], 0
je 0x40ef08
push dword [ebp - 0xa0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00416201
leave
ret