Function at 0x4086d8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x2a
push 0
push 0
dec ecx
jne 0x4086e0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x408a0e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x114]
mov eax, 0x408a24
call fcn.00404cc0
mov eax, dword [ebp - 0x114]
call fcn.004076ec
test al, al
je 0x4089e8
lea eax, [ebp - 4]
push eax
push 0
call sub.winmm.dll_waveOutGetVolume
test eax, eax
jne 0x40873b
mov byte [ebp - 5], 1
push 0
push 0
call sub.winmm.dll_waveOutSetVolume
jmp 0x40873f
mov byte [ebp - 5], 0
imul eax, ebx, 0x1e
test eax, eax
jl 0x4089d1
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
mov edx, 0x408a34
call fcn.0040320c
push 0
push 0x408a44
push dword [ebp - 0xc]
push 0x408a58
lea eax, [ebp - 0x11c]
mov edx, 3
call fcn.004033c8
mov eax, dword [ebp - 0x11c]
lea edx, [ebp - 0x118]
call fcn.00404cc0
mov eax, dword [ebp - 0x118]
call fcn.00403508
push eax
call sub.user32.dll_FindWindowA
mov edi, eax
test edi, edi
je 0x40896b
xor ebx, ebx
mov esi, 4
lea eax, [ebp - 0xc]
mov edx, 0x408a64
call fcn.0040320c
push 0
lea eax, [ebp - 0x124]
mov ecx, 0x408a74
mov edx, dword [ebp - 0xc]
call fcn.00403354
mov eax, dword [ebp - 0x124]
lea edx, [ebp - 0x120]
call fcn.00404cc0
mov eax, dword [ebp - 0x120]
call fcn.00403508
push eax
push ebx
push edi
call sub.user32.dll_FindWindowExA
mov ebx, eax
test ebx, ebx
je 0x40890e
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.004032f0
mov eax, dword [ebp - 0x128]
push eax
lea edx, [ebp - 0x12c]
mov eax, 0x408a84
call fcn.00404cc0
mov edx, dword [ebp - 0x12c]
pop eax
call fcn.00403454
je 0x40890e
lea eax, [ebp - 0x130]
lea edx, [ebp - 0x110]
mov ecx, pe_nt_image_headers32
call fcn.004032f0
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x134]
mov eax, 0x408a94
call fcn.00404cc0
mov edx, dword [ebp - 0x134]
pop eax
call fcn.00403454
je 0x40890e
lea eax, [ebp - 0x138]
lea edx, [ebp - 0x110]
mov ecx, pe_nt_image_headers32
call fcn.004032f0
mov eax, dword [ebp - 0x138]
push eax
lea edx, [ebp - 0x13c]
mov eax, 0x408aa4
call fcn.00404cc0
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00403454
je 0x40890e
lea eax, [ebp - 0x140]
lea edx, [ebp - 0x110]
mov ecx, pe_nt_image_headers32
call fcn.004032f0
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x144]
mov eax, 0x408ab4
call fcn.00404cc0
mov edx, dword [ebp - 0x144]
pop eax
call fcn.00403454
je 0x40890e
dec esi
jne 0x4087ad
test ebx, ebx
je 0x408923
push 0
push 0
push 0xf5
push ebx
call sub.user32.dll_SendMessageA
jmp 0x40896b
xor ebx, ebx
mov esi, 4
push 0
lea edx, [ebp - 0x148]
mov eax, 0x408ac4
call fcn.00404cc0
mov eax, dword [ebp - 0x148]
call fcn.00403508
push eax
push ebx
push edi
call sub.user32.dll_FindWindowExA
mov ebx, eax
test ebx, ebx
je 0x408958
dec esi
jne 0x40892a
test ebx, ebx
je 0x40896b
push 0
push 0
push 0xf5
push ebx
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0xc]
mov edx, 0x408ad8
call fcn.0040320c
push 0
lea eax, [ebp - 0x150]
mov ecx, 0x408aec
mov edx, dword [ebp - 0xc]
call fcn.00403354
mov eax, dword [ebp - 0x150]
lea edx, [ebp - 0x14c]
call fcn.00404cc0
mov eax, dword [ebp - 0x14c]
call fcn.00403508
push eax
call sub.user32.dll_FindWindowA
mov edi, eax
test edi, edi
je 0x4089c1
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 0x40874e
cmp byte [ebp - 5], 0
je 0x4089e8
cmp dword [ebp - 4], 0
je 0x4089e8
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 0x408a15
lea eax, [ebp - 0x150]
mov edx, 0x10
call fcn.00403198
lea eax, [ebp - 0xc]
call fcn.00403174
ret