Function at 0x1000de50
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x1002a040]
xor eax, esp
mov dword [esp + 0x38], eax
cmp byte [0x1002b4c0], 0
push ebx
push esi
push edi
je 0x1000de84
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.1000f412
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x2c]
call fcn.1000dbe0
cmp dword [esp + 0x40], 0xf
lea eax, [esp + 0x2c]
cmova eax, dword [esp + 0x2c]
push eax
push 0
push str.DefaultStreamType
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x1002a8e0], eax
xor edi, edi
lea eax, [esp + 0x20]
or esi, 0xffffffff
push eax
push edi
xor ebx, ebx
call dword [sym.imp.bass.dll_BASS_GetDeviceInfo]
test eax, eax
je 0x1000df1e
mov edx, 0x100276e1
nop
mov ecx, dword [esp + 0x28]
lea eax, [ebx + 1]
push dword [esp + 0x20]
test cl, 1
cmove eax, ebx
test cl, 2
mov ebx, eax
mov eax, edi
cmove eax, esi
mov esi, eax
mov eax, str.__default_
cmp esi, edi
cmovne eax, edx
push eax
push edi
push str.Found_sound_device__d_s:__s
push 3
call fcn.1000ddb0
add esp, 0x14
lea eax, [esp + 0x20]
inc edi
push eax
push edi
call dword [sym.imp.bass.dll_BASS_GetDeviceInfo]
mov edx, 0x100276e1
test eax, eax
jne 0x1000ded0
cmp dword [esp + 0x40], 0xf
lea eax, [esp + 0x2c]
cmova eax, dword [esp + 0x2c]
push eax
push 0xffffffffffffffff
push str.AudioDevice
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
cmp eax, 0xffffffff
je 0x1000df7a
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.bass.dll_BASS_GetDeviceInfo]
test eax, eax
je 0x1000df7a
test byte [esp + 0x1c], 1
cmovne esi, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.bass.dll_BASS_GetDeviceInfo]
test eax, eax
mov ecx, str.Unknown_device
cmovne ecx, dword [esp + 0x14]
push ecx
push esi
push ebx
push edi
push str.On_system_found__d_devices___d_enabled_devices__assuming_device_to_use:__d___s_
push 3
call fcn.1000ddb0
mov eax, dword [0xc17054]
add esp, 0x18
push 0
push dword [eax]
push 4
push 0xac44
push esi
call dword [sym.imp.bass.dll_BASS_Init]
test eax, eax
je 0x1000e0b7
sub esp, 0xc
mov dword [esp + 8], 0x42a00000
mov dword [esp + 4], 0x40400000
mov dword [esp], 0x3f800000
call dword [sym.imp.bass.dll_BASS_Set3DFactors]
test eax, eax
je 0x1000e0b7
push 0x1002a900
push 0x1002a8f4
push 0x1002b4c4
push 0x1002b4d0
call dword [sym.imp.bass.dll_BASS_Set3DPosition]
test eax, eax
je 0x1000e0b7
push str.SoundSystem_initialized
push 3
call fcn.1000ddb0
add esp, 8
push 0
push 0
push 0x100
push 1
push 0xac44
call dword [sym.imp.bass.dll_BASS_StreamCreate]
mov esi, eax
test esi, esi
je 0x1000e058
push str.Floating_point_audio_supported_
push 3
call fcn.1000ddb0
add esp, 8
mov byte [0x1002b470], 1
push esi
call dword [sym.imp.bass.dll_BASS_StreamFree]
jmp 0x1000e067
push str.Floating_point_audio_not_supported_
push 3
call fcn.1000ddb0
add esp, 8
push 0x1002b488
call dword [sym.imp.bass.dll_BASS_GetInfo]
test eax, eax
je 0x1000e0a6
test byte [0x1002b488], 0x20
je 0x1000e08e
push str.Audio_drivers_not_installed___using_DirectSound_emulation
push 3
call fcn.1000ddb0
add esp, 8
cmp dword [0x1002b4a4], 0
jne 0x1000e0a6
push str.Audio_hardware_acceleration_disabled__no_EAX_
push 3
call fcn.1000ddb0
add esp, 8
mov byte [0x1002b4c0], 1
call dword [sym.imp.bass.dll_BASS_Apply3D]
mov bl, 1
jmp 0x1000e0d1
call dword [sym.imp.bass.dll_BASS_ErrorGetCode]
push eax
push str.Could_not_initialize_BASS_sound_system._Error_code:__d
push 1
push 0
call fcn.1000ddf0
add esp, 0x10
xor bl, bl
mov ecx, dword [esp + 0x40]
cmp ecx, 0xf
jbe 0x1000e103
mov edx, dword [esp + 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000e0f9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000e117
push ecx
push edx
call fcn.1000f76a
add esp, 8
mov ecx, dword [esp + 0x44]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000f412
mov esp, ebp
pop ebp
ret
call fcn.100142d6
int3