Function at 0x14036ad10
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, 0x98
mov eax, dword [rsp + 0x100]
mov r14d, dword [rsp + 0x110]
mov r15, rcx
mov r12, r8
mov ecx, eax
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x108]
mov dword [rsp + 0x34], eax
movsxd rax, dword [rdx]
mov qword [rsp + 0x50], rax
movsxd rax, dword [r9]
mov qword [rsp + 0x70], rax
movsxd rax, dword [rdx + 4]
mov qword [rsp + 0x58], rax
movsxd rax, dword [r9 + 4]
mov qword [rsp + 0x78], rax
movsxd rax, dword [rdx + 8]
mov qword [rsp + 0x60], rax
movsxd rax, dword [r9 + 8]
mov qword [rsp + 0x80], rax
movsxd rax, dword [rdx + 0xc]
mov qword [rsp + 0x68], rax
movsxd rax, dword [r9 + 0xc]
mov qword [rsp + 0x88], rax
call fcn.1403768d0
test rax, rax
mov qword [rsp + 0x40], rax
mov rcx, rax
je 0x14036aefa
mov rax, qword [rax + 0x10]
test al, 8
jne 0x14036aefa
test al, 0x42
jne 0x14036af0e
movzx eax, byte [rcx + 8]
test eax, eax
je 0x14036aefa
mov rbx, qword [rsp + 0x40]
mov edx, 0
mov ecx, dword [rbx + 0x18]
mov r13d, ecx
mov dword [rsp + 0x3c], ecx
add r13d, 1
cmovs r13d, edx
cmp eax, 1
je 0x14036ae29
mov ecx, dword [rbx + 0x38]
lea edx, [rcx + 1]
mov dword [rsp + 0x3c], ecx
cmp r13d, edx
cmovl r13d, edx
cmp eax, 2
je 0x14036ae29
mov ecx, dword [rbx + 0x58]
lea edx, [rcx + 1]
mov dword [rsp + 0x3c], ecx
cmp r13d, edx
cmovl r13d, edx
cmp eax, 3
je 0x14036ae29
mov eax, dword [rbx + 0x78]
mov dword [rsp + 0x3c], eax
add eax, 1
cmp r13d, eax
cmovl r13d, eax
test r13d, r13d
je 0x14036aefa
mov eax, r14d
mov dword [rsp + 0x3c], r13d
xor edi, edi
neg eax
mov r13, r15
mov dword [rsp + 0x48], r14d
mov dword [rsp + 0x4c], eax
mov r15, r12
nop dword [rax]
mov edx, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x38]
mov r8d, edi
call fcn.140369c60
movsxd rsi, eax
test rsi, rsi
js 0x14036afd9
lea eax, [rdi - 1]
cmp eax, 1
jbe 0x14036b03b
mov ebx, dword [rsp + 0x48]
mov r9, qword [r13 + rdi*8]
mov r14, qword [r15 + rdi*8]
test r9, r9
je 0x14036aeec
test r14, r14
je 0x14036aeec
mov rbp, qword [rsp + rdi*8 + 0x70]
mov edx, ebp
sar edx, 0x1f
mov eax, edx
xor eax, ebp
sub eax, edx
cdqe
cmp rsi, rax
jg 0x14036b006
mov r12, qword [rsp + rdi*8 + 0x50]
mov edx, r12d
sar edx, 0x1f
mov eax, edx
xor eax, r12d
sub eax, edx
cdqe
cmp rsi, rax
jg 0x14036b00b
test ebx, ebx
jle 0x14036aeec
nop dword [rax + rax]
mov rdx, r14
mov rcx, r9
mov r8, rsi
call sub.msvcrt.dll_memcpy
mov r9, rax
add r14, rbp
add r9, r12
sub ebx, 1
jne 0x14036aed0
add rdi, 1
cmp dword [rsp + 0x3c], edi
jg 0x14036ae50
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r9, qword [r15]
mov rbp, qword [r12]
test r9, r9
je 0x14036af86
test rbp, rbp
je 0x14036af86
mov rbx, qword [rsp + 0x70]
movsxd rsi, dword [rsp + 0x34]
mov ecx, ebx
sar ecx, 0x1f
mov edx, ecx
xor edx, ebx
sub edx, ecx
cmp edx, esi
jl 0x14036b006
mov rdi, qword [rsp + 0x50]
mov ecx, edi
sar ecx, 0x1f
mov edx, ecx
xor edx, edi
sub edx, ecx
movsxd rdx, edx
cmp rsi, rdx
jg 0x14036b00b
test r14d, r14d
jle 0x14036af86
nop dword [rax]
mov rdx, rbp
mov rcx, r9
mov r8, rsi
call sub.msvcrt.dll_memcpy
mov r9, rax
add rbp, rbx
add r9, rdi
sub r14d, 1
jne 0x14036af60
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x10]
test al, 2
mov rax, qword [r15 + 8]
jne 0x14036afff
test rax, rax
je 0x14036aefa
mov rsi, qword [r12 + 8]
test rsi, rsi
je 0x14036aefa
mov rdx, qword [rsi]
lea rdi, [rax + 8]
and rdi, 0xfffffffffffffff8
mov qword [rax], rdx
mov rdx, qword [rsi + 0x3f8]
mov qword [rax + 0x3f8], rdx
sub rax, rdi
sub rsi, rax
add eax, 0x400
shr eax, 3
mov ecx, eax
rep movsq qword [rdi], qword [rsi]
jmp 0x14036aefa
lea r8, str.av_image_get_linesize_failed_n
mov edx, 0x10
xor ecx, ecx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.14036cf30
mov rsi, qword [r12 + 8]
jmp 0x14036afa5
call fcn.1403b4680
lea rax, str.libavutil_imgutils.c
lea r9, str.abs_dst_linesize____bytewidth
lea r8, [0x14043397f]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0x13b
mov qword [rsp + 0x20], rax
call fcn.14036cf30
call sub.msvcrt.dll_abort
mov rax, qword [rsp + 0x40]
mov ebx, dword [rsp + 0x4c]
movzx ecx, byte [rax + 0xa]
sar ebx, cl
neg ebx
jmp 0x14036ae7c