Function at 0x40f290
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x458a51
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x234
push esi
push edi
mov eax, dword [0x4631a0]
xor esi, esi
mov dword [esp + 0x244], esi
mov dword [esp + 0x18], eax
mov cx, word [0x468b0c]
xor eax, eax
mov word [esp + 0x34], cx
mov ecx, 0x81
lea edi, [esp + 0x36]
lea edx, [esp + 0x24c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [0x468c24]
lea eax, [esp + 8]
push edx
push eax
mov ecx, 0x468c20
mov byte [esp + 0x24c], 1
call fcn.00410c90
cmp dword [esp + 8], edi
jne 0x40f371
push 0x5c
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 8], eax
cmp eax, esi
mov byte [esp + 0x244], 2
je 0x40f32a
mov ecx, eax
call fcn.0041ece0
mov edi, eax
jmp 0x40f32c
xor edi, edi
mov ecx, dword [esp + 0x24c]
lea edx, [esp + 8]
lea eax, [esp + 0x10]
mov dword [esp + 8], ecx
push edx
push eax
mov ecx, 0x468c20
mov byte [esp + 0x24c], 1
mov dword [esp + 0x14], esi
call fcn.00411340
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.00411a00
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x10], edi
mov edx, dword [esp + 0x24c]
lea ecx, [esp + 0x34]
push 0x104
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esp + 0x24c]
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x40f3ac
lea ecx, [esp + 0x34]
lea edx, [esp + 0x18]
push ecx
push str._._colorrgb_128_128_128__hovercolorcolorrgb_128_128_128____.__s
push edx
jmp 0x40f3bb
lea eax, [esp + 0x34]
lea ecx, [esp + 0x18]
push eax
push str._.___.__s
push ecx
call fcn.004076f0
mov edx, dword [esp + 0x258]
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, 0x468c20
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], esi
call fcn.00411340
lea edx, [esp + 0xc]
lea eax, [esp + 8]
push edx
push eax
lea ecx, [esp + 0x24]
call fcn.00411a00
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [ecx + 0x10]
mov edx, dword [ecx]
call dword [edx + 0x18]
mov ecx, dword [esp + 0x24c]
lea edx, [esp + 0x10]
lea eax, [esp + 8]
mov dword [esp + 0x10], ecx
push edx
push eax
mov ecx, 0x468c20
mov dword [esp + 0x1c], esi
call fcn.00411340
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.00411a00
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x254]
sub esp, 0x10
mov ecx, dword [eax + 0x10]
mov eax, esp
mov edx, dword [ecx]
mov dword [eax], edi
mov edi, dword [esp + 0x268]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x26c]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x270]
mov dword [eax + 0xc], edi
call dword [edx + 8]
mov ecx, dword [esp + 0x24c]
lea edx, [esp + 0x10]
lea eax, [esp + 8]
mov dword [esp + 0x10], ecx
push edx
push eax
mov ecx, 0x468c20
mov dword [esp + 0x1c], esi
call fcn.00411340
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.00411a00
mov eax, dword [esp + 0x1c]
push 0x65
mov ecx, dword [eax + 0x10]
mov eax, dword [esp + 0x268]
push eax
mov eax, dword [esp + 0x258]
mov edx, dword [ecx]
push 2
push eax
lea eax, [esp + 0x34]
push eax
call dword [edx + 0x20]
mov eax, dword [esp + 0x18]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4631a4]
je 0x40f500
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40f500
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.0044bf22
add esp, 4
mov ecx, dword [esp + 0x23c]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x240
ret