Function at 0x47a788
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x4ca087
call fcn.004c7e20
sub esp, 0x9c
mov eax, dword [0x4ed384]
push edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push 0x423
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
xor edi, edi
push edi
push edi
push 0x147
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
mov dword [ebp - 0x7c], eax
je 0x47af02
push ebx
push esi
mov ebx, 0x4f3060
call fcn.00474dcb
mov ebx, dword [ebp + 8]
push edi
push edi
add ebx, 0x7c
push 0x1009
push dword [ebx]
mov esi, eax
mov dword [ebp - 0x74], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x7c]
add ecx, 0x54
mov dword [ebp - 0x78], ecx
call fcn.004ab76d
push eax
push 0x4f3060
call fcn.0040adfd
test eax, eax
pop ecx
pop ecx
jne 0x47a858
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
call fcn.004ab76d
mov esi, eax
mov edi, 0x4f3060
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, 0x4f3060
movsd dword es:[edi], dword [esi]
call fcn.00474dcb
mov esi, eax
movzx eax, word [ebp + 0xc]
push eax
push 0x400
push 0x7f0
push dword [0x4f2c70]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [ebp - 0x74]
xor edi, edi
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0x9c], edi
push 0x7c
push 4
lea eax, [ebp - 0xa8]
push eax
push 0x815d
mov dword [ebp - 4], edi
call fcn.0049e1bc
push 0x813c
lea eax, [ebp + 0xc]
call fcn.00408e92
mov eax, dword [eax]
add esp, 0x14
push esi
push eax
push edi
push ebx
call fcn.00405aee
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x47a8b7
push eax
call fcn.004013aa
cmp esi, dword [ebp - 0xa4]
jae 0x47a965
mov eax, dword [ebp - 0xa8]
lea eax, [eax + esi*4]
push dword [eax]
push 1
push edi
push ebx
call fcn.00405a0b
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x8c], edi
push 0x7c
push 4
lea eax, [ebp - 0x98]
push eax
lea eax, [esi + 0x812a]
push eax
mov byte [ebp - 4], 1
call fcn.0049e1bc
add esp, 0x10
cmp dword [ebp - 0x94], edi
jbe 0x47a965
mov ebx, dword [ebp - 0x98]
mov eax, dword [ebx]
push 0xffffffffffffffff
push eax
push 1
push dword [ebp - 0x74]
call fcn.00405aee
cmp dword [ebp - 0x94], 1
jbe 0x47a965
mov eax, dword [ebx + 4]
push 0xffffffffffffffff
push eax
push 2
push dword [ebp - 0x74]
call fcn.00405aee
cmp dword [ebp - 0x94], 2
jbe 0x47a965
mov eax, dword [ebx + 8]
push 0xffffffffffffffff
push eax
push 3
push dword [ebp - 0x74]
call fcn.00405aee
cmp dword [ebp - 0x94], 3
ja 0x47a96f
push 0x80070057
call fcn.004010ca
mov ebx, dword [ebx + 0xc]
push 0xffffffffffffffff
push ebx
mov ebx, dword [ebp - 0x74]
push 4
push ebx
call fcn.00405aee
mov eax, dword [0x4f0980]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
push 0x7c
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x84]
push eax
push 0x8144
mov byte [ebp - 4], 3
call fcn.0049e152
add esp, 0x10
cmp esi, edi
mov dword [ebp - 0x7c], edi
jne 0x47aa9f
mov ebx, 0x4f3060
call fcn.00474e14
push 0x14
mov edx, eax
mov word [ebp - 0x64], di
pop ecx
xor eax, eax
lea edi, [ebp - 0x62]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x54
lea eax, [ebp - 0x64]
dec edx
push eax
push edx
call dword [sym.imp.WINMM.dll_waveOutGetDevCapsW]
test eax, eax
jne 0x47acf2
mov eax, dword [0x4f0980]
mov dword [ebp + 0xc], eax
movzx eax, byte [ebp - 0x60]
push eax
mov eax, dword [ebp - 0x60]
shr eax, 8
movzx eax, al
push eax
lea eax, [ebp + 0xc]
push str._d._d
push eax
call fcn.00405986
mov ebx, dword [ebp - 0x74]
add esp, 0x10
push dword [ebp + 0xc]
xor edi, edi
inc edi
push edi
push edi
push ebx
call fcn.00405a0b
cmp dword [ebp - 0x14], 0
je 0x47ace7
test byte [ebp - 0x14], 4
lea eax, [ebp - 0x84]
jne 0x47aa3b
lea eax, [ebp - 0x80]
push dword [eax]
push edi
push 2
push ebx
call fcn.00405a0b
test byte [ebp - 0x14], 8
lea eax, [ebp - 0x84]
jne 0x47aa55
lea eax, [ebp - 0x80]
push dword [eax]
push edi
push 3
push ebx
call fcn.00405a0b
mov eax, dword [ebp - 0x14]
shr eax, 5
not eax
and eax, edi
or eax, 6
push eax
lea eax, [ebp - 0x78]
call fcn.00408e92
pop ecx
push dword [eax]
push edi
push 4
push ebx
call fcn.00405a0b
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x47ace7
push eax
call fcn.004013aa
jmp 0x47ace7
cmp esi, 1
jne 0x47ab80
push 0x17
pop ecx
xor eax, eax
mov dword [ebp - 0x70], 0x60
lea edi, [ebp - 0x6c]
rep stosd dword es:[edi], eax
push 0x4f34e8
lea edx, [ebp - 0x70]
mov ecx, 0x4f3060
call fcn.0049fef4
test eax, eax
mov dword [ebp - 0x7c], eax
jl 0x47ae3d
mov eax, dword [ebp - 0x6c]
shr eax, 6
not eax
xor edi, edi
inc edi
and eax, edi
or eax, 6
push eax
lea eax, [ebp + 0xc]
call fcn.00408e92
pop ecx
push dword [eax]
push edi
push edi
push ebx
call fcn.00405a0b
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x47ab0e
push eax
call fcn.004013aa
test byte [ebp - 0x6c], 0x20
mov eax, str.Emluator
jne 0x47ab1e
mov eax, 0x4d8050
push eax
push edi
push 2
push ebx
call fcn.00405a0b
push dword [ebp - 0x64]
mov eax, dword [0x4f0980]
push dword [ebp - 0x68]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push str._d____d_Hz
push eax
call fcn.00405986
add esp, 0x10
push dword [ebp + 0xc]
push edi
push 3
push ebx
call fcn.00405a0b
push dword [ebp - 0x5c]
lea eax, [ebp + 0xc]
push dword [ebp - 0x50]
push str.Free__d___Max__d
push eax
call fcn.00405986
mov edi, dword [ebp + 0xc]
add esp, 0x10
push edi
push 1
push 4
push ebx
call fcn.00405a0b
lea eax, [edi - 0xc]
jmp 0x47ae2f
cmp esi, 2
jne 0x47acfe
mov ebx, 0x4f3060
call fcn.00474e14
lea ecx, [ebp - 0x70]
push ecx
mov ecx, 0x4f35f0
call fcn.004b4dfe
test eax, eax
je 0x47acf2
mov eax, dword [0x4f0980]
push dword [ebp - 0x30]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push str._d_Channels
push eax
call fcn.00405986
add esp, 0xc
push dword [ebp + 0xc]
xor ebx, ebx
inc ebx
push ebx
push ebx
push dword [ebp - 0x74]
call fcn.00405a0b
push dword [ebp - 0x20]
lea eax, [ebp + 0xc]
push dword [ebp - 0x24]
push str._d____d_Hz
push eax
call fcn.00405986
add esp, 0x10
push dword [ebp + 0xc]
push ebx
push esi
push dword [ebp - 0x74]
call fcn.00405a0b
push dword [ebp - 0x28]
lea eax, [ebp + 0xc]
push dword [ebp - 0x2c]
push str._d____d_Bits
push eax
call fcn.00405986
add esp, 0x10
push dword [ebp + 0xc]
push ebx
push 3
push dword [ebp - 0x74]
call fcn.00405a0b
cmp dword [ebp - 0x18], edi
lea eax, [ebp - 0x84]
jne 0x47ac2c
lea eax, [ebp - 0x80]
push dword [eax]
push ebx
push 4
push dword [ebp - 0x74]
call fcn.00405a0b
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x24], eax
jne 0x47ace7
cmp eax, dword [0x4f3080]
je 0x47ace7
xor ecx, ecx
mov dword [ebp - 0x78], ecx
cmp eax, dword [ecx*4 + 0x4ee124]
je 0x47ac6a
inc ecx
cmp ecx, 0xd
mov dword [ebp - 0x78], ecx
jb 0x47ac56
jmp 0x47ace7
cmp ecx, 0xffffffff
je 0x47ace7
push eax
push eax
lea eax, [ebp + 0xc]
push 0x815e
push eax
call fcn.00405918
add esp, 0x10
push 0xfffffffffffffffe
push ebx
push dword [ebp - 0x74]
call fcn.00414756
push edi
call dword [sym.imp.USER32.dll_MessageBeep]
mov ebx, dword [ebp + 8]
push 0x23
push dword [0x4f2c74]
push dword [ebp + 0xc]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x47ace7
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x78]
mov dword [0x4f3080], eax
lea eax, [ebx + 0x70]
call fcn.004144e1
push 1
push 0x7f4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_CheckDlgButton]
push edi
push 0x7f4
push 0x111
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff4
jmp 0x47ae2f
mov dword [ebp - 0x7c], 0x80004005
jmp 0x47ae3d
cmp esi, 3
jne 0x47ae3d
mov ebx, 0x4f3060
call fcn.00474e14
mov ebx, eax
mov edi, 0x4f35f4
call fcn.004b62f8
mov ebx, eax
test ebx, ebx
je 0x47ae3d
mov eax, dword [0x4f0980]
mov dword [ebp + 0xc], eax
push dword [ebx + 0x18]
lea eax, [ebp + 0xc]
push str._d_Channels
push eax
call fcn.00405986
add esp, 0xc
push dword [ebp + 0xc]
push 1
push 1
push dword [ebp - 0x74]
call fcn.00405a0b
mov edi, dword [0x4f0980]
mov dword [ebp - 0x78], edi
and dword [ebp - 0x88], 0
mov byte [ebp - 4], 5
cmp dword [ebx + 0x28], 0
jle 0x47adb0
mov eax, dword [ebp - 0x88]
lea ecx, [ebx + 0x24]
call fcn.004553ae
push dword [eax]
lea eax, [ebp + 0xc]
push 0x4d7fd8
push eax
call fcn.00405986
mov eax, dword [ebp + 0xc]
mov edi, dword [eax - 8]
add esp, 0xc
push eax
lea eax, [ebp - 0x78]
call fcn.00403377
inc dword [ebp - 0x88]
mov eax, dword [ebp - 0x88]
cmp eax, dword [ebx + 0x28]
jl 0x47ad6c
mov edi, dword [ebp - 0x78]
cmp dword [edi - 8], 0
je 0x47add4
push 0x4d7fd0
lea eax, [ebp - 0x78]
push eax
call fcn.00402fdb
mov edi, dword [ebp - 0x78]
push edi
push 1
push 2
push dword [ebp - 0x74]
call fcn.00405a0b
push dword [ebx + 0x1c]
lea eax, [ebp + 0xc]
push str._d_Bits
push eax
call fcn.00405986
add esp, 0xc
push dword [ebp + 0xc]
push 1
push 3
push dword [ebp - 0x74]
call fcn.00405a0b
push dword [ebx + 0x20]
lea eax, [ebp + 0xc]
push str._d_Samples
push eax
call fcn.00405986
mov ebx, dword [ebp + 0xc]
add esp, 0xc
push ebx
push 1
push 4
push dword [ebp - 0x74]
call fcn.00405a0b
lea eax, [edi - 0xc]
cmp eax, dword [0x4f0984]
je 0x47ae2c
push eax
call fcn.004013aa
lea eax, [ebx - 0xc]
cmp eax, dword [0x4f0984]
je 0x47ae3d
push eax
call fcn.004013aa
push 0xfffffffffffffffe
push 1
push dword [ebp - 0x74]
call fcn.00414756
mov eax, dword [ebp + 8]
push 0x7f1
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 5
push esi
push eax
call edi
mov ebx, dword [ebp + 8]
push 0x7f2
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push eax
call edi
cmp dword [ebp - 0x7c], 0
jge 0x47aebf
push 0x815f
lea eax, [ebp + 0xc]
call fcn.00408e92
pop ecx
push 0x10
push dword [0x4f2c74]
push dword [eax]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x47aebf
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x47aed3
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x84]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x47aeea
push eax
call fcn.004013aa
lea esi, [ebp - 0x98]
call fcn.004553c8
lea esi, [ebp - 0xa8]
call fcn.004553c8
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor eax, eax
pop edi
call fcn.004c7b01
leave
ret 8