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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x7c
mov ebx, eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ecx
lea esi, [esp + 0x40]
mov edx, esi
call fcn.6471723c
mov ecx, edx
not ecx
xor eax, 0xffffff80
or ecx, eax
je 0x647179e5
test edx, edx
js 0x647179db
mov edx, dword [esp + 0x38]
mov dword [esp], edx
call sym.allegro_5.0.10_monolith_mt.dll_vorbis_info_init
mov ecx, dword [esp + 0x3c]
mov dword [esp], ecx
call sym.allegro_5.0.10_monolith_mt.dll_vorbis_comment_init
mov dword [ebx + 0x58], 2
lea edx, [ebx + 0x78]
mov dword [esp + 0x34], edx
lea esi, [esi]
mov dword [esp], esi
call sym.allegro_5.0.10_monolith_mt.dll_ogg_page_bos
test eax, eax
je 0x647178a9
mov eax, dword [esp + 0x90]
test eax, eax
je 0x64717663
mov ecx, dword [esp + 0x94]
mov ebp, dword [ecx]
mov ecx, dword [esp + 0x90]
mov edi, dword [ecx]
mov dword [esp], esi
call sym.allegro_5.0.10_monolith_mt.dll_ogg_page_serialno
test edi, edi
je 0x6471760e
test ebp, ebp
je 0x6471760e
cmp eax, dword [edi]
je 0x64717800
lea ecx, [ebp - 1]
xor edx, edx
jmp 0x6471760a
inc edx
cmp eax, dword [edi + edx*4]
je 0x64717800
cmp edx, ecx
jne 0x64717600
mov dword [esp], esi
call sym.allegro_5.0.10_monolith_mt.dll_ogg_page_serialno
mov edi, eax
mov ecx, dword [esp + 0x94]
mov ecx, dword [ecx]
mov edx, ecx
inc edx
mov ecx, dword [esp + 0x94]
mov dword [ecx], edx
mov ecx, dword [esp + 0x90]
mov eax, dword [ecx]
test eax, eax
je 0x64717970
shl edx, 2
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.647d43c4
mov ecx, dword [esp + 0x90]
mov dword [ecx], eax
mov ecx, dword [esp + 0x94]
mov edx, dword [ecx]
mov dword [eax + edx*4 - 4], edi
cmp dword [ebx + 0x58], 2
jg 0x647176c0
mov dword [esp], esi
call sym.allegro_5.0.10_monolith_mt.dll_ogg_page_serialno
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x34]
mov dword [esp], ecx
call sym.allegro_5.0.10_monolith_mt.dll_ogg_stream_reset_serialno
mov dword [esp + 4], esi
mov edx, dword [esp + 0x34]
mov dword [esp], edx
call sym.allegro_5.0.10_monolith_mt.dll_ogg_stream_pagein
lea ecx, [esp + 0x50]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x34]
mov dword [esp], edx
call sym.allegro_5.0.10_monolith_mt.dll_ogg_stream_packetout
test eax, eax
jle 0x647176c0
lea ecx, [esp + 0x50]
mov dword [esp], ecx
call sym.allegro_5.0.10_monolith_mt.dll_vorbis_synthesis_idheader
test eax, eax
jne 0x6471798a
lea esi, [esi]
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
add dword [esp + 0x20], 0x10000
adc dword [esp + 0x24], 0
lea edi, [ebx + 0x18]
mov ebp, dword [esp + 0x24]
or ebp, dword [esp + 0x20]
nop
cmp dword [esp + 0x24], 0
jl 0x64717740
jle 0x64717738
mov ecx, dword [esp + 0x24]
cmp ecx, dword [ebx + 0xc]
jg 0x64717740
jge 0x647177e4
mov eax, 0xffffff7c
lea esi, [esi]
mov edx, dword [esp + 0x38]
mov dword [esp], edx
mov dword [esp + 0x1c], eax
call sym.allegro_5.0.10_monolith_mt.dll_vorbis_info_clear
mov ecx, dword [esp + 0x3c]
mov dword [esp], ecx
call sym.allegro_5.0.10_monolith_mt.dll_vorbis_comment_clear
mov dword [ebx + 0x58], 2
mov eax, dword [esp + 0x1c]
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [esp + 0x20], 0
ja 0x647176f1
nop
mov dword [esp + 4], esi
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_ogg_sync_pageseek
cmp eax, 0
jl 0x647177bc
jne 0x6471783c
test ebp, ebp
je 0x64717700
call fcn.647d428c
mov dword [eax], 0
mov eax, dword [ebx + 0x2c0]
test eax, eax
je 0x647177d9
mov eax, dword [ebx]
test eax, eax
je 0x64717700
mov dword [esp + 4], 0x800
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_ogg_sync_buffer
mov edx, dword [ebx]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x800
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [ebx + 0x2c0]
cmp eax, 0
jle 0x647177c8
mov dword [esp + 4], eax
mov dword [esp], edi
call sym.allegro_5.0.10_monolith_mt.dll_ogg_sync_wrote
jmp 0x647176e8
cdq
sub dword [ebx + 8], eax
sbb dword [ebx + 0xc], edx
jmp 0x647176e8
jne 0x647177f8
call fcn.647d428c
mov ecx, dword [eax]
test ecx, ecx
je 0x64717700
mov eax, 0xffffff80
jmp 0x64717708
mov eax, dword [esp + 0x20]
cmp eax, dword [ebx + 8]
jbe 0x64717700
jmp 0x64717740
jge 0x647176e8
jmp 0x647177d9
mov ecx, dword [esp + 0x90]
mov eax, dword [ecx]
test eax, eax
je 0x64717815
mov dword [esp], eax
call fcn.647d4274
mov ecx, dword [esp + 0x90]
mov dword [ecx], 0
mov ecx, dword [esp + 0x94]
mov dword [ecx], 0
mov eax, 0xffffff7b
jmp 0x64717708
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
cdq
add eax, dword [esp + 0x20]
adc edx, dword [esp + 0x24]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
mov edi, dword [esp + 0x24]
not edi
mov eax, dword [esp + 0x20]
xor eax, 0xffffff80
or edi, eax
je 0x647177d9
mov edx, dword [esp + 0x24]
test edx, edx
js 0x64717700
cmp dword [ebx + 0x58], 3
jne 0x647175b0
mov edi, dword [ebx + 0x1c8]
mov dword [esp], esi
call sym.allegro_5.0.10_monolith_mt.dll_ogg_page_serialno
cmp edi, eax
jne 0x647175b0
mov dword [esp + 4], esi
lea ecx, [ebx + 0x78]
mov dword [esp], ecx
call sym.allegro_5.0.10_monolith_mt.dll_ogg_stream_pagein
cmp dword [ebx + 0x58], 3
jne 0x64717700
mov dword [esp + 0x2c], 0
xor edi, edi
lea ecx, [ebx + 0x78]
mov dword [esp + 0x20], ecx
lea ebp, [esp + 0x50]
jmp 0x64717904
inc eax
je 0x64717964
mov dword [esp + 8], ebp
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x38]
mov dword [esp], edx
call sym.allegro_5.0.10_monolith_mt.dll_vorbis_synthesis_headerin
test eax, eax
jne 0x64717708
test edi, edi
jne 0x647179b7
mov edi, 1
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], ebp
mov dword [esp], ecx
call sym.allegro_5.0.10_monolith_mt.dll_ogg_stream_packetout
test eax, eax
jne 0x647178cc
mov dword [esp + 0x30], edi
mov edx, esi
mov eax, ebx
call fcn.6471723c
test edx, edx
js 0x64717964
mov edi, dword [ebx + 0x1c8]
mov dword [esp], esi
call sym.allegro_5.0.10_monolith_mt.dll_ogg_page_serialno
cmp edi, eax
je 0x647179be
mov dword [esp], esi
call sym.allegro_5.0.10_monolith_mt.dll_ogg_page_bos
test eax, eax
je 0x64717918
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x64717964
mov dword [esp + 0x2c], 1
mov edx, esi
mov eax, ebx
call fcn.6471723c
test edx, edx
jns 0x64717925
mov eax, 0xffffff7b
jmp 0x64717708
mov dword [esp], 4
call fcn.647d4284
mov ecx, dword [esp + 0x90]
mov dword [ecx], eax
jmp 0x64717656
mov dword [ebx + 0x58], 3
lea eax, [esp + 0x50]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x38]
mov dword [esp], edx
call sym.allegro_5.0.10_monolith_mt.dll_vorbis_synthesis_headerin
test eax, eax
je 0x647176c0
jmp 0x64717964
xor eax, eax
jmp 0x6471772f
mov edi, dword [esp + 0x30]
mov dword [esp + 4], esi
mov ecx, dword [esp + 0x20]
mov dword [esp], ecx
call sym.allegro_5.0.10_monolith_mt.dll_ogg_stream_pagein
mov ecx, dword [esp + 0x20]
jmp 0x64717904
mov eax, 0xffffff7c
jmp 0x6471772f
mov eax, 0xffffff80
jmp 0x6471772f