Function at 0x4054bc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x824
and dword [esp], 0
and dword [esp + 4], 0
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 8]
test al, 0x40
je 0x4054e8
xor ecx, ecx
inc ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov ebx, 0x400
test al, 8
je 0x40551f
push ebx
lea eax, [esp + 0x2c]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameW]
mov eax, dword [edi + 0xbc]
lea ecx, [esp + 0x28]
push ecx
push eax
call fcn.00456fac
pop ecx
pop ecx
test eax, eax
jne 0x40551b
inc dword [esp + 0xc]
inc dword [esp + 0x10]
test byte [edi + 8], 1
mov esi, dword [sym.imp.USER32.dll_GetWindowTextW]
je 0x4055e4
push ebx
lea eax, [esp + 0x2c]
push eax
push dword [ebp + 8]
call esi
cmp byte [edi + 0xc], 0
jne 0x405557
lea eax, [esp + 0x28]
push eax
call fcn.00455031
pop ecx
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffW]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x10]
dec eax
je 0x405591
dec eax
je 0x40557c
dec eax
jne 0x4055ae
push dword [edi + 0x14]
lea eax, [esp + 0x2c]
push eax
call fcn.00456fac
pop ecx
pop ecx
jmp 0x4055a6
push dword [edi + 0x14]
lea eax, [esp + 0x2c]
push eax
call fcn.0045732d
pop ecx
pop ecx
test eax, eax
je 0x4055ae
jmp 0x4055aa
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
push eax
lea eax, [esp + 0x2c]
push eax
push ecx
call fcn.004570d2
add esp, 0xc
test eax, eax
jne 0x4055ae
inc dword [esp + 0xc]
test byte [edi + 8], 0x18
jne 0x4055e0
push ebx
lea eax, [esp + 0x2c]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [esp + 0x28]
push eax
push str.ThumbnailClass
call fcn.00456fac
pop ecx
pop ecx
test eax, eax
jne 0x4055e0
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], eax
inc dword [esp + 0x10]
test byte [edi + 8], 2
je 0x40565e
push ebx
lea eax, [esp + 0x2c]
push eax
push dword [ebp + 8]
call esi
lea eax, [esp + 0x28]
push eax
lea esi, [esp + 0x18]
call fcn.00401983
lea esi, [edi + 0x34]
push esi
lea eax, [esp + 0x18]
call fcn.004072b7
mov eax, dword [esi + 4]
lea ecx, [esp + 0x14]
mov dword [esi + 0x28], eax
mov byte [esi + 0x10], 1
call fcn.00401a04
call fcn.004074d6
test al, al
je 0x40565a
test byte [edi + 8], 0x18
jne 0x405656
push ebx
lea eax, [esp + 0x2c]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [esp + 0x28]
push eax
push str.ThumbnailClass
call fcn.00456fac
pop ecx
pop ecx
test eax, eax
je 0x40565a
inc dword [esp + 0xc]
inc dword [esp + 0x10]
test byte [edi + 8], 0x10
je 0x4056b2
push ebx
lea eax, [esp + 0x2c]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [esp + 0x28]
push eax
lea esi, [esp + 0x18]
call fcn.00401983
lea esi, [edi + 0x78]
push esi
lea eax, [esp + 0x18]
call fcn.004072b7
mov eax, dword [esi + 4]
lea ecx, [esp + 0x14]
mov dword [esi + 0x28], eax
mov byte [esi + 0x10], 1
call fcn.00401a04
call fcn.004074d6
test al, al
je 0x4056ae
inc dword [esp + 0xc]
inc dword [esp + 0x10]
test byte [edi + 8], 4
je 0x4056d6
mov eax, dword [esp + 0x10]
cmp dword [esp + 0xc], eax
jne 0x4056d2
push dword [ebp + 8]
call fcn.004057ba
test al, al
je 0x4056d2
inc dword [esp + 0xc]
inc dword [esp + 0x10]
mov eax, dword [edi + 8]
test eax, 0x780
je 0x40575b
lea eax, [esp + 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [edi + 8]
mov edx, dword [esp + 0x14]
test al, al
jns 0x405709
cmp dword [edi + 0xd4], edx
jne 0x405705
inc dword [esp + 0xc]
inc dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
test eax, 0x100
je 0x405724
cmp dword [edi + 0xd8], ecx
jne 0x405720
inc dword [esp + 0xc]
inc dword [esp + 0x10]
test eax, 0x200
je 0x405741
mov esi, dword [esp + 0x1c]
sub esi, edx
cmp dword [edi + 0xdc], esi
jne 0x40573d
inc dword [esp + 0xc]
inc dword [esp + 0x10]
test ebx, eax
je 0x40575b
mov edx, dword [esp + 0x20]
sub edx, ecx
cmp dword [edi + 0xe0], edx
jne 0x405757
inc dword [esp + 0xc]
inc dword [esp + 0x10]
test al, 0x20
je 0x405785
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x10]
jne 0x405781
inc dword [edi + 0xd0]
mov eax, dword [edi + 0xd0]
cmp eax, dword [edi + 0xcc]
jne 0x405781
inc dword [esp + 0xc]
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp dword [esp + 0xc], eax
jne 0x4057ae
lea eax, [ebp + 8]
push eax
lea esi, [edi + 0xec]
call fcn.004058e0
inc dword [edi + 0xe4]
xor eax, eax
cmp byte [edi + 4], al
sete al
jmp 0x4057b1
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4