Function at 0x408658
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x2a
push 0
push 0
dec ecx
jne 0x408660
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x40898e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x114]
mov eax, 0x4089a4
call fcn.00404d24
mov eax, dword [ebp - 0x114]
call fcn.00407c08
test al, al
je 0x408968
lea eax, [ebp - 4]
push eax
push 0
call sub.winmm.dll_waveOutGetVolume
test eax, eax
jne 0x4086bb
mov byte [ebp - 5], 1
push 0
push 0
call sub.winmm.dll_waveOutSetVolume
jmp 0x4086bf
mov byte [ebp - 5], 0
imul eax, ebx, 0x1e
test eax, eax
jl 0x408951
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
mov edx, 0x4089b4
call fcn.00403214
push 0
push 0x4089c4
push dword [ebp - 0xc]
push 0x4089d8
lea eax, [ebp - 0x11c]
mov edx, 3
call fcn.0040347c
mov eax, dword [ebp - 0x11c]
lea edx, [ebp - 0x118]
call fcn.00404d24
mov eax, dword [ebp - 0x118]
call fcn.004035bc
push eax
call sub.user32.dll_FindWindowA
mov edi, eax
test edi, edi
je 0x4088eb
xor ebx, ebx
mov esi, 4
lea eax, [ebp - 0xc]
mov edx, 0x4089e4
call fcn.00403214
push 0
lea eax, [ebp - 0x124]
mov ecx, 0x4089f4
mov edx, dword [ebp - 0xc]
call fcn.00403408
mov eax, dword [ebp - 0x124]
lea edx, [ebp - 0x120]
call fcn.00404d24
mov eax, dword [ebp - 0x120]
call fcn.004035bc
push eax
push ebx
push edi
call sub.user32.dll_FindWindowExA
mov ebx, eax
test ebx, ebx
je 0x40888e
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
push ebx
call sub.user32.dll_GetWindowTextA
mov byte [ebp + eax - 0x110], 0
lea eax, [ebp - 0x128]
lea edx, [ebp - 0x110]
mov ecx, pe_nt_image_headers32
call fcn.004033a4
mov eax, dword [ebp - 0x128]
push eax
lea edx, [ebp - 0x12c]
mov eax, 0x408a04
call fcn.00404d24
mov edx, dword [ebp - 0x12c]
pop eax
call fcn.00403508
je 0x40888e
lea eax, [ebp - 0x130]
lea edx, [ebp - 0x110]
mov ecx, pe_nt_image_headers32
call fcn.004033a4
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x134]
mov eax, 0x408a14
call fcn.00404d24
mov edx, dword [ebp - 0x134]
pop eax
call fcn.00403508
je 0x40888e
lea eax, [ebp - 0x138]
lea edx, [ebp - 0x110]
mov ecx, pe_nt_image_headers32
call fcn.004033a4
mov eax, dword [ebp - 0x138]
push eax
lea edx, [ebp - 0x13c]
mov eax, 0x408a24
call fcn.00404d24
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00403508
je 0x40888e
lea eax, [ebp - 0x140]
lea edx, [ebp - 0x110]
mov ecx, pe_nt_image_headers32
call fcn.004033a4
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x144]
mov eax, 0x408a34
call fcn.00404d24
mov edx, dword [ebp - 0x144]
pop eax
call fcn.00403508
je 0x40888e
dec esi
jne 0x40872d
test ebx, ebx
je 0x4088a3
push 0
push 0
push 0xf5
push ebx
call sub.user32.dll_SendMessageA
jmp 0x4088eb
xor ebx, ebx
mov esi, 4
push 0
lea edx, [ebp - 0x148]
mov eax, 0x408a44
call fcn.00404d24
mov eax, dword [ebp - 0x148]
call fcn.004035bc
push eax
push ebx
push edi
call sub.user32.dll_FindWindowExA
mov ebx, eax
test ebx, ebx
je 0x4088d8
dec esi
jne 0x4088aa
test ebx, ebx
je 0x4088eb
push 0
push 0
push 0xf5
push ebx
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0xc]
mov edx, 0x408a58
call fcn.00403214
push 0
lea eax, [ebp - 0x150]
mov ecx, 0x408a6c
mov edx, dword [ebp - 0xc]
call fcn.00403408
mov eax, dword [ebp - 0x150]
lea edx, [ebp - 0x14c]
call fcn.00404d24
mov eax, dword [ebp - 0x14c]
call fcn.004035bc
push eax
call sub.user32.dll_FindWindowA
mov edi, eax
test edi, edi
je 0x408941
push 0
push 0
push 0x10
push edi
call sub.user32.dll_SendMessageA
push 0x64
call sub.kernel32.dll_Sleep
dec dword [ebp - 0x10]
jne 0x4086ce
cmp byte [ebp - 5], 0
je 0x408968
cmp dword [ebp - 4], 0
je 0x408968
mov eax, dword [ebp - 4]
push eax
push 0
call sub.winmm.dll_waveOutSetVolume
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408995
lea eax, [ebp - 0x150]
mov edx, 0x10
call fcn.004031a0
lea eax, [ebp - 0xc]
call fcn.0040317c
ret