Function at 0x49bc50
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4018
call fcn.0049e0f0
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 0x49c17f
push edi
mov edi, dword [esi + 0x13d4]
test edi, edi
je 0x49c17e
mov eax, 0x1000
cdq
idiv ecx
mov ecx, dword [esi + 0x13d0]
mov dword [ebp - 0x2014], eax
test ecx, ecx
je 0x49bce5
cmp dword [esi + 0x3b8], ecx
jae 0x49bcbe
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.0049eea0
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 0x49bec6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x114]
test eax, eax
jne 0x49c17d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x118]
cmp eax, 1
je 0x49be6b
cmp dword [esi + 0x3c4], 1
jne 0x49bd6f
push dword [esi + 0x3b8]
mov dword [esi + 0x13e0], 1
push 0
push dword [esi + 0x13d4]
mov dword [esi + 0x13dc], 1
call fcn.0049ed40
add esp, 0xc
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d498
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 0x49be4b
call dword [eax + 0x28]
cmp dword [esi + 0x1428], 0
mov dword [ebp - 0x2008], 0
jle 0x49be4e
nop word [eax + eax]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x114]
test eax, eax
je 0x49bded
nop
push edi
push ebx
call fcn.004109e0
add esp, 8
cmp eax, 1
je 0x49bdd0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x114]
test eax, eax
jne 0x49bdd0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x118]
cmp eax, 1
jne 0x49be2e
mov eax, dword [ebp - 0x2008]
inc eax
mov dword [ebp - 0x2008], eax
cmp eax, dword [esi + 0x1428]
jl 0x49bdc0
pop ebx
pop edi
mov dword [esi + 0x13f4], 0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d498
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.0049d498
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x142c], 0
jne 0x49c17d
mov eax, dword [esi + 0x13f4]
mov ecx, dword [esi + 0x3bc]
cmp eax, ecx
jae 0x49bea1
inc dword [esi + 0x1428]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d498
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.0049d498
mov esp, ebp
pop ebp
ret 4
jle 0x49c17d
lea ebx, [esi + 0x2b8]
push edi
push ebx
call fcn.00402340
add esp, 8
lea edi, [esi + 0x248]
test eax, eax
jne 0x49bef0
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 0x49c17d
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 0x49bfbf
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 0x49bf9f
nop word [eax + eax]
movss xmm0, dword [eax + ecx*4]
mulss xmm0, xmm1
cvttss2si eax, xmm0
cmp eax, 0x7fff
jle 0x49bf7b
mov eax, 0x7fff
jmp 0x49bf88
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 0x49bf60
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 0x49bf40
imul edi, ebx
add edi, edi
cmp dword [esi + 0x3bc], 0
je 0x49c039
cmp dword [esi + 0x142c], 1
jne 0x49c039
cmp dword [esi + 0x13f4], 0
jne 0x49c039
add dword [esi + 0x1434], edi
mov edi, dword [esi + 0x1434]
cmp edi, dword [esi + 0x1430]
jbe 0x49c0ad
push 0x2000
lea eax, [ebp - 0x2004]
push eax
lea eax, [ebp - 0x4018]
push eax
call fcn.0049eea0
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.0049eea0
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 0x49c0e6
push edi
lea eax, [ebp - 0x2004]
push eax
push ecx
call fcn.0049eea0
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 0x49c09d
mov ecx, dword [esi + 0x3bc]
cmp eax, ecx
jb 0x49c09d
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 0x49bf10
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d498
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.0049eea0
push dword [esi + 0x13d0]
lea eax, [ebp - 0x2004]
add eax, edi
push eax
lea eax, [esi + 0x3d0]
push eax
call fcn.0049eea0
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 0x49c16d
mov ecx, dword [esi + 0x3bc]
cmp eax, ecx
jb 0x49c16d
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.0049d498
mov esp, ebp
pop ebp
ret 4