Function at 0x408ce8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x2a
push 0
push 0
dec ecx
jne 0x408cf0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x40901e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x114]
mov eax, 0x409034
call fcn.00404d28
mov eax, dword [ebp - 0x114]
call fcn.00407c0c
test al, al
je 0x408ff8
lea eax, [ebp - 4]
push eax
push 0
call sub.winmm.dll_waveOutGetVolume
test eax, eax
jne 0x408d4b
mov byte [ebp - 5], 1
push 0
push 0
call sub.winmm.dll_waveOutSetVolume
jmp 0x408d4f
mov byte [ebp - 5], 0
imul eax, ebx, 0x1e
test eax, eax
jl 0x408fe1
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
mov edx, 0x409044
call fcn.00403214
push 0
push 0x409054
push dword [ebp - 0xc]
push 0x409068
lea eax, [ebp - 0x11c]
mov edx, 3
call fcn.0040347c
mov eax, dword [ebp - 0x11c]
lea edx, [ebp - 0x118]
call fcn.00404d28
mov eax, dword [ebp - 0x118]
call fcn.004035bc
push eax
call sub.user32.dll_FindWindowA
mov edi, eax
test edi, edi
je 0x408f7b
xor ebx, ebx
mov esi, 4
lea eax, [ebp - 0xc]
mov edx, 0x409074
call fcn.00403214
push 0
lea eax, [ebp - 0x124]
mov ecx, 0x409084
mov edx, dword [ebp - 0xc]
call fcn.00403408
mov eax, dword [ebp - 0x124]
lea edx, [ebp - 0x120]
call fcn.00404d28
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 0x408f1e
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, 0x409094
call fcn.00404d28
mov edx, dword [ebp - 0x12c]
pop eax
call fcn.00403508
je 0x408f1e
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, 0x4090a4
call fcn.00404d28
mov edx, dword [ebp - 0x134]
pop eax
call fcn.00403508
je 0x408f1e
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, 0x4090b4
call fcn.00404d28
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00403508
je 0x408f1e
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, 0x4090c4
call fcn.00404d28
mov edx, dword [ebp - 0x144]
pop eax
call fcn.00403508
je 0x408f1e
dec esi
jne 0x408dbd
test ebx, ebx
je 0x408f33
push 0
push 0
push 0xf5
push ebx
call sub.user32.dll_SendMessageA
jmp 0x408f7b
xor ebx, ebx
mov esi, 4
push 0
lea edx, [ebp - 0x148]
mov eax, 0x4090d4
call fcn.00404d28
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 0x408f68
dec esi
jne 0x408f3a
test ebx, ebx
je 0x408f7b
push 0
push 0
push 0xf5
push ebx
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0xc]
mov edx, 0x4090e8
call fcn.00403214
push 0
lea eax, [ebp - 0x150]
mov ecx, 0x4090fc
mov edx, dword [ebp - 0xc]
call fcn.00403408
mov eax, dword [ebp - 0x150]
lea edx, [ebp - 0x14c]
call fcn.00404d28
mov eax, dword [ebp - 0x14c]
call fcn.004035bc
push eax
call sub.user32.dll_FindWindowA
mov edi, eax
test edi, edi
je 0x408fd1
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 0x408d5e
cmp byte [ebp - 5], 0
je 0x408ff8
cmp dword [ebp - 4], 0
je 0x408ff8
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 0x409025
lea eax, [ebp - 0x150]
mov edx, 0x10
call fcn.004031a0
lea eax, [ebp - 0xc]
call fcn.0040317c
ret