Function at 0x405b4b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [ebx + 8]
and dword [ebp - 4], 0
and dword [ebp - 8], 0
test al, 0x40
je 0x405b6c
xor ecx, ecx
inc ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
test al, 8
push esi
mov esi, 0x400
je 0x405ba6
push esi
lea eax, [ebp - 0x820]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameW]
mov eax, dword [ebx + 0x84]
lea ecx, [ebp - 0x820]
push ecx
push eax
call fcn.0045190a
test eax, eax
pop ecx
pop ecx
jne 0x405ba3
inc dword [ebp - 4]
inc dword [ebp - 8]
test byte [ebx + 8], 1
push edi
mov edi, dword [sym.imp.USER32.dll_GetWindowTextW]
je 0x405c76
push esi
lea eax, [ebp - 0x820]
push eax
push dword [ebp + 8]
call edi
cmp byte [ebx + 0xc], 0
jne 0x405be5
lea eax, [ebp - 0x820]
push eax
call fcn.0045179a
pop ecx
push eax
lea eax, [ebp - 0x820]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffW]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x10]
dec eax
je 0x405c21
dec eax
je 0x405c0a
dec eax
jne 0x405c3f
push dword [ebx + 0x14]
lea eax, [ebp - 0x820]
push eax
call fcn.0045190a
pop ecx
pop ecx
jmp 0x405c38
push dword [ebx + 0x14]
lea eax, [ebp - 0x820]
push eax
call fcn.00451c53
test eax, eax
pop ecx
pop ecx
je 0x405c3f
jmp 0x405c3c
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push eax
lea eax, [ebp - 0x820]
push eax
push ecx
call fcn.004519f1
add esp, 0xc
test eax, eax
jne 0x405c3f
inc dword [ebp - 4]
test byte [ebx + 8], 8
jne 0x405c73
push esi
lea eax, [ebp - 0x820]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [ebp - 0x820]
push eax
push str.ThumbnailClass
call fcn.0045190a
test eax, eax
pop ecx
pop ecx
jne 0x405c73
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
inc dword [ebp - 8]
test byte [ebx + 8], 2
je 0x405cf2
push esi
lea eax, [ebp - 0x820]
push eax
push dword [ebp + 8]
call edi
lea eax, [ebp - 0x820]
push eax
lea esi, [ebp - 0x14]
call fcn.00410005
lea esi, [ebx + 0x2c]
lea edi, [ebp - 0x14]
call fcn.004078b2
push dword [ebp - 0x14]
call fcn.0044f971
pop ecx
call fcn.004078e6
test al, al
je 0x405cea
test byte [ebx + 8], 8
jne 0x405ce7
push 0x400
lea eax, [ebp - 0x820]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [ebp - 0x820]
push eax
push str.ThumbnailClass
call fcn.0045190a
test eax, eax
pop ecx
pop ecx
je 0x405cea
inc dword [ebp - 4]
inc dword [ebp - 8]
mov esi, 0x400
test byte [ebx + 8], 0x10
je 0x405d40
push esi
lea eax, [ebp - 0x820]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [ebp - 0x820]
push eax
lea esi, [ebp - 0x14]
call fcn.00410005
lea esi, [ebx + 0x58]
lea edi, [ebp - 0x14]
call fcn.004078b2
push dword [ebp - 0x14]
call fcn.0044f971
pop ecx
call fcn.004078e6
test al, al
je 0x405d38
inc dword [ebp - 4]
inc dword [ebp - 8]
mov esi, 0x400
test byte [ebx + 8], 4
je 0x405d62
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
jne 0x405d5f
push dword [ebp + 8]
mov edi, ebx
call fcn.00405e2b
test al, al
je 0x405d5f
inc dword [ebp - 4]
inc dword [ebp - 8]
mov eax, dword [ebx + 8]
test ax, 0x780
je 0x405dd7
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebx + 8]
test al, al
mov edx, dword [ebp - 0x18]
jns 0x405d90
cmp dword [ebx + 0x98], edx
jne 0x405d8d
inc dword [ebp - 4]
inc dword [ebp - 8]
test ax, 0x100
mov ecx, dword [ebp - 0x14]
je 0x405da7
cmp dword [ebx + 0x9c], ecx
jne 0x405da4
inc dword [ebp - 4]
inc dword [ebp - 8]
test ax, 0x200
je 0x405dc0
mov edi, dword [ebp - 0x10]
sub edi, edx
cmp dword [ebx + 0xa0], edi
jne 0x405dbd
inc dword [ebp - 4]
inc dword [ebp - 8]
test esi, eax
je 0x405dd7
mov edx, dword [ebp - 0xc]
sub edx, ecx
cmp dword [ebx + 0x9c], edx
jne 0x405dd4
inc dword [ebp - 4]
inc dword [ebp - 8]
test al, 0x20
pop edi
je 0x405dfc
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jne 0x405df9
lea eax, [ebx + 0x94]
inc dword [eax]
mov eax, dword [eax]
cmp eax, dword [ebx + 0x90]
jne 0x405df9
inc dword [ebp - 4]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
jne 0x405e23
lea eax, [ebp + 8]
push eax
lea esi, [ebx + 0xb0]
call fcn.00442e2e
inc dword [ebx + 0xa8]
xor eax, eax
cmp byte [ebx + 4], al
sete al
jmp 0x405e26
xor eax, eax
inc eax
pop esi
leave
ret 4