Function at 0x4a5922
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 0x4a59d6
push str.static
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4a59d6
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 0x4a5994
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 0x4a59d2
cmp eax, 4
je 0x4a59d2
cmp eax, 5
je 0x4a59d2
cmp eax, 6
je 0x4a59d2
cmp eax, 7
je 0x4a59d2
cmp eax, 8
je 0x4a59d2
cmp eax, 9
je 0x4a59d2
cmp eax, 0xd
je 0x4a59d2
cmp eax, 0xe
je 0x4a59d2
cmp eax, 0xf
jne 0x4a59d6
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 0x4a5a7f
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 0x4a5a17
push 0xd
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebx + 0x34], eax
mov esi, dword [ebx + 0x34]
cmp esi, edi
je 0x4a5a7f
cmp dword [ebx + 0x30], edi
jne 0x4a5a7f
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 0x4a5a61
mov dword [ebp - 0x84], 0x2bc
jmp 0x4a5a6b
test byte [ebx + 0x54], 1
jne 0x4a5a6b
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.00485286
cmp dword [ebx + 0x24], edi
jne 0x4a5b34
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp eax, edi
jle 0x4a5b34
inc eax
push 2
push eax
mov dword [ebp - 0x29c], edi
mov dword [ebp - 0x2a0], eax
call fcn.00427194
pop ecx
pop ecx
cmp eax, 0x200
jbe 0x4a5ade
push eax
lea eax, [ebp - 0x29c]
push eax
call fcn.00427501
jmp 0x4a5aea
lea eax, [ebp - 0x298]
mov dword [ebp - 0x29c], eax
mov eax, dword [ebp - 0x29c]
mov dword [ebp - 0x2b0], eax
cmp eax, edi
je 0x4a5b1b
push dword [ebp - 0x2a0]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x4a5b1b
push dword [ebp - 0x2b0]
mov eax, ebx
call fcn.004a543e
lea eax, [ebp - 0x298]
cmp dword [ebp - 0x29c], eax
je 0x4a5b34
lea eax, [ebp - 0x29c]
call fcn.00426f7d
push ebx
call fcn.004a5c5e
cmp dword [ebx + 0x28], edi
jne 0x4a5b5c
mov eax, dword [ebx + 0x54]
shr eax, 2
test al, 1
jne 0x4a5b5c
mov eax, dword [ebx + 0x24]
cmp eax, edi
je 0x4a5b80
push eax
mov edi, ebx
call fcn.004a5e9a
xor edi, edi
jmp 0x4a5b80
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.004a5e55
test byte [ebx + 0x58], 1
je 0x4a5c4d
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.004a3de6
test eax, eax
jne 0x4a5c39
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.004a3e3c
test eax, eax
jne 0x4a5c00
mov ecx, edi
call fcn.004a5fed
cmp eax, 0xffffffff
je 0x4a5c00
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.004a3e3c
test eax, eax
jne 0x4a5c37
mov ecx, edi
call fcn.004a5fed
cmp eax, 0xffffffff
je 0x4a5c37
mov dword [ebx + 0x50], eax
xor edi, edi
cmp dword [ebp - 0x2ac], edi
je 0x4a5c4d
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