Function at 0x40fa06
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
xor eax, eax
push ebx
push esi
push edi
lea edi, [ebp - 0x20]
mov ebx, ecx
stosd dword es:[edi], eax
push 8
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x40faa8
push str.static
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x40faa8
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 0x40fa68
push ecx
push 0xfffffffffffffff0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0xfffffffffffffff0
push dword [ebx + 4]
call esi
movzx eax, al
cmp eax, 3
je 0x40faa4
cmp eax, 4
je 0x40faa4
cmp eax, 5
je 0x40faa4
cmp eax, 6
je 0x40faa4
cmp eax, 7
je 0x40faa4
cmp eax, 8
je 0x40faa4
cmp eax, 9
je 0x40faa4
cmp eax, 0xd
je 0x40faa4
cmp eax, 0xe
je 0x40faa4
cmp eax, 0xf
jne 0x40faa8
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 0x40faff
cmp dword [ebx + 0x34], edi
jne 0x40faf3
push 0x5c
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.004183a0
add esp, 0xc
lea eax, [ebp - 0x80]
push edi
push eax
push 0x5c
push 0x1f
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
lea eax, [ebp - 0x80]
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 0x40faff
mov ecx, ebx
call fcn.00410221
mov ecx, dword [0x47d860]
mov eax, dword [0x47d868]
mov edx, dword [0x47d85c]
sub eax, ecx
push edi
push dword [0x47dbc4]
push edi
push dword [ebx + 4]
push eax
mov eax, dword [0x47d864]
sub eax, edx
push eax
push ecx
push edx
push edi
push edi
push str.tooltips_class32
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x24], edi
jne 0x40fb77
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x40fb77
lea esi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00416bea
mov dword [ebx + 0x24], eax
pop ecx
test eax, eax
je 0x40fb77
push esi
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, ebx
call fcn.00410405
cmp dword [ebx + 0x28], edi
jne 0x40fb9e
mov eax, dword [ebx + 0x54]
shr eax, 2
test al, 1
jne 0x40fb9e
cmp dword [ebx + 0x24], edi
je 0x40fbd5
push dword [ebx + 0x24]
mov ecx, ebx
call fcn.0040f7b3
jmp 0x40fbd5
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 1
push 0x401
push dword [ebx + 0x48]
call esi
push ecx
push dword [ebx + 0x28]
lea eax, [ebx + 0x38]
push eax
push ecx
push dword [ebx + 4]
push ecx
lea ecx, [ebp - 0x54]
call fcn.0040f869
lea eax, [ebp - 0x54]
push eax
push edi
push 0x432
push dword [ebx + 0x48]
call esi
test byte [ebx + 0x58], 1
je 0x40fc75
push 0x2001f
push str.SoftwareMicrosoftInternet_ExplorerSettings
push SysReAllocString
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call fcn.0040e93f
test eax, eax
jne 0x40fc66
push 6
pop ecx
push 0xc
pop esi
lea edi, [ebp - 0x3c]
mov dword [ebp - 4], esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x3c]
push eax
push str.Anchor_Color
lea ecx, [ebp - 0x10]
call fcn.0040f900
test eax, eax
jne 0x40fc3a
lea ecx, [ebp - 0x3c]
call fcn.0040f973
cmp eax, 0xffffffff
je 0x40fc3a
mov dword [ebx + 0x4c], eax
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x3c]
push eax
push str.Anchor_Color_Visited
lea ecx, [ebp - 0x10]
call fcn.0040f900
test eax, eax
jne 0x40fc66
lea ecx, [ebp - 0x3c]
call fcn.0040f973
cmp eax, 0xffffffff
je 0x40fc66
mov dword [ebx + 0x50], eax
cmp dword [ebp - 0x10], 0
je 0x40fc75
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret