Function at 0x10001190
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, ecx
push str.FreeLibrary
push str.KERNEL32.dll
mov dword [ebp], 0x1001a200
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.TerminateThread
push str.KERNEL32.dll
mov dword [esp + 0x38], eax
call edi
push eax
call esi
push str.CloseHandle
push str.kernel32.dll
mov dword [esp + 0x28], eax
call edi
push eax
call esi
mov edi, dword [sym.imp.MSVCRT.dll_puts]
push 0x1001d0a0
mov dword [esp + 0x30], eax
call edi
mov eax, dword [0x100200a0]
add esp, 4
push str.waveInReset
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
mov dword [esp + 0x18], eax
call ebx
push 0x1001d0a0
call edi
mov ecx, dword [0x100200a0]
add esp, 4
push str.waveInStop
push ecx
call esi
push 0
mov dword [esp + 0x14], eax
call ebx
push 0x1001d0a0
call edi
mov edx, dword [0x100200a0]
add esp, 4
push str.waveInClose
push edx
call esi
push 0
mov dword [esp + 0x20], eax
call ebx
push 0x1001d0a0
call edi
mov eax, dword [0x100200a0]
add esp, 4
push str.waveInUnprepareHeader
push eax
call esi
push 0
mov dword [esp + 0x1c], eax
call ebx
push 0x1001d0a0
call edi
mov ecx, dword [0x100200a0]
add esp, 4
push str.waveOutReset
push ecx
call esi
push 0
mov dword [esp + 0x28], eax
call ebx
push 0x1001d0a0
call edi
add esp, 4
mov edx, dword [0x100200a0]
push str.waveOutClose
push edx
call esi
push 0
mov dword [esp + 0x2c], eax
call ebx
push 0x1001d0a0
call edi
mov eax, dword [0x100200a0]
add esp, 4
push str.waveOutUnprepareHeader
push eax
call esi
push 0
mov edi, eax
call ebx
mov al, byte [ebp + 0x44]
test al, al
je 0x10001310
mov ecx, dword [ebp + 0x18]
push ecx
call dword [esp + 0x14]
mov edx, dword [ebp + 0x18]
push edx
call dword [esp + 0x18]
lea esi, [ebp + 0x30]
mov ebx, 2
mov eax, dword [esi]
mov ecx, dword [ebp + 0x18]
push 0x20
push eax
push ecx
call dword [esp + 0x24]
add esi, 4
dec ebx
jne 0x100012eb
mov edx, dword [ebp + 0x18]
push edx
call dword [esp + 0x20]
mov eax, dword [ebp + 0x2c]
push 0xffffffffffffffff
push eax
call dword [esp + 0x28]
mov al, byte [ebp + 0x45]
test al, al
je 0x10001340
mov ecx, dword [ebp + 0x40]
push ecx
call dword [esp + 0x28]
lea esi, [ebp + 0x30]
mov ebx, 2
mov edx, dword [esi]
mov eax, dword [ebp + 0x40]
push 0x20
push edx
push eax
call edi
add esi, 4
dec ebx
jne 0x10001327
mov ecx, dword [ebp + 0x40]
push ecx
call dword [esp + 0x2c]
lea esi, [ebp + 0x30]
mov edi, 2
mov edx, dword [esi - 0x28]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esi]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esi - 0x20]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edx, dword [esi + 8]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
add esi, 4
dec edi
jne 0x10001348
mov eax, dword [ebp + 0x24]
mov esi, dword [esp + 0x2c]
push eax
call esi
mov ecx, dword [ebp + 0x28]
push ecx
call esi
mov edx, dword [ebp + 0x2c]
push edx
call esi
mov eax, dword [0x100200a0]
push eax
call dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret