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

Disassembly:
push ebp
mov ecx, 1
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [esp + 0x78]
mov ebp, dword [esp + 0x74]
mov eax, dword [ebx + 0x2f8]
mov esi, dword [ebx + 0xd0]
test eax, eax
je 0x10006af0
xor ecx, ecx
test byte [eax + 0x10], 0x10
setne cl
add ecx, 1
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x20], eax
test esi, esi
je 0x10006cb8
mov eax, dword [esi + 0x50]
mov edx, dword [esi + 0x54]
mov edi, dword [esi + 0x50]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x54]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x40], eax
test edi, edi
je 0x10006ec0
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.avutil_59.dll_av_mul_q
cmp edx, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
setl byte [esp + 0x28]
test edx, edx
setg byte [esp + 0x33]
mov eax, dword [esi + 0x58]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x70]
mov esi, dword [eax]
mov dword [esp + 4], 0x1008328f
mov dword [esp], esi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x10006c50
cmp dword [esp + 0x7c], 0xffffffff
je 0x10006d00
cmp dword [esp + 0x7c], 2
je 0x10006ea0
mov edx, dword [esp + 0x7c]
test edx, edx
jne 0x10006bd0
test edi, edi
je 0x10006ef8
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
add eax, eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
imul eax, edi
mov dword [esp + 0x24], eax
jmp 0x10006bd0
fstp st(0)
jmp 0x10006bd0
fstp st(0)
nop
mov eax, dword [ebp + 0xc]
cmp dword [eax + 8], 0x64636d74
jne 0x10006beb
movzx edx, byte [esp + 0x33]
test byte [esp + 0x28], dl
jne 0x10006de0
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edi, esi
mov dword [esp + 0x28], esi
mov ebx, ecx
mov eax, esi
sar edi, 0x1f
sar ebx, 0x1f
mov dword [esp + 0x2c], edi
mov edx, edi
mov dword [esp + 8], eax
lea eax, [ebp + 0x300]
mov dword [esp + 4], eax
lea eax, [ebp + 0x2fc]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 0x7fffffff
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp], eax
call sub.avutil_59.dll_av_reduce
add esp, 0x5c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x70]
test byte [eax + 0x1d], 4
jne 0x10006bd0
mov dword [esp + 4], str.mov_mp4_3gp_3g2_psp_ipod_ismv_f4v
mov dword [esp], esi
call fcn.1006c8f0
test eax, eax
jne 0x10006bd0
cmp dword [esp + 0x7c], 0xffffffff
je 0x10006f30
mov eax, dword [esp + 0x7c]
test eax, eax
jne 0x10006bd0
test edi, edi
je 0x10006f80
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x3c]
imul eax, edi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x20], eax
jmp 0x10006bd0
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
mov dword [esp + 0x34], eax
cmp eax, 1
je 0x10006db0
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x40], 0
mov dword [esp + 0x34], 1
cmp edx, edi
mov dword [esp + 0x38], edi
setl byte [esp + 0x28]
test edx, edx
setg byte [esp + 0x33]
xor edi, edi
mov dword [esp + 0x3c], edx
jmp 0x10006b63
mov eax, dword [ebx + 0xb4]
test eax, eax
je 0x10006e40
mov edx, dword [ebx + 0xb8]
mov dword [esp + 0x48], edx
fild dword [esp + 0x48]
mov dword [esp + 0x48], eax
fild dword [esp + 0x48]
fdivrp st(1)
fstp qword [esp + 0x48]
fld qword [esp + 0x48]
fild dword [ebx + 0x4c]
fild dword [ebx + 0x50]
fdivp st(1)
fstp qword [esp + 0x48]
fld qword [esp + 0x48]
fxch st(1)
fcomi st(1)
fstp st(1)
jb 0x10006e20
fld dword [0x1008345c]
fdivrp st(1)
fild dword [esp + 0x20]
fild dword [esp + 0x24]
fdivrp st(1)
fstp qword [esp + 0x48]
fld qword [esp + 0x48]
fxch st(1)
fcomi st(1)
jbe 0x10006e28
fild dword [esp + 0x38]
fild dword [esp + 0x3c]
fdivrp st(1)
fstp qword [esp + 0x48]
fld qword [esp + 0x48]
fxch st(1)
fcompi st(1)
jbe 0x10006e30
fld xword [0x10083460]
fcomi st(2)
fstp st(2)
jbe 0x10006e36
fxch st(1)
fcompi st(1)
fstp st(0)
jbe 0x10006e40
mov dword [esp + 0x24], edx
jmp 0x10006eb0
mov dword [esp + 0x38], 1
xor edi, edi
mov byte [esp + 0x33], 0
mov byte [esp + 0x28], 1
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
jmp 0x10006b63
mov edx, dword [esp + 0x3c]
mov eax, 0x79
mov edi, edx
mov dword [esp + 0x28], edx
imul edx
sar edi, 0x1f
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x38]
mov ebx, edi
mov ecx, edi
sar ebx, 0x1f
cmp edi, eax
mov edi, ebx
sbb edi, edx
jge 0x10006beb
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
jmp 0x10006c09
fstp st(0)
jmp 0x10006e40
fstp st(0)
fstp st(0)
jmp 0x10006e40
fstp st(0)
fstp st(0)
jmp 0x10006e40
fstp st(0)
fstp st(0)
lea esi, [esi]
test edi, edi
je 0x10006bd0
fild dword [esp + 0x20]
fild dword [esp + 0x24]
fdivrp st(1)
fstp qword [esp + 0x48]
fld qword [esp + 0x48]
fld st(0)
fild dword [esp + 0x40]
mov dword [esp + 0x40], edi
fild dword [esp + 0x40]
fdivp st(1)
fstp qword [esp + 0x40]
fld qword [esp + 0x40]
fxch st(2)
fadd st(0)
fxch st(2)
fcompi st(2)
fstp st(1)
jbe 0x10006bc8
fld xword [0x10083460]
fcompi st(1)
fstp st(0)
ja 0x10006ba7
jmp 0x10006bd0
mov edi, dword [ebx + 0xb8]
mov eax, dword [ebx + 0xb4]
mov dword [esp + 0x24], edi
add eax, eax
mov dword [esp + 0x20], eax
jmp 0x10006bd0
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
mov dword [esp + 0x38], eax
cmp eax, 1
je 0x10006f10
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
cmp edx, ecx
mov dword [esp + 0x3c], edx
setl byte [esp + 0x28]
test edx, edx
mov dword [esp + 0x38], ecx
setg byte [esp + 0x33]
jmp 0x10006b5c
mov eax, dword [ebx + 0xc]
cmp dword [eax], 1
jne 0x10006bd0
jmp 0x10006ba7
mov dword [esp + 0x3c], 0
mov byte [esp + 0x33], 0
mov byte [esp + 0x28], 1
jmp 0x10006b5c
test edi, edi
je 0x10006bd0
fild dword [ebx + 0x14]
fild dword [ebx + 0x18]
fdivp st(1)
fstp qword [esp + 0x48]
fld qword [esp + 0x48]
fild dword [esp + 0x40]
mov dword [esp + 0x40], edi
fild dword [esp + 0x40]
fdivp st(1)
fstp qword [esp + 0x40]
fld qword [esp + 0x40]
fcompi st(1)
jbe 0x10006bcc
fld xword [0x10083460]
fcompi st(1)
fstp st(0)
ja 0x10006c95
jmp 0x10006bd0
mov eax, dword [ebx + 0xc]
cmp dword [eax], 1
jne 0x10006bd0
jmp 0x10006c95