Function at 0x4a6bad
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
mov word [ebp - 0x18], ax
lea edi, [ebp - 0x16]
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 - 0x18]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x4a6c61
push str.static
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4a6c61
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 0x4a6c1f
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 0x4a6c5d
cmp eax, 4
je 0x4a6c5d
cmp eax, 5
je 0x4a6c5d
cmp eax, 6
je 0x4a6c5d
cmp eax, 7
je 0x4a6c5d
cmp eax, 8
je 0x4a6c5d
cmp eax, 9
je 0x4a6c5d
cmp eax, 0xd
je 0x4a6c5d
cmp eax, 0xe
je 0x4a6c5d
cmp eax, 0xf
jne 0x4a6c61
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 0x4a6d0a
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetParent]
push edi
push edi
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebx + 0x34], eax
cmp eax, edi
jne 0x4a6ca2
push 0xd
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebx + 0x34], eax
mov esi, dword [ebx + 0x34]
cmp esi, edi
je 0x4a6d0a
cmp dword [ebx + 0x30], edi
jne 0x4a6d0a
push 0x58
lea eax, [ebp - 0x90]
push edi
push eax
mov dword [ebp - 0x94], edi
call fcn.00402394
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push 0x5c
push esi
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [ebx + 0x54]
and eax, 0x30
cmp al, 0x30
jne 0x4a6cec
mov dword [ebp - 0x84], 0x2bc
jmp 0x4a6cf6
test byte [ebx + 0x54], 1
jne 0x4a6cf6
mov byte [ebp - 0x7f], 1
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
or byte [ebx + 0x58], 8
mov dword [ebx + 0x30], eax
push ecx
mov eax, esp
push edi
push edi
push ecx
mov dword [eax], edi
mov eax, esp
mov dword [eax], edi
push dword [ebx + 4]
lea esi, [ebx + 0x48]
push esi
call fcn.00488285
cmp dword [ebx + 0x24], edi
jne 0x4a6dbf
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp eax, edi
jle 0x4a6dbf
inc eax
push 2
push eax
mov dword [ebp - 0x29c], edi
mov dword [ebp - 0x2a0], eax
call fcn.0042da4c
pop ecx
pop ecx
cmp eax, 0x200
jbe 0x4a6d69
push eax
lea eax, [ebp - 0x29c]
push eax
call fcn.0042dae9
jmp 0x4a6d75
lea eax, [ebp - 0x298]
mov dword [ebp - 0x29c], eax
mov eax, dword [ebp - 0x29c]
mov dword [ebp - 0x2b0], eax
cmp eax, edi
je 0x4a6da6
push dword [ebp - 0x2a0]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x4a6da6
push dword [ebp - 0x2b0]
mov eax, ebx
call fcn.004a66c9
lea eax, [ebp - 0x298]
cmp dword [ebp - 0x29c], eax
je 0x4a6dbf
lea eax, [ebp - 0x29c]
call fcn.0042da15
push ebx
call fcn.004a6ee9
cmp dword [ebx + 0x28], edi
jne 0x4a6de7
mov eax, dword [ebx + 0x54]
shr eax, 2
test al, 1
jne 0x4a6de7
mov eax, dword [ebx + 0x24]
cmp eax, edi
je 0x4a6e0b
push eax
mov edi, ebx
call fcn.004a7125
xor edi, edi
jmp 0x4a6e0b
push edi
push 1
push 0x401
push dword [esi]
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 [eax], ecx
push dword [ebx + 4]
call fcn.004a70e0
test byte [ebx + 0x58], 1
je 0x4a6ed8
push str.SoftwareMicrosoftInternet_ExplorerSettings
push 0x80000001
lea eax, [ebp - 0x2ac]
push eax
mov eax, 0x2001f
mov dword [ebp - 0x2ac], edi
mov dword [ebp - 0x2a8], edi
mov dword [ebp - 0x2a4], edi
call fcn.004a5071
test eax, eax
jne 0x4a6ec4
mov word [ebp - 0x30], ax
lea edi, [ebp - 0x2e]
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 - 0x2ac]
push eax
lea esi, [ebp - 0x2a0]
lea edi, [ebp - 0x30]
mov dword [ebp - 0x2a0], 0xc
call fcn.004a50c7
test eax, eax
jne 0x4a6e8b
mov ecx, edi
call fcn.004a7278
cmp eax, 0xffffffff
je 0x4a6e8b
mov dword [ebx + 0x4c], eax
push str.Anchor_Color_Visited
lea eax, [ebp - 0x2ac]
push eax
lea esi, [ebp - 0x2a0]
lea edi, [ebp - 0x30]
mov dword [ebp - 0x2a0], 0xc
call fcn.004a50c7
test eax, eax
jne 0x4a6ec2
mov ecx, edi
call fcn.004a7278
cmp eax, 0xffffffff
je 0x4a6ec2
mov dword [ebx + 0x50], eax
xor edi, edi
cmp dword [ebp - 0x2ac], edi
je 0x4a6ed8
push dword [ebp - 0x2ac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret 4