Function at 0x40f936
Capabilities:
Get graphical window text

Disassembly:
push 0x44
mov eax, 0x426936
call fcn.00412349
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x44], ebx
mov word [ebp - 0x24], ax
lea edi, [ebp - 0x22]
stosd dword es:[edi], eax
lea esi, [ebx + 4]
push 8
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x24]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x40f9d2
push str.static
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40f9d2
xor edi, edi
mov ecx, esi
push edi
push 0x100
push edi
call fcn.0040fc9e
push 0xfffffffffffffff0
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
movzx eax, al
cmp eax, 3
je 0x40f9cc
cmp eax, 4
je 0x40f9cc
cmp eax, 5
je 0x40f9cc
cmp eax, 6
je 0x40f9cc
cmp eax, 7
je 0x40f9cc
cmp eax, 8
je 0x40f9cc
cmp eax, 9
je 0x40f9cc
cmp eax, 0xd
je 0x40f9cc
cmp eax, 0xe
je 0x40f9cc
cmp eax, 0xf
jne 0x40f9d4
and byte [ebx + 0x58], 0xfe
jmp 0x40f9d4
xor edi, edi
push 0x7f89
push edi
call dword [sym.imp.USER32.dll_LoadCursorW]
test byte [ebx + 0x58], 1
mov dword [ebx + 0x2c], eax
je 0x40fa06
cmp dword [ebx + 0x34], edi
jne 0x40f9fa
call fcn.0040ef40
or byte [ebx + 0x58], 0x10
mov dword [ebx + 0x34], eax
cmp dword [ebx + 0x30], edi
jne 0x40fa06
mov ecx, ebx
call fcn.0040f358
push edi
push ecx
mov eax, esp
push edi
push edi
push edi
push ecx
mov dword [eax], edi
lea ecx, [ebx + 0x48]
mov eax, esp
mov dword [eax], edi
push dword [esi]
call fcn.0040f2cf
cmp dword [ebx + 0x24], edi
jne 0x40fa80
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
mov dword [ebp - 0x40], esi
test esi, esi
jle 0x40fa80
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.004123a6
or dword [ebp - 4], 0xffffffff
pop ecx
mov dword [ebx + 0x24], eax
jmp 0x40fa6a
cmp dword [ebx + 0x24], 0
je 0x40fa80
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.0040f0ab
cmp dword [ebx + 0x28], edi
jne 0x40faa8
mov eax, dword [ebx + 0x54]
shr eax, 2
test al, 1
jne 0x40faa8
cmp dword [ebx + 0x24], 0
je 0x40fad2
push dword [ebx + 0x24]
mov ecx, ebx
call fcn.00410857
jmp 0x40fad2
push edi
push 1
push 0x401
push dword [ebx + 0x48]
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
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.0040eef0
test byte [ebx + 0x58], 1
je 0x40fb75
push 0x2001f
push str.SoftwareMicrosoftInternet_ExplorerSettings
push 0x80000001
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
call fcn.0040bd00
test eax, eax
jne 0x40fb6d
mov word [ebp - 0x3c], ax
lea edi, [ebp - 0x3a]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x50]
push 0xc
pop esi
mov dword [ebp - 0x40], 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 - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
push str.Anchor_Color
call fcn.004107b8
test eax, eax
jne 0x40fb3f
lea eax, [ebp - 0x3c]
push eax
call fcn.004109ff
pop ecx
cmp eax, 0xffffffff
je 0x40fb3f
mov dword [ebx + 0x4c], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], esi
push eax
lea eax, [ebp - 0x3c]
push eax
push str.Anchor_Color_Visited
lea ecx, [ebp - 0x50]
call fcn.004107b8
test eax, eax
jne 0x40fb6d
lea eax, [ebp - 0x3c]
push eax
call fcn.004109ff
pop ecx
cmp eax, 0xffffffff
je 0x40fb6d
mov dword [ebx + 0x50], eax
lea ecx, [ebp - 0x50]
call fcn.0040b655
call fcn.00412296
ret