Function at 0x405160
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414ab0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x41b3dc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor eax, eax
mov esi, ecx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x1b], eax
mov word [ebp - 0x17], ax
mov byte [ebp - 0x15], al
push 8
lea eax, [ebp - 0x1c]
push eax
xor ebx, ebx
push ecx
mov dword [ebp - 0x78], esi
mov byte [ebp - 0x1c], bl
call dword [sym.imp.USER32.dll_GetClassNameA]
test eax, eax
je 0x405235
push str.static
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x405235
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xfffffffffffffff0
push eax
call edi
mov ecx, eax
or ecx, 0x100
cmp eax, ecx
je 0x4051f2
push ecx
mov ecx, dword [esi + 4]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov edx, dword [esi + 4]
push 0xfffffffffffffff0
push edx
call edi
and eax, 0xff
cmp eax, 3
je 0x405231
cmp eax, 4
je 0x405231
cmp eax, 5
je 0x405231
cmp eax, 6
je 0x405231
cmp eax, 7
je 0x405231
cmp eax, 8
je 0x405231
cmp eax, 9
je 0x405231
cmp eax, 0xd
je 0x405231
cmp eax, 0xe
je 0x405231
cmp eax, 0xf
jne 0x405235
and byte [esi + 0x58], 0xfe
push 0x7f89
push ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
test byte [esi + 0x58], 1
mov dword [esi + 0x2c], eax
je 0x40528d
cmp dword [esi + 0x34], ebx
jne 0x405281
push 0x38
lea eax, [ebp - 0x60]
push ebx
push eax
mov dword [ebp - 0x64], ebx
call fcn.0040a160
add esp, 0xc
push ebx
lea ecx, [ebp - 0x64]
push ecx
push 0x3c
push 0x1f
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea edx, [ebp - 0x64]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
or byte [esi + 0x58], 0x10
mov dword [esi + 0x34], eax
cmp dword [esi + 0x30], ebx
jne 0x40528d
mov ecx, esi
call fcn.004047e0
mov ecx, dword [0x41c3c0]
mov eax, dword [esi + 4]
mov edx, dword [0x41b00c]
push ebx
push ecx
mov ecx, dword [section..data]
push ebx
push eax
mov eax, dword [0x41b004]
sub edx, eax
push edx
mov edx, dword [0x41b008]
sub edx, ecx
push edx
push eax
push ecx
push ebx
push ebx
push 0x415714
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [esi + 0x48], eax
cmp dword [esi + 0x24], ebx
jne 0x405326
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edi, eax
mov dword [ebp - 0x68], edi
cmp edi, ebx
jle 0x405326
lea ecx, [edi + 1]
push ecx
mov dword [ebp - 4], ebx
call fcn.0040a14a
add esp, 4
mov dword [esi + 0x24], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x405312
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x405326
mov edx, dword [esi + 4]
inc edi
push edi
push eax
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, esi
call fcn.00404880
cmp dword [esi + 0x28], ebx
jne 0x40534d
mov eax, dword [esi + 0x54]
shr eax, 2
test al, 1
jne 0x40534d
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x405389
push eax
mov ecx, esi
call fcn.00404e70
jmp 0x405389
mov ecx, dword [esi + 0x48]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push 1
push 0x401
push ecx
call edi
mov eax, dword [esi + 0x28]
push ebx
push eax
mov eax, dword [esi + 4]
lea edx, [esi + 0x38]
push edx
push 1
push eax
push ebx
lea ecx, [ebp - 0x58]
call fcn.00404000
mov edx, dword [esi + 0x48]
lea ecx, [ebp - 0x58]
push ecx
push ebx
push 0x404
push edx
call edi
test byte [esi + 0x58], 1
je 0x40543a
push 0x2001f
push str.SoftwareMicrosoftInternet_ExplorerSettings
push 0x80000001
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
call fcn.00401920
test eax, eax
jne 0x40542c
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov word [ebp - 0x1f], ax
mov byte [ebp - 0x1d], al
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov edi, 0xc
push str.Anchor_Color
lea ecx, [ebp - 0x74]
mov byte [ebp - 0x28], bl
mov dword [ebp - 0x68], edi
call fcn.00403f10
test eax, eax
jne 0x4053fc
lea edx, [ebp - 0x28]
push edx
call fcn.004041c0
add esp, 4
cmp eax, 0xffffffff
je 0x4053fc
mov dword [esi + 0x4c], eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x28]
push ecx
push str.Anchor_Color_Visited
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x68], edi
call fcn.00403f10
test eax, eax
jne 0x40542c
lea edx, [ebp - 0x28]
push edx
call fcn.004041c0
add esp, 4
cmp eax, 0xffffffff
je 0x40542c
mov dword [esi + 0x50], eax
mov eax, dword [ebp - 0x74]
cmp eax, ebx
je 0x40543a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00409af3
mov esp, ebp
pop ebp
ret