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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
xor eax, eax
mov byte [ebp - 0x14], 0
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 8
mov esi, ecx
lea eax, [ebp - 0x14]
push eax
lea ebx, [esi + 4]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetClassNameA]
test eax, eax
je 0x402cde
push str.static
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402cde
xor edi, edi
push edi
push 0x100
push edi
mov ecx, ebx
call fcn.00401707
push 0xfffffffffffffff0
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0xff
cmp eax, 3
je 0x402cd8
cmp eax, 4
je 0x402cd8
cmp eax, 5
je 0x402cd8
cmp eax, 6
je 0x402cd8
cmp eax, 7
je 0x402cd8
cmp eax, 8
je 0x402cd8
cmp eax, 9
je 0x402cd8
cmp eax, 0xd
je 0x402cd8
cmp eax, 0xe
je 0x402cd8
cmp eax, 0xf
jne 0x402ce0
and byte [esi + 0x54], 0xfe
jmp 0x402ce0
xor edi, edi
push 0x7f89
push edi
call dword [sym.imp.USER32.dll_LoadCursorA]
test byte [esi + 0x54], 1
mov dword [esi + 0x28], eax
je 0x402d70
push dword [ebx]
call dword [sym.imp.USER32.dll_GetParent]
push edi
push edi
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, edi
mov dword [esi + 0x30], eax
jne 0x402d1a
push 0xd
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esi + 0x30], eax
mov edx, dword [esi + 0x30]
cmp edx, edi
je 0x402d70
cmp dword [esi + 0x2c], edi
jne 0x402d70
push 0xe
pop ecx
mov dword [ebp - 0x5c], edi
xor eax, eax
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x5c]
push eax
push 0x3c
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esi + 0x50]
and eax, 0x30
cmp al, 0x30
jne 0x402d53
mov dword [ebp - 0x4c], 0x2bc
jmp 0x402d5d
test byte [esi + 0x50], 1
jne 0x402d5d
mov byte [ebp - 0x47], 1
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
or byte [esi + 0x54], 8
mov dword [esi + 0x2c], eax
xor edi, edi
push edi
push ecx
mov eax, esp
mov dword [ebp - 0xc], esp
push edi
push edi
push edi
push ecx
mov dword [eax], edi
mov eax, esp
mov dword [ebp - 0xc], esp
mov dword [eax], edi
push dword [ebx]
lea ecx, [esi + 0x44]
call fcn.00401e12
cmp dword [esi + 0x20], edi
jne 0x402dcd
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
cmp eax, edi
jle 0x402dcd
inc eax
mov dword [ebp - 4], eax
add eax, 3
and eax, 0xfffffffc
call fcn.0040e5f0
mov dword [ebp - 8], esp
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x402dcd
push dword [ebp - 8]
mov ecx, esi
call fcn.00402b43
mov ecx, esi
call fcn.00402494
cmp dword [esi + 0x24], edi
jne 0x402df4
mov eax, dword [esi + 0x50]
shr eax, 2
test al, 1
jne 0x402df4
mov eax, dword [esi + 0x20]
cmp eax, edi
je 0x402e20
push eax
mov ecx, esi
call fcn.00402b97
jmp 0x402e20
push edi
push 1
push 0x401
push dword [esi + 0x44]
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
lea eax, [esi + 0x34]
push eax
push ecx
mov ecx, dword [esi + 0x24]
mov eax, esp
mov dword [eax], ecx
mov dword [ebp - 0xc], esp
push dword [ebx]
lea ecx, [esi + 0x44]
call fcn.0040245b
test byte [esi + 0x54], 1
je 0x402ece
push 0xf003f
push str.SoftwareMicrosoftInternet_ExplorerSettings
push SysReAllocString
lea ecx, [ebp - 4]
mov dword [ebp - 4], edi
call fcn.00401215
test eax, eax
jne 0x402ec6
mov byte [ebp - 0x20], al
and dword [ebp - 0xc], 0
lea edi, [ebp - 0x1f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xc
pop ebx
stosb byte es:[edi], al
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.Anchor_Color
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call edi
test eax, eax
jne 0x402e91
lea eax, [ebp - 0x20]
push eax
call fcn.00401e38
cmp eax, 0xffffffff
pop ecx
je 0x402e91
mov dword [esi + 0x48], eax
and dword [ebp - 0xc], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.Anchor_Color_Visited
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call edi
test eax, eax
jne 0x402ec6
lea eax, [ebp - 0x20]
push eax
call fcn.00401e38
cmp eax, 0xffffffff
pop ecx
je 0x402ec6
mov dword [esi + 0x4c], eax
lea ecx, [ebp - 4]
call fcn.0040a985
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
leave
ret