Function at 0x40e840
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4302ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov edx, dword [esi + 4]
xor eax, eax
push 8
lea ecx, [ebp - 0x14]
push ecx
push edx
mov word [ebp - 0x14], ax
xor ebx, ebx
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x40e8fb
push str.static
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40e8fb
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push ecx
call edi
mov ecx, eax
or ecx, 0x100
cmp eax, ecx
je 0x40e8b8
mov edx, dword [esi + 4]
push ecx
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [esi + 4]
push 0xfffffffffffffff0
push eax
call edi
and eax, 0xff
cmp eax, 3
je 0x40e8f7
cmp eax, 4
je 0x40e8f7
cmp eax, 5
je 0x40e8f7
cmp eax, 6
je 0x40e8f7
cmp eax, 7
je 0x40e8f7
cmp eax, 8
je 0x40e8f7
cmp eax, 9
je 0x40e8f7
cmp eax, 0xd
je 0x40e8f7
cmp eax, 0xe
je 0x40e8f7
cmp eax, 0xf
jne 0x40e8fb
and byte [esi + 0x58], 0xfe
push 0x7f89
push ebx
call dword [sym.imp.USER32.dll_LoadCursorW]
test byte [esi + 0x58], 1
mov dword [esi + 0x2c], eax
je 0x40e92d
cmp dword [esi + 0x34], ebx
jne 0x40e921
call fcn.0040d330
or byte [esi + 0x58], 0x10
mov dword [esi + 0x34], eax
cmp dword [esi + 0x30], ebx
jne 0x40e92d
mov ecx, esi
call fcn.0040d9c0
mov ecx, dword [0x4322c4]
mov eax, dword [esi + 4]
mov edx, dword [0x42f4a8]
push ebx
push ecx
mov ecx, dword [0x42f49c]
push ebx
push eax
mov eax, dword [0x42f4a0]
sub edx, eax
push edx
mov edx, dword [0x42f4a4]
sub edx, ecx
push edx
push eax
push ecx
push ebx
push ebx
push str.tooltips_class32
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 0x48], eax
cmp dword [esi + 0x24], ebx
jne 0x40e9ae
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp eax, ebx
jle 0x40e9ae
lea edi, [eax + 1]
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041981a
add esp, 4
mov dword [esi + 0x24], eax
cmp eax, ebx
je 0x40e9ae
push edi
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, esi
call fcn.0040df30
cmp dword [esi + 0x28], ebx
jne 0x40e9d6
mov ecx, dword [esi + 0x54]
shr ecx, 2
test cl, 1
jne 0x40e9d6
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x40ea12
push eax
mov ecx, esi
call fcn.0040e680
jmp 0x40ea12
mov edx, dword [esi + 0x48]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 1
push 0x401
push edx
call edi
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 4]
push ebx
push eax
lea eax, [esi + 0x38]
push eax
push 1
push ecx
push ebx
lea ecx, [ebp - 0x44]
call fcn.0040d380
mov eax, dword [esi + 0x48]
lea edx, [ebp - 0x44]
push edx
push ebx
push 0x432
push eax
call edi
test byte [esi + 0x58], 1
je 0x40eadb
lea ecx, [ebp - 0x48]
push ecx
push 0x2001f
push ebx
push str.SoftwareMicrosoftInternet_ExplorerSettings
push 0x80000001
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40eadb
mov edi, dword [ebp - 0x48]
xor eax, eax
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 0x4c], ebx
xor edx, edx
mov ebx, 0xc
push str.Anchor_Color
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], edi
mov word [ebp - 0x2c], dx
mov dword [ebp - 0x48], ebx
call fcn.0040d2b0
test eax, eax
jne 0x40eaa0
lea edx, [ebp - 0x2c]
push edx
call fcn.0040da60
add esp, 4
cmp eax, 0xffffffff
je 0x40eaa0
mov dword [esi + 0x4c], eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push str.Anchor_Color_Visited
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x48], ebx
call fcn.0040d2b0
test eax, eax
jne 0x40ead0
lea edx, [ebp - 0x2c]
push edx
call fcn.0040da60
add esp, 4
cmp eax, 0xffffffff
je 0x40ead0
mov dword [esi + 0x50], eax
test edi, edi
je 0x40eadb
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418c6f
mov esp, ebp
pop ebp
ret