Function at 0x49bec0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4018
call fcn.0049e370
mov eax, dword [0x4d0b90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov ecx, dword [esi + 0x94]
test ecx, ecx
je 0x49c3ef
push edi
mov edi, dword [esi + 0x13d4]
test edi, edi
je 0x49c3ee
mov eax, 0x1000
cdq
idiv ecx
mov ecx, dword [esi + 0x13d0]
mov dword [ebp - 0x2014], eax
test ecx, ecx
je 0x49bf55
cmp dword [esi + 0x3b8], ecx
jae 0x49bf2e
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.0049f120
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 0x49c136
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x114]
test eax, eax
jne 0x49c3ed
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x118]
cmp eax, 1
je 0x49c0db
cmp dword [esi + 0x3c4], 1
jne 0x49bfdf
push dword [esi + 0x3b8]
mov dword [esi + 0x13e0], 1
push 0
push dword [esi + 0x13d4]
mov dword [esi + 0x13dc], 1
call fcn.0049efc0
add esp, 0xc
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d708
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 0x49c0bb
call dword [eax + 0x28]
cmp dword [esi + 0x1428], 0
mov dword [ebp - 0x2008], 0
jle 0x49c0be
nop word [eax + eax]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x114]
test eax, eax
je 0x49c05d
nop
push edi
push ebx
call fcn.004109e0
add esp, 8
cmp eax, 1
je 0x49c040
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x114]
test eax, eax
jne 0x49c040
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x118]
cmp eax, 1
jne 0x49c09e
mov eax, dword [ebp - 0x2008]
inc eax
mov dword [ebp - 0x2008], eax
cmp eax, dword [esi + 0x1428]
jl 0x49c030
pop ebx
pop edi
mov dword [esi + 0x13f4], 0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d708
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.0049d708
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x142c], 0
jne 0x49c3ed
mov eax, dword [esi + 0x13f4]
mov ecx, dword [esi + 0x3bc]
cmp eax, ecx
jae 0x49c111
inc dword [esi + 0x1428]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d708
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.0049d708
mov esp, ebp
pop ebp
ret 4
jle 0x49c3ed
lea ebx, [esi + 0x2b8]
push edi
push ebx
call fcn.00402340
add esp, 8
lea edi, [esi + 0x248]
test eax, eax
jne 0x49c160
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 0x49c3ed
movss xmm1, dword [0x4b7e6c]
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 0x49c22f
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 0x49c20f
nop word [eax + eax]
movss xmm0, dword [eax + ecx*4]
mulss xmm0, xmm1
cvttss2si eax, xmm0
cmp eax, 0x7fff
jle 0x49c1eb
mov eax, 0x7fff
jmp 0x49c1f8
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 0x49c1d0
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 0x49c1b0
imul edi, ebx
add edi, edi
cmp dword [esi + 0x3bc], 0
je 0x49c2a9
cmp dword [esi + 0x142c], 1
jne 0x49c2a9
cmp dword [esi + 0x13f4], 0
jne 0x49c2a9
add dword [esi + 0x1434], edi
mov edi, dword [esi + 0x1434]
cmp edi, dword [esi + 0x1430]
jbe 0x49c31d
push 0x2000
lea eax, [ebp - 0x2004]
push eax
lea eax, [ebp - 0x4018]
push eax
call fcn.0049f120
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.0049f120
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 0x49c356
push edi
lea eax, [ebp - 0x2004]
push eax
push ecx
call fcn.0049f120
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 0x49c30d
mov ecx, dword [esi + 0x3bc]
cmp eax, ecx
jb 0x49c30d
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 [0x4b7e6c]
add esp, 8
test eax, eax
jg 0x49c180
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d708
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.0049f120
push dword [esi + 0x13d0]
lea eax, [ebp - 0x2004]
add eax, edi
push eax
lea eax, [esi + 0x3d0]
push eax
call fcn.0049f120
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 0x49c3dd
mov ecx, dword [esi + 0x3bc]
cmp eax, ecx
jb 0x49c3dd
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.0049d708
mov esp, ebp
pop ebp
ret 4