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

Disassembly:
push ebp
mov ebp, eax
push edi
push esi
push ebx
sub esp, 0xac
mov ebx, dword [esp + 0xc4]
imul ebx, dword [esp + 0xc0]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x44], ecx
lea eax, [ebx*8]
mov dword [esp], eax
shl ebx, 4
call sub.avutil_52.dll_av_malloc
mov dword [esp], ebx
mov dword [esp + 0x98], eax
call sub.avutil_52.dll_av_malloc
mov esi, dword [esp + 0x98]
mov dword [esp + 0x78], esi
test eax, eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x9c], eax
je 0x6c5646a2
test esi, esi
je 0x6c5646a2
mov esi, dword [esp + 0xc4]
mov edi, eax
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x4c], 0
shl esi, 4
mov dword [esp + 0x48], esi
mov esi, dword [esp + 0xc4]
mov dword [esp + 0x30], edx
shl esi, 3
mov dword [esp + 0x50], esi
mov esi, dword [esp + 0xc4]
add esi, esi
mov dword [esp + 0x54], esi
mov esi, dword [esp + 0x78]
mov dword [esp + 0x28], esi
jmp 0x6c5647c4
mov dword [esp + 8], str.guess_dc___is_out_of_memory_n
mov dword [esp + 4], 0x10
mov eax, dword [ebp]
mov dword [esp], eax
call sub.avutil_52.dll_av_log
jmp 0x6c564b86
mov cl, byte [esp + 0xc8]
mov edx, eax
sar edx, cl
mov ecx, dword [ebp + 0x28]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x40]
imul edx, dword [ebp + 0x18]
add edx, dword [esp + 0x3c]
mov cl, byte [ecx + edx]
mov byte [esp + 0x3c], cl
mov ecx, dword [ebp + 0x84]
mov ecx, dword [ecx + 0x200]
test byte [ecx + edx*4], 7
je 0x6c564700
test byte [esp + 0x3c], 4
jne 0x6c56470a
mov edx, dword [esp + 0x30]
mov ebx, eax
movsx esi, word [edx + eax*2]
mov edx, dword [esp + 0x28]
mov ecx, eax
sub ecx, ebx
test ebx, ebx
mov word [edx + eax*8 + 2], si
mov edx, 0x270f
cmovs ecx, edx
mov edx, eax
shl edx, 4
inc eax
mov dword [edi + edx + 4], ecx
cmp eax, dword [esp + 0x44]
jl 0x6c5646c2
mov eax, dword [esp + 0x44]
or ebx, 0xffffffff
mov esi, 0x400
dec eax
jmp 0x6c5647a8
mov cl, byte [esp + 0xc8]
mov edx, eax
sar edx, cl
mov ecx, dword [ebp + 0x28]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x40]
imul edx, dword [ebp + 0x18]
add edx, dword [esp + 0x3c]
mov cl, byte [ecx + edx]
mov byte [esp + 0x3c], cl
mov ecx, dword [ebp + 0x84]
mov ecx, dword [ecx + 0x200]
test byte [ecx + edx*4], 7
je 0x6c56477e
test byte [esp + 0x3c], 4
jne 0x6c564788
mov edx, dword [esp + 0x30]
mov ebx, eax
movsx esi, word [edx + eax*2]
mov edx, dword [esp + 0x28]
mov ecx, ebx
sub ecx, eax
cmp ebx, 0xffffffff
mov word [edx + eax*8], si
mov edx, 0x270f
cmove ecx, edx
mov edx, eax
shl edx, 4
dec eax
mov dword [edi + edx], ecx
test eax, eax
jns 0x6c564740
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
inc dword [esp + 0x4c]
add dword [esp + 0x28], esi
add dword [esp + 0x30], eax
add edi, dword [esp + 0x48]
mov esi, dword [esp + 0xc0]
cmp dword [esp + 0x4c], esi
jl 0x6c56484f
imul eax, dword [esp + 0xc4], 0xfffffff0
dec esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x64], 0
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0xc4]
imul eax, esi
imul esi, dword [esp + 0xc4], 0xfffffff8
mov edx, eax
mov dword [esp + 0x58], esi
shl edx, 4
imul esi, dword [esp + 0xc4], 0xfffffffe
mov dword [esp + 0x84], edx
lea edx, [eax*8]
add eax, eax
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x5c], esi
mov esi, dword [esp + 0x78]
mov dword [esp + 0x68], edx
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], esi
jmp 0x6c5649be
mov esi, dword [esp + 0x4c]
or ebx, 0xffffffff
xor eax, eax
mov cl, byte [esp + 0xc8]
sar esi, cl
mov dword [esp + 0x40], esi
mov esi, 0x400
jmp 0x6c56472b
mov cl, byte [esp + 0xc8]
mov edx, eax
mov esi, dword [ebp + 0x84]
sar edx, cl
mov ecx, dword [esp + 0x40]
imul edx, dword [ebp + 0x18]
mov esi, dword [esi + 0x200]
add ecx, edx
mov edx, dword [ebp + 0x28]
test byte [esi + ecx*4], 7
mov dl, byte [edx + ecx]
mov byte [esp + 0x3c], dl
je 0x6c5648a5
and dl, 4
jne 0x6c5648b2
mov esi, dword [esp + 0x24]
mov ebx, eax
movsx esi, word [esi]
mov dword [esp + 0x30], esi
mov edx, dword [esp + 0x60]
mov esi, 0x270f
mov ecx, dword [esp + 0x30]
mov word [edx + 6], cx
mov ecx, eax
sub ecx, ebx
test ebx, ebx
cmovs ecx, esi
mov esi, dword [esp + 0x50]
inc eax
mov dword [edi], ecx
add edi, dword [esp + 0x48]
add edx, esi
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x54]
add dword [esp + 0x24], edx
cmp eax, dword [esp + 0xc0]
jl 0x6c56486f
mov edx, dword [esp + 0x70]
or ebx, 0xffffffff
mov eax, dword [esp + 0x84]
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0x400
lea esi, [edx + eax + 8]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x6c]
lea edi, [edx + eax + 4]
mov eax, dword [esp + 0x68]
add eax, dword [esp + 0x8c]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x80]
jmp 0x6c5649a7
mov cl, byte [esp + 0xc8]
mov edx, eax
sar edx, cl
mov ecx, dword [ebp + 0x28]
imul edx, dword [ebp + 0x18]
add edx, dword [esp + 0x40]
mov cl, byte [ecx + edx]
mov byte [esp + 0x3c], cl
mov ecx, dword [ebp + 0x84]
mov ecx, dword [ecx + 0x200]
test byte [ecx + edx*4], 7
je 0x6c56496d
test byte [esp + 0x3c], 4
jne 0x6c56497f
mov ecx, dword [esp + 0x60]
mov ebx, eax
mov edx, dword [esp + 0x28]
movsx edx, word [ecx + edx]
mov dword [esp + 0x30], edx
mov ecx, dword [esp + 0x30]
mov edx, ebx
sub edx, eax
test ebx, ebx
mov word [edi], cx
mov ecx, 0x270f
cmovs edx, ecx
dec eax
mov dword [esi], edx
mov edx, dword [esp + 0x5c]
add dword [esp + 0x28], edx
add esi, dword [esp + 0x4c]
add edi, dword [esp + 0x58]
test eax, eax
jns 0x6c564937
inc dword [esp + 0x64]
add dword [esp + 0x6c], 8
add dword [esp + 0x68], 2
add dword [esp + 0x70], 0x10
mov ecx, dword [esp + 0x44]
cmp dword [esp + 0x64], ecx
jl 0x6c5649dd
mov dword [esp + 0x50], 0
mov dword [esp + 0x58], 0
jmp 0x6c564b55
mov cl, byte [esp + 0xc8]
or ebx, 0xffffffff
xor eax, eax
mov esi, dword [esp + 0x64]
mov edi, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x30], 0x400
sar esi, cl
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x70]
mov ecx, edi
mov dword [esp + 0x60], edx
mov dword [esp + 0x24], ecx
add esi, 0xc
mov edi, esi
jmp 0x6c5648e5
mov cl, byte [esp + 0xc8]
mov edx, esi
mov eax, dword [esp + 0x48]
imul eax, dword [ebp + 0x18]
sar edx, cl
add eax, edx
mov edx, dword [ebp + 0x28]
mov cl, byte [edx + eax]
mov edx, dword [ebp + 0x84]
mov edx, dword [edx + 0x200]
test byte [edx + eax*4], 0x78
jne 0x6c564b3b
and cl, 4
je 0x6c564b3b
mov eax, dword [esp + 0x50]
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x4c], ebp
xor ebx, ebx
mov ebp, edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
add eax, esi
mov edx, eax
shl edx, 4
add edx, dword [esp + 0x74]
mov dword [esp + 0x54], esi
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x78]
lea eax, [edx + eax*8]
mov dword [esp + 0x3c], eax
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x40]
cmp dword [esi + ebp*4], 0
mov esi, 1
cmovne esi, dword [eax + ebp*4]
xor edx, edx
mov eax, 0x10000000
xor edi, edi
div esi
mov edx, dword [esp + 0x3c]
movsx edx, word [edx + ebp*2]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov esi, eax
mov eax, edx
cdq
mov eax, dword [esp + 0x64]
mov dword [esp + 0x34], edx
imul edx, dword [esp + 0x64]
mov dword [esp + 0x30], edx
mul dword [esp + 0x60]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
add edx, eax
mov eax, dword [esp + 0x18]
add dword [esp + 0x28], eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x1c]
adc dword [esp + 0x2c], edx
add ecx, esi
adc ebx, edi
inc ebp
cmp ebp, 4
jne 0x6c564a93
mov eax, ecx
mov edx, ebx
mov esi, dword [esp + 0x54]
sar edx, 1
mov ebp, dword [esp + 0x4c]
shrd eax, ebx, 1
add eax, dword [esp + 0x28]
adc edx, dword [esp + 0x2c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.6c55e8dc
mov edx, dword [esp + 0x5c]
mov word [edx + esi*2], ax
inc esi
cmp esi, dword [esp + 0x44]
jl 0x6c564a1b
mov esi, dword [esp + 0xc4]
inc dword [esp + 0x58]
add dword [esp + 0x50], esi
mov esi, dword [esp + 0xc0]
cmp dword [esp + 0x58], esi
jge 0x6c564b86
mov esi, dword [esp + 0x58]
mov cl, byte [esp + 0xc8]
mov edx, dword [esp + 0x7c]
sar esi, cl
mov dword [esp + 0x48], esi
mov esi, dword [esp + 0x50]
lea esi, [edx + esi*2]
mov dword [esp + 0x5c], esi
xor esi, esi
jmp 0x6c564b3c
lea eax, [esp + 0x98]
mov dword [esp], eax
call sub.avutil_52.dll_av_freep
lea eax, [esp + 0x9c]
mov dword [esp], eax
call sub.avutil_52.dll_av_freep
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret