Function at 0x4aa7a0
Capabilities:
Access peb ldr_data
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x515673
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov eax, dword [0x5594e8]
xor eax, dword [esp + 0x128]
push ebx
push ebp
mov ebx, ecx
push esi
xor ebp, ebp
push edi
lea ecx, [ebx + 0x10]
mov dword [esp + 0x128], eax
mov dword [esp + 0x24], ebx
mov dword [ebx], fcn.004a9cd0
mov byte [ebx + 8], 0
mov dword [ebx + 0xc], ebp
call fcn.004ab180
push str.Starting...
push str.UveAudio::UveAudio
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str._s__:__s
mov dword [esp + 0x144], ebp
call fcn.00402110
mov eax, dword [0x55cd0c]
mov ecx, dword [eax + 0x85c]
push ecx
call fcn.00475320
lea edx, [esp + 0x2c]
push edx
mov byte [ebx + 8], 0
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x154], 1
call fcn.0041b800
mov edx, dword [eax]
add esp, 0x20
mov ecx, ebx
call fcn.004a9cd0
push edx
push 0x100
lea ecx, [esp + 0x30]
push ecx
lea esi, [eax + 4]
mov eax, dword [esi]
push 0x5245f0
push str.bMute
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4aa895
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x134], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aa8bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp edi, ebp
jle 0x4aa8ca
cmp byte [esp + 0x28], 0x59
sete al
mov byte [ebx + 8], al
mov al, byte [ebx + 8]
test al, al
mov edi, 0x5247d4
jne 0x4aa8db
mov edi, 0x5247d0
lea ecx, [esp + 0x1c]
push ecx
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x144], 2
call fcn.0041b800
mov eax, dword [eax]
mov ecx, dword [esi]
mov ebp, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 0x10
push eax
push edi
push str.bMute
push ecx
call ebp
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aa932
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x134], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aa958
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x14]
push eax
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x144], 3
call fcn.0041b800
mov eax, dword [eax]
mov ecx, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
add esp, 0x10
push eax
push 0xac44
push str.frequency
push ecx
call ebx
mov edi, eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x20], edi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4aa9b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aa9df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
call fcn.004fd868
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
push edi
lea eax, [esp + 0x20]
push 0x525028
push eax
mov byte [esp + 0x140], 4
call fcn.00401f80
lea ecx, [esp + 0x1c]
push ecx
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x150], 5
call fcn.0041b800
mov eax, dword [eax]
mov edi, dword [esp + 0x38]
mov ecx, dword [esi]
add esp, 0x1c
push eax
push edi
push str.frequency
push ecx
call ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aaa5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x134], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aaa85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov byte [esp + 0x134], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aaaa7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x14]
push eax
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x144], 6
call fcn.0041b800
mov eax, dword [eax]
mov ecx, dword [esi]
add esp, 0x10
push eax
push 0x20
push str.channels
push ecx
call ebx
mov edi, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x18], edi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4aaaff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aab25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
call fcn.004fd868
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
push edi
lea eax, [esp + 0x20]
push 0x525028
mov bl, 7
push eax
mov byte [esp + 0x140], bl
call fcn.00401f80
lea ecx, [esp + 0x20]
push ecx
call fcn.0041b8c0
push str.CI3Xmas.cfg
push eax
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x150], 8
call fcn.0041b800
mov eax, dword [eax]
mov edi, dword [esp + 0x38]
mov esi, dword [esi]
add esp, 0x1c
push eax
push edi
push str.channels
push esi
call ebp
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aaba6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aabcb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov byte [esp + 0x134], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aabed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
call sub.BASS.dll_BASS_GetVersion
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Using_BASS_version__08x
call fcn.00402110
mov ecx, dword [0x55cd0c]
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.004a7680
add esp, 0x10
mov edx, dword [eax]
push edx
push str.UveAudio::UveAudio
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str._s__:__s
mov byte [esp + 0x144], 9
call fcn.00402110
mov eax, dword [0x55cd0c]
mov ecx, dword [eax + 0x85c]
push ecx
call fcn.00475320
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x134], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4aac73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push str.Available_audio_devices:
push str.UveAudio::UveAudio
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._s__:__s
call fcn.00402110
mov eax, dword [0x55cd0c]
mov ecx, dword [eax + 0x85c]
push ecx
call fcn.00475320
add esp, 0x10
push str._1.___default_device_
push str.UveAudio::UveAudio
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._s__:__s
call fcn.00402110
mov edx, dword [0x55cd0c]
mov eax, dword [edx + 0x85c]
push eax
call fcn.00475320
add esp, 0x10
xor edi, edi
push edi
call sub.BASS.dll_BASS_GetDeviceDescription
test eax, eax
je 0x4aad75
mov bl, 0xa
push eax
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str._d.___s
call fcn.00402110
mov edx, dword [0x55cd0c]
lea ecx, [esp + 0x1c]
push ecx
push edx
call fcn.004a7680
add esp, 0x14
mov eax, dword [eax]
push eax
push str.UveAudio::UveAudio
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str._s__:__s
mov byte [esp + 0x144], bl
call fcn.00402110
mov ecx, dword [0x55cd0c]
mov edx, dword [ecx + 0x85c]
push edx
call fcn.00475320
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x134], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aad66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
inc edi
push edi
call sub.BASS.dll_BASS_GetDeviceDescription
test eax, eax
jne 0x4aace4
mov ebx, dword [esp + 0x24]
mov al, byte [ebx + 8]
test al, al
je 0x4aadb8
push str.Sound_has_been_muted.
push str.UveAudio::UveAudio
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str._s__:__s
call fcn.00402110
mov eax, dword [0x55cd0c]
mov ecx, dword [eax + 0x85c]
push ecx
call fcn.00475320
mov ebp, dword [esp + 0x30]
add esp, 0x10
jmp 0x4aaff3
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
push edx
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Creating_audio:__d_Hz.
call fcn.00402110
mov ecx, dword [0x55cd0c]
lea eax, [esp + 0x24]
push eax
push ecx
call fcn.004a7680
add esp, 0x14
mov edx, dword [eax]
push edx
push str.UveAudio::UveAudio
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._s__:__s
mov byte [esp + 0x144], 0xb
call fcn.00402110
mov eax, dword [0x55cd0c]
mov ecx, dword [eax + 0x85c]
push ecx
call fcn.00475320
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x134], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4aae42
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
or esi, 0xffffffff
cmp edi, 0xffffffff
jle 0x4aafcb
mov bl, 0xd
test esi, esi
je 0x4aafbe
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.Attempting_to_initialize_device__d...
call fcn.00402110
mov ecx, dword [0x55cd0c]
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.004a7680
add esp, 0x10
mov edx, dword [eax]
push edx
push str.UveAudio::UveAudio
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str._s__:__s
mov byte [esp + 0x144], 0xc
call fcn.00402110
mov eax, dword [0x55cd0c]
mov ecx, dword [eax + 0x85c]
push ecx
call fcn.00475320
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x134], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4aaed9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
call fcn.0050953d
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax + 0x1c]
push 0
push ecx
push 4
push ebp
push esi
call sub.BASS.dll_BASS_Init
test eax, eax
jne 0x4ab12b
call sub.BASS.dll_BASS_ErrorGetCode
push eax
lea edx, [esp + 0x18]
push edx
call fcn.004a9f10
add esp, 8
mov eax, dword [eax]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str...._failed_with__s
mov byte [esp + 0x140], bl
call fcn.00402110
mov edx, dword [0x55cd0c]
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.004a7680
add esp, 0x10
mov eax, dword [eax]
push eax
push str.UveAudio::UveAudio
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str._s__:__s
mov byte [esp + 0x144], 0xe
call fcn.00402110
mov ecx, dword [0x55cd0c]
mov edx, dword [ecx + 0x85c]
push edx
call fcn.00475320
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x134], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aaf98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x134], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aafbe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
inc esi
cmp esi, edi
jl 0x4aae50
mov ebx, dword [esp + 0x24]
call fcn.0050953d
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x1c]
mov eax, dword [edx + 0x1c]
push 0x10030
push str.Error
push str.Could_not_initialize_any_audio_devices._Continuing_without_sound.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [ebx + 8], 1
mov al, byte [ebx + 8]
test al, al
je 0x4ab0c8
push str.Attempting_to_initialize_device_0__mute_...
push str.UveAudio::UveAudio
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str._s__:__s
call fcn.00402110
mov ecx, dword [0x55cd0c]
mov edx, dword [ecx + 0x85c]
push edx
call fcn.00475320
add esp, 0x10
call fcn.0050953d
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax + 0x1c]
push 0
push ecx
push 4
push ebp
push 0
call sub.BASS.dll_BASS_Init
test eax, eax
jne 0x4ab0c8
push 0x51
push str.engineUveAudio.cpp
push str.UveAudio::UveAudio
push str.BASS_Init_0_frequency_BASS_DEVICE_3D_FASTWINDOWHANDLE_NULL_
call sub.BASS.dll_BASS_ErrorGetCode
push eax
lea edx, [esp + 0x2c]
push edx
call fcn.004a9f10
add esp, 8
mov eax, dword [eax]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x51fa70
mov byte [esp + 0x150], 0xf
call fcn.00402110
mov ecx, dword [0x55cd0c]
mov edx, dword [ecx + 0x860]
push edx
call fcn.0044ce20
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 0x1c
mov byte [esp + 0x134], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ab0c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, ebx
call fcn.004aa220
push str.Started.
push str.UveAudio::UveAudio
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str._s__:__s
call fcn.00402110
mov eax, dword [0x55cd0c]
mov ecx, dword [eax + 0x85c]
push ecx
call fcn.00475320
mov ecx, dword [esp + 0x13c]
add esp, 0x10
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x120]
xor ecx, dword [esp + 0x130]
pop ebp
mov eax, ebx
pop ebx
add esp, 0x128
jmp fcn.004ecf23
push str....success_
push str.UveAudio::UveAudio
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str._s__:__s
call fcn.00402110
mov eax, dword [0x55cd0c]
mov ecx, dword [eax + 0x85c]
push ecx
call fcn.00475320
mov ebx, dword [esp + 0x34]
add esp, 0x10
jmp 0x4aaff3