Function at 0x476575
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x4c2f8a
call fcn.004bf97c
sub esp, 0x98
mov eax, dword [ebp + 8]
push edi
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_SendMessageA]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x476cae
push ebx
push esi
mov ebx, 0x4e5f08
call fcn.00470cab
mov ebx, dword [ebp + 8]
push edi
push edi
add ebx, 0x7c
push 0x1009
push dword [ebx]
mov esi, eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
add ecx, 0x54
mov dword [ebp - 0x14], ecx
call fcn.004197db
push eax
push 0x4e5f08
call fcn.0040a79c
test eax, eax
pop ecx
pop ecx
jne 0x47663d
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
call fcn.004197db
mov esi, eax
mov edi, 0x4e5f08
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, 0x4e5f08
movsd dword es:[edi], dword [esi]
call fcn.00470cab
mov esi, eax
movzx eax, word [ebp + 0xc]
push eax
push 0x400
push 0x7f0
push dword [0x4e5c18]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [ebp - 0x10]
xor edi, edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
push 0x7c
push 4
lea eax, [ebp - 0x44]
push eax
push 0x815d
mov dword [ebp - 4], edi
call fcn.0049945f
push 0x813c
lea eax, [ebp + 0xc]
call fcn.00408a73
mov eax, dword [eax]
add esp, 0x14
push esi
push eax
push edi
push ebx
call fcn.00405a3d
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x47668d
push eax
call fcn.00401377
cmp esi, dword [ebp - 0x40]
jae 0x476717
mov eax, dword [ebp - 0x44]
lea eax, [eax + esi*4]
push dword [eax]
push 1
push edi
push ebx
call fcn.0040595a
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
push 0x7c
push 4
lea eax, [ebp - 0x34]
push eax
lea eax, [esi + 0x812a]
push eax
mov byte [ebp - 4], 1
call fcn.0049945f
add esp, 0x10
cmp dword [ebp - 0x30], edi
jbe 0x476717
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebx]
push 0xffffffffffffffff
push eax
push 1
push dword [ebp - 0x10]
call fcn.00405a3d
cmp dword [ebp - 0x30], 1
jbe 0x476717
mov eax, dword [ebx + 4]
push 0xffffffffffffffff
push eax
push 2
push dword [ebp - 0x10]
call fcn.00405a3d
cmp dword [ebp - 0x30], 2
jbe 0x476717
mov eax, dword [ebx + 8]
push 0xffffffffffffffff
push eax
push 3
push dword [ebp - 0x10]
call fcn.00405a3d
cmp dword [ebp - 0x30], 3
ja 0x476721
push 0x80070057
call fcn.004010a4
mov ebx, dword [ebx + 0xc]
push 0xffffffffffffffff
push ebx
mov ebx, dword [ebp - 0x10]
push 4
push ebx
call fcn.00405a3d
mov eax, dword [0x4e4150]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
push 0x7c
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x8144
mov byte [ebp - 4], 3
call fcn.004993f5
add esp, 0x10
cmp esi, edi
mov dword [ebp - 0x18], edi
jne 0x476845
mov ebx, 0x4e5f08
call fcn.00470ce4
push 0xc
mov edx, eax
mov word [ebp - 0x78], di
pop ecx
xor eax, eax
lea edi, [ebp - 0x76]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x34
lea eax, [ebp - 0x78]
dec edx
push eax
push edx
call dword [sym.imp.WINMM.dll_waveOutGetDevCapsA]
test eax, eax
jne 0x476ab3
mov eax, dword [0x4e4150]
mov dword [ebp + 0xc], eax
movzx eax, byte [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x74]
shr eax, 8
movzx eax, al
push eax
lea eax, [ebp + 0xc]
push str._d._d
push eax
call fcn.004058d5
mov ebx, dword [ebp - 0x10]
add esp, 0x10
push dword [ebp + 0xc]
xor edi, edi
inc edi
push edi
push edi
push ebx
call fcn.0040595a
cmp dword [ebp - 0x48], 0
je 0x476aa8
test byte [ebp - 0x48], 4
lea eax, [ebp - 0x1c]
jne 0x4767e4
lea eax, [ebp - 0x20]
push dword [eax]
push edi
push 2
push ebx
call fcn.0040595a
test byte [ebp - 0x48], 8
lea eax, [ebp - 0x1c]
jne 0x4767fb
lea eax, [ebp - 0x20]
push dword [eax]
push edi
push 3
push ebx
call fcn.0040595a
mov eax, dword [ebp - 0x48]
shr eax, 5
not eax
and eax, edi
or eax, 6
push eax
lea eax, [ebp - 0x14]
call fcn.00408a73
pop ecx
push dword [eax]
push edi
push 4
push ebx
call fcn.0040595a
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x476aa8
push eax
call fcn.00401377
jmp 0x476aa8
cmp esi, 1
jne 0x476941
push 0x17
pop ecx
xor eax, eax
mov dword [ebp - 0xa4], 0x60
lea edi, [ebp - 0xa0]
rep stosd dword es:[edi], eax
push 0x4e62e8
lea edx, [ebp - 0xa4]
mov ecx, 0x4e5f08
call fcn.0049b055
test eax, eax
mov dword [ebp - 0x18], eax
jl 0x476bf2
mov eax, dword [ebp - 0xa0]
shr eax, 6
not eax
xor edi, edi
inc edi
and eax, edi
or eax, 6
push eax
lea eax, [ebp + 0xc]
call fcn.00408a73
pop ecx
push dword [eax]
push edi
push edi
push ebx
call fcn.0040595a
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4768c0
push eax
call fcn.00401377
test byte [ebp - 0xa0], 0x20
mov eax, str.Emluator
jne 0x4768d3
mov eax, str.Device
push eax
push edi
push 2
push ebx
call fcn.0040595a
push dword [ebp - 0x98]
mov eax, dword [0x4e4150]
push dword [ebp - 0x9c]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push str._d____d_Hz
push eax
call fcn.004058d5
add esp, 0x10
push dword [ebp + 0xc]
push edi
push 3
push ebx
call fcn.0040595a
push dword [ebp - 0x90]
lea eax, [ebp + 0xc]
push dword [ebp - 0x84]
push str.Free__d___Max__d
push eax
call fcn.004058d5
mov edi, dword [ebp + 0xc]
add esp, 0x10
push edi
push 1
push 4
push ebx
call fcn.0040595a
lea eax, [edi - 0xc]
jmp 0x476be4
cmp esi, 2
jne 0x476abf
mov ebx, 0x4e5f08
call fcn.00470ce4
lea ecx, [ebp - 0xa4]
push ecx
mov ecx, 0x4e6390
call fcn.004abac9
test eax, eax
je 0x476ab3
mov eax, dword [0x4e4150]
push dword [ebp - 0x64]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push str._d_Channels
push eax
call fcn.004058d5
add esp, 0xc
push dword [ebp + 0xc]
xor ebx, ebx
inc ebx
push ebx
push ebx
push dword [ebp - 0x10]
call fcn.0040595a
push dword [ebp - 0x54]
lea eax, [ebp + 0xc]
push dword [ebp - 0x58]
push str._d____d_Hz
push eax
call fcn.004058d5
add esp, 0x10
push dword [ebp + 0xc]
push ebx
push esi
push dword [ebp - 0x10]
call fcn.0040595a
push dword [ebp - 0x5c]
lea eax, [ebp + 0xc]
push dword [ebp - 0x60]
push str._d____d_Bits
push eax
call fcn.004058d5
add esp, 0x10
push dword [ebp + 0xc]
push ebx
push 3
push dword [ebp - 0x10]
call fcn.0040595a
cmp dword [ebp - 0x4c], edi
lea eax, [ebp - 0x1c]
jne 0x4769ed
lea eax, [ebp - 0x20]
push dword [eax]
push ebx
push 4
push dword [ebp - 0x10]
call fcn.0040595a
mov eax, dword [ebp - 0x54]
cmp dword [ebp - 0x58], eax
jne 0x476aa8
cmp eax, dword [0x4e5f28]
je 0x476aa8
xor ecx, ecx
mov dword [ebp - 0x14], ecx
cmp eax, dword [ecx*4 + 0x4e2a58]
je 0x476a2b
inc ecx
cmp ecx, 0xd
mov dword [ebp - 0x14], ecx
jb 0x476a17
jmp 0x476aa8
cmp ecx, 0xffffffff
je 0x476aa8
push eax
push eax
lea eax, [ebp + 0xc]
push 0x815e
push eax
call fcn.00405867
add esp, 0x10
push 0xfffffffffffffffe
push ebx
push dword [ebp - 0x10]
call fcn.00413f65
push edi
call dword [sym.imp.USER32.dll_MessageBeep]
mov ebx, dword [ebp + 8]
push 0x23
push dword [0x4e5c1c]
push dword [ebp + 0xc]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x476aa8
mov eax, dword [ebp - 0x54]
push dword [ebp - 0x14]
mov dword [0x4e5f28], eax
lea eax, [ebx + 0x70]
call fcn.00413cf0
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_SendMessageA]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff4
jmp 0x476be4
mov dword [ebp - 0x18], 0x80004005
jmp 0x476bf2
cmp esi, 3
jne 0x476bf2
mov ebx, 0x4e5f08
call fcn.00470ce4
mov ebx, eax
mov edi, 0x4e6394
call fcn.004acea2
mov ebx, eax
test ebx, ebx
je 0x476bf2
mov eax, dword [0x4e4150]
mov dword [ebp + 0xc], eax
push dword [ebx + 0x18]
lea eax, [ebp + 0xc]
push str._d_Channels
push eax
call fcn.004058d5
add esp, 0xc
push dword [ebp + 0xc]
push 1
push 1
push dword [ebp - 0x10]
call fcn.0040595a
mov edi, dword [0x4e4150]
mov dword [ebp - 0x14], edi
and dword [ebp - 0x24], 0
mov byte [ebp - 4], 5
cmp dword [ebx + 0x28], 0
jle 0x476b65
mov eax, dword [ebp - 0x24]
lea ecx, [ebx + 0x24]
call fcn.004ad145
push dword [eax]
lea eax, [ebp + 0xc]
push 0x4ce318
push eax
call fcn.004058d5
mov eax, dword [ebp + 0xc]
mov edi, dword [eax - 8]
add esp, 0xc
push eax
lea eax, [ebp - 0x14]
call fcn.00403448
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebx + 0x28]
jl 0x476b2a
mov edi, dword [ebp - 0x14]
cmp dword [edi - 8], 0
je 0x476b89
push 0x4ce314
lea eax, [ebp - 0x14]
push eax
call fcn.00403081
mov edi, dword [ebp - 0x14]
push edi
push 1
push 2
push dword [ebp - 0x10]
call fcn.0040595a
push dword [ebx + 0x1c]
lea eax, [ebp + 0xc]
push str._d_Bits
push eax
call fcn.004058d5
add esp, 0xc
push dword [ebp + 0xc]
push 1
push 3
push dword [ebp - 0x10]
call fcn.0040595a
push dword [ebx + 0x20]
lea eax, [ebp + 0xc]
push str._d_Samples
push eax
call fcn.004058d5
mov ebx, dword [ebp + 0xc]
add esp, 0xc
push ebx
push 1
push 4
push dword [ebp - 0x10]
call fcn.0040595a
lea eax, [edi - 0xc]
cmp eax, dword [0x4e4154]
je 0x476be1
push eax
call fcn.00401377
lea eax, [ebx - 0xc]
cmp eax, dword [0x4e4154]
je 0x476bf2
push eax
call fcn.00401377
push 0xfffffffffffffffe
push 1
push dword [ebp - 0x10]
call fcn.00413f65
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 - 0x18], 0
jge 0x476c74
push 0x815f
lea eax, [ebp + 0xc]
call fcn.00408a73
pop ecx
push 0x10
push dword [0x4e5c1c]
push dword [eax]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x476c74
push eax
call fcn.00401377
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x476c88
push eax
call fcn.00401377
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x476c9c
push eax
call fcn.00401377
lea esi, [ebp - 0x34]
call fcn.004062ad
lea esi, [ebp - 0x44]
call fcn.004062ad
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
mov dword fs:[0], ecx
leave
ret 8