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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xa0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x6665f8
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x666654
mov edi, dword [ebp + 0x14]
mov edx, dword [edi + 0x18]
test edx, edx
je 0x666232
cmp dword [eax + 8], 1
jne 0x6664a0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0088c270
mov eax, dword [ebx + 0xc]
test byte [eax + 0x10], 0x20
jne 0x665cc2
mov eax, dword [ebp + 0x14]
mov esi, dword [eax + 0x1c]
test esi, esi
je 0x665e50
mov esi, dword [ebp + 0x14]
lea edi, [esp + 0x58]
mov ecx, 0x12
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x58]
mov dword [esp], edi
call fcn.005d1e10
mov edx, edi
mov dword [esp + 0x44], eax
mov eax, ebx
call fcn.00662320
mov esi, eax
mov eax, dword [ebx + 0x40]
test esi, esi
js 0x6661e1
test byte [ebx + 0x328], 1
mov dword [eax + 0x18], edi
jne 0x665e60
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebx + 0xc]
mov dword [esp + 0xc], edi
mov dword [esp], ebx
mov dword [esp + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 4], ecx
call dword [eax + 0x58]
cmp eax, dword [esp + 0x74]
mov esi, eax
jg 0x6666af
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
mov dword [ecx + 0x7c], edx
mov dword [ecx + 0x78], eax
test esi, esi
js 0x665d50
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
test ecx, ecx
jne 0x6662b0
lea eax, [esp + 0x54]
mov dword [esp + 4], 0x46
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x40]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call fcn.005d1b20
test eax, eax
je 0x665d7d
cmp dword [esp + 0x54], 9
jg 0x666260
mov byte [esp + 0x3c], 0
mov byte [esp + 0x40], 0
mov dword [esp + 0x48], 0
mov eax, dword [ebp + 0xc]
test byte [eax + 0x128], 4
je 0x665e91
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
test ecx, ecx
jne 0x666091
mov edx, dword [ebx + 0x60]
and edx, 0x20000000
mov eax, dword [esp + 0x48]
test eax, eax
je 0x665dcd
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x4c]
cmp dword [esp + 0x48], ecx
jbe 0x6660c0
test edx, edx
jne 0x666220
mov eax, dword [ebx + 0x40]
mov dword [eax + 0x18], 0
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x666484
test esi, esi
js 0x665e81
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x665e81
mov eax, dword [ebx + 0x1dc]
test eax, eax
je 0x6664c2
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 0x1c]
cmp edx, esi
jl 0x666676
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0x44]
test eax, eax
mov eax, esi
not eax
sete cl
shr eax, 0x1f
test cl, al
je 0x665e44
cmp edx, esi
je 0x665e44
mov eax, dword [ebx + 0xc]
test byte [eax + 0x11], 1
je 0x666064
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebx + 0x328]
and esi, 1
je 0x665e44
jmp 0x665cc2
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], edi
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
call fcn.00643b00
mov esi, eax
jmp 0x665d3f
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0088c270
jmp 0x665e0e
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax + 0x28]
test ecx, ecx
jle 0x665dac
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
test edx, edx
je 0x665dac
test byte [ebx + 0x63], 0x20
jne 0x66615f
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x4c]
cmp ecx, edx
mov dword [esp + 0x30], edx
jge 0x6664e0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x40]
mov edx, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x50]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x1a4]
mov dword [esp + 4], edx
mov dword [esp], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
sub eax, ecx
mov dword [esp + 0x10], eax
call fcn.008a79e0
mov edx, dword [ebx + 0x37c]
test edx, edx
je 0x6665a0
mov eax, dword [ebx + 0x1a0]
test eax, eax
je 0x6665a0
mov ecx, dword [ebx + 0x380]
mov edx, dword [ebx + 0x37c]
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov eax, dword [ebx + 0x40]
mov eax, dword [eax + 0x28]
mov dword [esp], eax
sar eax, 0x1f
mov dword [esp + 4], eax
call fcn.00892710
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], eax
mov edx, dword [ecx + 0x6c]
mov eax, dword [ecx + 0x68]
lea ecx, [edx - 0x80000000]
mov dword [esp + 0x38], eax
or ecx, eax
je 0x665f87
add eax, dword [esp + 0x30]
mov ecx, dword [ebp + 0xc]
adc edx, dword [esp + 0x34]
mov dword [ecx + 0x68], eax
mov dword [ecx + 0x6c], edx
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x74]
mov eax, dword [eax + 0x70]
lea ecx, [edx - 0x80000000]
mov dword [esp + 0x38], eax
or ecx, eax
je 0x665faf
add eax, dword [esp + 0x30]
mov ecx, dword [ebp + 0xc]
adc edx, dword [esp + 0x34]
mov dword [ecx + 0x70], eax
mov dword [ecx + 0x74], edx
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x7c]
mov eax, dword [eax + 0x78]
lea ecx, [edx - 0x80000000]
mov dword [esp + 0x38], eax
or ecx, eax
je 0x665fd7
add eax, dword [esp + 0x30]
mov ecx, dword [ebp + 0xc]
adc edx, dword [esp + 0x34]
mov dword [ecx + 0x78], eax
mov dword [ecx + 0x7c], edx
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0088b8c0
cmp dword [esp + 0x34], edx
jg 0x666020
jl 0x665ff0
cmp dword [esp + 0x30], eax
ja 0x666020
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0088b8c0
sub eax, dword [esp + 0x30]
sbb edx, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.0088b8e0
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x4c]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x40]
mov eax, dword [eax + 0x28]
mov dword [esp + 8], str.skip__d__d_samples_n
mov dword [esp + 4], 0x30
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call fcn.00891920
mov eax, dword [ebx + 0x40]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 0x28]
sub dword [ecx + 0x4c], edx
mov dword [eax + 0x28], 0
jmp 0x665dac
mov dword [esp], ebx
mov dword [esp + 8], str.Multiple_frames_in_a_packet._n
mov dword [esp + 4], 0x18
call fcn.00891920
mov eax, dword [esp + 0x4c]
mov dword [eax + 0x44], 1
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebx + 0x60]
mov eax, dword [ebx + 0x40]
and edx, 0x20000000
jne 0x666154
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x4c]
sub dword [eax + 0x28], edx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
jmp 0x665dac
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x665dd5
test edx, edx
jne 0x666184
cmp dword [esp + 0x48], ecx
je 0x6665d9
mov edx, dword [ebx + 0x37c]
test edx, edx
je 0x6660fa
mov eax, dword [ebx + 0x1a0]
test eax, eax
mov dword [esp + 0x30], eax
jne 0x666602
mov dword [esp + 8], str.Could_not_update_timestamps_for_discarded_samples._n
mov dword [esp + 4], 0x18
mov dword [esp], ebx
call fcn.00891920
mov eax, dword [ebp + 0xc]
mov edx, dword [esp + 0x48]
mov eax, dword [eax + 0x4c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], str.discard__d__d_samples_n
mov dword [esp + 4], 0x30
mov dword [esp], ebx
mov dword [esp + 0x10], eax
call fcn.00891920
mov eax, dword [ebp + 0xc]
mov edx, dword [esp + 0x48]
sub dword [eax + 0x4c], edx
mov edx, dword [ebx + 0x60]
and edx, 0x20000000
jmp 0x665dcd
mov ecx, dword [eax + 0x28]
test ecx, ecx
jle 0x666211
mov edx, dword [esp + 0x48]
test edx, edx
je 0x666184
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x48]
cmp edx, dword [ecx + 0x4c]
ja 0x666220
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
test edx, edx
je 0x665dd8
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 9
mov dword [esp], eax
call fcn.0088c6a0
test eax, eax
je 0x665dd5
mov edx, dword [ebx + 0x40]
mov ecx, dword [eax + 4]
mov edx, dword [edx + 0x28]
mov dword [ecx], edx
mov ecx, dword [esp + 0x48]
mov edx, dword [eax + 4]
mov dword [edx + 4], ecx
movzx ecx, byte [esp + 0x40]
mov edx, dword [eax + 4]
mov byte [edx + 8], cl
movzx edx, byte [esp + 0x3c]
mov eax, dword [eax + 4]
mov byte [eax + 9], dl
mov eax, dword [ebx + 0x40]
mov dword [eax + 0x28], 0
jmp 0x665dd8
mov dword [eax + 0x18], 0
mov eax, dword [esp + 0x44]
test eax, eax
je 0x665e81
mov dword [esp], edi
call fcn.005d1960
cmp esi, dword [esp + 0x74]
jne 0x665e81
mov eax, dword [ebp + 0x14]
mov esi, dword [eax + 0x1c]
jmp 0x665deb
mov ecx, dword [esp + 0x48]
test ecx, ecx
jne 0x665dbd
lea esi, [esi]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x665dd5
jmp 0x666184
mov edi, dword [edi + 0x1c]
test edi, edi
je 0x665c96
mov dword [esp + 8], str.invalid_packet:_NULL_data__size___0_n
mov dword [esp + 4], 0x10
mov esi, 0xffffffea
mov dword [esp], ebx
call fcn.00891920
jmp 0x665e44
mov edx, dword [eax]
mov ecx, dword [ebx + 0x40]
mov dword [esp + 0x40], eax
mov dword [ecx + 0x28], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0xc], edx
mov dword [esp + 8], str.skip__d___discard__d_samples_due_to_side_data_n
mov dword [esp + 4], 0x30
mov dword [esp], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x48], ecx
call fcn.00891920
mov eax, dword [esp + 0x40]
movzx edx, byte [eax + 8]
movzx eax, byte [eax + 9]
mov byte [esp + 0x40], dl
mov byte [esp + 0x3c], al
jmp 0x665d8f
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
add dword [ebx + 0x1b0], 1
mov edx, dword [ecx + 0x7c]
mov ecx, dword [ecx + 0x68]
mov eax, dword [eax + 0x78]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x48], edx
mov dword [esp + 0x40], eax
mov edx, dword [ecx + 0x6c]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x48]
lea ecx, [edx - 0x80000000]
mov edx, ecx
mov dword [esp + 0x38], ecx
or edx, eax
je 0x666562
mov edx, dword [esp + 0x48]
cmp edx, dword [ebx + 0x3a4]
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0
jl 0x66632a
jg 0x66631a
cmp eax, dword [ebx + 0x3a0]
jbe 0x66632a
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x28]
add eax, dword [ebx + 0x390]
mov edx, dword [esp + 0x2c]
adc edx, dword [ebx + 0x394]
mov dword [esp + 0x28], eax
mov dword [ebx + 0x390], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x2c], edx
mov dword [ebx + 0x394], edx
mov dword [ebx + 0x3a0], eax
mov eax, dword [esp + 0x48]
mov dword [ebx + 0x3a4], eax
mov eax, dword [esp + 0x3c]
add eax, 0x80000000
mov dword [esp + 0x24], eax
or eax, dword [esp + 0x30]
je 0x6665c0
xor edx, edx
mov ecx, dword [esp + 0x3c]
cmp ecx, dword [ebx + 0x39c]
mov eax, 1
jl 0x6663a2
jg 0x66639e
mov ecx, dword [esp + 0x30]
cmp ecx, dword [ebx + 0x398]
jbe 0x6663a2
xor eax, eax
xor edx, edx
mov ecx, dword [esp + 0x30]
add eax, dword [ebx + 0x388]
adc edx, dword [ebx + 0x38c]
mov dword [ebx + 0x398], ecx
mov ecx, dword [esp + 0x3c]
mov dword [ebx + 0x388], eax
mov dword [ebx + 0x38c], edx
mov dword [ebx + 0x39c], ecx
mov ecx, dword [esp + 0x38]
or ecx, dword [esp + 0x40]
je 0x6663e2
cmp edx, dword [esp + 0x2c]
jge 0x666520
mov eax, dword [esp + 0x24]
or eax, dword [esp + 0x30]
je 0x6663fc
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0088b8a0
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x50], 0xffffffff
je 0x666550
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + 0xf4]
or eax, dword [ecx + 0xf0]
jne 0x66644d
mov eax, dword [ebx + 0x1c0]
mov edx, dword [ebx + 0x1c4]
mov dword [ecx + 0xf0], eax
mov dword [ecx + 0xf4], edx
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0088b980
test eax, eax
je 0x666535
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0xe8]
test edx, edx
jne 0x665d50
mov ecx, eax
mov eax, dword [ebx + 0x1a0]
mov dword [ecx + 0xe8], eax
jmp 0x665d50
mov dword [esp], edi
call fcn.005d1960
cmp esi, dword [esp + 0x74]
jne 0x665deb
jmp 0x666206
mov dword [esp + 8], str.Invalid_media_type_for_audio_n
mov dword [esp + 4], 0x10
mov esi, 0xffffffea
mov dword [esp], ebx
call fcn.00891920
jmp 0x665e44
mov eax, dword [esp + 0x4c]
mov edx, dword [ebp + 0xc]
add eax, 0xc
call fcn.006620a0
test eax, eax
jns 0x665e0e
mov esi, eax
jmp 0x665e44
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 0x28]
sub edx, dword [ecx + 0x4c]
mov dword [eax + 0x28], edx
mov dword [esp + 0xc], edx
mov dword [esp + 8], str.skip_whole_frame__skip_left:__d_n
mov dword [esp + 4], 0x30
mov dword [esp], ebx
call fcn.00891920
mov edx, dword [ebx + 0x60]
and edx, 0x20000000
jmp 0x665db5
jg 0x6663fc
cmp eax, dword [esp + 0x28]
ja 0x6663fc
jmp 0x6663e2
mov eax, dword [ebx + 0x1a4]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0088b990
jmp 0x666460
mov ecx, eax
mov eax, dword [ebx + 0x1a8]
mov dword [ecx + 0x50], eax
mov eax, ecx
jmp 0x666424
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
mov eax, ecx
add eax, 0x80000000
mov dword [esp + 0x24], eax
or eax, edx
je 0x6665e7
mov dword [ebx + 0x3a0], edx
mov eax, dword [ebx + 0x390]
mov edx, dword [ebx + 0x394]
mov dword [ebx + 0x3a4], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
jmp 0x66637d
mov dword [esp + 8], str.Could_not_update_timestamps_for_skipped_samples._n
mov dword [esp + 4], 0x18
mov dword [esp], ebx
call fcn.00891920
jmp 0x666020
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x398], eax
mov eax, dword [esp + 0x48]
mov dword [ebx + 0x39c], eax
jmp 0x6663fc
mov dword [eax], 0
mov eax, dword [ebx + 0x40]
jmp 0x665dd8
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], eax
jmp 0x6663fc
mov esi, 0xffffffea
jmp 0x665e44
mov eax, dword [ebx + 0x37c]
mov edx, dword [ebx + 0x380]
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], eax
mov eax, ecx
sub eax, dword [esp + 0x48]
mov dword [esp], eax
call fcn.00892710
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.0088b8e0
jmp 0x666112
mov dword [esp + 8], str.This_decoder_requires_using_the_avcodec_send_packet___API._n
mov dword [esp + 4], 0x10
mov esi, 0xffffffd8
mov dword [esp], ebx
call fcn.00891920
jmp 0x665e44
mov dword [esp + 0x14], 0x9b6
mov dword [esp + 0x10], str.libavcodec_utils.c
mov dword [esp + 0xc], str.ret___avpkt__size
mov dword [esp + 8], 0xc9d2cc
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00891920
call sub.msvcrt.dll_abort
mov dword [esp + 0x14], 0x940
mov dword [esp + 0x10], str.libavcodec_utils.c
mov dword [esp + 0xc], str.ret___tmp.size
jmp 0x66668e