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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
mov r12, qword [rcx + 8]
mov rbx, rcx
mov esi, edx
mov rdi, r8
mov ebp, r9d
cmp qword [r12 + 0x88], 0
je 0x140081e29
cmp qword [r12 + 0x68], 0
je 0x140081ff4
test bpl, 2
jne 0x140081e80
test esi, esi
js 0x140082031
cmp qword [r12 + 0x68], 0
je 0x140081ee0
mov rcx, rbx
call fcn.14007ec20
mov rax, qword [rbx + 8]
mov r9d, ebp
mov r8, rdi
mov edx, esi
mov rcx, rbx
call qword [rax + 0x68]
test eax, eax
js 0x140081ed3
mov rcx, rbx
call fcn.14007c090
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test byte [r12 + 0x11], 0x80
jne 0x140082159
mov rcx, rbx
call fcn.14007ec20
mov rax, qword [rbx + 0x548]
mov rcx, qword [rbx + 0x20]
mov rsi, qword [rax + 0x18]
call fcn.14003b680
cmp rdi, rsi
jl 0x140081eb8
lea rsi, [rax - 1]
cmp rdi, rsi
cmovle rsi, rdi
mov rcx, qword [rbx + 0x20]
xor r8d, r8d
mov rdx, rsi
call fcn.14003aae0
mov dword [rbx + 0x550], 1
jmp 0x140081e61
mov r12, qword [rbx + 8]
nop word [rax + rax]
cmp qword [r12 + 0x70], 0
mov eax, dword [r12 + 0x10]
je 0x140081ef6
test ah, 0x20
je 0x140082163
test ah, 0x40
jne 0x140082159
mov rcx, rbx
call fcn.14007ec20
mov rdx, qword [rbx + 0x30]
movsxd rax, esi
mov r9d, ebp
mov r8, rdi
mov r12, qword [rdx + rax*8]
movsxd r14, dword [r12 + 0x1d0]
mov r15, qword [r12 + 0x1c8]
mov rcx, r15
mov edx, r14d
call fcn.14007ef60
movsxd r13, eax
test r13d, r13d
js 0x140082190
lea eax, [r14 - 1]
cmp r13d, eax
je 0x14008228f
mov rcx, rbx
call fcn.14007ec20
mov rax, qword [rbx + 8]
mov rax, qword [rax + 0x68]
test rax, rax
je 0x140081f76
mov r9d, ebp
mov r8, rdi
mov edx, esi
mov rcx, rbx
call rax
test eax, eax
jns 0x140081e61
mov rax, qword [r12 + 0x1c8]
lea rdx, [r13 + r13*2]
mov rcx, qword [rbx + 0x20]
xor r8d, r8d
lea rsi, [rax + rdx*8]
mov rdx, qword [rsi]
call fcn.14003aae0
test rax, rax
js 0x14008217b
mov eax, dword [rbx + 0x2c]
mov rbp, qword [rsi + 8]
test eax, eax
je 0x140081e61
mov rsi, qword [rbx + 0x30]
sub eax, 1
movsxd r13, dword [r12 + 0x1c]
movsxd r14, dword [r12 + 0x18]
lea r12, [rsi + rax*8 + 8]
mov rdi, qword [rsi]
mov rcx, rbp
add rsi, 8
movsxd r8, dword [rdi + 0x18]
movsxd rdx, dword [rdi + 0x1c]
imul r8, r13
imul rdx, r14
call fcn.14036d440
cmp r12, rsi
mov qword [rdi + 0xf0], rax
jne 0x140081fc4
jmp 0x140081e61
mov edx, r9d
movabs rax, 0x7fffffffffffffff
mov r9, rdi
and edx, 1
mov edx, esi
cmovne rax, r8
movabs r8, 0x8000000000000000
cmove r8, rdi
and ebp, 0xfffffffe
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], ebp
call fcn.140081bf0
jmp 0x140081e69
mov r13d, dword [rbx + 0x2c]
test r13d, r13d
je 0x140082159
mov r14, qword [rbx + 0x30]
xor edx, edx
xor esi, esi
mov r10d, 0x80000000
jmp 0x1400820bf
mov eax, dword [rcx + 0x38]
and eax, 0x400
cmp eax, 1
sbb r15d, r15d
and r15d, 0x190
mov r9d, r15d
lea eax, [r15 - 0x177]
mov r15d, dword [r8 + 0x38]
sub r9d, 0x145
test r15d, r15d
je 0x14008208a
mov r15d, dword [r8 + 0x3c]
test r15d, r15d
cmovne eax, r9d
mov r9d, dword [rcx + 0x108]
lea r8d, [rax + 0xc]
test r9d, r9d
cmovne eax, r8d
cmp dword [rcx + 0x3c], 0x30
lea r8d, [rax + 0xc8]
cmovne eax, r8d
cmp r10d, eax
jge 0x1400820b6
mov r10d, eax
mov esi, r11d
add rdx, 1
cmp r13d, edx
jbe 0x1400820f0
mov rcx, qword [r14 + rdx*8]
mov r11d, edx
mov r8, qword [rcx + 0xd0]
mov r9d, dword [r8]
test r9d, r9d
je 0x140082050
xor eax, eax
cmp r9d, 1
jne 0x14008208a
cmp dword [r8 + 0x74], 1
sbb eax, eax
not eax
and eax, 0x32
jmp 0x14008208a
movsxd rax, esi
mov rcx, rdi
mov rax, qword [r14 + rax*8]
movsxd r8, dword [rax + 0x18]
movsxd rdx, dword [rax + 0x1c]
imul r8, r8, 0xf4240
call fcn.14036d440
mov rdi, rax
jmp 0x140081e37
lea r8, str.seek_frame_generic_failed_as_this_stream_seems_to_contain_no_keyframes_after_the_target_timestamp___d_non_keyframes_found_n
mov edx, 0x10
mov rcx, rbx
call fcn.14036cf30
mov rcx, r13
call fcn.140095ee0
mov edx, dword [r12 + 0x1d0]
mov rcx, qword [r12 + 0x1c8]
mov r9d, ebp
mov r8, rdi
call fcn.14007ef60
movsxd r13, eax
test r13d, r13d
jns 0x140081f4c
mov eax, 0xffffffff
jmp 0x140081e69
mov rcx, rbx
call fcn.14007ec20
mov r9d, ebp
mov r8, rdi
mov edx, esi
mov rcx, rbx
call fcn.140081770
test eax, eax
js 0x140081e69
jmp 0x140081e61
test r14d, r14d
je 0x1400822d0
cmp rdi, qword [r15 + 8]
jl 0x140082159
lea rax, [r14 + r14*2]
mov rcx, qword [rbx + 0x20]
xor r8d, r8d
lea r13, [r15 + rax*8 - 0x18]
mov rdx, qword [r13]
call fcn.14003aae0
test rax, rax
js 0x14008217b
mov eax, dword [rbx + 0x2c]
mov r15, qword [r13 + 8]
test eax, eax
je 0x140082222
movsxd rdx, dword [r12 + 0x1c]
mov r13, qword [rbx + 0x30]
sub eax, 1
lea rax, [r13 + rax*8 + 8]
mov qword [rsp + 0x40], rdx
movsxd rdx, dword [r12 + 0x18]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rdx
nop dword [rax]
mov r14, qword [r13]
mov rcx, r15
add r13, 8
movsxd r8, dword [r14 + 0x18]
movsxd rdx, dword [r14 + 0x1c]
imul rdx, qword [rsp + 0x48]
imul r8, qword [rsp + 0x40]
call fcn.14036d440
cmp r13, qword [rsp + 0x38]
mov qword [r14 + 0xf0], rax
jne 0x1400821f0
lea r13, [rsp + 0x50]
xor r14d, r14d
nop word [rax + rax]
mov rdx, r13
mov rcx, rbx
call fcn.140080330
cmp eax, 0xfffffff5
je 0x140082230
test eax, eax
js 0x140082132
cmp esi, dword [rsp + 0x74]
jne 0x140082285
cmp rdi, qword [rsp + 0x60]
jge 0x140082285
test byte [rsp + 0x78], 1
jne 0x14008212a
cmp r14d, 0x3e8
lea r9d, [r14 + 1]
jle 0x140082282
mov rax, qword [r12 + 0xd0]
cmp dword [rax + 4], 0x84
jne 0x140082116
mov r14d, r9d
mov rcx, r13
call fcn.140095ee0
jmp 0x140082230
test r14d, r14d
je 0x1400822d0
test r15, r15
jne 0x14008219f
lea rax, str.libavformat_utils.c
lea r9, str.st__index_entries
lea r8, [0x1403d93ae]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0x96f
mov qword [rsp + 0x20], rax
call fcn.14036cf30
call sub.msvcrt.dll_abort
nop dword [rax]
mov rax, qword [rbx + 0x548]
mov rcx, qword [rbx + 0x20]
xor r8d, r8d
mov rdx, qword [rax + 0x18]
call fcn.14003aae0
test rax, rax
jns 0x140082222
jmp 0x14008217b