Function at 0x6471c77c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [esp + 0x70]
mov edi, dword [esp + 0x74]
mov eax, dword [ebx + 0x58]
cmp eax, 1
jle 0x6471c9ba
lea ecx, [ebx + 0x1e0]
mov dword [esp + 0x20], ecx
lea esi, [esp + 0x48]
mov ebp, ecx
jmp 0x6471c7c7
mov eax, ebx
call fcn.64718760
cmp eax, 0xfffffffe
je 0x6471c9a8
test eax, eax
jle 0x6471c9a0
mov eax, dword [ebx + 0x58]
cmp eax, 4
jne 0x6471c7ac
mov dword [esp + 4], esi
mov dword [esp], ebp
call sym.allegro_5.0.10_monolith_mt.dll_vorbis_synthesis_pcmout
cmp eax, 0
je 0x6471c7ac
mov ebp, eax
jle 0x6471c9a0
mov eax, dword [ebx + 4]
test eax, eax
je 0x6471c9b2
cmp dword [ebx + 0x58], 2
jle 0x6471c9b2
mov eax, dword [ebx + 0x60]
shl eax, 5
add eax, dword [ebx + 0x48]
mov eax, dword [eax + 4]
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x80]
imul edx, eax
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x78]
cdq
idiv dword [esp + 0x38]
cmp eax, ebp
jge 0x6471c82f
test eax, eax
jle 0x6471c9ba
mov ebp, eax
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x6471c861
mov eax, dword [esp + 0x90]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebp
mov ecx, dword [esp + 0x34]
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov eax, dword [esp + 0x8c]
call eax
cmp dword [esp + 0x80], 1
je 0x6471c9c1
mov eax, dword [esp + 0x84]
test eax, eax
je 0x6471cb41
cmp dword [esp + 0x7c], 0
je 0x6471ca7e
mov dword [esp + 0x1c], 0
fnstcw word [esp + 0x44]
mov dx, word [esp + 0x44]
and dx, 0xf3ff
mov word [esp + 0x46], dx
fldcw word [esp + 0x46]
mov edx, dword [esp + 0x44]
mov word [esp + 0x30], dx
mov ecx, dword [esp + 0x34]
shl ecx, 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], 0
fld dword [0x64805388]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x3c], ebx
lea esi, [esi]
mov ebp, dword [esp + 0x34]
test ebp, ebp
jle 0x6471c934
mov ebp, dword [esp + 0x24]
shl ebp, 2
mov esi, dword [esp + 0x2c]
add esi, edi
xor eax, eax
mov ebx, dword [esp + 0x48]
nop
mov edx, dword [ebx + eax]
fld dword [edx + ebp]
fmul st(1)
fist dword [esp + 0x4c]
fstp st(0)
mov edx, dword [esp + 0x4c]
cmp edx, 0xffff8000
jge 0x6471c90f
mov edx, 0xffff8000
cmp edx, 0x7fff
jle 0x6471c91c
mov edx, 0x7fff
add edx, dword [esp + 0x1c]
mov ecx, edx
sar ecx, 8
mov byte [edi], cl
mov byte [edi + 1], dl
add edi, 2
add eax, 4
cmp esi, edi
jne 0x6471c8f0
inc dword [esp + 0x24]
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x24], eax
jl 0x6471c8d4
fstp st(0)
mov ebp, eax
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
mov word [esp + 0x46], dx
fldcw word [esp + 0x46]
mov dword [esp + 4], ebp
mov ecx, dword [esp + 0x20]
mov dword [esp], ecx
call sym.allegro_5.0.10_monolith_mt.dll_vorbis_synthesis_read
mov eax, dword [ebx + 0x48]
mov dword [esp], eax
call sym.allegro_5.0.10_monolith_mt.dll_vorbis_synthesis_halfrate_p
mov edx, ebp
mov cl, al
shl edx, cl
mov eax, edx
cdq
add dword [ebx + 0x50], eax
adc dword [ebx + 0x54], edx
mov esi, dword [esp + 0x88]
test esi, esi
je 0x6471c998
mov eax, dword [ebx + 0x60]
mov ecx, dword [esp + 0x88]
mov dword [ecx], eax
mov eax, dword [esp + 0x38]
imul eax, ebp
nop
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x48]
jmp 0x6471c803
mov eax, 0xffffff7d
jmp 0x6471c9a0
cmp dword [esp + 0x84], 1
sbb eax, eax
and eax, 0xffffff80
fnstcw word [esp + 0x44]
mov dx, word [esp + 0x44]
and dx, 0xf3ff
mov word [esp + 0x46], dx
fldcw word [esp + 0x46]
mov edx, dword [esp + 0x44]
mov word [esp + 0x28], dx
mov dword [esp + 0x1c], 0
fld dword [0x64805384]
mov dword [esp + 0x24], ebp
mov ebp, eax
mov dword [esp + 0x2c], ebx
nop
mov eax, dword [esp + 0x34]
test eax, eax
jle 0x6471ca56
mov esi, dword [esp + 0x1c]
shl esi, 2
mov ebx, dword [esp + 0x34]
add ebx, edi
xor edx, edx
mov ecx, dword [esp + 0x48]
nop
mov eax, dword [ecx + edx]
fld dword [eax + esi]
fmul st(1)
fist dword [esp + 0x4c]
fstp st(0)
mov eax, dword [esp + 0x4c]
cmp eax, 0xffffff80
jge 0x6471ca40
mov eax, 0xffffff80
cmp eax, 0x7f
jle 0x6471ca4a
mov eax, 0x7f
add eax, ebp
mov byte [edi], al
inc edi
add edx, 4
cmp edi, ebx
jne 0x6471ca24
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x1c], eax
jl 0x6471ca08
fstp st(0)
mov ebp, eax
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov word [esp + 0x40], dx
fldcw word [esp + 0x40]
jmp 0x6471c957
fnstcw word [esp + 0x44]
mov dx, word [esp + 0x44]
and dx, 0xf3ff
mov word [esp + 0x46], dx
fldcw word [esp + 0x46]
mov ecx, dword [esp + 0x44]
mov word [esp + 0x2c], cx
mov eax, dword [esp + 0x34]
test eax, eax
jle 0x6471cb2f
mov esi, dword [esp + 0x34]
shl esi, 1
mov dword [esp + 0x1c], edi
mov edx, edi
add edx, esi
mov dword [esp + 0x24], edx
xor eax, eax
mov edi, dword [esp + 0x48]
fld dword [0x64805388]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], edi
mov edi, eax
nop
mov ecx, dword [esp + 0x28]
mov ebx, dword [ecx + edi]
mov ecx, dword [esp + 0x1c]
xor eax, eax
lea esi, [esi]
fld dword [ebx + eax*4]
fmul st(1)
fist dword [esp + 0x4c]
fstp st(0)
mov edx, dword [esp + 0x4c]
cmp edx, 0xffff8000
jge 0x6471cb00
mov edx, 0xffff8000
cmp edx, 0x7fff
jle 0x6471cb0d
mov edx, 0x7fff
mov word [ecx], dx
add ecx, esi
inc eax
cmp eax, ebp
jl 0x6471cae4
add edi, 4
add dword [esp + 0x1c], 2
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x1c], eax
jne 0x6471cad4
fstp st(0)
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov word [esp + 0x42], ax
fldcw word [esp + 0x42]
jmp 0x6471c957
cmp dword [esp + 0x7c], 0
je 0x6471cb58
mov dword [esp + 0x1c], 0x8000
jmp 0x6471c891
fnstcw word [esp + 0x44]
mov dx, word [esp + 0x44]
and dx, 0xf3ff
mov word [esp + 0x46], dx
fldcw word [esp + 0x46]
mov edx, dword [esp + 0x44]
mov word [esp + 0x2c], dx
mov eax, dword [esp + 0x34]
test eax, eax
jle 0x6471cc0d
mov esi, dword [esp + 0x34]
shl esi, 1
mov eax, edi
lea edx, [edi + esi]
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], 0
mov edi, dword [esp + 0x48]
fld dword [0x64805388]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], edi
mov edi, eax
nop
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [eax + ecx]
mov ecx, edi
xor eax, eax
nop
fld dword [ebx + eax*4]
fmul st(1)
fist dword [esp + 0x4c]
fstp st(0)
mov edx, dword [esp + 0x4c]
cmp edx, 0xffff8000
jge 0x6471cbdc
mov edx, 0xffff8000
cmp edx, 0x7fff
jle 0x6471cbe9
mov edx, 0x7fff
sub edx, 0x8000
mov word [ecx], dx
add ecx, esi
inc eax
cmp eax, ebp
jl 0x6471cbc0
add dword [esp + 0x1c], 4
add edi, 2
cmp edi, dword [esp + 0x24]
jne 0x6471cbb0
fstp st(0)
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov word [esp + 0x44], cx
fldcw word [esp + 0x44]
jmp 0x6471c957