Function at 0x487348
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x4f0383
call fcn.004ebd20
sub esp, 0xa4
mov eax, dword [0x517ad4]
push edi
mov edi, ecx
push 0x423
push dword [edi + 4]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x74], edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
push 0x147
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
mov dword [ebp - 0x84], eax
je 0x487b1a
push ebx
push esi
mov ebx, 0x522800
call fcn.0047f970
xor ebx, ebx
push ebx
push ebx
mov esi, eax
lea eax, [edi + 0x7c]
push 0x1009
push dword [eax]
mov dword [ebp - 0x7c], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x84]
lea ecx, [edi + 0x54]
mov dword [ebp - 0x78], ecx
call fcn.004bc8cb
push eax
push 0x522800
call fcn.00410abc
test eax, eax
pop ecx
pop ecx
jne 0x487421
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x78]
call fcn.004bc8cb
mov esi, eax
mov edi, 0x522800
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, 0x522800
movsd dword es:[edi], dword [esi]
call fcn.0047f970
mov esi, eax
movzx eax, word [ebp + 8]
push eax
push 0x400
push 0x7f0
push dword [0x523248]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [ebp - 0x74]
xor ebx, ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa4], ebx
push 0x7c
push 4
lea eax, [ebp - 0xb0]
push eax
push 0x815d
mov dword [ebp - 4], ebx
call fcn.004aee7b
push 0x813c
lea eax, [ebp - 0x84]
call fcn.00401692
mov eax, dword [eax]
add esp, 0x14
push esi
push eax
push ebx
push dword [ebp - 0x7c]
call fcn.00405cb9
mov eax, dword [ebp - 0x84]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x487488
push eax
call fcn.004013b2
cmp esi, dword [ebp - 0xac]
jae 0x487538
mov eax, dword [ebp - 0xb0]
lea eax, [eax + esi*4]
push dword [eax]
push 1
push ebx
push dword [ebp - 0x7c]
call fcn.00405bd6
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
push 0x7c
push 4
lea eax, [ebp - 0xa0]
push eax
lea eax, [esi + 0x812a]
push eax
mov byte [ebp - 4], 1
call fcn.004aee7b
add esp, 0x10
cmp dword [ebp - 0x9c], ebx
jbe 0x487538
mov ebx, dword [ebp - 0xa0]
mov eax, dword [ebx]
push 0xffffffffffffffff
push eax
push 1
push dword [ebp - 0x7c]
call fcn.00405cb9
cmp dword [ebp - 0x9c], 1
jbe 0x487538
mov eax, dword [ebx + 4]
push 0xffffffffffffffff
push eax
push 2
push dword [ebp - 0x7c]
call fcn.00405cb9
cmp dword [ebp - 0x9c], 2
jbe 0x487538
mov eax, dword [ebx + 8]
push 0xffffffffffffffff
push eax
push 3
push dword [ebp - 0x7c]
call fcn.00405cb9
cmp dword [ebp - 0x9c], 3
ja 0x487542
push 0x80070057
call fcn.004010d2
mov ebx, dword [ebx + 0xc]
push 0xffffffffffffffff
push ebx
mov ebx, dword [ebp - 0x7c]
push 4
push ebx
call fcn.00405cb9
mov eax, dword [0x51b438]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x90], eax
push 0x7c
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x8c]
push eax
push 0x8144
mov byte [ebp - 4], 3
call fcn.004aee11
and dword [ebp - 0x84], 0
add esp, 0x10
test esi, esi
jne 0x487694
mov ebx, 0x522800
call fcn.0047f9bd
and word [ebp - 0x64], si
push 0x14
mov edx, eax
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 0x487685
mov eax, dword [0x51b438]
mov dword [ebp - 0x78], eax
movzx eax, byte [ebp - 0x60]
push eax
mov eax, dword [ebp - 0x60]
shr eax, 8
movzx eax, al
push eax
lea eax, [ebp - 0x78]
push str._d._d
push eax
call fcn.00405b51
mov ebx, dword [ebp - 0x7c]
add esp, 0x10
push dword [ebp - 0x78]
xor edi, edi
inc edi
push edi
push edi
push ebx
call fcn.00405bd6
cmp dword [ebp - 0x14], esi
je 0x48767a
test byte [ebp - 0x14], 4
lea eax, [ebp - 0x8c]
jne 0x487616
lea eax, [ebp - 0x90]
push dword [eax]
push edi
push 2
push ebx
call fcn.00405bd6
test byte [ebp - 0x14], 8
lea eax, [ebp - 0x8c]
jne 0x487633
lea eax, [ebp - 0x90]
push dword [eax]
push edi
push 3
push ebx
call fcn.00405bd6
mov eax, dword [ebp - 0x14]
shr eax, 5
not eax
and eax, edi
or eax, 6
push eax
lea eax, [ebp - 0x88]
call fcn.00401692
pop ecx
push dword [eax]
push edi
push 4
push ebx
call fcn.00405bd6
mov eax, dword [ebp - 0x88]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x48767a
push eax
call fcn.004013b2
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff4
jmp 0x487a3b
mov dword [ebp - 0x84], 0x80004005
jmp 0x487a49
cmp esi, 1
jne 0x487778
push 0x17
pop ecx
xor eax, eax
mov dword [ebp - 0x70], 0x60
lea edi, [ebp - 0x6c]
rep stosd dword es:[edi], eax
push 0x523490
lea edx, [ebp - 0x70]
mov ecx, 0x522800
call fcn.004b0d6c
test eax, eax
mov dword [ebp - 0x84], eax
jl 0x487a49
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 - 0x78]
call fcn.00401692
pop ecx
push dword [eax]
push edi
push edi
push ebx
call fcn.00405bd6
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x487706
push eax
call fcn.004013b2
test byte [ebp - 0x6c], 0x20
mov eax, str.Emluator
jne 0x487716
mov eax, 0x4ff970
push eax
push edi
push 2
push ebx
call fcn.00405bd6
push dword [ebp - 0x64]
mov eax, dword [0x51b438]
push dword [ebp - 0x68]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x80]
push str._d____d_Hz
push eax
call fcn.00405b51
add esp, 0x10
push dword [ebp - 0x80]
push edi
push 3
push ebx
call fcn.00405bd6
push dword [ebp - 0x5c]
lea eax, [ebp - 0x80]
push dword [ebp - 0x50]
push str.Free__d___Max__d
push eax
call fcn.00405b51
mov edi, dword [ebp - 0x80]
add esp, 0x10
push edi
push 1
push 4
push ebx
call fcn.00405bd6
lea eax, [edi - 0xc]
jmp 0x487a3b
cmp esi, 2
jne 0x48790a
mov ebx, 0x522800
call fcn.0047f9bd
lea ecx, [ebp - 0x70]
push ecx
mov ecx, 0x5235f0
call fcn.004c6d76
test eax, eax
je 0x4878fb
mov eax, dword [0x51b438]
push dword [ebp - 0x30]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x74]
push str._d_Channels
push eax
call fcn.00405b51
add esp, 0xc
push dword [ebp - 0x74]
push 1
push 1
push dword [ebp - 0x7c]
call fcn.00405bd6
mov ebx, dword [ebp - 0x20]
push ebx
push dword [ebp - 0x24]
lea eax, [ebp - 0x74]
push str._d____d_Hz
push eax
call fcn.00405b51
add esp, 0x10
push dword [ebp - 0x74]
push 1
push esi
push dword [ebp - 0x7c]
call fcn.00405bd6
push dword [ebp - 0x28]
lea eax, [ebp - 0x74]
push dword [ebp - 0x2c]
push str._d____d_Bits
push eax
call fcn.00405b51
add esp, 0x10
push dword [ebp - 0x74]
push 1
push 3
push dword [ebp - 0x7c]
call fcn.00405bd6
cmp dword [ebp - 0x18], 0
lea eax, [ebp - 0x8c]
jne 0x48782a
lea eax, [ebp - 0x90]
push dword [eax]
push 1
push 4
push dword [ebp - 0x7c]
call fcn.00405bd6
cmp dword [ebp - 0x24], ebx
jne 0x4878de
cmp ebx, dword [0x522820]
je 0x4878de
xor eax, eax
mov dword [ebp - 0x78], eax
cmp ebx, dword [eax*4 + 0x5189a4]
je 0x487866
inc eax
cmp eax, 0xd
mov dword [ebp - 0x78], eax
jb 0x487852
jmp 0x4878de
cmp eax, 0xffffffff
je 0x4878de
push ebx
push ebx
lea eax, [ebp - 0x74]
push 0x815e
push eax
call fcn.00405ae3
add esp, 0x10
push 0xfffffffffffffffe
push 1
push dword [ebp - 0x7c]
call fcn.0041a45f
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
push 0x23
push dword [0x52324c]
push dword [ebp - 0x74]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x4878de
push dword [ebp - 0x78]
lea eax, [edi + 0x70]
mov dword [0x522820], ebx
call fcn.0041a1ea
push 1
mov ebx, 0x7f4
push ebx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_CheckDlgButton]
push 0
push ebx
push 0x111
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x74]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x487a4c
push eax
call fcn.004013b2
jmp 0x487a4c
mov dword [ebp - 0x84], 0x80004005
jmp 0x487a4c
cmp esi, 3
jne 0x487a4c
mov ebx, 0x522800
call fcn.0047f9bd
mov ebx, eax
mov edi, 0x5235f4
call fcn.004c82c8
mov ebx, eax
test ebx, ebx
je 0x487a49
mov eax, dword [0x51b438]
mov dword [ebp - 0x80], eax
push dword [ebx + 0x18]
lea eax, [ebp - 0x80]
push str._d_Channels
push eax
call fcn.00405b51
add esp, 0xc
push dword [ebp - 0x80]
push 1
push 1
push dword [ebp - 0x7c]
call fcn.00405bd6
mov edi, dword [0x51b438]
mov dword [ebp - 0x78], edi
mov byte [ebp - 4], 5
and dword [ebp - 0x88], 0
cmp dword [ebx + 0x28], 0
jle 0x4879bc
mov eax, dword [ebp - 0x88]
lea ecx, [ebx + 0x24]
call fcn.0045d61b
push dword [eax]
lea eax, [ebp - 0x80]
push 0x4ff8f8
push eax
call fcn.00405b51
mov eax, dword [ebp - 0x80]
mov edi, dword [eax - 8]
add esp, 0xc
push eax
lea eax, [ebp - 0x78]
call fcn.00403522
inc dword [ebp - 0x88]
mov eax, dword [ebp - 0x88]
cmp eax, dword [ebx + 0x28]
jl 0x487978
mov edi, dword [ebp - 0x78]
cmp dword [edi - 8], 0
je 0x4879e0
push 0x4ff8f0
lea eax, [ebp - 0x78]
push eax
call fcn.00403184
mov edi, dword [ebp - 0x78]
push edi
push 1
push 2
push dword [ebp - 0x7c]
call fcn.00405bd6
push dword [ebx + 0x1c]
lea eax, [ebp - 0x80]
push str._d_Bits
push eax
call fcn.00405b51
add esp, 0xc
push dword [ebp - 0x80]
push 1
push 3
push dword [ebp - 0x7c]
call fcn.00405bd6
push dword [ebx + 0x20]
lea eax, [ebp - 0x80]
push str._d_Samples
push eax
call fcn.00405b51
mov ebx, dword [ebp - 0x80]
add esp, 0xc
push ebx
push 1
push 4
push dword [ebp - 0x7c]
call fcn.00405bd6
lea eax, [edi - 0xc]
cmp eax, dword [0x51b43c]
je 0x487a38
push eax
call fcn.004013b2
lea eax, [ebx - 0xc]
cmp eax, dword [0x51b43c]
je 0x487a49
push eax
call fcn.004013b2
mov edi, dword [ebp - 0x74]
push 0xfffffffffffffffe
push 1
push dword [ebp - 0x7c]
call fcn.0041a45f
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x7f1
push dword [edi + 4]
call ebx
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 5
push esi
mov dword [ebp - 0x78], esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
push 0x7f2
push dword [edi + 4]
call ebx
push dword [ebp - 0x78]
push eax
call esi
cmp dword [ebp - 0x84], 0
jge 0x487ad4
push 0x815f
lea eax, [ebp - 0x84]
call fcn.00401692
pop ecx
push 0x10
push dword [0x52324c]
push dword [eax]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0x84]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x487ad4
push eax
call fcn.004013b2
mov eax, dword [ebp - 0x90]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x487aeb
push eax
call fcn.004013b2
mov eax, dword [ebp - 0x8c]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x487b02
push eax
call fcn.004013b2
lea esi, [ebp - 0xa0]
call fcn.0045d68c
lea esi, [ebp - 0xb0]
call fcn.0045d68c
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.004ebd70
leave
ret 4