Function at 0x41a773
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x42c1a4
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x220
and dword [ebp - 0x1c], 0
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
lea eax, [esi + esi]
push eax
call sub.MFC42u.DLL_operatornew
pop ecx
mov edi, eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push edi
lea ecx, [ebp - 0x14]
call fcn.004015c5
push edi
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_operatordelete
pop ecx
lea ecx, [ebp - 0x14]
call fcn.0040164a
sub eax, 0x1b
jns 0x41a7d6
xor eax, eax
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.0041df2f
mov esi, eax
mov ecx, esi
call fcn.0040877f
lea ecx, [ebp - 0x14]
call fcn.0040180d
mov ecx, dword [ebp - 0x18]
mov eax, dword [esi]
test ecx, ecx
mov dword [ebp - 0x14], eax
je 0x41a805
call fcn.0040172d
lea ecx, [ebp - 0x14]
call fcn.0040164a
push 0x5f
pop edi
cmp eax, edi
jbe 0x41a843
lea eax, [ebp - 0x18]
push edi
push eax
lea ecx, [ebp - 0x14]
call fcn.0041df2f
mov esi, eax
mov ecx, esi
call fcn.0040877f
lea ecx, [ebp - 0x14]
call fcn.0040180d
mov ecx, dword [ebp - 0x18]
mov eax, dword [esi]
test ecx, ecx
mov dword [ebp - 0x14], eax
je 0x41a843
call fcn.0040172d
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0040164a
cmp eax, edi
jbe 0x41a8a4
mov eax, dword [esi]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
call fcn.0040877f
lea eax, [ebp - 0x20]
push edi
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0041df2f
mov edi, eax
mov eax, dword [edi]
test eax, eax
je 0x41a881
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, esi
call fcn.0040180d
mov ecx, dword [ebp - 0x20]
mov eax, dword [edi]
test ecx, ecx
mov dword [esi], eax
je 0x41a898
call fcn.0040172d
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x41a8a4
call fcn.0040172d
mov ebx, dword [sym.imp.USER32.dll_GetWindow]
push 5
push dword [ebp + 8]
call ebx
mov edi, eax
test edi, edi
je 0x41a99c
mov esi, 0x104
test edi, edi
je 0x41a99c
push esi
lea eax, [ebp - 0x22c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x22c]
push esi
push eax
push edi
call dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [ebp - 0x22c]
push str.TabWindowClass
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
jne 0x41a98c
mov eax, dword [ebp - 0x14]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x41a919
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
call fcn.0041dc96
mov ecx, dword [ebp - 0x18]
mov byte [ebp + 0xb], al
test ecx, ecx
je 0x41a934
call fcn.0040172d
cmp byte [ebp + 0xb], 0
je 0x41a98c
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x41a98c
push 5
push edi
call ebx
mov edi, eax
test edi, edi
je 0x41a98c
push esi
lea eax, [ebp - 0x22c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x22c]
push esi
push eax
push edi
call dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [ebp - 0x22c]
push str.Shell_DocObject_View
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
jne 0x41a998
mov dword [ebp - 0x1c], edi
push 2
push edi
call ebx
mov edi, eax
jmp 0x41a8c0
push 2
jmp 0x41a947
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x41a9a8
call fcn.0040172d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8