Function at 0x40b500
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
mov eax, dword [0x4297c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov edx, dword [esi + 4]
xor eax, eax
push 8
lea ecx, [ebp - 0x14]
push ecx
push edx
mov word [ebp - 0x14], ax
xor ebx, ebx
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x40b5be
push str.static
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40b5be
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push ecx
call edi
mov ecx, eax
or ecx, 0x100
cmp eax, ecx
je 0x40b57b
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 0x40b5ba
cmp eax, 4
je 0x40b5ba
cmp eax, 5
je 0x40b5ba
cmp eax, 6
je 0x40b5ba
cmp eax, 7
je 0x40b5ba
cmp eax, 8
je 0x40b5ba
cmp eax, 9
je 0x40b5ba
cmp eax, 0xd
je 0x40b5ba
cmp eax, 0xe
je 0x40b5ba
cmp eax, 0xf
jne 0x40b5be
and byte [esi + 0x58], 0xfe
push 0x7f89
push ebx
call dword [sym.imp.USER32.dll_LoadCursorW]
test byte [esi + 0x58], 1
mov dword [esi + 0x2c], eax
je 0x40b658
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push ebx
push ebx
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi + 0x34], eax
cmp eax, ebx
jne 0x40b5fe
push 0xd
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esi + 0x34], eax
mov edi, dword [esi + 0x34]
cmp edi, ebx
je 0x40b658
cmp dword [esi + 0x30], ebx
jne 0x40b658
push 0x58
lea edx, [ebp - 0x6c]
push ebx
push edx
mov dword [ebp - 0x70], ebx
call fcn.004123b0
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
push 0x5c
push edi
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [esi + 0x54]
and ecx, 0x30
cmp cl, 0x30
jne 0x40b63d
mov dword [ebp - 0x60], 0x2bc
jmp 0x40b647
test byte [esi + 0x54], 1
jne 0x40b647
mov byte [ebp - 0x5b], 1
lea edx, [ebp - 0x70]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
or byte [esi + 0x58], 8
mov dword [esi + 0x30], eax
mov ecx, dword [0x42bb44]
mov eax, dword [esi + 4]
mov edx, dword [0x4290a0]
push ebx
push ecx
mov ecx, dword [0x429094]
push ebx
push eax
mov eax, dword [0x429098]
sub edx, eax
push edx
mov edx, dword [0x42909c]
sub edx, ecx
push edx
push eax
push ecx
push ebx
push ebx
push 0x422898
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 0x48], eax
cmp dword [esi + 0x24], ebx
jne 0x40b6f6
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp eax, ebx
jle 0x40b6f6
mov dword [ebp - 0x274], ebx
lea ebx, [eax + 1]
push ebx
lea ecx, [ebp - 0x274]
call fcn.0040ab50
mov edi, eax
test edi, edi
je 0x40b6db
mov ecx, dword [esi + 4]
push ebx
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x40b6db
push edi
mov ecx, esi
call fcn.0040b020
lea edx, [ebp - 0x270]
cmp dword [ebp - 0x274], edx
je 0x40b6f4
lea ecx, [ebp - 0x274]
call fcn.0040a1f0
xor ebx, ebx
mov ecx, esi
call fcn.0040ade0
cmp dword [esi + 0x28], ebx
jne 0x40b71d
mov eax, dword [esi + 0x54]
shr eax, 2
test al, 1
jne 0x40b71d
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x40b759
push eax
mov ecx, esi
call fcn.0040b0b0
jmp 0x40b759
mov ecx, dword [esi + 0x48]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
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 - 0x44]
call fcn.00409590
mov edx, dword [esi + 0x48]
lea ecx, [ebp - 0x44]
push ecx
push ebx
push 0x432
push edx
call edi
test byte [esi + 0x58], 1
je 0x40b849
lea eax, [ebp - 0x278]
push eax
push 0x2001f
push ebx
push str.SoftwareMicrosoftInternet_ExplorerSettings
push SysReAllocString
mov dword [ebp - 0x280], ebx
mov dword [ebp - 0x27c], ebx
mov dword [ebp - 0x278], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40b849
mov edi, dword [ebp - 0x278]
xor eax, eax
lea edx, [ebp - 0x278]
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], ax
push edx
xor ecx, ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x27c], ebx
push eax
mov word [ebp - 0x2c], cx
mov ebx, 0xc
push str.Anchor_Color
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x280], edi
mov dword [ebp - 0x278], ebx
call fcn.0040a170
test eax, eax
jne 0x40b805
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0040a750
add esp, 4
cmp eax, 0xffffffff
je 0x40b805
mov dword [esi + 0x4c], eax
lea edx, [ebp - 0x278]
push edx
lea eax, [ebp - 0x2c]
push eax
push 0x422964
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x278], ebx
call fcn.0040a170
test eax, eax
jne 0x40b83e
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0040a750
add esp, 4
cmp eax, 0xffffffff
je 0x40b83e
mov dword [esi + 0x50], eax
test edi, edi
je 0x40b849
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004125d9
mov esp, ebp
pop ebp
ret