Function at 0x408f26
Capabilities:
Enumerate gui resources
Get graphical window text

Disassembly:
push 0x300
mov eax, 0x4578e6
call fcn.00456afc
mov dword [ebp - 0x2b4], edx
and dword [ebp - 0x2c4], 0
and dword [ebp - 0x2c0], 0
push 0x88
call fcn.0045550f
pop ecx
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x2c4], eax
and dword [ebp - 4], 0
xor edx, edx
mov eax, dword [0x657408]
mov ecx, dword [0x657404]
sub eax, ecx
sar eax, 7
mov dword [ebp - 0x298], edx
test eax, eax
je 0x408fcb
xor edi, edi
lea esi, [edi + ecx]
cmp byte [esi + 0x48], 0
je 0x408fb3
mov ecx, esi
call fcn.00401914
test al, al
je 0x408fa7
cmp byte [esi + 0x49], 0
je 0x408fa7
push esi
lea ecx, [ebp - 0x2c4]
call fcn.004034d3
mov edx, dword [ebp - 0x298]
mov ecx, dword [0x657404]
mov eax, dword [0x657408]
inc edx
sub eax, ecx
mov dword [ebp - 0x298], edx
sar eax, 7
sub edi, 0xffffff80
cmp edx, eax
jb 0x408f81
xor eax, eax
lea edx, [ebp - 0x2c4]
mov dword [ebp - 0x2a0], eax
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x298], eax
lea eax, [ebp - 0x2a0]
push eax
call fcn.004030d9
pop ecx
xor eax, eax
inc eax
mov byte [ebp - 4], al
cmp dword [ebp - 0x2a8], 0
mov dword [ebp - 0x2a0], eax
je 0x4092c6
and dword [ebp - 0x2bc], 0
and dword [ebp - 0x2b8], 0
push 0xc
call fcn.0045550f
pop ecx
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x2bc], eax
lea eax, [ebp - 0x2bc]
mov byte [ebp - 4], 2
push eax
push 0x406c1d
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0x2bc]
mov ecx, 0x658850
mov dword [ebp - 0x2d0], eax
mov dword [ebp - 0x2a4], ecx
mov esi, dword [eax]
cmp esi, eax
je 0x409174
mov dword [ebp - 0x294], ecx
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x2c8]
push ecx
push eax
mov dword [ebp - 0x2cc], eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, dword [ebp - 0x2ac]
mov eax, dword [edi]
cmp eax, edi
je 0x4090a7
mov ecx, dword [ebp - 0x2c8]
cmp dword [eax + 8], ecx
je 0x40916c
mov eax, dword [eax]
cmp eax, edi
jne 0x409098
xor eax, eax
mov dword [ebp - 0x2b0], eax
test eax, eax
je 0x40915c
mov edi, dword [ebp - 0x2cc]
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x409156
push 0xff
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, dword [ebp - 0x2b0]
lea eax, [edi + 0x4c]
cmp dword [eax + 0x14], 7
jbe 0x4090f5
mov eax, dword [eax]
push eax
push dword [ebp - 0x294]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy]
push 0x64f378
push dword [ebp - 0x294]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat]
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x294]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat]
mov eax, dword [ebp - 0x294]
add esp, 0x18
mov ecx, dword [ebp - 0x298]
add eax, 0x200
or ecx, dword [edi + 0x7c]
inc dword [ebp - 0x29c]
mov dword [ebp - 0x294], eax
mov dword [ebp - 0x298], ecx
cmp eax, 0x678650
jge 0x409174
mov edi, dword [ebp - 0x2ac]
mov esi, dword [esi]
cmp esi, dword [ebp - 0x2d0]
jne 0x40906f
jmp 0x40917a
add eax, 0xc
jmp 0x4090a9
mov edi, dword [ebp - 0x2ac]
mov esi, dword [edi]
cmp esi, edi
je 0x409221
mov eax, dword [ebp - 0x29c]
shl eax, 9
add eax, 0x658850
mov dword [ebp - 0x294], eax
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x290]
call fcn.00401839
mov eax, dword [ebp - 0x298]
test dword [ebp - 0x214], eax
jne 0x40920c
cmp dword [ebp - 0x230], 7
lea eax, [ebp - 0x244]
cmova eax, dword [ebp - 0x244]
push eax
push dword [ebp - 0x294]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy]
push 0x64f380
push dword [ebp - 0x294]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat]
mov eax, dword [ebp - 0x298]
add esp, 0x10
inc dword [ebp - 0x29c]
add dword [ebp - 0x294], 0x200
or eax, dword [ebp - 0x214]
mov dword [ebp - 0x298], eax
lea ecx, [ebp - 0x290]
call fcn.0040180e
mov esi, dword [esi]
cmp esi, edi
jne 0x409198
lea ecx, [ebp - 0x2bc]
call fcn.00403484
mov edi, dword [ebp - 0x29c]
test edi, edi
je 0x4092c6
mov eax, dword [ebp - 0x2a8]
cmp eax, dword [0x679b18]
je 0x4092cd
push 0
push 0
push 0x1009
push dword [ebp - 0x2b4]
mov dword [0x679b18], eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor esi, esi
test edi, edi
jle 0x4092cd
push 0x3c
lea eax, [ebp - 0x30c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x2a4]
add esp, 0xc
mov dword [ebp - 0x2f8], eax
lea eax, [ebp - 0x30c]
mov dword [ebp - 0x308], esi
mov dword [ebp - 0x30c], 1
push eax
push 0
push 0x104d
push dword [ebp - 0x2b4]
call dword [sym.imp.USER32.dll_SendMessageW]
add dword [ebp - 0x2a4], 0x200
inc esi
cmp esi, edi
jl 0x40926c
jmp 0x4092cd
mov byte [ebp - 0x2a0], 0
lea ecx, [ebp - 0x2ac]
call fcn.00403577
lea ecx, [ebp - 0x2c4]
call fcn.00403535
mov al, byte [ebp - 0x2a0]
call fcn.00456aba
ret