Function at 0x409090
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x2a
push 0
push 0
dec ecx
jne 0x409098
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4093c6
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x114]
mov eax, 0x4093dc
call fcn.00404c04
mov eax, dword [ebp - 0x114]
call fcn.004077cc
test al, al
je 0x4093a0
lea eax, [ebp - 4]
push eax
push 0
call sub.winmm.dll_waveOutGetVolume
test eax, eax
jne 0x4090f3
mov byte [ebp - 5], 1
push 0
push 0
call sub.winmm.dll_waveOutSetVolume
jmp 0x4090f7
mov byte [ebp - 5], 0
imul eax, ebx, 0x1e
test eax, eax
jl 0x409389
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
mov edx, 0x4093ec
call fcn.00403214
push 0
push 0x4093fc
push dword [ebp - 0xc]
push 0x409410
lea eax, [ebp - 0x11c]
mov edx, 3
call fcn.0040347c
mov eax, dword [ebp - 0x11c]
lea edx, [ebp - 0x118]
call fcn.00404c04
mov eax, dword [ebp - 0x118]
call fcn.004035bc
push eax
call sub.user32.dll_FindWindowA
mov edi, eax
test edi, edi
je 0x409323
xor ebx, ebx
mov esi, 4
lea eax, [ebp - 0xc]
mov edx, 0x40941c
call fcn.00403214
push 0
lea eax, [ebp - 0x124]
mov ecx, 0x40942c
mov edx, dword [ebp - 0xc]
call fcn.00403408
mov eax, dword [ebp - 0x124]
lea edx, [ebp - 0x120]
call fcn.00404c04
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 0x4092c6
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, 0x40943c
call fcn.00404c04
mov edx, dword [ebp - 0x12c]
pop eax
call fcn.00403508
je 0x4092c6
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, 0x40944c
call fcn.00404c04
mov edx, dword [ebp - 0x134]
pop eax
call fcn.00403508
je 0x4092c6
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, 0x40945c
call fcn.00404c04
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00403508
je 0x4092c6
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, 0x40946c
call fcn.00404c04
mov edx, dword [ebp - 0x144]
pop eax
call fcn.00403508
je 0x4092c6
dec esi
jne 0x409165
test ebx, ebx
je 0x4092db
push 0
push 0
push 0xf5
push ebx
call sub.user32.dll_SendMessageA
jmp 0x409323
xor ebx, ebx
mov esi, 4
push 0
lea edx, [ebp - 0x148]
mov eax, 0x40947c
call fcn.00404c04
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 0x409310
dec esi
jne 0x4092e2
test ebx, ebx
je 0x409323
push 0
push 0
push 0xf5
push ebx
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0xc]
mov edx, 0x409490
call fcn.00403214
push 0
lea eax, [ebp - 0x150]
mov ecx, 0x4094a4
mov edx, dword [ebp - 0xc]
call fcn.00403408
mov eax, dword [ebp - 0x150]
lea edx, [ebp - 0x14c]
call fcn.00404c04
mov eax, dword [ebp - 0x14c]
call fcn.004035bc
push eax
call sub.user32.dll_FindWindowA
mov edi, eax
test edi, edi
je 0x409379
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 0x409106
cmp byte [ebp - 5], 0
je 0x4093a0
cmp dword [ebp - 4], 0
je 0x4093a0
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 0x4093cd
lea eax, [ebp - 0x150]
mov edx, 0x10
call fcn.004031a0
lea eax, [ebp - 0xc]
call fcn.0040317c
ret