Function at 0x41ea30
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x18
mov eax, dword [0x434f14]
test eax, eax
push ebx
push esi
push edi
push ebp
jne 0x41ecc2
cmp dword [0x434f18], 0
jne 0x41ea56
mov eax, dword [esp + 0x2c]
mov dword [0x434f18], eax
push 0x8000
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov edi, eax
mov ebp, dword [esp + 0x30]
mov dword [0x43b210], 0xffffffff
mov dword [0x434f14], 1
test ebp, ebp
je 0x41eb2c
push str.DSOUND.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x434f1c], eax
test eax, eax
je 0x41eb2c
lea ecx, [esp + 0x14]
push str.DirectSoundCreate
push eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x10], ebx
call esi
mov dword [0x43ab74], eax
cmp eax, ebx
je 0x41eb14
push ebx
push 0x43ab64
push ebx
call eax
test eax, eax
jne 0x41eb14
push 1
mov eax, dword [0x43ab64]
push ebp
push eax
mov ebp, dword [eax]
mov dword [0x434f14], 3
call dword [ebp + 0x18]
lea ecx, [esp + 0x10]
push ebx
lea eax, [esp + 0x18]
push ecx
push eax
mov edx, dword [0x43ab64]
mov dword [esp + 0x20], 0x14
mov dword [esp + 0x24], 1
push edx
mov eax, dword [edx]
call dword [eax + 0xc]
jmp 0x41eb32
mov eax, dword [0x434f1c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x434f1c], 0
jmp 0x41eb32
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x434f14], 1
jne 0x41eb77
mov eax, dword [str.WavMix32.dll]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x434f1c], eax
test eax, eax
je 0x41eb5a
mov dword [0x434f14], 2
cmp dword [0x434f14], 1
jne 0x41eb77
call dword [sym.imp.WINMM.dll_waveOutGetNumDevs]
test eax, eax
jne 0x41eb77
mov dword [0x434f14], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp dword [0x434f14], 2
jne 0x41ecaa
mov eax, 0x43b210
mov dword [eax], 0xffffffff
add eax, 8
cmp eax, 0x43b250
jb 0x41eb90
push str.WaveMixGetInfo
mov eax, dword [0x434f1c]
push eax
call esi
push str.WaveMixInit
mov dword [0x43b250], eax
mov eax, dword [0x434f1c]
push eax
call esi
push str.WaveMixConfigureInit
mov dword [0x43ab8c], eax
mov eax, dword [0x434f1c]
push eax
call esi
push str.WaveMixActivate
mov dword [0x43b254], eax
mov eax, dword [0x434f1c]
push eax
call esi
push str.WaveMixOpenWave
mov dword [0x43ab6c], eax
mov eax, dword [0x434f1c]
push eax
call esi
push str.WaveMixOpenChannel
mov dword [0x43ab84], eax
mov eax, dword [0x434f1c]
push eax
call esi
push str.WaveMixPlay
mov dword [0x43ab80], eax
mov eax, dword [0x434f1c]
push eax
call esi
push str.WaveMixFlushChannel
mov dword [0x43ab88], eax
mov eax, dword [0x434f1c]
push eax
call esi
push str.WaveMixCloseChannel
mov dword [0x43ab60], eax
mov eax, dword [0x434f1c]
push eax
call esi
push str.WaveMixFreeWave
mov dword [0x43ab68], eax
mov eax, dword [0x434f1c]
push eax
call esi
push str.WaveMixCloseSession
mov dword [0x43ab78], eax
mov eax, dword [0x434f1c]
push eax
call esi
push str.WaveMixPump
mov dword [0x43ab7c], eax
mov eax, dword [0x434f1c]
push eax
call esi
mov dword [0x43ab70], eax
xor eax, eax
mov ecx, dword [0x43ab8c]
mov dword [0x434f20], eax
cmp ecx, eax
je 0x41ec8b
call ecx
mov dword [0x434f20], eax
test eax, eax
jne 0x41ecaa
mov eax, dword [0x434f1c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x434f14], 1
mov edi, 0x43ab90
xor eax, eax
mov ecx, 0x1a0
rep stosd dword es:[edi], eax
mov dword [0x434f28], eax
mov eax, dword [0x434f14]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18
ret 8