Function at 0x10001180
Capabilities:
Link many functions at runtime
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.MSVCRT.dll_puts]
push 0x100180a0
mov dword [esi], 0x10015378
call edi
mov eax, dword [0x1001a410]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 4
push str.waveInReset
push eax
call ebx
push 0
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x100180a0
call edi
mov ecx, dword [0x1001a410]
add esp, 4
push str.waveInStop
push ecx
call ebx
push 0
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x100180a0
call edi
mov edx, dword [0x1001a410]
add esp, 4
push str.waveInClose
push edx
call ebx
push 0
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 0x100180a0
call edi
mov eax, dword [0x1001a410]
add esp, 4
push str.waveInUnprepareHeader
push eax
call ebx
push 0
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x100180a0
call edi
mov ecx, dword [0x1001a410]
add esp, 4
push str.waveOutReset
push ecx
call ebx
push 0
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x100180a0
call edi
mov edx, dword [0x1001a410]
add esp, 4
push str.waveOutClose
push edx
call ebx
push 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x100180a0
call edi
mov eax, dword [0x1001a410]
add esp, 4
push str.waveOutUnprepareHeader
push eax
call ebx
push 0
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, byte [esi + 0x44]
test al, al
je 0x100012db
mov ecx, dword [esi + 0x18]
push ecx
call dword [ebp - 4]
mov edx, dword [esi + 0x18]
push edx
call dword [ebp - 8]
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 - 0xc]
add edi, 4
dec ebx
jne 0x100012b6
mov edx, dword [esi + 0x18]
push edx
call dword [ebp - 0x10]
mov eax, dword [esi + 0x2c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov al, byte [esi + 0x45]
test al, al
je 0x1000130a
mov ecx, dword [esi + 0x40]
push ecx
call dword [ebp - 0x14]
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 - 0x18]
add edi, 4
dec ebx
jne 0x100012f1
mov ecx, dword [esi + 0x40]
push ecx
call dword [ebp - 0x1c]
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 0x10001312
mov eax, dword [esi + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
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 [0x1001a410]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret