Function at 0x40667c
Capabilities:
Get graphical window text

Disassembly:
push 0x3c
mov eax, 0x4363fe
call fcn.0041dcd6
xor eax, eax
xor esi, esi
mov word [ebp - 0x3c], si
lea edi, [ebp - 0x3a]
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 - 0x3c]
mov ebx, ecx
push eax
push dword [ebx + 4]
mov dword [ebp - 0x44], ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x40672a
push 0x439ed0
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40672a
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push dword [ebx + 4]
call edi
mov ecx, eax
or ecx, 0x100
cmp eax, ecx
je 0x4066e8
push ecx
push 0xfffffffffffffff0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0xfffffffffffffff0
push dword [ebx + 4]
call edi
and eax, 0xff
cmp eax, 3
je 0x406726
cmp eax, 4
je 0x406726
cmp eax, 5
je 0x406726
cmp eax, 6
je 0x406726
cmp eax, 7
je 0x406726
cmp eax, 8
je 0x406726
cmp eax, 9
je 0x406726
cmp eax, 0xd
je 0x406726
cmp eax, 0xe
je 0x406726
cmp eax, 0xf
jne 0x40672a
and byte [ebx + 0x58], 0xfe
push 0x7f89
push esi
call dword [sym.imp.USER32.dll_LoadCursorW]
test byte [ebx + 0x58], 1
mov dword [ebx + 0x2c], eax
je 0x40675e
cmp dword [ebx + 0x34], esi
jne 0x406750
call fcn.00403141
or byte [ebx + 0x58], 0x10
mov dword [ebx + 0x34], eax
cmp dword [ebx + 0x30], esi
jne 0x40675e
mov esi, ebx
call fcn.00406be9
xor esi, esi
mov eax, dword [ebx + 4]
mov ecx, dword [0x443790]
mov edx, dword [0x44378c]
push esi
push dword [0x444bc8]
push esi
push eax
mov eax, dword [0x443788]
sub ecx, eax
push ecx
mov ecx, dword [0x443784]
sub edx, ecx
push edx
push eax
push ecx
push esi
push esi
push str.tooltips_class32
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x24], esi
jne 0x4067fa
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
cmp edi, esi
mov dword [ebp - 0x40], edi
jle 0x4067fa
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
mov dword [ebp - 4], esi
neg ecx
or ecx, eax
push ecx
call fcn.00418a8c
or dword [ebp - 4], 0xffffffff
pop ecx
mov dword [ebx + 0x24], eax
jmp 0x4067e5
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x4067f8
inc edi
push edi
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor esi, esi
mov eax, ebx
call fcn.00406cfa
cmp dword [ebx + 0x28], esi
jne 0x406820
mov eax, dword [ebx + 0x54]
shr eax, 2
test al, 1
jne 0x406820
mov eax, dword [ebx + 0x24]
cmp eax, esi
je 0x40684b
push eax
push ebx
call fcn.004062f1
jmp 0x40684b
push esi
push 1
push 0x401
lea edi, [ebx + 0x48]
push dword [edi]
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 [ebp - 0x40], esp
mov dword [eax], ecx
push dword [ebx + 4]
push edi
call fcn.00406acb
test byte [ebx + 0x58], 1
je 0x4068fb
lea eax, [ebp - 0x48]
push eax
push 0x2001f
push esi
push str.SoftwareMicrosoftInternet_ExplorerSettings
push SysReAllocString
mov dword [ebp - 0x48], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x4068fb
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x40], eax
mov word [ebp - 0x2c], si
xor eax, eax
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 - 0x40]
push eax
lea esi, [ebp - 0x44]
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x44], 0xc
call fcn.004030da
test eax, eax
jne 0x4068be
mov eax, edi
call fcn.00406c7a
cmp eax, 0xffffffff
je 0x4068be
mov dword [ebx + 0x4c], eax
push str.Anchor_Color_Visited
lea eax, [ebp - 0x40]
push eax
lea esi, [ebp - 0x44]
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x44], 0xc
call fcn.004030da
test eax, eax
jne 0x4068ec
mov eax, edi
call fcn.00406c7a
cmp eax, 0xffffffff
je 0x4068ec
mov dword [ebx + 0x50], eax
cmp dword [ebp - 0x48], 0
je 0x4068fb
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0041dd32
ret