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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_puts]
push esi
push edi
mov edi, ecx
push 0x100190c0
mov dword [edi], 0x100161d0
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
push 0
call esi
push 0
call esi
mov eax, dword [0x1001b5e8]
push str.waveInReset
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
mov dword [ebp - 8], eax
call esi
push 0
call esi
push 0x100190c0
call ebx
add esp, 4
push 0
call esi
mov ecx, dword [0x1001b5e8]
push str.waveInStop
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
mov dword [ebp - 4], eax
call esi
push 0
call esi
push 0x100190c0
call ebx
mov edx, dword [0x1001b5e8]
add esp, 4
push str.waveInClose
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
mov dword [ebp - 0x10], eax
call esi
push 0
call esi
push 0x100190c0
call ebx
mov eax, dword [0x1001b5e8]
add esp, 4
push str.waveInUnprepareHeader
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
mov dword [ebp - 0xc], eax
call esi
push 0x100190c0
call ebx
mov ecx, dword [0x1001b5e8]
add esp, 4
push str.waveOutReset
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
mov dword [ebp - 0x14], eax
call esi
push 0x100190c0
call ebx
add esp, 4
push 0
call esi
mov edx, dword [0x1001b5e8]
push str.waveOutClose
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
mov dword [ebp - 0x1c], eax
call esi
push 0x100190c0
call ebx
add esp, 4
push 0
call esi
mov eax, dword [0x1001b5e8]
push str.waveOutUnprepareHeader
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
mov dword [ebp - 0x18], eax
call esi
mov al, byte [edi + 0x44]
test al, al
je 0x10001420
mov ecx, dword [edi + 0x18]
push ecx
call dword [ebp - 4]
mov edx, dword [edi + 0x18]
push edx
call dword [ebp - 8]
push 0
call esi
lea esi, [edi + 0x30]
mov ebx, 2
mov eax, dword [esi]
mov ecx, dword [edi + 0x18]
push 0x20
push eax
push ecx
call dword [ebp - 0xc]
add esi, 4
dec ebx
jne 0x100013f0
mov edx, dword [edi + 0x18]
push edx
call dword [ebp - 0x10]
push 0x30
call dword [sym.imp.MSVCRT.dll_putchar]
mov eax, dword [edi + 0x2c]
add esp, 4
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov al, byte [edi + 0x45]
test al, al
je 0x10001453
mov ecx, dword [edi + 0x40]
push ecx
call dword [ebp - 0x14]
lea esi, [edi + 0x30]
mov ebx, 2
mov edx, dword [esi]
mov eax, dword [edi + 0x40]
push 0x20
push edx
push eax
call dword [ebp - 0x18]
add esi, 4
dec ebx
jne 0x10001436
nop
nop
nop
nop
mov ecx, dword [edi + 0x40]
push ecx
call dword [ebp - 0x1c]
lea esi, [edi + 0x30]
mov ebx, 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 ebx
jne 0x1000145b
mov eax, dword [edi + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
nop
nop
nop
nop
mov ecx, dword [edi + 0x28]
push ecx
call esi
mov edx, dword [edi + 0x2c]
push edx
call esi
push 0x30
call dword [sym.imp.MSVCRT.dll_putchar]
mov eax, dword [0x1001b5e8]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret