Function at 0x10001200
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.FreeLibrary
push str.KERNEL32.dll
mov dword [ebp - 4], ecx
mov dword [ecx], 0x1001b2c0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.TerminateThread
push str.KERNEL32.dll
mov dword [ebp - 0x2c], eax
call esi
push eax
call edi
push str.CloseHandle
push str.kernel32.dll
mov dword [ebp - 0x18], eax
call esi
push eax
call edi
mov dword [ebp - 0x28], eax
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
push 0x1001e0a0
call dword [sym.imp.MSVCRT.dll_puts]
mov eax, dword [0x10020cf0]
add esp, 4
push str.waveInReset
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
push 0x1001e0a0
call dword [sym.imp.MSVCRT.dll_puts]
mov ecx, dword [0x10020cf0]
add esp, 4
push str.waveInStop
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
push 0x1001e0a0
call dword [sym.imp.MSVCRT.dll_puts]
mov edx, dword [0x10020cf0]
add esp, 4
push str.waveInClose
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
push 0x1001e0a0
call dword [sym.imp.MSVCRT.dll_puts]
mov eax, dword [0x10020cf0]
add esp, 4
push str.waveInUnprepareHeader
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
push 0x1001e0a0
call dword [sym.imp.MSVCRT.dll_puts]
mov ecx, dword [0x10020cf0]
add esp, 4
push str.waveOutReset
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
push 0x1001e0a0
call dword [sym.imp.MSVCRT.dll_puts]
mov edx, dword [0x10020cf0]
add esp, 4
push str.waveOutClose
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
push 0x1001e0a0
call dword [sym.imp.MSVCRT.dll_puts]
mov eax, dword [0x10020cf0]
add esp, 4
push str.waveOutUnprepareHeader
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebp - 4]
mov al, byte [esi + 0x44]
test al, al
je 0x1000144c
mov ecx, dword [esi + 0x18]
push ecx
call dword [ebp - 8]
mov edx, dword [esi + 0x18]
push edx
call dword [ebp - 0xc]
lea edi, [esi + 0x30]
mov ebx, 2
mov eax, dword [edi]
mov ecx, dword [esi + 0x18]
push 0x20
push eax
push ecx
call dword [ebp - 0x10]
add edi, 4
dec ebx
jne 0x1000142a
mov edx, dword [esi + 0x18]
push edx
call dword [ebp - 0x14]
mov eax, dword [esi + 0x2c]
push 0xffffffffffffffff
push eax
call dword [ebp - 0x18]
mov al, byte [esi + 0x45]
test al, al
je 0x1000147b
mov ecx, dword [esi + 0x40]
push ecx
call dword [ebp - 0x1c]
lea edi, [esi + 0x30]
mov ebx, 2
mov edx, dword [edi]
mov eax, dword [esi + 0x40]
push 0x20
push edx
push eax
call dword [ebp - 0x20]
add edi, 4
dec ebx
jne 0x10001462
mov ecx, dword [esi + 0x40]
push ecx
call dword [ebp - 0x24]
lea edi, [esi + 0x30]
mov ebx, 2
mov edx, dword [edi - 0x28]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [edi]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [edi - 0x20]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edx, dword [edi + 8]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
add edi, 4
dec ebx
jne 0x10001483
mov eax, dword [esi + 0x24]
mov edi, dword [ebp - 0x28]
push eax
call edi
mov ecx, dword [esi + 0x28]
push ecx
call edi
mov edx, dword [esi + 0x2c]
push edx
call edi
mov eax, dword [0x10020cf0]
push eax
call dword [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret