Function at 0x4777f7
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x4c481d
call fcn.004c2540
sub esp, 0x9c
mov eax, dword [0x4e7384]
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 0x477f71
push ebx
push esi
mov ebx, 0x4eb7c0
call fcn.00471dff
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.00483124
push eax
push 0x4eb7c0
call fcn.0040aedb
test eax, eax
pop ecx
pop ecx
jne 0x4778c7
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
call fcn.00483124
mov esi, eax
mov edi, 0x4eb7c0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, 0x4eb7c0
movsd dword es:[edi], dword [esi]
call fcn.00471dff
mov esi, eax
movzx eax, word [ebp + 0xc]
push eax
push 0x400
push 0x7f0
push dword [0x4eb3d8]
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.0049b69e
push 0x813c
lea eax, [ebp + 0xc]
call fcn.00409034
mov eax, dword [eax]
add esp, 0x14
push esi
push eax
push edi
push ebx
call fcn.00405da0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x477926
push eax
call fcn.004013aa
cmp esi, dword [ebp - 0xa4]
jae 0x4779d4
mov eax, dword [ebp - 0xa8]
lea eax, [eax + esi*4]
push dword [eax]
push 1
push edi
push ebx
call fcn.00405cbd
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.0049b69e
add esp, 0x10
cmp dword [ebp - 0x94], edi
jbe 0x4779d4
mov ebx, dword [ebp - 0x98]
mov eax, dword [ebx]
push 0xffffffffffffffff
push eax
push 1
push dword [ebp - 0x74]
call fcn.00405da0
cmp dword [ebp - 0x94], 1
jbe 0x4779d4
mov eax, dword [ebx + 4]
push 0xffffffffffffffff
push eax
push 2
push dword [ebp - 0x74]
call fcn.00405da0
cmp dword [ebp - 0x94], 2
jbe 0x4779d4
mov eax, dword [ebx + 8]
push 0xffffffffffffffff
push eax
push 3
push dword [ebp - 0x74]
call fcn.00405da0
cmp dword [ebp - 0x94], 3
ja 0x4779de
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.00405da0
mov eax, dword [0x4e9150]
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.0049b634
add esp, 0x10
cmp esi, edi
mov dword [ebp - 0x7c], edi
jne 0x477b0e
mov ebx, 0x4eb7c0
call fcn.00471e48
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 0x477d61
mov eax, dword [0x4e9150]
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.00405c38
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.00405cbd
cmp dword [ebp - 0x14], 0
je 0x477d56
test byte [ebp - 0x14], 4
lea eax, [ebp - 0x84]
jne 0x477aaa
lea eax, [ebp - 0x80]
push dword [eax]
push edi
push 2
push ebx
call fcn.00405cbd
test byte [ebp - 0x14], 8
lea eax, [ebp - 0x84]
jne 0x477ac4
lea eax, [ebp - 0x80]
push dword [eax]
push edi
push 3
push ebx
call fcn.00405cbd
mov eax, dword [ebp - 0x14]
shr eax, 5
not eax
and eax, edi
or eax, 6
push eax
lea eax, [ebp - 0x78]
call fcn.00409034
pop ecx
push dword [eax]
push edi
push 4
push ebx
call fcn.00405cbd
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x477d56
push eax
call fcn.004013aa
jmp 0x477d56
cmp esi, 1
jne 0x477bef
push 0x17
pop ecx
xor eax, eax
mov dword [ebp - 0x70], 0x60
lea edi, [ebp - 0x6c]
rep stosd dword es:[edi], eax
push 0x4ebc48
lea edx, [ebp - 0x70]
mov ecx, 0x4eb7c0
call fcn.0049d2d2
test eax, eax
mov dword [ebp - 0x7c], eax
jl 0x477eac
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.00409034
pop ecx
push dword [eax]
push edi
push edi
push ebx
call fcn.00405cbd
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x477b7d
push eax
call fcn.004013aa
test byte [ebp - 0x6c], 0x20
mov eax, str.Emluator
jne 0x477b8d
mov eax, 0x4d27f4
push eax
push edi
push 2
push ebx
call fcn.00405cbd
push dword [ebp - 0x64]
mov eax, dword [0x4e9150]
push dword [ebp - 0x68]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push str._d____d_Hz
push eax
call fcn.00405c38
add esp, 0x10
push dword [ebp + 0xc]
push edi
push 3
push ebx
call fcn.00405cbd
push dword [ebp - 0x5c]
lea eax, [ebp + 0xc]
push dword [ebp - 0x50]
push str.Free__d___Max__d
push eax
call fcn.00405c38
mov edi, dword [ebp + 0xc]
add esp, 0x10
push edi
push 1
push 4
push ebx
call fcn.00405cbd
lea eax, [edi - 0xc]
jmp 0x477e9e
cmp esi, 2
jne 0x477d6d
mov ebx, 0x4eb7c0
call fcn.00471e48
lea ecx, [ebp - 0x70]
push ecx
mov ecx, 0x4ebcf0
call fcn.004ae20d
test eax, eax
je 0x477d61
mov eax, dword [0x4e9150]
push dword [ebp - 0x30]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push str._d_Channels
push eax
call fcn.00405c38
add esp, 0xc
push dword [ebp + 0xc]
xor ebx, ebx
inc ebx
push ebx
push ebx
push dword [ebp - 0x74]
call fcn.00405cbd
push dword [ebp - 0x20]
lea eax, [ebp + 0xc]
push dword [ebp - 0x24]
push str._d____d_Hz
push eax
call fcn.00405c38
add esp, 0x10
push dword [ebp + 0xc]
push ebx
push esi
push dword [ebp - 0x74]
call fcn.00405cbd
push dword [ebp - 0x28]
lea eax, [ebp + 0xc]
push dword [ebp - 0x2c]
push str._d____d_Bits
push eax
call fcn.00405c38
add esp, 0x10
push dword [ebp + 0xc]
push ebx
push 3
push dword [ebp - 0x74]
call fcn.00405cbd
cmp dword [ebp - 0x18], edi
lea eax, [ebp - 0x84]
jne 0x477c9b
lea eax, [ebp - 0x80]
push dword [eax]
push ebx
push 4
push dword [ebp - 0x74]
call fcn.00405cbd
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x24], eax
jne 0x477d56
cmp eax, dword [0x4eb7e0]
je 0x477d56
xor ecx, ecx
mov dword [ebp - 0x78], ecx
cmp eax, dword [ecx*4 + 0x4e7a58]
je 0x477cd9
inc ecx
cmp ecx, 0xd
mov dword [ebp - 0x78], ecx
jb 0x477cc5
jmp 0x477d56
cmp ecx, 0xffffffff
je 0x477d56
push eax
push eax
lea eax, [ebp + 0xc]
push 0x815e
push eax
call fcn.00405bca
add esp, 0x10
push 0xfffffffffffffffe
push ebx
push dword [ebp - 0x74]
call fcn.0041488b
push edi
call dword [sym.imp.USER32.dll_MessageBeep]
mov ebx, dword [ebp + 8]
push 0x23
push dword [0x4eb3dc]
push dword [ebp + 0xc]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x477d56
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x78]
mov dword [0x4eb7e0], eax
lea eax, [ebx + 0x70]
call fcn.00414616
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 0x477e9e
mov dword [ebp - 0x7c], 0x80004005
jmp 0x477eac
cmp esi, 3
jne 0x477eac
mov ebx, 0x4eb7c0
call fcn.00471e48
mov ebx, eax
mov edi, 0x4ebcf4
call fcn.004af630
mov ebx, eax
test ebx, ebx
je 0x477eac
mov eax, dword [0x4e9150]
mov dword [ebp + 0xc], eax
push dword [ebx + 0x18]
lea eax, [ebp + 0xc]
push str._d_Channels
push eax
call fcn.00405c38
add esp, 0xc
push dword [ebp + 0xc]
push 1
push 1
push dword [ebp - 0x74]
call fcn.00405cbd
mov edi, dword [0x4e9150]
mov dword [ebp - 0x78], edi
and dword [ebp - 0x88], 0
mov byte [ebp - 4], 5
cmp dword [ebx + 0x28], 0
jle 0x477e1f
mov eax, dword [ebp - 0x88]
lea ecx, [ebx + 0x24]
call fcn.0046cd11
push dword [eax]
lea eax, [ebp + 0xc]
push 0x4d277c
push eax
call fcn.00405c38
mov eax, dword [ebp + 0xc]
mov edi, dword [eax - 8]
add esp, 0xc
push eax
lea eax, [ebp - 0x78]
call fcn.00403284
inc dword [ebp - 0x88]
mov eax, dword [ebp - 0x88]
cmp eax, dword [ebx + 0x28]
jl 0x477ddb
mov edi, dword [ebp - 0x78]
cmp dword [edi - 8], 0
je 0x477e43
push 0x4d2774
lea eax, [ebp - 0x78]
push eax
call fcn.00402ee8
mov edi, dword [ebp - 0x78]
push edi
push 1
push 2
push dword [ebp - 0x74]
call fcn.00405cbd
push dword [ebx + 0x1c]
lea eax, [ebp + 0xc]
push str._d_Bits
push eax
call fcn.00405c38
add esp, 0xc
push dword [ebp + 0xc]
push 1
push 3
push dword [ebp - 0x74]
call fcn.00405cbd
push dword [ebx + 0x20]
lea eax, [ebp + 0xc]
push str._d_Samples
push eax
call fcn.00405c38
mov ebx, dword [ebp + 0xc]
add esp, 0xc
push ebx
push 1
push 4
push dword [ebp - 0x74]
call fcn.00405cbd
lea eax, [edi - 0xc]
cmp eax, dword [0x4e9154]
je 0x477e9b
push eax
call fcn.004013aa
lea eax, [ebx - 0xc]
cmp eax, dword [0x4e9154]
je 0x477eac
push eax
call fcn.004013aa
push 0xfffffffffffffffe
push 1
push dword [ebp - 0x74]
call fcn.0041488b
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 0x477f2e
push 0x815f
lea eax, [ebp + 0xc]
call fcn.00409034
pop ecx
push 0x10
push dword [0x4eb3dc]
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 [0x4e9154]
je 0x477f2e
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x477f42
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x84]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x477f59
push eax
call fcn.004013aa
lea esi, [ebp - 0x98]
call fcn.0045238b
lea esi, [ebp - 0xa8]
call fcn.0045238b
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.004c2215
leave
ret 8