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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x4c], 0
mov edx, dword [eax + 0x18]
test edx, edx
je 0x1001b36e
lea esi, [esi]
mov eax, dword [esp + 0xa0]
mov edi, dword [esp + 0x4c]
mov eax, dword [eax + 0x1c]
mov edi, dword [eax + edi*4]
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
mov dword [esp + 0x48], eax
test eax, eax
jne 0x1001b35d
mov eax, dword [esp + 0xa0]
mov edx, edi
call fcn.10013b60
mov esi, dword [edi + 0x100]
mov edx, eax
mov eax, dword [esi + 0x10]
test edx, edx
je 0x1001b300
cmp eax, 0xf
jle 0x1001b300
mov eax, dword [esi + 8]
mov ecx, dword [edi + 0x14]
mov edx, dword [esi + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x18]
mov ebx, ecx
mov dword [esp + 0x38], edx
sar ebx, 0x1f
mov dword [esp + 0x30], eax
sar eax, 0x1f
mov dword [esp + 0x34], eax
mov eax, 0x1f4
imul ecx
mov dword [esp + 0x54], ebx
mov ebx, dword [edi + 0xb4]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x34]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.10073ad0
xor ecx, ecx
mov ebp, edx
cmp eax, 1
sbb ebp, ecx
mov ebp, 1
cmovl edx, ecx
cmovl eax, ebp
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x38]
cmp eax, ecx
sbb edx, ebp
jl 0x1001b258
test ebx, ebx
jne 0x1001b3a8
lea esi, cs:[esi]
mov ebp, dword [edi + 0x18]
mov eax, dword [edi + 0x14]
mov dword [esp + 0x30], 0xffc3b2b4
xor ebx, ebx
mov dword [esp + 0x28], 0x3e9
fld qword [0x10085c10]
mov edx, esi
mov dword [esp + 0x58], ebp
mov ebp, edi
mov dword [esp + 0x5c], eax
jmp 0x1001b049
cmp ebx, 0x167
jbe 0x1001b4b0
cmp ebx, 0x185
jbe 0x1001b5c8
lea eax, [ebx - 0x186]
cmp eax, 2
jbe 0x1001b5f0
mov dword [esp + 0x68], 0x18
mov dword [esp + 0x6c], 0x1e
mov dword [esp + 0x70], 0x3c
mov dword [esp + 0x74], 0xc
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x7c], 0x30
imul eax, dword [esp + ebx*4 - 0x5bc], 0x2ee0
cmp eax, 0x2eeb
jle 0x1001b024
fild dword [edx + 0x10]
lea eax, [ebx - 0x186]
fild dword [ebp + 0x14]
fild dword [ebp + 0x18]
fdivp st(1)
fstp qword [esp + 0x38]
fld qword [esp + 0x38]
fild qword [edx + 0x18]
fmulp st(1)
fdiv st(1)
cmp ebx, 0x167
jbe 0x1001b5e0
cmp eax, 2
jle 0x1001b10e
jmp 0x1001afaa
fxch st(1)
mov dword [esp + 0x68], 0x18
mov dword [esp + 0x6c], 0x1e
mov dword [esp + 0x70], 0x3c
mov dword [esp + 0x74], 0xc
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x7c], 0x30
imul esi, dword [esp + ebx*4 - 0x5bc], 0x2ee0
mov dword [esp + 0x38], esi
fild dword [esp + 0x38]
fld xword [str.gfffff]
fdiv st(1)
fcompi st(2)
fstp st(1)
jbe 0x1001b150
fstp st(0)
fstp st(0)
jmp 0x1001b024
fstp st(0)
jmp 0x1001b024
fstp st(0)
fstp st(0)
jmp 0x1001b024
fstp st(1)
fstp st(1)
add ebx, 1
add dword [esp + 0x28], 0x3e9
add dword [esp + 0x30], 0x2eec
cmp ebx, 0x18f
je 0x1001b618
mov edx, dword [ebp + 0x100]
mov esi, dword [edx + 0x28]
mov edi, dword [edx + 0x2c]
mov eax, esi
or eax, edi
je 0x1001af00
fild dword [ebp + 0x14]
fild dword [ebp + 0x18]
fld st(1)
fdiv st(1)
fstp qword [esp + 0x38]
fld qword [esp + 0x38]
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], edi
fld st(0)
fild qword [esp + 0x38]
fmulp st(2)
cmp ebx, 0x167
jbe 0x1001b480
cmp ebx, 0x185
jbe 0x1001b530
fstp st(2)
fstp st(2)
lea eax, [ebx - 0x186]
cmp eax, 2
jbe 0x1001b4c0
mov dword [esp + 0x68], 0x18
mov dword [esp + 0x6c], 0x1e
mov dword [esp + 0x70], 0x3c
mov dword [esp + 0x74], 0xc
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x7c], 0x30
imul ecx, dword [esp + ebx*4 - 0x5bc], 0x2ee0
mov dword [esp + 0x38], ecx
fild dword [esp + 0x38]
fdivr dword [0x10085c18]
fcompi st(2)
fstp st(1)
ja 0x1001b008
fild dword [edx + 0x10]
fild qword [edx + 0x18]
fmulp st(2)
fdiv st(1), st(0)
cmp eax, 2
jg 0x1001afa8
fxch st(1)
mov dword [esp + 0x68], 0x50
mov dword [esp + 0x6c], 0x78
mov dword [esp + 0x70], 0xf0
imul esi, dword [esp + eax*4 + 0x68], 0x2eec
mov dword [esp + 0x38], esi
fild dword [esp + 0x38]
fld xword [str.gfffff]
fdiv st(1)
fcompi st(2)
fstp st(1)
ja 0x1001b010
lea esi, cs:[esi]
mov eax, dword [edx + 0x20]
fld st(1)
lea edi, [ebx + 0x18f]
fdivr qword [eax + ebx*8]
fstp qword [esp + 0x38]
fld qword [esp + 0x38]
fxch st(2)
fdivr qword [eax + ebx*8 + 0xc78]
fxch st(2)
fmul st(0)
fsubp st(2)
fxch st(1)
fstp qword [esp + 0x38]
fld qword [esp + 0x38]
fxch st(2)
fcomi st(2)
jbe 0x1001b1a0
fld st(0)
mov ecx, dword [esp + 0x48]
fld xword [0x10085c30]
fxch st(1)
fucompi st(1)
fstp st(0)
fcmovnbe st(0), st(2)
cmova ecx, esi
mov dword [esp + 0x48], ecx
fld st(2)
fld xword [str._np_n]
fcompi st(1)
fstp st(0)
ja 0x1001b570
fstp st(2)
fxch st(1)
fild dword [edx + 0x10]
fld st(0)
fdivr qword [eax + ebx*8 + 0x18f0]
fstp qword [esp + 0x38]
fld qword [esp + 0x38]
fxch st(1)
fdivr qword [eax + edi*8 + 0x18f0]
fxch st(1)
fmul st(0)
fsubp st(1)
fstp qword [esp + 0x38]
fld qword [esp + 0x38]
fxch st(1)
fcomi st(1)
jbe 0x1001b200
fld st(0)
fld xword [0x10085c30]
fxch st(1)
fucompi st(1)
fstp st(0)
cmovbe esi, dword [esp + 0x48]
fcmovnbe st(0), st(1)
mov dword [esp + 0x48], esi
fld st(1)
fld xword [str._np_n]
fcompi st(1)
fstp st(0)
jbe 0x1001b020
fstp qword [esp + 0x38]
mov eax, dword [esp + 0xa0]
fstp qword [esp + 0x14]
fdiv dword [0x10085c4c]
mov dword [esp + 8], str.rfps:__f__f_n
mov dword [esp + 4], 0x30
mov dword [esp], eax
fdiv dword [0x10085c50]
fstp qword [esp + 0xc]
call sub.avutil_59.dll_av_log
fld qword [esp + 0x38]
jmp 0x1001b024
test ebx, ebx
jne 0x1001b3a8
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [esp], 0xffffffff
mov dword [esp + 4], 0x7fffffff
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call fcn.10073ad0
cmp dword [esp + 0x28], eax
mov eax, ebp
sbb eax, edx
jge 0x1001aed0
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x58]
mov eax, ebp
mov dword [esp + 0x18], 0x7fffffff
mov edx, dword [esp + 0x54]
mov dword [esp + 0x1c], 0
imul eax, ebx
imul edx, esi
lea ecx, [eax + edx]
mov eax, esi
mul ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
add edx, ecx
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 8], eax
lea eax, [edi + 0xb8]
mov dword [esp + 4], eax
lea eax, [edi + 0xb4]
mov dword [esp + 0xc], edx
mov dword [esp], eax
call sub.avutil_59.dll_av_reduce
mov esi, dword [edi + 0x100]
mov eax, dword [esi + 0x10]
lea esi, cs:[esi]
cmp eax, 1
jg 0x1001b380
mov edx, dword [edi + 0x4c]
test edx, edx
jne 0x1001b320
mov ebx, dword [edi + 0xb4]
test ebx, ebx
jne 0x1001b3b3
lea esi, [esi]
add esi, 0x20
mov dword [esp], esi
call sub.avutil_59.dll_av_freep
mov eax, dword [edi + 0x100]
mov dword [eax + 0x18], 0
mov dword [eax], 0
mov dword [eax + 4], 0x80000000
mov dword [eax + 0x10], 0
mov dword [eax + 0x1c], 0
mov eax, dword [esp + 0xa0]
mov edx, dword [eax + 0x18]
add dword [esp + 0x4c], 1
mov eax, dword [esp + 0x4c]
cmp eax, edx
jb 0x1001adf8
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [edi + 0xb4]
test ebx, ebx
jne 0x1001b3a8
mov eax, dword [esp + 0xa0]
mov edx, edi
call fcn.10013b60
test eax, eax
je 0x1001b320
jmp 0x1001aed0
mov eax, dword [edi + 0x4c]
test eax, eax
jne 0x1001b320
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov eax, edx
or eax, ecx
je 0x1001b320
xor eax, eax
cmp eax, dword [esi + 0x28]
sbb eax, dword [esi + 0x2c]
jl 0x1001b320
mov eax, dword [esi + 0x10]
cmp eax, 2
jle 0x1001b320
fild dword [edi + 0x14]
fild dword [edi + 0x18]
fdivp st(1)
fstp qword [esp + 0x28]
fld qword [esp + 0x28]
mov dword [esp + 0x28], ebx
fild dword [esp + 0x28]
fild dword [edi + 0xb8]
fdivp st(1)
fstp qword [esp + 0x28]
fld qword [esp + 0x28]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
fmulp st(1)
fld1
fdivr st(1), st(0)
fild qword [esp + 0x28]
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fdivp st(1)
fsubp st(2)
fxch st(1)
fstp qword [esp + 0x28]
fld qword [esp + 0x28]
fabs
fxch st(1)
fcompi st(1)
fstp st(0)
jb 0x1001b320
mov eax, dword [esp + 0xa0]
mov dword [esp + 8], str.Setting_avg_frame_rate_based_on_r_frame_rate_n
mov dword [esp + 4], 0x30
mov dword [esp], eax
call sub.avutil_59.dll_av_log
mov eax, dword [edi + 0xb4]
mov edx, dword [edi + 0xb8]
mov esi, dword [edi + 0x100]
mov dword [edi + 0x4c], eax
mov dword [edi + 0x50], edx
jmp 0x1001b320
fstp st(2)
fstp st(2)
fild dword [esp + 0x28]
mov esi, dword [esp + 0x28]
fld st(0)
fdivr dword [0x10085c18]
fcompi st(3)
fstp st(2)
ja 0x1001b500
fild dword [edx + 0x10]
fild qword [edx + 0x18]
fmulp st(2)
fdiv st(1), st(0)
fxch st(2)
jmp 0x1001afed
mov eax, dword [esp + 0x28]
jmp 0x1001af62
mov dword [esp + 0x68], 0x50
mov dword [esp + 0x6c], 0x78
mov dword [esp + 0x70], 0xf0
imul ecx, dword [esp + ebx*4 - 0x5b0], 0x2eec
mov dword [esp + 0x38], ecx
fild dword [esp + 0x38]
fdivr dword [0x10085c18]
fcompi st(2)
fstp st(1)
jbe 0x1001b0f9
fstp st(0)
jmp 0x1001b516
fstp st(0)
fstp st(0)
jmp 0x1001b516
fstp st(0)
fstp st(0)
fstp st(0)
add dword [esp + 0x28], 0x3e9
add ebx, 1
add dword [esp + 0x30], 0x2eec
jmp 0x1001b043
fstp st(0)
fild dword [esp + 0x30]
mov esi, dword [esp + 0x30]
fld st(0)
fdivr dword [0x10085c18]
fcompi st(2)
fstp st(1)
ja 0x1001b510
fxch st(2)
fxch st(1)
fild dword [edx + 0x10]
fxch st(2)
fdivrp st(1)
fstp qword [esp + 0x38]
fld qword [esp + 0x38]
fild qword [edx + 0x18]
fmulp st(1)
fdiv st(1)
fxch st(1)
fxch st(2)
jmp 0x1001afed
fstp qword [esp + 0x50]
fxch st(1)
mov eax, dword [esp + 0xa0]
fstp qword [esp + 0x14]
fld st(0)
mov dword [esp], eax
fstp xword [esp + 0x38]
fdiv dword [0x10085c4c]
mov dword [esp + 8], str.rfps:__f__f_n
mov dword [esp + 4], 0x30
fdiv dword [0x10085c50]
fstp qword [esp + 0xc]
call sub.avutil_59.dll_av_log
mov edx, dword [ebp + 0x100]
fld xword [esp + 0x38]
fld qword [esp + 0x50]
mov eax, dword [edx + 0x20]
jmp 0x1001b1b6
fild dword [esp + 0x30]
mov esi, dword [esp + 0x30]
fild dword [ebp + 0x14]
fild dword [ebp + 0x18]
jmp 0x1001b54c
fild dword [esp + 0x28]
mov esi, dword [esp + 0x28]
jmp 0x1001afed
mov dword [esp + 0x68], 0x50
mov dword [esp + 0x6c], 0x78
mov dword [esp + 0x70], 0xf0
imul eax, dword [esp + ebx*4 - 0x5b0], 0x2eec
jmp 0x1001af62
fstp st(0)
mov ecx, dword [esp + 0x48]
mov edi, ebp
mov ebp, dword [esp + 0x58]
test ecx, ecx
je 0x1001b6a1
test ebp, ebp
je 0x1001b65a
fild dword [esp + 0x48]
mov dword [esp + 0x28], ebp
fdiv dword [0x10085bf0]
fild dword [esp + 0x28]
fild dword [esp + 0x5c]
fdivp st(1)
fstp qword [esp + 0x28]
fld qword [esp + 0x28]
fld xword [0x10085c60]
fmulp st(1)
fcompi st(1)
fstp st(0)
jbe 0x1001b6a1
mov eax, dword [esp + 0x48]
mov dword [esp + 0x18], 0x7fffffff
mov dword [esp + 0x1c], 0
mov dword [esp + 8], eax
sar eax, 0x1f
mov dword [esp + 0xc], eax
lea eax, [edi + 0xb8]
mov dword [esp + 4], eax
lea eax, [edi + 0xb4]
mov dword [esp + 0x10], 0x2eec
mov dword [esp + 0x14], 0
mov dword [esp], eax
call sub.avutil_59.dll_av_reduce
mov esi, dword [edi + 0x100]
jmp 0x1001b305