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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1fc
mov edi, dword [esp + 0x210]
mov ebx, dword [esp + 0x214]
mov esi, dword [esp + 0x218]
mov eax, dword [edi + 0x58]
cmp eax, 1
jle 0x647195f0
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x64719735
test esi, esi
js 0x647195f0
cmp esi, dword [edi + 0x14]
jg 0x647195f0
jl 0x6471924e
cmp ebx, dword [edi + 0x10]
ja 0x647195f0
cmp eax, 2
je 0x64719274
mov eax, dword [edi + 0x38]
mov edx, dword [edi + 0x60]
cmp esi, dword [eax + edx*8 + 4]
jl 0x647195a4
jle 0x647195fa
inc edx
cmp esi, dword [eax + edx*8 + 4]
jge 0x64719598
lea ecx, [edi + 0x1e0]
mov dword [esp + 0x44], ecx
mov dword [edi + 0x50], 0xffffffff
mov dword [edi + 0x54], 0xffffffff
lea ecx, [edi + 0x78]
mov dword [esp + 0x38], ecx
mov eax, dword [edi + 0x5c]
mov dword [esp + 4], eax
mov dword [esp], ecx
call sym.allegro_5.0.10_monolith_mt.dll_ogg_stream_reset_serialno
mov ecx, dword [esp + 0x44]
mov dword [esp], ecx
call sym.allegro_5.0.10_monolith_mt.dll_vorbis_synthesis_restart
mov edx, dword [edi]
test edx, edx
je 0x647196ed
mov eax, dword [edi + 0x2c4]
test eax, eax
je 0x647196ed
mov dword [esp + 0xc], 0
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
mov dword [esp], edx
call eax
inc eax
je 0x647196ed
mov dword [edi + 8], ebx
mov dword [edi + 0xc], esi
lea eax, [edi + 0x18]
mov dword [esp], eax
call sym.allegro_5.0.10_monolith_mt.dll_ogg_sync_reset
mov eax, dword [edi + 0x5c]
mov dword [esp + 4], eax
lea ebp, [esp + 0x88]
mov dword [esp], ebp
call sym.allegro_5.0.10_monolith_mt.dll_ogg_stream_init
mov dword [esp], ebp
call sym.allegro_5.0.10_monolith_mt.dll_ogg_stream_reset
mov dword [esp + 0x48], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x34], 0
lea esi, [esp + 0x58]
cmp dword [edi + 0x58], 2
jg 0x64719432
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x64719652
mov edx, esi
mov eax, edi
call fcn.64717140
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], edx
test edx, edx
js 0x647196a4
cmp dword [edi + 0x58], 2
jg 0x6471956c
mov dword [esp], esi
call sym.allegro_5.0.10_monolith_mt.dll_ogg_page_serialno
mov ebx, eax
mov eax, dword [edi + 0x34]
cmp eax, 0
jle 0x6471967a
mov ecx, dword [edi + 0x40]
cmp dword [ecx], ebx
je 0x64719680
xor edx, edx
lea esi, [esi]
inc edx
cmp edx, eax
je 0x64719335
cmp dword [ecx + edx*4], ebx
jne 0x64719394
lea ecx, [edx*8]
mov dword [edi + 0x60], edx
mov dword [edi + 0x5c], ebx
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 0x2c], ecx
call sym.allegro_5.0.10_monolith_mt.dll_ogg_stream_reset_serialno
mov dword [esp + 4], ebx
mov dword [esp], ebp
call sym.allegro_5.0.10_monolith_mt.dll_ogg_stream_reset_serialno
mov dword [edi + 0x58], 3
mov edx, dword [edi + 0x3c]
mov eax, 1
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
cmp dword [edx + ecx + 4], ebx
jg 0x647193fc
jl 0x64719564
mov ebx, dword [esp + 0x40]
cmp dword [edx + ecx], ebx
jb 0x64719564
nop
mov dword [esp + 0x48], eax
mov dword [esp + 4], esi
mov ecx, dword [esp + 0x38]
mov dword [esp], ecx
call sym.allegro_5.0.10_monolith_mt.dll_ogg_stream_pagein
mov dword [esp + 4], esi
mov dword [esp], ebp
call sym.allegro_5.0.10_monolith_mt.dll_ogg_stream_pagein
mov dword [esp], esi
call sym.allegro_5.0.10_monolith_mt.dll_ogg_page_eos
mov dword [esp + 0x3c], eax
cmp dword [edi + 0x58], 2
jle 0x6471933f
lea ebx, [esp + 0x68]
mov dword [esp + 4], ebx
mov dword [esp], ebp
call sym.allegro_5.0.10_monolith_mt.dll_ogg_stream_packetout
test eax, eax
jle 0x6471933f
mov eax, dword [edi + 0x60]
shl eax, 5
add eax, dword [edi + 0x48]
mov edx, dword [eax + 0x1c]
test edx, edx
je 0x64719632
lea edx, [esp + 0x68]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.allegro_5.0.10_monolith_mt.dll_vorbis_packet_blocksize
mov edx, eax
test eax, eax
js 0x64719689
mov ebx, dword [esp + 0x3c]
test ebx, ebx
je 0x6471948c
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x647196cc
mov eax, dword [esp + 0x34]
test eax, eax
je 0x647194a1
mov eax, dword [esp + 0x34]
add eax, edx
sar eax, 2
add dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x78]
mov ebx, dword [esp + 0x7c]
mov eax, ecx
and eax, ebx
inc eax
je 0x647195d0
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebx
mov ebx, dword [edi + 0x60]
mov esi, dword [edi + 0x44]
mov ecx, ebx
shl ecx, 4
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, dword [esi + ecx]
sbb edx, dword [esi + ecx + 4]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
test edx, edx
js 0x64719665
test ebx, ebx
jle 0x6471950c
add esi, 8
lea ebx, [ecx + esi]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
add eax, dword [esi]
adc edx, dword [esi + 4]
add esi, 0x10
cmp esi, ebx
jne 0x647194f8
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x4c]
mov ecx, edx
sar ecx, 0x1f
mov ebx, edx
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, ebx
sbb edx, ecx
test edx, edx
js 0x647195dc
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], edx
mov dword [esp], ebp
call sym.allegro_5.0.10_monolith_mt.dll_ogg_stream_clear
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
xor eax, eax
add esp, 0x1fc
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
jmp 0x647193fc
mov ebx, dword [edi + 0x5c]
mov dword [esp], esi
call sym.allegro_5.0.10_monolith_mt.dll_ogg_page_serialno
cmp ebx, eax
je 0x64719587
mov dword [esp], esi
call sym.allegro_5.0.10_monolith_mt.dll_ogg_page_bos
test eax, eax
jne 0x64719604
cmp dword [edi + 0x58], 2
jg 0x64719400
jmp 0x6471936e
jg 0x647195a4
cmp ebx, dword [eax + edx*8]
jb 0x64719274
nop
lea ecx, [edi + 0x1e0]
mov dword [esp + 0x44], ecx
mov dword [esp], ecx
call sym.allegro_5.0.10_monolith_mt.dll_vorbis_dsp_clear
lea eax, [edi + 0x250]
mov dword [esp], eax
call sym.allegro_5.0.10_monolith_mt.dll_vorbis_block_clear
mov dword [edi + 0x58], 2
jmp 0x6471927e
mov dword [esp + 0x34], edx
jmp 0x64719335
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
jmp 0x64719531
mov eax, 0xffffff7d
jmp 0x64719557
cmp ebx, dword [eax + edx*8]
jb 0x647195a4
jmp 0x64719269
mov ebx, dword [esp + 0x44]
mov dword [esp], ebx
call sym.allegro_5.0.10_monolith_mt.dll_vorbis_dsp_clear
lea eax, [edi + 0x250]
mov dword [esp], eax
call sym.allegro_5.0.10_monolith_mt.dll_vorbis_block_clear
mov dword [edi + 0x58], 2
mov dword [esp], ebp
call sym.allegro_5.0.10_monolith_mt.dll_ogg_stream_clear
jmp 0x64719587
mov dword [esp + 4], 0
mov ecx, dword [esp + 0x38]
mov dword [esp], ecx
call sym.allegro_5.0.10_monolith_mt.dll_ogg_stream_packetout
mov eax, dword [esp + 0x34]
test eax, eax
je 0x6471934b
mov dword [edi + 0x50], 0xffffffff
mov dword [edi + 0x54], 0xffffffff
jmp 0x64719531
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
jmp 0x647194e6
je 0x64719335
xor ecx, ecx
xor edx, edx
jmp 0x647193a5
mov dword [esp + 4], 0
mov ecx, dword [esp + 0x38]
mov dword [esp], ecx
call sym.allegro_5.0.10_monolith_mt.dll_ogg_stream_packetout
xor edx, edx
jmp 0x647194a1
cmp dword [edi + 0x58], 1
jle 0x6471973f
mov eax, dword [edi + 4]
test eax, eax
je 0x6471973f
mov eax, dword [edi + 0x34]
test eax, eax
js 0x6471973f
mov eax, edi
call fcn.64718c10
jmp 0x6471952b
mov dword [esp + 4], 0
mov ebx, dword [esp + 0x38]
mov dword [esp], ebx
mov dword [esp + 0x2c], eax
call sym.allegro_5.0.10_monolith_mt.dll_ogg_stream_packetout
mov edx, dword [esp + 0x2c]
jmp 0x647194a1
mov dword [edi + 0x50], 0xffffffff
mov dword [edi + 0x54], 0xffffffff
lea eax, [esp + 0x88]
mov dword [esp], eax
call sym.allegro_5.0.10_monolith_mt.dll_ogg_stream_clear
mov ebx, dword [esp + 0x44]
mov dword [esp], ebx
call sym.allegro_5.0.10_monolith_mt.dll_vorbis_dsp_clear
lea eax, [edi + 0x250]
mov dword [esp], eax
call sym.allegro_5.0.10_monolith_mt.dll_vorbis_block_clear
mov dword [edi + 0x58], 2
mov eax, 0xffffff77
jmp 0x64719557
mov eax, 0xffffff76
jmp 0x64719557
mov eax, 0xffffff7d
mov edx, 0xffffffff
jmp 0x6471952b