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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
xor eax, eax
push esi
mov esi, ecx
mov dword [ebp - 0x6e], eax
push edi
mov edx, dword [esi + 4]
mov dword [ebp - 0x6a], eax
lea ecx, [ebp - 0x70]
push 8
xor ebx, ebx
mov dword [ebp - 0x66], eax
push ecx
push edx
mov word [ebp - 0x70], bx
mov word [ebp - 0x62], ax
call dword [sym.imp.USER32.dll_GetClassNameW]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, eax
je 0x40e121
lea eax, [ebp - 0x70]
push str.static
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40e121
mov ecx, dword [esi + 4]
push 0xfffffffffffffff0
push ecx
call edi
mov ecx, eax
or ch, 1
cmp eax, ecx
je 0x40e0de
mov edx, dword [esi + 4]
push ecx
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [esi + 4]
push 0xfffffffffffffff0
push eax
call edi
and eax, 0xff
cmp eax, 3
je 0x40e11d
cmp eax, 4
je 0x40e11d
cmp eax, 5
je 0x40e11d
cmp eax, 6
je 0x40e11d
cmp eax, 7
je 0x40e11d
cmp eax, 8
je 0x40e11d
cmp eax, 9
je 0x40e11d
cmp eax, 0xd
je 0x40e11d
cmp eax, 0xe
je 0x40e11d
cmp eax, 0xf
jne 0x40e121
and byte [esi + 0x54], 0xfe
mov ecx, dword [0x4d9404]
mov edx, dword [0x4d9400]
mov eax, dword [0x4edfe4]
push 0x4d9488
push 0x4d9408
push 0x20
push 0x20
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_CreateCursor]
mov dword [esi + 0x28], eax
mov al, byte [esi + 0x54]
test al, 1
je 0x40e1eb
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push ebx
push ebx
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, ebx
mov dword [esi + 0x30], eax
jne 0x40e17e
push 0xd
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esi + 0x30], eax
mov edx, dword [esi + 0x30]
cmp edx, ebx
je 0x40e1eb
cmp dword [esi + 0x2c], ebx
jne 0x40e1eb
mov ecx, 0x16
xor eax, eax
lea edi, [ebp - 0xc8]
mov dword [ebp - 0xcc], ebx
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0xcc]
push ecx
push 0x5c
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edx, dword [esi + 0x50]
and edx, 0x30
cmp dl, 0x30
jne 0x40e1c6
mov dword [ebp - 0xbc], 0x2bc
jmp 0x40e1d3
test byte [esi + 0x50], 1
jne 0x40e1d3
mov byte [ebp - 0xb7], 1
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [esi + 0x2c], eax
mov al, byte [esi + 0x54]
or al, 8
mov byte [esi + 0x54], al
push ebx
push ecx
mov ecx, esp
push ebx
lea edi, [esi + 0x44]
call fcn.0047b330
push ebx
push ebx
push ebx
push ecx
mov ecx, esp
push ebx
call fcn.0047b330
mov ecx, dword [esi + 4]
push ecx
mov ecx, edi
call fcn.0040e840
cmp dword [esi + 0x20], ebx
jne 0x40e290
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x40e290
lea ebx, [eax + 1]
lea eax, [ebx + ebx]
add eax, 3
and al, 0xfc
call fcn.004c5440
mov eax, dword [esi + 4]
mov edi, esp
push ebx
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x40e290
mov ecx, dword [esi + 0x20]
push ecx
call fcn.004c5be2
add esp, 4
mov dword [esi + 0x20], 0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
call fcn.004c6296
add esp, 4
mov dword [esi + 0x20], eax
test eax, eax
je 0x40e290
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, esi
call fcn.0040ed80
mov eax, dword [esi + 4]
test eax, eax
je 0x40e290
push edi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40e4ce
mov eax, dword [esi + 0x20]
xor ebx, ebx
cmp eax, ebx
jne 0x40e2b4
cmp dword [esi + 0x24], ebx
je 0x40e4d9
mov eax, dword [esi + 4]
mov dword [ebp - 0x18], ebx
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_GetDC]
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x2c], ecx
lea edx, [ebp - 0x30]
mov dword [ebp - 0x28], ecx
push edx
push eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x24], ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
lea edi, [esi + 0x34]
mov ecx, edi
mov dword [ecx], edx
mov edx, dword [ebp - 0x28]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov al, byte [esi + 0x54]
test al, 1
jne 0x40e313
lea ecx, [ebp - 0x18]
call fcn.00428b30
jmp 0x40e4d0
mov ecx, dword [esi + 0x50]
shr ecx, 4
test cl, 1
je 0x40e417
lea edx, [ebp - 0x60]
lea eax, [ebp - 0x34]
push edx
lea ecx, [ebp - 4]
push eax
lea edx, [ebp - 8]
push ecx
lea eax, [ebp - 0xc]
push edx
lea ecx, [ebp - 0x10]
push eax
push ecx
mov ecx, esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x60], ebx
call fcn.00410500
mov eax, dword [esi + 0x30]
mov edx, dword [ebp - 0x18]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x10]
cmp eax, ebx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], edx
je 0x40e399
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 0x44]
push 0x410
push ecx
push edx
push eax
lea ecx, [ebp - 0x18]
call fcn.0049fda0
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x5c], edx
mov edx, dword [ebp - 0x24]
cmp eax, ebx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], edx
je 0x40e3cc
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x5c]
push 0x410
push ecx
push edx
push eax
lea ecx, [ebp - 0x18]
call fcn.0049fda0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
mov dword [edi], eax
mov eax, dword [ebp - 0x50]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
lea ecx, [ebp - 0x18]
mov dword [edi + 0xc], eax
call fcn.00428b30
jmp 0x40e4d0
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0xc], ebx
cmp eax, ebx
je 0x40e42f
mov ecx, dword [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x40e43b
mov dword [ebp - 8], eax
jmp 0x40e441
mov edx, dword [esi + 0x24]
mov dword [ebp - 8], edx
mov eax, dword [esi + 4]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
xor eax, eax
mov edx, ecx
mov dword [ebp - 0x34], ecx
and edx, 1
mov dword [ebp - 0x20], edx
je 0x40e465
mov eax, 1
jmp 0x40e46f
test cl, 2
je 0x40e46f
mov eax, 2
mov ecx, dword [ebp - 8]
or eax, 0x410
push eax
push edi
push 0xffffffffffffffff
push ecx
lea ecx, [ebp - 0x18]
call fcn.0049fda0
cmp dword [esi + 0x2c], ebx
je 0x40e497
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [ebp - 0x20], ebx
je 0x40e4ad
mov eax, dword [ebp - 0x28]
mov edx, dword [esi + 0x3c]
sub eax, edx
push ebx
cdq
sub eax, edx
sar eax, 1
push eax
jmp 0x40e4bd
test byte [ebp - 0x34], 2
je 0x40e4c4
mov ecx, dword [ebp - 0x28]
mov eax, dword [esi + 0x3c]
sub ecx, eax
push ebx
push ecx
push edi
call dword [sym.imp.USER32.dll_OffsetRect]
lea ecx, [ebp - 0x18]
call fcn.00428b30
jmp 0x40e4d0
xor ebx, ebx
cmp dword [esi + 0x24], ebx
jne 0x40e56c
mov edx, dword [esi + 0x50]
shr edx, 2
test dl, 1
jne 0x40e56c
mov edi, dword [esi + 0x20]
cmp edi, ebx
je 0x40e59e
push ebx
call fcn.004c5be2
add esp, 4
mov dword [esi + 0x24], ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
call fcn.004c6296
add esp, 4
cmp eax, ebx
mov dword [esi + 0x24], eax
je 0x40e59e
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [esi + 0x20], ebx
jne 0x40e532
mov ecx, esi
call fcn.0040ed80
mov ecx, dword [esi + 0x44]
lea edi, [esi + 0x44]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40e59e
mov edx, dword [edi]
push ebx
push 1
push 0x401
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esi + 0x24]
lea eax, [esi + 0x34]
push 1
push eax
push ecx
mov ecx, esp
push edx
call fcn.0047b330
mov eax, dword [esi + 4]
push eax
jmp 0x40e597
mov ecx, dword [esi + 0x44]
lea edi, [esi + 0x44]
push ebx
push 1
push 0x401
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0x24]
lea edx, [esi + 0x34]
push 1
push edx
push ecx
mov ecx, esp
push eax
call fcn.0047b330
mov ecx, dword [esi + 4]
push ecx
mov ecx, edi
call fcn.0040e8a0
test byte [esi + 0x54], 1
je 0x40e7a6
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push edx
push 0xf003f
push ebx
push str.SoftwareMicrosoftInternet_ExplorerSettings
push SHChangeNotifyDeregister
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40e7a6
xor eax, eax
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x4a], eax
lea edx, [ebp - 0x4c]
mov dword [ebp - 0x46], eax
push ecx
mov dword [ebp - 0x42], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x3e], eax
push edx
mov dword [ebp - 0x3a], eax
mov word [ebp - 0x4c], bx
mov word [ebp - 0x36], ax
lea eax, [ebp - 0x20]
push eax
push ebx
push str.Anchor_Color
push ecx
mov dword [ebp - 0xc], 0x18
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e6bb
or eax, 0xffffffff
lea edx, [ebp - 0x1c]
lea ebx, [ebp - 0x4c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], edx
mov ax, word [ebx]
mov edi, ebx
test ax, ax
je 0x40e669
cmp ax, 0x2c
je 0x40e653
push edi
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
mov ax, word [edi]
test ax, ax
jne 0x40e63a
jmp 0x40e669
push ebx
mov word [edi], 0
call fcn.004c553e
mov ecx, dword [ebp - 4]
add esp, 4
lea ebx, [edi + 2]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0xffffffff
je 0x40e6bb
mov eax, dword [ebp - 8]
add edx, 4
inc eax
mov dword [ebp - 4], edx
cmp eax, 2
mov dword [ebp - 8], eax
jl 0x40e630
cmp word [ebx], 0
je 0x40e6bb
push ebx
call fcn.004c553e
mov ecx, dword [ebp - 0x18]
and eax, 0xff
shl eax, 8
and ecx, 0xff
add esp, 4
or eax, ecx
mov ecx, dword [ebp - 0x1c]
shl eax, 8
and ecx, 0xff
or eax, ecx
cmp eax, 0xffffffff
je 0x40e6bb
mov dword [esi + 0x48], eax
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x20]
push ecx
push edx
push 0
push str.Anchor_Color_Visited
push eax
mov dword [ebp - 0xc], 0x18
mov dword [ebp - 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e798
or eax, 0xffffffff
lea ecx, [ebp - 0x1c]
lea ebx, [ebp - 0x4c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], ecx
mov ax, word [ebx]
mov edi, ebx
test ax, ax
je 0x40e743
cmp ax, 0x2c
je 0x40e72d
push edi
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
mov ax, word [edi]
test ax, ax
jne 0x40e714
jmp 0x40e743
push ebx
mov word [edi], 0
call fcn.004c553e
mov edx, dword [ebp - 4]
add esp, 4
lea ebx, [edi + 2]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0xffffffff
je 0x40e798
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
inc eax
add edx, 4
cmp eax, 2
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
jl 0x40e70a
cmp word [ebx], 0
je 0x40e798
push ebx
call fcn.004c553e
mov ecx, dword [ebp - 0x18]
and eax, 0xff
shl eax, 8
and ecx, 0xff
add esp, 4
or eax, ecx
mov ecx, dword [ebp - 0x1c]
shl eax, 8
and ecx, 0xff
or eax, ecx
cmp eax, 0xffffffff
je 0x40e798
mov dword [esi + 0x4c], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40e7a6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0xd8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret