Function at 0x486fc9
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x4ef415
call fcn.004eadec
sub esp, 0x9c
mov eax, dword [0x516ad4]
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 0x487743
push ebx
push esi
mov ebx, 0x521800
call fcn.0047f60a
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.004bc03c
push eax
push 0x521800
call fcn.00410f70
test eax, eax
pop ecx
pop ecx
jne 0x487099
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
call fcn.004bc03c
mov esi, eax
mov edi, 0x521800
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, 0x521800
movsd dword es:[edi], dword [esi]
call fcn.0047f60a
mov esi, eax
movzx eax, word [ebp + 0xc]
push eax
push 0x400
push 0x7f0
push dword [0x522248]
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.004ae899
push 0x813c
lea eax, [ebp + 0xc]
call fcn.004017db
mov eax, dword [eax]
add esp, 0x14
push esi
push eax
push edi
push ebx
call fcn.0040623e
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4870f8
push eax
call fcn.004013aa
cmp esi, dword [ebp - 0xa4]
jae 0x4871a6
mov eax, dword [ebp - 0xa8]
lea eax, [eax + esi*4]
push dword [eax]
push 1
push edi
push ebx
call fcn.0040615b
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.004ae899
add esp, 0x10
cmp dword [ebp - 0x94], edi
jbe 0x4871a6
mov ebx, dword [ebp - 0x98]
mov eax, dword [ebx]
push 0xffffffffffffffff
push eax
push 1
push dword [ebp - 0x74]
call fcn.0040623e
cmp dword [ebp - 0x94], 1
jbe 0x4871a6
mov eax, dword [ebx + 4]
push 0xffffffffffffffff
push eax
push 2
push dword [ebp - 0x74]
call fcn.0040623e
cmp dword [ebp - 0x94], 2
jbe 0x4871a6
mov eax, dword [ebx + 8]
push 0xffffffffffffffff
push eax
push 3
push dword [ebp - 0x74]
call fcn.0040623e
cmp dword [ebp - 0x94], 3
ja 0x4871b0
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.0040623e
mov eax, dword [0x51a438]
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.004ae82f
add esp, 0x10
cmp esi, edi
mov dword [ebp - 0x7c], edi
jne 0x4872e0
mov ebx, 0x521800
call fcn.0047f653
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 0x487533
mov eax, dword [0x51a438]
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.004060d6
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.0040615b
cmp dword [ebp - 0x14], 0
je 0x487528
test byte [ebp - 0x14], 4
lea eax, [ebp - 0x84]
jne 0x48727c
lea eax, [ebp - 0x80]
push dword [eax]
push edi
push 2
push ebx
call fcn.0040615b
test byte [ebp - 0x14], 8
lea eax, [ebp - 0x84]
jne 0x487296
lea eax, [ebp - 0x80]
push dword [eax]
push edi
push 3
push ebx
call fcn.0040615b
mov eax, dword [ebp - 0x14]
shr eax, 5
not eax
and eax, edi
or eax, 6
push eax
lea eax, [ebp - 0x78]
call fcn.004017db
pop ecx
push dword [eax]
push edi
push 4
push ebx
call fcn.0040615b
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x487528
push eax
call fcn.004013aa
jmp 0x487528
cmp esi, 1
jne 0x4873c1
push 0x17
pop ecx
xor eax, eax
mov dword [ebp - 0x70], 0x60
lea edi, [ebp - 0x6c]
rep stosd dword es:[edi], eax
push 0x522490
lea edx, [ebp - 0x70]
mov ecx, 0x521800
call fcn.004b075a
test eax, eax
mov dword [ebp - 0x7c], eax
jl 0x48767e
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.004017db
pop ecx
push dword [eax]
push edi
push edi
push ebx
call fcn.0040615b
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x48734f
push eax
call fcn.004013aa
test byte [ebp - 0x6c], 0x20
mov eax, str.Emluator
jne 0x48735f
mov eax, 0x4fe950
push eax
push edi
push 2
push ebx
call fcn.0040615b
push dword [ebp - 0x64]
mov eax, dword [0x51a438]
push dword [ebp - 0x68]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push str._d____d_Hz
push eax
call fcn.004060d6
add esp, 0x10
push dword [ebp + 0xc]
push edi
push 3
push ebx
call fcn.0040615b
push dword [ebp - 0x5c]
lea eax, [ebp + 0xc]
push dword [ebp - 0x50]
push str.Free__d___Max__d
push eax
call fcn.004060d6
mov edi, dword [ebp + 0xc]
add esp, 0x10
push edi
push 1
push 4
push ebx
call fcn.0040615b
lea eax, [edi - 0xc]
jmp 0x487670
cmp esi, 2
jne 0x48753f
mov ebx, 0x521800
call fcn.0047f653
lea ecx, [ebp - 0x70]
push ecx
mov ecx, 0x5225f0
call fcn.004c6135
test eax, eax
je 0x487533
mov eax, dword [0x51a438]
push dword [ebp - 0x30]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push str._d_Channels
push eax
call fcn.004060d6
add esp, 0xc
push dword [ebp + 0xc]
xor ebx, ebx
inc ebx
push ebx
push ebx
push dword [ebp - 0x74]
call fcn.0040615b
push dword [ebp - 0x20]
lea eax, [ebp + 0xc]
push dword [ebp - 0x24]
push str._d____d_Hz
push eax
call fcn.004060d6
add esp, 0x10
push dword [ebp + 0xc]
push ebx
push esi
push dword [ebp - 0x74]
call fcn.0040615b
push dword [ebp - 0x28]
lea eax, [ebp + 0xc]
push dword [ebp - 0x2c]
push str._d____d_Bits
push eax
call fcn.004060d6
add esp, 0x10
push dword [ebp + 0xc]
push ebx
push 3
push dword [ebp - 0x74]
call fcn.0040615b
cmp dword [ebp - 0x18], edi
lea eax, [ebp - 0x84]
jne 0x48746d
lea eax, [ebp - 0x80]
push dword [eax]
push ebx
push 4
push dword [ebp - 0x74]
call fcn.0040615b
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x24], eax
jne 0x487528
cmp eax, dword [0x521820]
je 0x487528
xor ecx, ecx
mov dword [ebp - 0x78], ecx
cmp eax, dword [ecx*4 + 0x5179a4]
je 0x4874ab
inc ecx
cmp ecx, 0xd
mov dword [ebp - 0x78], ecx
jb 0x487497
jmp 0x487528
cmp ecx, 0xffffffff
je 0x487528
push eax
push eax
lea eax, [ebp + 0xc]
push 0x815e
push eax
call fcn.00406068
add esp, 0x10
push 0xfffffffffffffffe
push ebx
push dword [ebp - 0x74]
call fcn.0041a9ba
push edi
call dword [sym.imp.USER32.dll_MessageBeep]
mov ebx, dword [ebp + 8]
push 0x23
push dword [0x52224c]
push dword [ebp + 0xc]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x487528
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x78]
mov dword [0x521820], eax
lea eax, [ebx + 0x70]
call fcn.0041a745
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 0x487670
mov dword [ebp - 0x7c], 0x80004005
jmp 0x48767e
cmp esi, 3
jne 0x48767e
mov ebx, 0x521800
call fcn.0047f653
mov ebx, eax
mov edi, 0x5225f4
call fcn.004c75b7
mov ebx, eax
test ebx, ebx
je 0x48767e
mov eax, dword [0x51a438]
mov dword [ebp + 0xc], eax
push dword [ebx + 0x18]
lea eax, [ebp + 0xc]
push str._d_Channels
push eax
call fcn.004060d6
add esp, 0xc
push dword [ebp + 0xc]
push 1
push 1
push dword [ebp - 0x74]
call fcn.0040615b
mov edi, dword [0x51a438]
mov dword [ebp - 0x78], edi
and dword [ebp - 0x88], 0
mov byte [ebp - 4], 5
cmp dword [ebx + 0x28], 0
jle 0x4875f1
mov eax, dword [ebp - 0x88]
lea ecx, [ebx + 0x24]
call fcn.0045d964
push dword [eax]
lea eax, [ebp + 0xc]
push 0x4fe8d8
push eax
call fcn.004060d6
mov eax, dword [ebp + 0xc]
mov edi, dword [eax - 8]
add esp, 0xc
push eax
lea eax, [ebp - 0x78]
call fcn.0040363d
inc dword [ebp - 0x88]
mov eax, dword [ebp - 0x88]
cmp eax, dword [ebx + 0x28]
jl 0x4875ad
mov edi, dword [ebp - 0x78]
cmp dword [edi - 8], 0
je 0x487615
push 0x4fe8d0
lea eax, [ebp - 0x78]
push eax
call fcn.0040328b
mov edi, dword [ebp - 0x78]
push edi
push 1
push 2
push dword [ebp - 0x74]
call fcn.0040615b
push dword [ebx + 0x1c]
lea eax, [ebp + 0xc]
push str._d_Bits
push eax
call fcn.004060d6
add esp, 0xc
push dword [ebp + 0xc]
push 1
push 3
push dword [ebp - 0x74]
call fcn.0040615b
push dword [ebx + 0x20]
lea eax, [ebp + 0xc]
push str._d_Samples
push eax
call fcn.004060d6
mov ebx, dword [ebp + 0xc]
add esp, 0xc
push ebx
push 1
push 4
push dword [ebp - 0x74]
call fcn.0040615b
lea eax, [edi - 0xc]
cmp eax, dword [0x51a43c]
je 0x48766d
push eax
call fcn.004013aa
lea eax, [ebx - 0xc]
cmp eax, dword [0x51a43c]
je 0x48767e
push eax
call fcn.004013aa
push 0xfffffffffffffffe
push 1
push dword [ebp - 0x74]
call fcn.0041a9ba
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 0x487700
push 0x815f
lea eax, [ebp + 0xc]
call fcn.004017db
pop ecx
push 0x10
push dword [0x52224c]
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 [0x51a43c]
je 0x487700
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x487714
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x84]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x48772b
push eax
call fcn.004013aa
lea esi, [ebp - 0x98]
call fcn.0045d5de
lea esi, [ebp - 0xa8]
call fcn.0045d5de
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.004eae3c
leave
ret 8