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

Disassembly:
push ebp
push edi
mov edi, edx
push esi
push ebx
mov ebx, eax
sub esp, 0x5c
mov eax, dword [esp + 0x70]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x3c], edx
mov ebp, dword [eax + edi*4]
mov eax, dword [ebx + 0x16c]
mov dword [esp + 0x48], eax
test eax, eax
je 0x10015b68
mov eax, dword [ebp + 0x2ec]
mov edx, dword [ebp + 0x2e8]
xor eax, 0x80000000
or edx, eax
jne 0x10015b5a
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov eax, edx
mov edx, ecx
xor edx, 0x80000000
or eax, edx
je 0x10015b5a
mov edx, dword [ebp + 0x2f0]
mov eax, 0x7ffffffe
mov ecx, dword [ebp + 0x2f4]
cmp eax, edx
mov eax, 0x7ffeffff
sbb eax, ecx
jge 0x10015b5a
mov esi, edx
mov edi, ecx
add esi, 0x80000001
adc edi, 0x8000ffff
mov dword [esp + 0x40], esi
cmp dword [esp + 0x28], esi
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x44]
sbb edi, esi
jl 0x10015b5a
cmp dword [esp + 0x2c], 0x7ffdffff
jg 0x10015b5a
mov eax, dword [esp + 0x28]
mov esi, edx
mov edi, ecx
mov edx, dword [esp + 0x2c]
add esi, 1
adc edi, 0x80010000
sub eax, esi
sbb edx, edi
mov esi, eax
mov dword [ebp + 0x2e8], eax
mov eax, dword [esp + 0x28]
mov edi, edx
mov dword [ebp + 0x2ec], edx
mov edx, dword [esp + 0x2c]
mov dword [ebp + 0x2f0], eax
mov eax, esi
mov esi, dword [esp + 0x38]
add eax, 1
mov dword [ebp + 0x2f4], edx
mov edx, edi
mov edi, dword [esp + 0x3c]
adc edx, 0x80010000
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
cmp edi, 0x7ffdffff
jg 0x10015c38
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x48]
mov ecx, eax
test eax, eax
je 0x10015b1c
lea esi, cs:[esi]
mov eax, dword [esp + 0x34]
cmp dword [ecx + 0x28], eax
jne 0x10015b04
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
cmp edx, 0x7ffdffff
jle 0x10015ad5
add eax, dword [esp + 0x28]
adc edx, dword [esp + 0x2c]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
mov edx, dword [ecx + 0x1c]
mov eax, dword [ecx + 0x18]
cmp edx, 0x7ffdffff
jle 0x10015af1
add eax, dword [esp + 0x28]
adc edx, dword [esp + 0x2c]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edx
mov eax, dword [ebp + 0x24]
mov edx, dword [ebp + 0x20]
xor eax, 0x80000000
or edx, eax
je 0x10015b80
mov eax, dword [ecx]
test eax, eax
je 0x10015b10
mov ecx, eax
jmp 0x10015ab0
cmp dword [ebx + 0x170], ecx
je 0x10015c20
mov eax, dword [esp + 0x40]
cmp dword [eax + 4], 0x1b
jne 0x10015b38
mov ecx, dword [ebp + 0x100]
test ecx, ecx
jne 0x10015c50
lea esi, [esi]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x34]
mov eax, ebx
call fcn.10013560
mov eax, dword [ebp + 0x24]
mov edx, dword [ebp + 0x20]
xor eax, 0x80000000
or edx, eax
je 0x10015c78
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x188]
mov dword [esp + 0x48], eax
jmp 0x100159a7
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
mov edi, edx
xor edx, 0x80000000
mov esi, eax
or eax, edx
je 0x10015b04
mov eax, dword [esp + 0x40]
mov dword [ebp + 0x20], esi
mov dword [ebp + 0x24], edi
cmp dword [eax], 1
jne 0x10015b04
mov eax, dword [eax + 0x88]
test eax, eax
je 0x10015b04
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x4c], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esp + 8], 1
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x128]
mov dword [esp], eax
sar eax, 0x1f
mov dword [esp + 4], eax
call sub.avutil_59.dll_av_rescale_q
mov ecx, dword [esp + 0x4c]
add esi, eax
adc edi, edx
mov eax, esi
mov edx, edi
jno 0x10015c0c
test edi, edi
jns 0x10015d6c
mov eax, 0xffffffff
mov edx, 0x7fffffff
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x24], edx
jmp 0x10015b04
mov eax, dword [ebx + 0x188]
test eax, eax
je 0x10015b1c
mov ecx, eax
jmp 0x10015ab0
add esi, eax
adc edi, edx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], edi
jmp 0x10015a9a
mov eax, dword [ebp + 0xd0]
mov edx, dword [eax + 0x9c]
test edx, edx
jne 0x10015ca8
cmp dword [ebp + 0x148], 6
jle 0x10015b47
jmp 0x10015b38
mov eax, dword [ebp + 0xc]
cmp dword [eax], 1
je 0x10015cf0
mov eax, dword [esp + 0x80]
test byte [eax + 0x24], 4
jne 0x10015b5a
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x24], edx
jmp 0x10015b5a
mov dword [esp], eax
call sub.avcodec_61.dll_avpriv_h264_has_num_reorder_frames
mov edx, eax
mov eax, dword [ebp + 0xd0]
mov eax, dword [eax + 0x9c]
cmp edx, eax
je 0x10015b38
mov edx, dword [ebp + 0x148]
cmp eax, 2
jle 0x10015c60
cmp eax, 3
je 0x10015d5e
cmp edx, 0x13
jle 0x10015b47
jmp 0x10015b38
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov ecx, dword [eax + 0x88]
mov dword [ebp + 0x20], esi
mov dword [ebp + 0x24], edi
test ecx, ecx
je 0x10015b5a
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov eax, dword [ebp + 0x128]
mov dword [esp], eax
sar eax, 0x1f
mov dword [esp + 4], eax
call sub.avutil_59.dll_av_rescale_q
add eax, esi
adc edx, edi
mov ecx, eax
mov eax, edx
jno 0x10015d53
test edx, edx
jns 0x10015d78
mov ecx, 0xffffffff
mov eax, 0x7fffffff
mov dword [ebp + 0x20], ecx
mov dword [ebp + 0x24], eax
jmp 0x10015b5a
cmp edx, 0x11
jle 0x10015b47
jmp 0x10015b38
xor eax, eax
mov edx, 0x80000000
jmp 0x10015c0c
xor ecx, ecx
mov eax, 0x80000000
jmp 0x10015d53