Function at 0x4078f0
Capabilities:
Get graphical window text
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2a70
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0xa8
mov eax, dword [0x53c160]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0xac], edi
push 8
lea eax, [ebp - 0x44]
mov dword [ebp - 0xb8], edi
push eax
push dword [edi + 4]
xorps xmm0, xmm0
movups xmmword [ebp - 0x44], xmm0
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x4079d5
push str.static
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x4079d5
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push dword [edi + 4]
call esi
mov ecx, eax
or ecx, 0x100
cmp eax, ecx
je 0x407995
push ecx
push 0xfffffffffffffff0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0xfffffffffffffff0
push dword [edi + 4]
call esi
movzx eax, al
cmp eax, 3
je 0x4079d1
cmp eax, 4
je 0x4079d1
cmp eax, 5
je 0x4079d1
cmp eax, 6
je 0x4079d1
cmp eax, 7
je 0x4079d1
cmp eax, 8
je 0x4079d1
cmp eax, 9
je 0x4079d1
cmp eax, 0xd
je 0x4079d1
cmp eax, 0xe
je 0x4079d1
cmp eax, 0xf
jne 0x4079d5
and byte [edi + 0x58], 0xfe
push 0x7f89
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
test byte [edi + 0x58], 1
mov dword [edi + 0x2c], eax
je 0x407a38
cmp dword [edi + 0x34], 0
jne 0x407a2b
push 0x5c
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.004c6130
add esp, 0xc
lea eax, [ebp - 0xa8]
push 0
push eax
push 0x5c
push 0x1f
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
or byte [edi + 0x58], 0x10
mov dword [edi + 0x34], eax
cmp dword [edi + 0x30], 0
jne 0x407a38
mov ecx, edi
call fcn.00406fd0
mov edx, dword [0x53cbfc]
mov esi, dword [0x53cbf4]
sub edx, esi
mov eax, dword [0x53cbf8]
mov ecx, dword [0x53cbf0]
sub eax, ecx
push 0
push dword [0x54795c]
push 0
push dword [edi + 4]
push edx
push eax
push esi
push ecx
push 0
push 0
push str.tooltips_class32
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
lea esi, [edi + 0x24]
mov dword [edi + 0x48], eax
cmp dword [esi], 0
mov dword [ebp - 0xb0], esi
jne 0x407b0c
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [ebp - 0xb4], eax
test eax, eax
jle 0x407b0c
xor ecx, ecx
mov dword [ebp - 4], 0
inc eax
mov edx, 2
mul edx
lfence
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c3c10
add esp, 4
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x407af1
cmp dword [esi], 0
mov eax, dword [ebp - 0xb4]
je 0x407b0c
inc eax
push eax
lfence
push dword [esi]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, edi
call fcn.004072c0
cmp dword [edi + 0x28], 0
jne 0x407b33
mov eax, dword [edi + 0x54]
shr eax, 2
test al, 1
jne 0x407b33
mov eax, dword [esi]
test eax, eax
je 0x407b6b
push eax
mov ecx, edi
call fcn.00407540
jmp 0x407b6b
push 0
push 1
push 0x401
push dword [edi + 0x48]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp - 0xac]
push 1
mov esi, dword [edx + 4]
lea eax, [edx + 0x38]
mov edx, dword [edx + 0x28]
push eax
push ecx
mov eax, esp
lea ecx, [edi + 0x48]
push esi
mov dword [eax], edx
call fcn.00407730
mov edi, dword [ebp - 0xac]
test byte [edi + 0x58], 1
je 0x407c9e
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb4], 0
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftInternet_ExplorerSettings
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407c9e
mov esi, dword [ebp - 0xb4]
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0xac], 0x18
push eax
lea eax, [ebp - 0xb0]
xorps xmm0, xmm0
push eax
push 0
push str.Anchor_Color
push esi
movups xmmword [ebp - 0x34], xmm0
movq qword [ebp - 0x24], xmm0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407c25
mov eax, dword [ebp - 0xb0]
cmp eax, 1
je 0x407bf5
cmp eax, 2
jne 0x407c25
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x407c0f
test al, 1
jne 0x407c25
shr eax, 1
cmp word [ebp + eax*2 - 0x36], 0
je 0x407c15
jmp 0x407c25
xor eax, eax
mov word [ebp - 0x34], ax
lea ecx, [ebp - 0x34]
call fcn.00407820
cmp eax, 0xffffffff
je 0x407c25
mov dword [edi + 0x4c], eax
lea eax, [ebp - 0xac]
mov dword [ebp - 0xac], 0x18
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0xb0]
push eax
push 0
push str.Anchor_Color_Visited
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407c93
mov eax, dword [ebp - 0xb0]
cmp eax, 1
je 0x407c63
cmp eax, 2
jne 0x407c93
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x407c7d
test al, 1
jne 0x407c93
shr eax, 1
cmp word [ebp + eax*2 - 0x36], 0
je 0x407c83
jmp 0x407c93
xor eax, eax
mov word [ebp - 0x34], ax
lea ecx, [ebp - 0x34]
call fcn.00407820
cmp eax, 0xffffffff
je 0x407c93
mov dword [edi + 0x50], eax
test esi, esi
je 0x407c9e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004c3ba1
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret