Function at 0x40905c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x2a
push 0
push 0
dec ecx
jne 0x409064
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x409392
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x114]
mov eax, 0x4093a8
call fcn.00404c04
mov eax, dword [ebp - 0x114]
call fcn.00407800
test al, al
je 0x40936c
lea eax, [ebp - 4]
push eax
push 0
call sub.winmm.dll_waveOutGetVolume
test eax, eax
jne 0x4090bf
mov byte [ebp - 5], 1
push 0
push 0
call sub.winmm.dll_waveOutSetVolume
jmp 0x4090c3
mov byte [ebp - 5], 0
imul eax, ebx, 0x1e
test eax, eax
jl 0x409355
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
mov edx, 0x4093b8
call fcn.00403214
push 0
push 0x4093c8
push dword [ebp - 0xc]
push 0x4093dc
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 0x4092ef
xor ebx, ebx
mov esi, 4
lea eax, [ebp - 0xc]
mov edx, 0x4093e8
call fcn.00403214
push 0
lea eax, [ebp - 0x124]
mov ecx, 0x4093f8
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 0x409292
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, 0x409408
call fcn.00404c04
mov edx, dword [ebp - 0x12c]
pop eax
call fcn.00403508
je 0x409292
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, 0x409418
call fcn.00404c04
mov edx, dword [ebp - 0x134]
pop eax
call fcn.00403508
je 0x409292
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, 0x409428
call fcn.00404c04
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00403508
je 0x409292
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, 0x409438
call fcn.00404c04
mov edx, dword [ebp - 0x144]
pop eax
call fcn.00403508
je 0x409292
dec esi
jne 0x409131
test ebx, ebx
je 0x4092a7
push 0
push 0
push 0xf5
push ebx
call sub.user32.dll_SendMessageA
jmp 0x4092ef
xor ebx, ebx
mov esi, 4
push 0
lea edx, [ebp - 0x148]
mov eax, 0x409448
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 0x4092dc
dec esi
jne 0x4092ae
test ebx, ebx
je 0x4092ef
push 0
push 0
push 0xf5
push ebx
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0xc]
mov edx, 0x40945c
call fcn.00403214
push 0
lea eax, [ebp - 0x150]
mov ecx, 0x409470
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 0x409345
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 0x4090d2
cmp byte [ebp - 5], 0
je 0x40936c
cmp dword [ebp - 4], 0
je 0x40936c
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 0x409399
lea eax, [ebp - 0x150]
mov edx, 0x10
call fcn.004031a0
lea eax, [ebp - 0xc]
call fcn.0040317c
ret