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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax + 0xc]
xor ebx, ebx
mov esi, dword [eax + 0x10]
xor eax, eax
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
cmp dword [edi + 0x30], eax
jne 0x10132620
cmp dword [edi + 0x78], eax
jne 0x10132620
push esi
call sym.avformat_58.dll_avio_feof
add esp, 4
test eax, eax
jne 0x1013263e
mov esi, dword [ebp - 8]
xor edi, edi
nop word [eax + eax]
cmp dword [esi + 0x10], 3
jge 0x101322a0
test ebx, ebx
jne 0x101322a0
push dword [ebp + 8]
call fcn.10132750
inc edi
add esp, 4
mov ebx, eax
cmp edi, 0x12c
jl 0x10132280
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x14], ebx
test ebx, ebx
js 0x10132635
mov edi, dword [ebp - 8]
cmp dword [edi + 0x10], 3
jne 0x101322cf
push dword [ebp + 8]
call fcn.10131d60
mov ebx, eax
mov dword [ebp - 0x14], eax
add esp, 4
test ebx, ebx
js 0x10132635
mov eax, dword [edi + 0x10]
cmp eax, 4
je 0x101322e0
cmp eax, 5
jne 0x1013263e
push esi
call sym.avformat_58.dll_avio_r8
push esi
mov bl, al
call sym.avformat_58.dll_avio_rl16
push esi
mov edi, eax
call sym.avformat_58.dll_avio_rl16
movzx ecx, bl
movzx eax, ax
mov ebx, ecx
mov dword [ebp - 0xc], eax
and ecx, 0xf
shl edi, 4
movzx eax, ax
push eax
shr ebx, 4
or ebx, edi
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp + 8]
push ebx
push ecx
push str.NSV_CHUNK__d_aux___u_bytes_video___d_bytes_audio_n
push 0x38
push edi
call sub.avutil_56.dll_av_log
add esp, 0x24
cmp dword [ebp - 0x10], 0
jbe 0x10132361
nop
push esi
call sym.avformat_58.dll_avio_rl16
push esi
movzx edi, ax
call sym.avformat_58.dll_avio_rl32
mov eax, edi
cdq
push edx
push eax
push esi
call sym.avformat_58.dll_avio_skip
mov eax, edi
mov ecx, 0xfffffffa
sub ecx, eax
add esp, 0x14
add ebx, ecx
sub dword [ebp - 0x10], 1
jne 0x10132330
mov edi, dword [ebp + 8]
push esi
call sym.avformat_58.dll_avio_feof
add esp, 4
test eax, eax
jne 0x1013263e
test ebx, ebx
jne 0x1013239b
cmp word [ebp - 0xc], bx
jne 0x1013239b
mov edi, dword [ebp - 8]
push esi
mov dword [edi + 0x10], ebx
call sym.avformat_58.dll_avio_feof
add esp, 4
test eax, eax
jne 0x1013263e
mov ebx, dword [ebp - 0x14]
jmp 0x10132275
mov edx, dword [edi + 0x18]
test edx, edx
je 0x101323c0
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax]
mov eax, dword [ecx + 4]
mov dword [ebp + eax*4 - 0x24], ecx
cmp edx, 1
jbe 0x101323c0
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 4]
mov dword [ebp + eax*4 - 0x24], ecx
test ebx, ebx
je 0x10132452
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1013245e
mov edi, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], eax
push ebx
lea eax, [edi + 0x18]
push eax
push esi
mov dword [ebp - 0x10], eax
call sym.avformat_58.dll_av_get_packet
add esp, 0xc
test eax, eax
js 0x10132622
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x38], ecx
mov eax, dword [eax]
cdq
mov dword [edi + 0x28], eax
xor eax, eax
mov dword [edi + 0x2c], edx
cmp dword [edi + 0x10], 4
sete al
or dword [edi + 0x3c], eax
mov eax, 8
mov edi, dword [ebp + 8]
cmp ebx, eax
cmovb eax, ebx
xor ebx, ebx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10132452
mov esi, dword [ebp - 0x10]
nop
mov eax, dword [esi + 0x18]
movzx eax, byte [eax + ebx]
push eax
push ebx
push str.NSV_video:___d____02x_n
push 0x38
push edi
call sub.avutil_56.dll_av_log
inc ebx
add esp, 0x14
cmp ebx, dword [ebp - 0x14]
jb 0x10132430
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1013245e
mov eax, dword [eax + 0xc]
inc dword [eax]
cmp word [ebp - 0xc], 0
mov ebx, dword [ebp - 8]
je 0x10132619
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10132619
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0xb0]
mov dword [ebp - 0x1c], ecx
cmp dword [eax + 8], 0x204d4350
jne 0x10132571
push esi
call sym.avformat_58.dll_avio_r8
push esi
mov byte [ebp - 1], al
call sym.avformat_58.dll_avio_r8
push esi
mov byte [ebp - 2], al
call sym.avformat_58.dll_avio_rl16
mov cl, byte [ebp - 2]
add esp, 0xc
movzx eax, ax
mov dword [ebp - 0x10], eax
test cl, cl
je 0x10132629
test ax, ax
je 0x10132629
add dword [ebp - 0xc], 0xfffc
movzx eax, ax
push eax
movzx edx, cl
movzx ecx, byte [ebp - 1]
push edx
push ecx
push str.NSV_RAWAUDIO:_bps__d__nchan__d__srate__d_n
push 0x38
push edi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
call sub.avutil_56.dll_av_log
add esp, 0x18
cmp dword [ebp + 0xc], 0
je 0x10132571
cmp byte [ebp - 1], 0x10
mov eax, dword [ebp - 0x20]
mov dword [eax + 0xe4], 0
je 0x1013251b
push dword [ebp - 0x18]
push str.NSV_AUDIO_bit_sample___16___d_____n
push 0x38
push edi
call sub.avutil_56.dll_av_log
add esp, 0x10
mov eax, dword [ebp - 0x18]
xor edx, edx
div dword [ebp - 0x14]
mov byte [ebp - 2], al
cmp al, 8
mov eax, dword [ebp - 0x20]
jne 0x1013253a
mov ecx, dword [eax + 0xb0]
mov dword [ecx + 4], 0x10005
mov ecx, dword [eax + 0xb0]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0x68], 1
mov eax, dword [eax + 0xb0]
movzx ecx, dx
shr ecx, 2
push ecx
push 1
mov dword [eax + 0x6c], ecx
movzx eax, byte [ebp - 2]
push eax
push str.NSV_RAWAUDIO:_bps__d__nchan__d__srate__d_n
push 0x38
push edi
call sub.avutil_56.dll_av_log
add esp, 0x18
mov eax, dword [ebp - 0xc]
lea edi, [ebx + 0x60]
movzx eax, ax
push eax
push edi
push esi
call sym.avformat_58.dll_av_get_packet
add esp, 0xc
test eax, eax
js 0x10132622
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [edi + 0x20], eax
xor eax, eax
cmp dword [ebx + 0x10], 4
sete al
or dword [edi + 0x24], eax
cmp dword [ebx + 0x10], 4
jne 0x10132614
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10132614
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
dec eax
cdq
mov esi, eax
mov ecx, edx
mov dword [edi + 0x14], ecx
mov edx, 0x3e8
mov dword [edi + 0x10], esi
mov eax, dword [ebx + 0xc4]
imul edx
push ecx
push esi
push edx
push eax
call fcn.10001352
mov esi, eax
mov edi, edx
mov dword [ebx + 0x70], esi
mov dword [ebx + 0x74], edi
movsx ecx, word [ebx + 0xbc]
mov eax, dword [ebx + 0xc0]
imul ecx
add eax, esi
mov dword [ebx + 0x70], eax
adc edx, edi
push edx
push eax
mov dword [ebx + 0x74], edx
movsx eax, word [ebx + 0xbc]
push eax
push str.NSV_AUDIO:_sync:_d__dts:_lld
push 0x38
push dword [ebp + 8]
call sub.avutil_56.dll_av_log
add esp, 0x18
mov eax, dword [ebp - 0x1c]
inc dword [eax]
mov dword [ebx + 0x10], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xbebbb1b7
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret