Function at 0x40310e
Capabilities:
Get graphical window text

Disassembly:
push 0xac
mov eax, 0x416201
call fcn.00410c82
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0xac], ebx
mov word [ebp - 0x28], ax
lea edi, [ebp - 0x26]
stosd dword es:[edi], eax
push 8
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x28]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x4031c0
push str.static
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4031c0
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 0x40317e
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 0x4031bc
cmp eax, 4
je 0x4031bc
cmp eax, 5
je 0x4031bc
cmp eax, 6
je 0x4031bc
cmp eax, 7
je 0x4031bc
cmp eax, 8
je 0x4031bc
cmp eax, 9
je 0x4031bc
cmp eax, 0xd
je 0x4031bc
cmp eax, 0xe
je 0x4031bc
cmp eax, 0xf
jne 0x4031c0
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 0x403226
cmp dword [ebx + 0x34], edi
jne 0x40321a
push 0x58
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa4], edi
push edi
push eax
call fcn.00407eb0
add esp, 0xc
lea eax, [ebp - 0xa4]
push edi
push eax
push 0x5c
push 0x1f
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
lea eax, [ebp - 0xa4]
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 0x403226
mov ecx, ebx
call fcn.00402fd3
mov eax, dword [0x4200c8]
mov edx, dword [0x4200c0]
sub eax, edx
mov ecx, dword [0x4200bc]
push edi
push dword [0x420564]
push edi
push dword [ebx + 4]
push eax
mov eax, dword [0x4200c4]
sub eax, ecx
push eax
push edx
push ecx
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 0x4032cc
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
mov dword [ebp - 0xa8], esi
test esi, esi
jle 0x4032cc
xor ecx, ecx
mov dword [ebp - 4], edi
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004079b6
or dword [ebp - 4], 0xffffffff
pop ecx
mov dword [ebx + 0x24], eax
jmp 0x4032b6
cmp dword [ebx + 0x24], 0
je 0x4032cc
lea eax, [esi + 1]
push eax
push dword [ebx + 0x24]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, ebx
call fcn.0040354b
cmp dword [ebx + 0x28], edi
jne 0x4032f4
mov eax, dword [ebx + 0x54]
shr eax, 2
test al, 1
jne 0x4032f4
cmp dword [ebx + 0x24], 0
je 0x40331d
push dword [ebx + 0x24]
mov ecx, ebx
call fcn.004037ff
jmp 0x40331d
push edi
push 1
push 0x401
push dword [ebx + 0x48]
call dword [sym.imp.USER32.dll_SendMessageW]
push ecx
lea eax, [ebx + 0x38]
push eax
mov eax, dword [ebx + 0x28]
push ecx
mov edx, esp
lea ecx, [ebx + 0x48]
mov dword [edx], eax
push dword [ebx + 4]
call fcn.0040377f
test byte [ebx + 0x58], 1
je 0x4033e7
push 0x2001f
push str.SoftwareMicrosoftInternet_ExplorerSettings
push 0x80000001
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xb8], edi
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0xb0], edi
call fcn.00401c36
test eax, eax
jne 0x4033d2
mov word [ebp - 0x40], ax
lea edi, [ebp - 0x3e]
stosd dword es:[edi], eax
lea ecx, [ebp - 0xb8]
push 0xc
pop esi
mov dword [ebp - 0xa8], esi
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
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x40]
push eax
push str.Anchor_Color
call fcn.00401b60
test eax, eax
jne 0x40339d
lea ecx, [ebp - 0x40]
call fcn.00403071
cmp eax, 0xffffffff
je 0x40339d
mov dword [ebx + 0x4c], eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], esi
push eax
lea eax, [ebp - 0x40]
push eax
push str.Anchor_Color_Visited
lea ecx, [ebp - 0xb8]
call fcn.00401b60
test eax, eax
jne 0x4033d2
lea ecx, [ebp - 0x40]
call fcn.00403071
cmp eax, 0xffffffff
je 0x4033d2
mov dword [ebx + 0x50], eax
cmp dword [ebp - 0xb8], 0
je 0x4033e7
push dword [ebp - 0xb8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00410bd4
ret