Function at 0x4974f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4018
call fcn.00499980
mov eax, dword [0x4ca010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov ecx, dword [esi + 0x94]
test ecx, ecx
je 0x497a1f
push edi
mov edi, dword [esi + 0x13d4]
test edi, edi
je 0x497a1e
mov eax, 0x1000
cdq
idiv ecx
mov ecx, dword [esi + 0x13d0]
mov dword [ebp - 0x2014], eax
test ecx, ecx
je 0x497585
cmp dword [esi + 0x3b8], ecx
jae 0x49755e
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.0049a6f0
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 0x497766
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x114]
test eax, eax
jne 0x497a1d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x118]
cmp eax, 1
je 0x49770b
cmp dword [esi + 0x3c4], 1
jne 0x49760f
push dword [esi + 0x3b8]
mov dword [esi + 0x13e0], 1
push 0
push dword [esi + 0x13d4]
mov dword [esi + 0x13dc], 1
call fcn.0049a590
add esp, 0xc
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00498d32
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 0x4976eb
call dword [eax + 0x28]
cmp dword [esi + 0x1428], 0
mov dword [ebp - 0x2008], 0
jle 0x4976ee
nop word [eax + eax]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x114]
test eax, eax
je 0x49768d
nop
push edi
push ebx
call fcn.004109e0
add esp, 8
cmp eax, 1
je 0x497670
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x114]
test eax, eax
jne 0x497670
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x118]
cmp eax, 1
jne 0x4976ce
mov eax, dword [ebp - 0x2008]
inc eax
mov dword [ebp - 0x2008], eax
cmp eax, dword [esi + 0x1428]
jl 0x497660
pop ebx
pop edi
mov dword [esi + 0x13f4], 0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00498d32
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.00498d32
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x142c], 0
jne 0x497a1d
mov eax, dword [esi + 0x13f4]
mov ecx, dword [esi + 0x3bc]
cmp eax, ecx
jae 0x497741
inc dword [esi + 0x1428]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00498d32
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.00498d32
mov esp, ebp
pop ebp
ret 4
jle 0x497a1d
lea ebx, [esi + 0x2b8]
push edi
push ebx
call fcn.00402340
add esp, 8
lea edi, [esi + 0x248]
test eax, eax
jne 0x497790
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 0x497a1d
movss xmm1, dword [0x4b3e74]
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 0x49785f
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 0x49783f
nop word [eax + eax]
movss xmm0, dword [eax + ecx*4]
mulss xmm0, xmm1
cvttss2si eax, xmm0
cmp eax, 0x7fff
jle 0x49781b
mov eax, 0x7fff
jmp 0x497828
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 0x497800
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 0x4977e0
imul edi, ebx
add edi, edi
cmp dword [esi + 0x3bc], 0
je 0x4978d9
cmp dword [esi + 0x142c], 1
jne 0x4978d9
cmp dword [esi + 0x13f4], 0
jne 0x4978d9
add dword [esi + 0x1434], edi
mov edi, dword [esi + 0x1434]
cmp edi, dword [esi + 0x1430]
jbe 0x49794d
push 0x2000
lea eax, [ebp - 0x2004]
push eax
lea eax, [ebp - 0x4018]
push eax
call fcn.0049a6f0
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.0049a6f0
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 0x497986
push edi
lea eax, [ebp - 0x2004]
push eax
push ecx
call fcn.0049a6f0
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 0x49793d
mov ecx, dword [esi + 0x3bc]
cmp eax, ecx
jb 0x49793d
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 [0x4b3e74]
add esp, 8
test eax, eax
jg 0x4977b0
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00498d32
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.0049a6f0
push dword [esi + 0x13d0]
lea eax, [ebp - 0x2004]
add eax, edi
push eax
lea eax, [esi + 0x3d0]
push eax
call fcn.0049a6f0
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 0x497a0d
mov ecx, dword [esi + 0x3bc]
cmp eax, ecx
jb 0x497a0d
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.00498d32
mov esp, ebp
pop ebp
ret 4