Function at 0x401140
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c5e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
push str.TerminateThread
push str.KERNEL32.dll
mov dword [ebp - 0x38], ebx
mov dword [ebx], 0x41d4a8
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov dword [ebp - 0x24], eax
mov al, 0x65
mov byte [ebp - 0x44], al
mov byte [ebp - 0x3e], al
lea eax, [ebp - 0x48]
mov cl, 0x6c
push eax
push str.KERNEL32.dll
mov byte [ebp - 0x48], 0x43
mov byte [ebp - 0x47], cl
mov byte [ebp - 0x46], 0x6f
mov byte [ebp - 0x45], 0x73
mov byte [ebp - 0x43], 0x48
mov byte [ebp - 0x42], 0x61
mov byte [ebp - 0x41], 0x6e
mov byte [ebp - 0x40], 0x64
mov byte [ebp - 0x3f], cl
mov byte [ebp - 0x3d], 0
call esi
push eax
call edi
push str.waveOutClose
push str.WINMM.dll
mov dword [ebp - 0x3c], eax
call esi
push eax
call edi
push str.waveInStop
push str.WINMM.dll
mov dword [ebp - 0x30], eax
call esi
push eax
call edi
push str.waveInReset
push str.WINMM.dll
mov dword [ebp - 0x14], eax
call esi
push eax
call edi
push str.waveInUnprepareHeader
push str.WINMM.dll
mov dword [ebp - 0x18], eax
call esi
push eax
call edi
push str.waveInClose
push str.WINMM.dll
mov dword [ebp - 0x1c], eax
call esi
push eax
call edi
push str.waveOutReset
push str.WINMM.dll
mov dword [ebp - 0x20], eax
call esi
push eax
call edi
push str.waveOutUnprepareHeader
push str.WINMM.dll
mov dword [ebp - 0x28], eax
call esi
push eax
call edi
mov dword [ebp - 0x2c], eax
mov al, byte [ebx + 0x44]
test al, al
je 0x401288
mov ecx, dword [ebx + 0x18]
push ecx
call dword [ebp - 0x14]
mov edx, dword [ebx + 0x18]
push edx
call dword [ebp - 0x18]
lea esi, [ebx + 0x30]
mov edi, 2
mov eax, dword [esi]
mov ecx, dword [ebx + 0x18]
push 0x20
push eax
push ecx
call dword [ebp - 0x1c]
add esi, 4
dec edi
jne 0x401266
mov edx, dword [ebx + 0x18]
push edx
call dword [ebp - 0x20]
mov eax, dword [ebx + 0x2c]
push 0xffffffffffffffff
push eax
call dword [ebp - 0x24]
mov al, byte [ebx + 0x45]
test al, al
je 0x4012b7
mov ecx, dword [ebx + 0x40]
push ecx
call dword [ebp - 0x28]
lea esi, [ebx + 0x30]
mov edi, 2
mov edx, dword [esi]
mov eax, dword [ebx + 0x40]
push 0x20
push edx
push eax
call dword [ebp - 0x2c]
add esi, 4
dec edi
jne 0x40129e
mov ecx, dword [ebx + 0x40]
push ecx
call dword [ebp - 0x30]
lea esi, [ebx + 0x30]
mov edi, 2
mov eax, dword [esi - 0x28]
push eax
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 eax, dword [esi - 0x20]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esi + 8]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
add esi, 4
dec edi
jne 0x4012bf
lea edx, [ebp - 0x34]
push 0x41e4c8
push edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], 0x47
call sub.MSVCRT.dll__CxxThrowException
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x3c]
mov eax, dword [esi + 0x24]
push eax
call edi
mov ecx, dword [esi + 0x28]
push ecx
call edi
mov edx, dword [esi + 0x2c]
push edx
call edi
mov eax, 0x401325
ret