Function at 0x497fce
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x4f5447
call fcn.004e6580
sub esp, 0x290
and word [ebp - 0x24], 0
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x22]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 8
mov esi, ecx
lea eax, [ebp - 0x24]
push eax
lea ebx, [esi + 4]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x498071
push str.static
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x498071
xor edi, edi
push edi
push 0x100
push edi
mov ecx, ebx
call fcn.0041a4d1
push 0xfffffffffffffff0
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff
cmp eax, 3
je 0x49806b
cmp eax, 4
je 0x49806b
cmp eax, 5
je 0x49806b
cmp eax, 6
je 0x49806b
cmp eax, 7
je 0x49806b
cmp eax, 8
je 0x49806b
cmp eax, 9
je 0x49806b
cmp eax, 0xd
je 0x49806b
cmp eax, 0xe
je 0x49806b
cmp eax, 0xf
jne 0x498073
and byte [esi + 0x58], 0xfe
jmp 0x498073
xor edi, edi
push 0x7f89
push edi
call dword [sym.imp.USER32.dll_LoadCursorW]
test byte [esi + 0x58], 1
mov dword [esi + 0x2c], eax
je 0x498119
push dword [ebx]
call dword [sym.imp.USER32.dll_GetParent]
push edi
push edi
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, edi
mov dword [esi + 0x34], eax
jne 0x4980b1
push 0xd
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esi + 0x34], eax
mov edx, dword [esi + 0x34]
cmp edx, edi
je 0x498119
cmp dword [esi + 0x30], edi
jne 0x498119
push 0x16
pop ecx
mov dword [ebp - 0x98], edi
xor eax, eax
lea edi, [ebp - 0x94]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x98]
push eax
push 0x5c
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [esi + 0x54]
and eax, 0x30
cmp al, 0x30
jne 0x4980f6
mov dword [ebp - 0x88], 0x2bc
jmp 0x498103
test byte [esi + 0x54], 1
jne 0x498103
mov byte [ebp - 0x83], 1
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
or byte [esi + 0x58], 8
mov dword [esi + 0x30], eax
xor edi, edi
push edi
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
push edi
push edi
push edi
push ecx
mov dword [eax], edi
mov eax, esp
mov dword [ebp - 0x10], esp
mov dword [eax], edi
push dword [ebx]
lea ecx, [esi + 0x48]
call fcn.00497aea
cmp dword [esi + 0x24], edi
jne 0x4981a4
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp eax, edi
mov dword [ebp - 0x10], eax
jle 0x4981a4
mov dword [ebp - 0x29c], edi
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x29c]
mov dword [ebp - 4], edi
call fcn.00497bb3
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x498187
mov ecx, dword [ebp - 0x10]
inc ecx
push ecx
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x498187
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00497e62
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x298]
cmp dword [ebp - 0x29c], eax
je 0x4981a4
lea ecx, [ebp - 0x29c]
call fcn.00497933
mov ecx, esi
call fcn.00497c8a
cmp dword [esi + 0x28], edi
jne 0x4981cb
mov eax, dword [esi + 0x54]
shr eax, 2
test al, 1
jne 0x4981cb
mov eax, dword [esi + 0x24]
cmp eax, edi
je 0x4981f7
push eax
mov ecx, esi
call fcn.00497f00
jmp 0x4981f7
push edi
push 1
push 0x401
push dword [esi + 0x48]
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
lea eax, [esi + 0x38]
push eax
push ecx
mov ecx, dword [esi + 0x28]
mov eax, esp
mov dword [eax], ecx
mov dword [ebp - 0x10], esp
push dword [ebx]
lea ecx, [esi + 0x48]
call fcn.00497c51
test byte [esi + 0x58], 1
je 0x498294
push 0x2001f
push str.SoftwareMicrosoftInternet_ExplorerSettings
push reloc.BugReportU.dll_Ordinal_1
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], edi
call fcn.00497976
test eax, eax
jne 0x49828c
mov word [ebp - 0x3c], di
lea edi, [ebp - 0x3a]
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
push 0xc
stosw word es:[edi], ax
pop edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x3c]
push eax
push str.Anchor_Color
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], edi
call fcn.004979ab
test eax, eax
jne 0x49825e
lea eax, [ebp - 0x3c]
push eax
call fcn.00497b1a
cmp eax, 0xffffffff
pop ecx
je 0x49825e
mov dword [esi + 0x4c], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x3c]
push eax
push str.Anchor_Color_Visited
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], edi
call fcn.004979ab
test eax, eax
jne 0x49828c
lea eax, [ebp - 0x3c]
push eax
call fcn.00497b1a
cmp eax, 0xffffffff
pop ecx
je 0x49828c
mov dword [esi + 0x50], eax
lea ecx, [ebp - 0x14]
call fcn.0049795f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret