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

Disassembly:
push 0xffffffffffffffff
push 0x447e91
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2d0
push ebx
push ebp
xor eax, eax
push esi
mov esi, ecx
mov dword [esp + 0x6e], eax
push edi
mov dword [esp + 0x76], eax
mov edx, dword [esi + 4]
lea ecx, [esp + 0x70]
push 8
xor ebp, ebp
mov dword [esp + 0x7e], eax
push ecx
push edx
mov word [esp + 0x7c], bp
mov word [esp + 0x8a], ax
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x40cd0e
lea eax, [esp + 0x70]
push str.static
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40cd0e
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push ecx
call edi
mov ecx, eax
or ch, 1
cmp eax, ecx
je 0x40cccb
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 0x40cd0a
cmp eax, 4
je 0x40cd0a
cmp eax, 5
je 0x40cd0a
cmp eax, 6
je 0x40cd0a
cmp eax, 7
je 0x40cd0a
cmp eax, 8
je 0x40cd0a
cmp eax, 9
je 0x40cd0a
cmp eax, 0xd
je 0x40cd0a
cmp eax, 0xe
je 0x40cd0a
cmp eax, 0xf
jne 0x40cd0e
and byte [esi + 0x58], 0xfe
push 0x7f89
push ebp
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [esi + 0x28], eax
mov al, byte [esi + 0x58]
test al, 1
je 0x40cdc2
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push ebp
push ebp
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, ebp
mov dword [esi + 0x30], eax
jne 0x40cd4f
push 0xd
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esi + 0x30], eax
mov edx, dword [esi + 0x30]
cmp edx, ebp
je 0x40cdc2
cmp dword [esi + 0x2c], ebp
jne 0x40cdc2
mov ecx, 0x16
xor eax, eax
lea edi, [esp + 0x84]
mov dword [esp + 0x80], ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x80]
push eax
push 0x5c
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [esi + 0x54]
and ecx, 0x30
cmp cl, 0x30
jne 0x40cd9b
mov dword [esp + 0x90], 0x2bc
jmp 0x40cda9
test byte [esi + 0x54], 1
jne 0x40cda9
mov byte [esp + 0x95], 1
lea edx, [esp + 0x80]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [esi + 0x2c], eax
mov al, byte [esi + 0x58]
or al, 8
mov byte [esi + 0x58], al
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push ebp
lea edi, [esi + 0x44]
call fcn.0040d410
push ebp
push ebp
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push ebp
call fcn.0040d400
mov eax, dword [esi + 4]
mov ecx, edi
push eax
call fcn.0040d790
cmp dword [esi + 0x20], ebp
jne 0x40cec8
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp eax, ebp
jle 0x40cec8
mov dword [esp + 0xdc], ebp
lea edi, [eax + 1]
mov dword [esp + 0x2e8], ebp
lea eax, [edi + edi]
cmp eax, 0x200
jbe 0x40ce30
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
jmp 0x40ce37
lea eax, [esp + 0xe0]
cmp eax, ebp
mov dword [esp + 0xdc], eax
mov ebx, eax
je 0x40cea8
mov edx, dword [esi + 4]
push edi
push eax
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, ebp
jle 0x40cea1
mov eax, dword [esi + 0x20]
push eax
call fcn.0043c8a0
add esp, 4
mov dword [esi + 0x20], ebp
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
inc edi
lea eax, [edi + edi]
push eax
call fcn.0043c870
add esp, 4
cmp eax, ebp
mov dword [esi + 0x20], eax
je 0x40cea1
push ebx
push edi
push eax
call fcn.0040cb60
add esp, 0xc
mov ecx, esi
call fcn.0040d450
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x40cea1
push ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [esp + 0xdc]
lea ecx, [esp + 0xe0]
mov dword [esp + 0x2e8], 0xffffffff
cmp eax, ecx
je 0x40cec8
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40d144
cmp dword [esi + 0x20], ebp
jne 0x40cee8
cmp dword [esi + 0x24], ebp
je 0x40d14d
mov eax, dword [esi + 4]
mov dword [esp + 0x20], ebp
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 0x20], eax
mov edx, dword [esi + 4]
xor eax, eax
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x3c], eax
push ecx
push edx
mov dword [esp + 0x2f0], 1
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x48], eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
lea edi, [esi + 0x34]
mov eax, edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov al, byte [esi + 0x58]
test al, 1
je 0x40d130
mov eax, dword [esi + 0x54]
shr eax, 4
test al, 1
je 0x40d07d
lea ecx, [esp + 0x6c]
lea edx, [esp + 0x30]
push ecx
lea eax, [esp + 0x30]
push edx
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
mov ecx, esi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x84], ebp
call fcn.0040d8b0
mov eax, dword [esi + 0x30]
mov ecx, dword [esp + 0x20]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ecx
call ebx
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x40]
cmp eax, ebp
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
je 0x40cff9
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x44]
push 0x410
push ecx
push edx
push eax
lea ecx, [esp + 0x30]
call fcn.0040d770
mov eax, dword [esi + 0x2c]
push eax
mov eax, dword [esp + 0x24]
push eax
call ebx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x40]
cmp eax, ebp
mov dword [esp + 0x60], edx
mov dword [esp + 0x68], ecx
je 0x40d034
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x5c], edx
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x5c]
push 0x410
push eax
push ecx
push edx
lea ecx, [esp + 0x30]
call fcn.0040d770
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call ebx
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov dword [edi], edx
mov edx, dword [esp + 0x68]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
jmp 0x40d130
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x2c], ebp
cmp eax, ebp
je 0x40d098
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x20]
cmp eax, ebp
je 0x40d0a5
mov dword [esp + 0x14], eax
jmp 0x40d0ac
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x14], ecx
mov edx, dword [esi + 4]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, eax
xor eax, eax
mov ebp, ebx
and ebp, 1
je 0x40d0ca
mov eax, 1
jmp 0x40d0d4
test bl, 2
je 0x40d0d4
mov eax, 2
or eax, 0x410
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
push edi
push 0xffffffffffffffff
push eax
call fcn.0040d770
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x40d102
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
test ebp, ebp
je 0x40d116
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 0x3c]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
jmp 0x40d124
test bl, 2
je 0x40d12e
mov eax, dword [esp + 0x3c]
mov ebx, dword [esi + 0x3c]
sub eax, ebx
push 0
push eax
push edi
call dword [sym.imp.USER32.dll_OffsetRect]
xor ebp, ebp
lea ecx, [esp + 0x20]
mov dword [esp + 0x2e8], 0xffffffff
call fcn.0040d420
cmp dword [esi + 0x24], ebp
jne 0x40d1e6
mov eax, dword [esi + 0x54]
shr eax, 2
test al, 1
jne 0x40d1e6
mov ebx, dword [esi + 0x20]
cmp ebx, ebp
je 0x40d21c
push ebp
call fcn.0043c8a0
add esp, 4
mov dword [esi + 0x24], ebp
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
inc edi
lea ecx, [edi + edi]
push ecx
call fcn.0043c870
add esp, 4
cmp eax, ebp
mov dword [esi + 0x24], eax
je 0x40d21c
push ebx
push edi
push eax
call fcn.0040cb60
mov eax, dword [esi + 0x20]
add esp, 0xc
cmp eax, ebp
jne 0x40d1ac
mov ecx, esi
call fcn.0040d450
mov edx, dword [esi + 0x44]
lea edi, [esi + 0x44]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
cmp eax, ebp
je 0x40d21c
mov eax, dword [edi]
push ebp
push 1
push 0x401
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esi + 0x24]
lea ecx, [esi + 0x34]
push 1
push ecx
push ecx
mov ecx, esp
push edx
call fcn.0040cb80
mov eax, dword [esi + 4]
push eax
jmp 0x40d215
mov ecx, dword [esi + 0x44]
lea edi, [esi + 0x44]
push ebp
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
mov dword [esp + 0x24], esp
push eax
call fcn.0040cb80
mov ecx, dword [esi + 4]
push ecx
mov ecx, edi
call fcn.0040cb90
test byte [esi + 0x58], 1
je 0x40d3a7
lea edx, [esp + 0x10]
mov dword [esp + 0x2e8], 2
push edx
push 0xf003f
push ebp
push str.SoftwareMicrosoftInternet_ExplorerSettings
push SysReAllocString
mov dword [esp + 0x24], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x40d3a7
xor eax, eax
mov edi, dword [esp + 0x10]
mov dword [esp + 0x46], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x4a], eax
lea edx, [esp + 0x44]
mov dword [esp + 0x4e], eax
push ecx
mov dword [esp + 0x56], eax
push edx
mov dword [esp + 0x5e], eax
mov dword [esp + 0x38], edi
mov word [esp + 0x62], ax
lea eax, [esp + 0x20]
push eax
push ebp
push str.Anchor_Color
push edi
mov word [esp + 0x5c], bp
mov dword [esp + 0x34], 0x18
mov dword [esp + 0x30], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d35b
or eax, 0xffffffff
mov dword [esp + 0x14], ebp
lea ebx, [esp + 0x44]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea ebp, [esp + 0x20]
mov ax, word [ebx]
mov edi, ebx
test ax, ax
je 0x40d303
cmp ax, 0x2c
je 0x40d2ee
push edi
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
mov ax, word [edi]
test ax, ax
jne 0x40d2d5
jmp 0x40d303
push ebx
mov word [edi], 0
call dword [sym.imp.MSVCRT.dll__wtoi]
add esp, 4
mov dword [ebp], eax
lea ebx, [edi + 2]
cmp dword [ebp], 0xffffffff
je 0x40d355
mov eax, dword [esp + 0x14]
add ebp, 4
inc eax
cmp eax, 2
mov dword [esp + 0x14], eax
jl 0x40d2cb
cmp word [ebx], 0
je 0x40d355
push ebx
call dword [sym.imp.MSVCRT.dll__wtoi]
mov ecx, dword [esp + 0x28]
and eax, 0xff
shl eax, 8
and ecx, 0xff
add esp, 4
or eax, ecx
mov ecx, dword [esp + 0x20]
shl eax, 8
and ecx, 0xff
or eax, ecx
cmp eax, 0xffffffff
je 0x40d355
mov dword [esi + 0x48], eax
mov edi, dword [esp + 0x10]
xor ebp, ebp
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x44]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
push ebp
push str.Anchor_Color_Visited
push edi
mov dword [esp + 0x34], 0x18
mov dword [esp + 0x30], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d39c
lea ecx, [esp + 0x44]
push ecx
call fcn.0040d7f0
add esp, 4
cmp eax, 0xffffffff
je 0x40d39c
mov dword [esi + 0x4c], eax
cmp edi, ebp
je 0x40d3a7
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2e0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2dc
ret