Function at 0x4186b4
Capabilities:
Get graphical window text

Disassembly:
push 0x2a4
mov eax, 0x48f411
call fcn.0047abd7
xor eax, eax
mov word [ebp - 0x20], ax
lea edi, [ebp - 0x1e]
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 - 0x20]
mov esi, ecx
push eax
push dword [esi + 4]
mov dword [ebp - 0x2b0], esi
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x418766
push str.static
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x418766
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push dword [esi + 4]
call edi
mov ecx, eax
or ecx, 0x100
cmp eax, ecx
je 0x418724
push ecx
push 0xfffffffffffffff0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0xfffffffffffffff0
push dword [esi + 4]
call edi
and eax, 0xff
cmp eax, 3
je 0x418762
cmp eax, 4
je 0x418762
cmp eax, 5
je 0x418762
cmp eax, 6
je 0x418762
cmp eax, 7
je 0x418762
cmp eax, 8
je 0x418762
cmp eax, 9
je 0x418762
cmp eax, 0xd
je 0x418762
cmp eax, 0xe
je 0x418762
cmp eax, 0xf
jne 0x418766
and byte [esi + 0x58], 0xfe
push 0x7f89
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_LoadCursorW]
test byte [esi + 0x58], 1
mov dword [esi + 0x2c], eax
je 0x418819
push dword [esi + 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 [esi + 0x34], eax
cmp eax, edi
jne 0x4187a7
push 0xd
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esi + 0x34], eax
mov ebx, dword [esi + 0x34]
cmp ebx, edi
je 0x418819
cmp dword [esi + 0x30], edi
jne 0x418819
push 0x58
lea eax, [ebp - 0x94]
push edi
push eax
mov dword [ebp - 0x98], edi
call fcn.004773f0
add esp, 0xc
mov dword [ebp - 4], edi
lea eax, [ebp - 0x98]
push eax
push 0x5c
push ebx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [esi + 0x54]
and eax, 0x30
cmp al, 0x30
jne 0x4187f4
mov dword [ebp - 0x88], 0x2bc
jmp 0x418801
test byte [esi + 0x54], 1
jne 0x418801
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
or dword [ebp - 4], 0xffffffff
push ecx
mov eax, esp
mov dword [ebp - 0x2a4], esp
push ecx
mov dword [eax], edi
mov eax, esp
mov dword [ebp - 0x2a4], esp
mov dword [eax], edi
push dword [esi + 4]
lea ebx, [esi + 0x48]
push ebx
call fcn.00418f37
cmp dword [esi + 0x24], edi
jne 0x4188e2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp eax, edi
jle 0x4188e2
mov dword [ebp - 0x2a0], edi
mov dword [ebp - 4], 1
inc eax
push 2
push eax
mov dword [ebp - 0x2ac], eax
call fcn.00418f12
pop ecx
pop ecx
cmp eax, 0x200
jbe 0x41888f
push eax
lea eax, [ebp - 0x2a0]
push eax
call fcn.0042fb75
mov eax, dword [ebp - 0x2a0]
jmp 0x41889b
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x2a4], eax
cmp eax, edi
je 0x4188c5
push dword [ebp - 0x2ac]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x4188c5
push dword [ebp - 0x2a4]
push esi
call fcn.00417d7c
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x29c]
cmp dword [ebp - 0x2a0], eax
je 0x4188e2
lea eax, [ebp - 0x2a0]
call fcn.00432bcd
mov ecx, esi
call fcn.00418424
cmp dword [esi + 0x28], edi
jne 0x418908
mov eax, dword [esi + 0x54]
shr eax, 2
test al, 1
jne 0x418908
mov eax, dword [esi + 0x24]
cmp eax, edi
je 0x418938
push eax
push esi
call fcn.00417e1c
jmp 0x418938
push edi
push 1
push 0x401
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esi + 0x38]
push eax
mov eax, dword [esi + 0x28]
push ecx
xor edx, edx
mov ecx, esp
inc edx
mov dword [ebp - 0x2a4], esp
mov dword [ecx], eax
mov eax, dword [esi + 4]
push ebx
mov ebx, edx
call fcn.00418fa2
test byte [esi + 0x58], 1
je 0x418a22
mov dword [ebp - 0x2a8], edi
mov dword [ebp - 0x2a4], edi
mov dword [ebp - 4], 2
push 0x2001f
push str.SoftwareMicrosoftInternet_ExplorerSettings
push SysReAllocStringLen
lea eax, [ebp - 0x2a8]
call fcn.00418ec3
cmp eax, edi
jne 0x4189fe
xor eax, eax
mov word [ebp - 0x38], ax
lea edi, [ebp - 0x36]
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
pop ebx
stosw word es:[edi], ax
push str.Anchor_Color
lea eax, [ebp - 0x2a8]
push eax
lea esi, [ebp - 0x2ac]
lea edi, [ebp - 0x38]
mov dword [ebp - 0x2ac], ebx
call fcn.00418e5b
test eax, eax
jne 0x4189c3
mov eax, edi
call fcn.00418dc7
cmp eax, 0xffffffff
je 0x4189c3
mov ecx, dword [ebp - 0x2b0]
mov dword [ecx + 0x4c], eax
push str.Anchor_Color_Visited
lea eax, [ebp - 0x2a8]
push eax
lea esi, [ebp - 0x2ac]
lea edi, [ebp - 0x38]
mov dword [ebp - 0x2ac], ebx
call fcn.00418e5b
test eax, eax
jne 0x4189fc
mov eax, edi
call fcn.00418dc7
cmp eax, 0xffffffff
je 0x4189fc
mov ecx, dword [ebp - 0x2b0]
mov dword [ecx + 0x50], eax
xor edi, edi
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x2a8], edi
je 0x418a1c
push dword [ebp - 0x2a8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2a8], edi
mov dword [ebp - 0x2a4], edi
call fcn.0047ac5a
ret