Function at 0x405b1a
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 0x405b3b
xor ecx, ecx
inc ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
test al, 8
push esi
mov esi, 0x400
je 0x405b75
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.004518ea
test eax, eax
pop ecx
pop ecx
jne 0x405b72
inc dword [ebp - 4]
inc dword [ebp - 8]
test byte [ebx + 8], 1
push edi
mov edi, dword [sym.imp.USER32.dll_GetWindowTextW]
je 0x405c45
push esi
lea eax, [ebp - 0x820]
push eax
push dword [ebp + 8]
call edi
cmp byte [ebx + 0xc], 0
jne 0x405bb4
lea eax, [ebp - 0x820]
push eax
call fcn.0045177a
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 0x405bf0
dec eax
je 0x405bd9
dec eax
jne 0x405c0e
push dword [ebx + 0x14]
lea eax, [ebp - 0x820]
push eax
call fcn.004518ea
pop ecx
pop ecx
jmp 0x405c07
push dword [ebx + 0x14]
lea eax, [ebp - 0x820]
push eax
call fcn.00451c33
test eax, eax
pop ecx
pop ecx
je 0x405c0e
jmp 0x405c0b
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push eax
lea eax, [ebp - 0x820]
push eax
push ecx
call fcn.004519d1
add esp, 0xc
test eax, eax
jne 0x405c0e
inc dword [ebp - 4]
test byte [ebx + 8], 8
jne 0x405c42
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.004518ea
test eax, eax
pop ecx
pop ecx
jne 0x405c42
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
inc dword [ebp - 8]
test byte [ebx + 8], 2
je 0x405cc1
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.0040ffd4
lea esi, [ebx + 0x2c]
lea edi, [ebp - 0x14]
call fcn.00407881
push dword [ebp - 0x14]
call fcn.0044f951
pop ecx
call fcn.004078b5
test al, al
je 0x405cb9
test byte [ebx + 8], 8
jne 0x405cb6
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.004518ea
test eax, eax
pop ecx
pop ecx
je 0x405cb9
inc dword [ebp - 4]
inc dword [ebp - 8]
mov esi, 0x400
test byte [ebx + 8], 0x10
je 0x405d0f
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.0040ffd4
lea esi, [ebx + 0x58]
lea edi, [ebp - 0x14]
call fcn.00407881
push dword [ebp - 0x14]
call fcn.0044f951
pop ecx
call fcn.004078b5
test al, al
je 0x405d07
inc dword [ebp - 4]
inc dword [ebp - 8]
mov esi, 0x400
test byte [ebx + 8], 4
je 0x405d31
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
jne 0x405d2e
push dword [ebp + 8]
mov edi, ebx
call fcn.00405dfa
test al, al
je 0x405d2e
inc dword [ebp - 4]
inc dword [ebp - 8]
mov eax, dword [ebx + 8]
test ax, 0x780
je 0x405da6
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 0x405d5f
cmp dword [ebx + 0x98], edx
jne 0x405d5c
inc dword [ebp - 4]
inc dword [ebp - 8]
test ax, 0x100
mov ecx, dword [ebp - 0x14]
je 0x405d76
cmp dword [ebx + 0x9c], ecx
jne 0x405d73
inc dword [ebp - 4]
inc dword [ebp - 8]
test ax, 0x200
je 0x405d8f
mov edi, dword [ebp - 0x10]
sub edi, edx
cmp dword [ebx + 0xa0], edi
jne 0x405d8c
inc dword [ebp - 4]
inc dword [ebp - 8]
test esi, eax
je 0x405da6
mov edx, dword [ebp - 0xc]
sub edx, ecx
cmp dword [ebx + 0x9c], edx
jne 0x405da3
inc dword [ebp - 4]
inc dword [ebp - 8]
test al, 0x20
pop edi
je 0x405dcb
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jne 0x405dc8
lea eax, [ebx + 0x94]
inc dword [eax]
mov eax, dword [eax]
cmp eax, dword [ebx + 0x90]
jne 0x405dc8
inc dword [ebp - 4]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
jne 0x405df2
lea eax, [ebp + 8]
push eax
lea esi, [ebx + 0xb0]
call fcn.00442e13
inc dword [ebx + 0xa8]
xor eax, eax
cmp byte [ebx + 4], al
sete al
jmp 0x405df5
xor eax, eax
inc eax
pop esi
leave
ret 4