Function at 0x405499
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 0x4054c5
xor ecx, ecx
inc ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov ebx, 0x400
test al, 8
je 0x4054fc
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.004571cc
pop ecx
pop ecx
test eax, eax
jne 0x4054f8
inc dword [esp + 0xc]
inc dword [esp + 0x10]
test byte [edi + 8], 1
mov esi, dword [sym.imp.USER32.dll_GetWindowTextW]
je 0x4055c1
push ebx
lea eax, [esp + 0x2c]
push eax
push dword [ebp + 8]
call esi
cmp byte [edi + 0xc], 0
jne 0x405534
lea eax, [esp + 0x28]
push eax
call fcn.00455251
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 0x40556e
dec eax
je 0x405559
dec eax
jne 0x40558b
push dword [edi + 0x14]
lea eax, [esp + 0x2c]
push eax
call fcn.004571cc
pop ecx
pop ecx
jmp 0x405583
push dword [edi + 0x14]
lea eax, [esp + 0x2c]
push eax
call fcn.0045754d
pop ecx
pop ecx
test eax, eax
je 0x40558b
jmp 0x405587
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
push eax
lea eax, [esp + 0x2c]
push eax
push ecx
call fcn.004572f2
add esp, 0xc
test eax, eax
jne 0x40558b
inc dword [esp + 0xc]
test byte [edi + 8], 0x18
jne 0x4055bd
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.004571cc
pop ecx
pop ecx
test eax, eax
jne 0x4055bd
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], eax
inc dword [esp + 0x10]
test byte [edi + 8], 2
je 0x40563b
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.0040728a
mov eax, dword [esi + 4]
lea ecx, [esp + 0x14]
mov dword [esi + 0x28], eax
mov byte [esi + 0x10], 1
call fcn.00401a04
call fcn.004074a9
test al, al
je 0x405637
test byte [edi + 8], 0x18
jne 0x405633
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.004571cc
pop ecx
pop ecx
test eax, eax
je 0x405637
inc dword [esp + 0xc]
inc dword [esp + 0x10]
test byte [edi + 8], 0x10
je 0x40568f
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.0040728a
mov eax, dword [esi + 4]
lea ecx, [esp + 0x14]
mov dword [esi + 0x28], eax
mov byte [esi + 0x10], 1
call fcn.00401a04
call fcn.004074a9
test al, al
je 0x40568b
inc dword [esp + 0xc]
inc dword [esp + 0x10]
test byte [edi + 8], 4
je 0x4056b3
mov eax, dword [esp + 0x10]
cmp dword [esp + 0xc], eax
jne 0x4056af
push dword [ebp + 8]
call fcn.00405797
test al, al
je 0x4056af
inc dword [esp + 0xc]
inc dword [esp + 0x10]
mov eax, dword [edi + 8]
test eax, 0x780
je 0x405738
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 0x4056e6
cmp dword [edi + 0xd4], edx
jne 0x4056e2
inc dword [esp + 0xc]
inc dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
test eax, 0x100
je 0x405701
cmp dword [edi + 0xd8], ecx
jne 0x4056fd
inc dword [esp + 0xc]
inc dword [esp + 0x10]
test eax, 0x200
je 0x40571e
mov esi, dword [esp + 0x1c]
sub esi, edx
cmp dword [edi + 0xdc], esi
jne 0x40571a
inc dword [esp + 0xc]
inc dword [esp + 0x10]
test ebx, eax
je 0x405738
mov edx, dword [esp + 0x20]
sub edx, ecx
cmp dword [edi + 0xe0], edx
jne 0x405734
inc dword [esp + 0xc]
inc dword [esp + 0x10]
test al, 0x20
je 0x405762
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x10]
jne 0x40575e
inc dword [edi + 0xd0]
mov eax, dword [edi + 0xd0]
cmp eax, dword [edi + 0xcc]
jne 0x40575e
inc dword [esp + 0xc]
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp dword [esp + 0xc], eax
jne 0x40578b
lea eax, [ebp + 8]
push eax
lea esi, [edi + 0xec]
call fcn.004058bd
inc dword [edi + 0xe4]
xor eax, eax
cmp byte [edi + 4], al
sete al
jmp 0x40578e
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4