Function at 0x10001190
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, ecx
push str.CloseHandle
push str.KERNEL32.dll
mov dword [edi], 0x100170e0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
mov ebx, dword [sym.imp.MSVCRT.dll_puts]
push 0x1001a0ec
mov dword [esp + 0x34], eax
call ebx
mov eax, dword [0x1001c9e8]
add esp, 4
push str.waveInReset
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
mov dword [esp + 0x18], eax
call ebp
push 0x1001a0ec
call ebx
mov ecx, dword [0x1001c9e8]
add esp, 4
push str.waveInStop
push ecx
call esi
push 0
mov dword [esp + 0x14], eax
call ebp
push 0x1001a0ec
call ebx
mov edx, dword [0x1001c9e8]
add esp, 4
push str.waveInClose
push edx
call esi
push 0
mov dword [esp + 0x20], eax
call ebp
push 0x1001a0ec
call ebx
mov eax, dword [0x1001c9e8]
add esp, 4
push str.waveInUnprepareHeader
push eax
call esi
push 0
mov dword [esp + 0x1c], eax
call ebp
push 0x1001a0ec
call ebx
mov ecx, dword [0x1001c9e8]
add esp, 4
push str.waveOutReset
push ecx
call esi
push 0
mov dword [esp + 0x28], eax
call ebp
push 0x1001a0ec
call ebx
mov edx, dword [0x1001c9e8]
add esp, 4
push str.waveOutClose
push edx
call esi
push 0
mov dword [esp + 0x30], eax
call ebp
push 0x1001a0ec
call ebx
mov eax, dword [0x1001c9e8]
add esp, 4
push str.waveOutUnprepareHeader
push eax
call esi
push 0
mov dword [esp + 0x2c], eax
call ebp
mov al, byte [edi + 0x44]
test al, al
je 0x10001312
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.TerminateThread
push str.KERNEL32.dll
call ebx
push eax
call esi
push str.FreeLibrary
push str.KERNEL32.dll
mov dword [esp + 0x28], eax
call ebx
push eax
call esi
mov ecx, dword [edi + 0x18]
push ecx
call dword [esp + 0x14]
mov edx, dword [edi + 0x18]
push edx
call dword [esp + 0x18]
lea ebp, [edi + 0x30]
mov ebx, 2
mov eax, dword [ebp]
mov ecx, dword [edi + 0x18]
push 0x20
push eax
push ecx
call dword [esp + 0x24]
add ebp, 4
dec ebx
jne 0x100012ec
mov edx, dword [edi + 0x18]
push edx
call dword [esp + 0x20]
mov eax, dword [edi + 0x2c]
push 0xffffffffffffffff
push eax
call dword [esp + 0x28]
mov al, byte [edi + 0x45]
test al, al
je 0x10001345
mov ecx, dword [edi + 0x40]
push ecx
call dword [esp + 0x28]
lea ebp, [edi + 0x30]
mov ebx, 2
mov edx, dword [ebp]
mov eax, dword [edi + 0x40]
push 0x20
push edx
push eax
call dword [esp + 0x34]
add ebp, 4
dec ebx
jne 0x10001329
mov ecx, dword [edi + 0x40]
push ecx
call dword [esp + 0x30]
lea ebp, [edi + 0x30]
mov ebx, 2
mov edx, dword [ebp - 0x28]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [ebp - 0x20]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edx, dword [ebp + 8]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
add ebp, 4
dec ebx
jne 0x1000134d
push str.FreeLibrary
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call esi
mov esi, dword [esp + 0x30]
mov ebx, eax
mov eax, dword [edi + 0x24]
push eax
call esi
mov ecx, dword [edi + 0x28]
push ecx
call esi
mov edx, dword [edi + 0x2c]
push edx
call esi
mov eax, dword [0x1001c9e8]
push eax
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret