Function at 0x405864
Capabilities:
Get graphical window text

Disassembly:
push 0x3c
mov eax, 0x433f19
call fcn.0041c276
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 0x405912
push 0x438d1c
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x405912
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 0x4058d0
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 0x40590e
cmp eax, 4
je 0x40590e
cmp eax, 5
je 0x40590e
cmp eax, 6
je 0x40590e
cmp eax, 7
je 0x40590e
cmp eax, 8
je 0x40590e
cmp eax, 9
je 0x40590e
cmp eax, 0xd
je 0x40590e
cmp eax, 0xe
je 0x40590e
cmp eax, 0xf
jne 0x405912
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 0x405946
cmp dword [ebx + 0x34], esi
jne 0x405938
call fcn.00402cdd
or byte [ebx + 0x58], 0x10
mov dword [ebx + 0x34], eax
cmp dword [ebx + 0x30], esi
jne 0x405946
mov esi, ebx
call fcn.004057d3
xor esi, esi
mov eax, dword [ebx + 4]
mov ecx, dword [0x442760]
mov edx, dword [0x44275c]
push esi
push dword [0x443ba8]
push esi
push eax
mov eax, dword [0x442758]
sub ecx, eax
push ecx
mov ecx, dword [0x442754]
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 0x4059e2
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
cmp edi, esi
mov dword [ebp - 0x40], edi
jle 0x4059e2
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.00417034
or dword [ebp - 4], 0xffffffff
pop ecx
mov dword [ebx + 0x24], eax
jmp 0x4059cd
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x4059e0
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.00405ae9
cmp dword [ebx + 0x28], esi
jne 0x405a08
mov eax, dword [ebx + 0x54]
shr eax, 2
test al, 1
jne 0x405a08
mov eax, dword [ebx + 0x24]
cmp eax, esi
je 0x405a33
push eax
push ebx
call fcn.004060f4
jmp 0x405a33
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.00406089
test byte [ebx + 0x58], 1
je 0x405ae3
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 0x405ae3
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.00402c76
test eax, eax
jne 0x405aa6
mov eax, edi
call fcn.004061c1
cmp eax, 0xffffffff
je 0x405aa6
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.00402c76
test eax, eax
jne 0x405ad4
mov eax, edi
call fcn.004061c1
cmp eax, 0xffffffff
je 0x405ad4
mov dword [ebx + 0x50], eax
cmp dword [ebp - 0x48], 0
je 0x405ae3
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0041c2d2
ret