Function at 0x49f000
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4018
call fcn.004a14a0
mov eax, dword [0x4deb90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov ecx, dword [esi + 0x94]
test ecx, ecx
je 0x49f52f
push edi
mov edi, dword [esi + 0x13d4]
test edi, edi
je 0x49f52e
mov eax, 0x1000
cdq
idiv ecx
mov ecx, dword [esi + 0x13d0]
mov dword [ebp - 0x2014], eax
test ecx, ecx
je 0x49f095
cmp dword [esi + 0x3b8], ecx
jae 0x49f06e
push str.D_MUSIC_VorbisDecode__:
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi + 0x13d0]
mov edi, dword [esi + 0x13d4]
push ecx
lea eax, [esi + 0x3d0]
push eax
push edi
call fcn.004a2250
mov eax, dword [esi + 0x13d0]
add esp, 0xc
mov dword [esi + 0x13d8], eax
mov dword [esi + 0x13d0], 0
push ebx
lea edi, [esi + 0x328]
lea ebx, [esi + 0xb0]
push edi
push ebx
call fcn.004109e0
add esp, 8
test eax, eax
jne 0x49f276
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x114]
test eax, eax
jne 0x49f52d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x118]
cmp eax, 1
je 0x49f21b
cmp dword [esi + 0x3c4], 1
jne 0x49f11f
push dword [esi + 0x3b8]
mov dword [esi + 0x13e0], 1
push 0
push dword [esi + 0x13d4]
mov dword [esi + 0x13dc], 1
call fcn.004a20f0
add esp, 0xc
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0848
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 0x5c]
push dword [esi + 0x390]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x11c]
cmp dword [esi + 0x3bc], 0
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x60]
push edx
mov eax, dword [ecx]
jle 0x49f1fb
call dword [eax + 0x28]
cmp dword [esi + 0x1428], 0
mov dword [ebp - 0x2008], 0
jle 0x49f1fe
nop word [eax + eax]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x114]
test eax, eax
je 0x49f19d
nop
push edi
push ebx
call fcn.004109e0
add esp, 8
cmp eax, 1
je 0x49f180
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x114]
test eax, eax
jne 0x49f180
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x118]
cmp eax, 1
jne 0x49f1de
mov eax, dword [ebp - 0x2008]
inc eax
mov dword [ebp - 0x2008], eax
cmp eax, dword [esi + 0x1428]
jl 0x49f170
pop ebx
pop edi
mov dword [esi + 0x13f4], 0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0848
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 0x5c]
push dword [esi + 0x78]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x11c]
mov ecx, dword [esi + 0x5c]
push dword [esi + 0x60]
mov eax, dword [ecx]
call dword [eax + 0x28]
pop ebx
pop edi
mov dword [esi + 0x13f4], 0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0848
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x142c], 0
jne 0x49f52d
mov eax, dword [esi + 0x13f4]
mov ecx, dword [esi + 0x3bc]
cmp eax, ecx
jae 0x49f251
inc dword [esi + 0x1428]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0848
mov esp, ebp
pop ebp
ret 4
pop ebx
sub eax, ecx
mov dword [esi + 0x142c], 1
pop edi
mov dword [esi + 0x1430], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0848
mov esp, ebp
pop ebp
ret 4
jle 0x49f52d
lea ebx, [esi + 0x2b8]
push edi
push ebx
call fcn.00402340
add esp, 8
lea edi, [esi + 0x248]
test eax, eax
jne 0x49f2a0
push ebx
push edi
call fcn.00401f40
add esp, 8
lea eax, [ebp - 0x2010]
push eax
push edi
call fcn.004022b0
add esp, 8
test eax, eax
jle 0x49f52d
movss xmm1, dword [0x4c3eac]
mov ebx, dword [ebp - 0x2014]
cmp eax, ebx
mov edi, dword [esi + 0x94]
cmovl ebx, eax
xor ecx, ecx
mov dword [ebp - 0x2008], ecx
test edi, edi
jle 0x49f36f
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x200c], eax
nop dword [eax]
mov edx, eax
mov eax, dword [ebp - 0x2010]
mov eax, dword [eax + ecx*4]
xor ecx, ecx
mov dword [ebp - 0x2018], eax
test ebx, ebx
jle 0x49f34f
nop word [eax + eax]
movss xmm0, dword [eax + ecx*4]
mulss xmm0, xmm1
cvttss2si eax, xmm0
cmp eax, 0x7fff
jle 0x49f32b
mov eax, 0x7fff
jmp 0x49f338
cmp eax, 0xffff8000
mov edi, 0xffff8000
cmovl eax, edi
mov word [edx], ax
inc ecx
mov edi, dword [esi + 0x94]
mov eax, dword [ebp - 0x2018]
lea edx, [edx + edi*2]
cmp ecx, ebx
jl 0x49f310
mov ecx, dword [ebp - 0x2008]
mov eax, dword [ebp - 0x200c]
inc ecx
add eax, 2
mov dword [ebp - 0x2008], ecx
mov dword [ebp - 0x200c], eax
cmp ecx, edi
jl 0x49f2f0
imul edi, ebx
add edi, edi
cmp dword [esi + 0x3bc], 0
je 0x49f3e9
cmp dword [esi + 0x142c], 1
jne 0x49f3e9
cmp dword [esi + 0x13f4], 0
jne 0x49f3e9
add dword [esi + 0x1434], edi
mov edi, dword [esi + 0x1434]
cmp edi, dword [esi + 0x1430]
jbe 0x49f45d
push 0x2000
lea eax, [ebp - 0x2004]
push eax
lea eax, [ebp - 0x4018]
push eax
call fcn.004a2250
sub edi, dword [esi + 0x1430]
lea eax, [edi + edi]
push eax
lea eax, [ebp - 0x4018]
push eax
lea eax, [ebp - 0x2004]
push eax
call fcn.004a2250
add esp, 0x18
mov dword [esi + 0x1434], 0
mov edx, dword [esi + 0x13d8]
mov ecx, dword [esi + 0x13d4]
add ecx, edx
lea eax, [edx + edi]
cmp eax, dword [ebp + 8]
jae 0x49f496
push edi
lea eax, [ebp - 0x2004]
push eax
push ecx
call fcn.004a2250
mov eax, dword [esi + 0x13f4]
add esp, 0xc
add dword [esi + 0x13d8], edi
add eax, edi
cmp dword [esi + 0x142c], 0
mov dword [esi + 0x13f4], eax
jne 0x49f44d
mov ecx, dword [esi + 0x3bc]
cmp eax, ecx
jb 0x49f44d
sub eax, ecx
mov dword [esi + 0x142c], 1
mov dword [esi + 0x1430], eax
lea eax, [esi + 0x248]
push ebx
push eax
call fcn.00402310
add esp, 8
lea eax, [ebp - 0x2010]
push eax
lea eax, [esi + 0x248]
push eax
call fcn.004022b0
movss xmm1, dword [0x4c3eac]
add esp, 8
test eax, eax
jg 0x49f2c0
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0848
mov esp, ebp
pop ebp
ret 4
mov eax, edx
sub eax, dword [ebp + 8]
add eax, edi
mov dword [esi + 0x13d0], eax
sub edi, eax
mov eax, dword [ebp + 8]
sub eax, edx
push eax
lea eax, [ebp - 0x2004]
push eax
push ecx
call fcn.004a2250
push dword [esi + 0x13d0]
lea eax, [ebp - 0x2004]
add eax, edi
push eax
lea eax, [esi + 0x3d0]
push eax
call fcn.004a2250
mov eax, dword [esi + 0x13f4]
add esp, 0x18
add eax, edi
mov dword [esi + 0x13dc], 1
cmp dword [esi + 0x142c], 0
mov dword [esi + 0x13d8], 0
mov dword [esi + 0x13f4], eax
jne 0x49f51d
mov ecx, dword [esi + 0x3bc]
cmp eax, ecx
jb 0x49f51d
sub eax, ecx
mov dword [esi + 0x142c], 1
mov dword [esi + 0x1430], eax
lea eax, [esi + 0x248]
push ebx
push eax
call fcn.00402310
add esp, 8
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004a0848
mov esp, ebp
pop ebp
ret 4