Function at 0x1400b0230
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rax, qword [rdx]
mov r10, rcx
mov rsi, rdx
mov rbx, r8
mov qword [rsp + 0xc8], r9
mov rbp, r8
jmp 0x1400afc7e
lea rdx, [rax + 1]
cmp byte [rdx - 1], 0xff
movzx edi, byte [rax + 1]
jne 0x1400afc7b
lea ecx, [rdi + 0x40]
cmp cl, 0x3e
ja 0x1400afc7b
cmp rbx, rdx
ja 0x1400afcf0
mov rax, rdx
mov rdx, rbx
sub rdx, rax
cmp rdx, 1
jg 0x1400afc60
lea rdx, [r10 + 0x38]
lea rcx, [r10 + 0x40]
xor r8d, r8d
mov qword [rsi], rbx
mov qword [rsp + 0x38], r10
mov r12d, 0xffffffff
call fcn.14011e220
mov r10, qword [rsp + 0x38]
cmp qword [r10 + 0x40], 0
je 0x1400b015e
mov rax, qword [rsi]
mov rcx, qword [rsp + 0xc8]
mov qword [rcx], rax
sub rbx, qword [rsi]
mov rax, qword [rsp + 0xd0]
mov dword [rax], ebx
mov eax, r12d
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r8, [rax + 2]
mov rax, rbx
lea rdx, [r10 + 0x38]
lea rcx, [r10 + 0x40]
mov qword [rsp + 0x38], r10
movzx r12d, dil
sub rax, r8
mov qword [rsi], r8
mov r8, rax
call fcn.14011e220
mov r10, qword [rsp + 0x38]
mov rax, qword [r10 + 0x40]
test rax, rax
mov qword [rsp + 0x38], rax
je 0x1400b015e
cmp dil, 0xda
jne 0x1400afcb8
mov eax, dword [r10 + 0x38c]
test eax, eax
jne 0x1400afe3a
mov rax, qword [r10 + 8]
mov rdi, qword [rsi]
cmp dword [rax + 0x18], 0x64
je 0x1400b0175
mov rdx, rdi
mov r14, r10
cmp rbx, rdi
jbe 0x1400b0153
cmp byte [rdi], 0xff
lea rax, [rdi + 1]
jne 0x1400afd7e
jmp 0x1400b00b2
add rax, 1
cmp byte [rax - 1], 0xff
je 0x1400b00b2
cmp rbx, rax
jne 0x1400afd70
mov r10, r14
cmp rdx, rbx
jae 0x1400afdb8
sub rbx, rdx
test rbx, rbx
jle 0x1400afdb8
mov rdi, qword [rsp + 0x38]
mov qword [rsp + 0x40], r10
mov r8, rbx
mov rcx, rdi
call sub.msvcrt.dll_memcpy
mov rax, rdi
mov r10, qword [rsp + 0x40]
add rax, rbx
mov qword [rsp + 0x38], rax
mov rax, qword [r10 + 0x40]
mov rcx, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0x38]
mov r9, rbp
lea r8, str.escaping_removed__td_bytes_n
mov qword [rcx], rax
mov rax, qword [r10 + 0x40]
mov rdx, rbx
mov rcx, qword [rsp + 0xd0]
sub rdx, rax
mov dword [rcx], edx
movsxd rdx, edx
add rax, rdx
mov edx, 0x30
lea rdi, [rax + 8]
mov qword [rax], 0
mov qword [rax + 0x38], 0
and rdi, 0xfffffffffffffff8
sub rax, rdi
lea ecx, [rax + 0x40]
xor eax, eax
shr ecx, 3
rep stosq qword [rdi], rax
mov rax, rbx
sub r9, qword [rsi]
sub rax, qword [r10 + 0x40]
mov rcx, qword [r10 + 8]
sub r9, rax
call fcn.14036cf30
mov eax, 0xda
jmp 0x1400afcd6
mov r11, qword [rsi]
xor edi, edi
movsxd rax, edi
add rax, r11
jmp 0x1400afe61
add rax, 1
add edi, 1
cmp byte [rax - 1], 0xff
je 0x1400b004a
mov r15, rax
sub r15, r11
cmp rbx, rax
ja 0x1400afe50
lea eax, [rdi*8]
mov dword [rsp + 0x5c], eax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], r11
mov ebp, 0x20
xor ebx, ebx
xor r12d, r12d
mov qword [rsp + 0xb0], r10
add r15, rax
mov rsi, rax
mov r11, r15
mov r15d, edi
cmp r12d, r15d
jge 0x1400aff47
movsxd r13, r12d
mov eax, r15d
add r13, qword [rsp + 0x50]
jmp 0x1400afefb
mov rdx, r11
sub rdx, rsi
cmp rdx, 3
jle 0x1400aff20
mov ecx, ebp
mov edx, r15d
add rsi, 4
shl ebx, cl
mov ecx, 8
sub ecx, ebp
shr edx, cl
or ebx, edx
bswap ebx
mov dword [rsi - 4], ebx
add ebp, 0x18
mov ebx, r15d
cmp r14b, 0xff
jne 0x1400afef0
cmp edi, eax
jl 0x1400affe8
add r13, 1
cmp edi, eax
mov r12d, edi
je 0x1400aff47
movzx r15d, byte [r13]
cmp ebp, 8
lea edi, [r12 + 1]
mov r14d, r15d
jle 0x1400afeb5
shl ebx, 8
sub ebp, 8
or ebx, r15d
jmp 0x1400afee2
lea r8, [0x1403eb1d8]
mov edx, 0x10
xor ecx, ecx
mov qword [rsp + 0x48], r11
mov dword [rsp + 0x40], eax
call fcn.14036cf30
mov r11, qword [rsp + 0x48]
mov eax, dword [rsp + 0x40]
jmp 0x1400afedc
cmp ebp, 0x20
mov r15, r11
mov r10, qword [rsp + 0xb0]
je 0x1400aff8f
mov ecx, ebp
shl ebx, cl
cmp rsi, r11
jae 0x1400b01f8
mov edx, 0x1f
sub edx, ebp
shr edx, 3
add rdx, rsi
jmp 0x1400aff80
add rsi, 1
cmp rsi, r15
je 0x1400b01f8
mov eax, ebx
shl ebx, 8
shr eax, 0x18
cmp rdx, rsi
mov byte [rsi], al
jne 0x1400aff73
mov rax, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0x38]
mov qword [rax], rsi
mov eax, dword [rsp + 0x5c]
mov rsi, qword [rsp + 0xd0]
add eax, 7
sar eax, 3
mov dword [rsi], eax
cdqe
add rax, qword [r10 + 0x40]
lea rdi, [rax + 8]
mov qword [rax], 0
mov qword [rax + 0x38], 0
and rdi, 0xfffffffffffffff8
sub rax, rdi
lea ecx, [rax + 0x40]
xor eax, eax
shr ecx, 3
rep stosq qword [rdi], rax
mov eax, 0xda
jmp 0x1400afcd6
mov r15d, eax
mov rax, qword [rsp + 0x50]
movsxd rdi, edi
add r12d, 2
movzx edi, byte [rax + rdi]
test dil, dil
js 0x1400b01be
cmp ebp, 7
movzx edi, dil
jg 0x1400b0168
mov rax, r11
sub rax, rsi
cmp rax, 3
jle 0x1400b019c
mov ecx, ebp
mov eax, edi
add rsi, 4
shl ebx, cl
mov ecx, 7
sub ecx, ebp
shr eax, cl
or ebx, eax
bswap ebx
mov dword [rsi - 4], ebx
add ebp, 0x19
mov ebx, edi
sub dword [rsp + 0x5c], 1
jmp 0x1400afe9f
movsxd rdx, edi
lea rax, [r11 + rdx]
cmp rbx, rax
jbe 0x1400b0089
lea rdx, [r11 + rdx + 1]
nop dword [rax + rax]
movzx ecx, byte [rax]
add edi, 1
cmp cl, 0xff
sete r9b
cmp rbx, rdx
seta r8b
add rdx, 1
add rax, 1
test r9b, r8b
jne 0x1400b0060
test cl, cl
jns 0x1400afe3f
cmp edi, 2
mov eax, 2
cmovle eax, edi
sub edi, eax
lea eax, [rdi*8]
cmp edi, 0xffffffff
mov dword [rsp + 0x5c], eax
je 0x1400aff8f
movsxd r15, edi
jmp 0x1400afe77
cmp rbx, rax
mov rdi, rax
ja 0x1400b00c6
jmp 0x1400b01ed
cmp r12b, 0xff
jne 0x1400b00da
add rdi, 1
movzx r12d, byte [rdi - 1]
mov rcx, rdi
sub rcx, rax
cmp rbx, rdi
ja 0x1400b00c0
cmp rcx, 1
jle 0x1400b0110
mov r13, rdi
sub r13, rdx
sub r13, rcx
test r13, r13
jle 0x1400b010c
mov r15, qword [rsp + 0x38]
mov r8, r13
mov rcx, r15
call sub.msvcrt.dll_memcpy
mov rax, r15
mov rdx, rdi
add rax, r13
mov qword [rsp + 0x38], rax
sub rdx, 1
lea eax, [r12 + 0x30]
cmp al, 7
jbe 0x1400afd59
mov r13, rdi
sub r13, rdx
sub r13, 1
test r13, r13
jle 0x1400b014a
mov r15, qword [rsp + 0x38]
mov r8, r13
mov rcx, r15
call sub.msvcrt.dll_memcpy
mov rax, r15
mov rdx, rdi
add rax, r13
mov qword [rsp + 0x38], rax
test r12b, r12b
je 0x1400afd59
mov r10, r14
mov rbx, rdi
jmp 0x1400afd86
mov eax, 0xfffffff4
jmp 0x1400afcd6
shl ebx, 7
sub ebp, 7
or ebx, edi
jmp 0x1400b0040
mov rcx, qword [rsp + 0x38]
sub rbx, rdi
test rbx, rbx
mov rax, rcx
jle 0x1400afdbc
mov rdx, rdi
mov qword [rsp + 0x40], r10
mov r8, rbx
mov rdi, rcx
jmp 0x1400afda3
lea r8, [0x1403eb1d8]
mov edx, 0x10
xor ecx, ecx
mov qword [rsp + 0x40], r11
call fcn.14036cf30
mov r11, qword [rsp + 0x40]
jmp 0x1400b003b
mov rax, qword [rsp + 0xb0]
lea r8, str.Invalid_escape_sequence_n
mov edx, 0x18
mov qword [rsp + 0x40], r11
and edi, 0x7f
mov rcx, qword [rax + 8]
call fcn.14036cf30
mov r11, qword [rsp + 0x40]
jmp 0x1400b0004
mov r12d, 0xffffffff
jmp 0x1400b011d
lea rax, [0x1403eb234]
lea r9, [0x1403eb21c]
lea r8, [0x1403ea9be]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0x6c
mov qword [rsp + 0x20], rax
call fcn.14036cf30
call sub.msvcrt.dll_abort
nop
nop dword [rax]
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x198
mov rax, qword [r9 + 0x18]
mov r13, qword [rcx + 0x20]
mov qword [rsp + 0x1e0], rcx
mov qword [rsp + 0x1e8], rdx
mov qword [rsp + 0x1f0], r8
mov qword [rsp + 0xb0], rax
mov eax, dword [r9 + 0x20]
mov dword [rsp + 0xbc], eax
mov dword [r13 + 0x30], eax
lea rax, [r13 + 0x8e0]
mov rcx, rax
mov qword [rsp + 0xc0], rax
call fcn.1403549c0
lea rax, [r13 + 0x8e8]
mov rcx, rax
mov qword [rsp + 0xc8], rax
call fcn.14036dc30
mov edx, dword [r13 + 0x908]
mov dword [r13 + 0x3b4], 0xffffffff
test edx, edx
jne 0x1400b08d8
movsxd rax, dword [rsp + 0xbc]
mov rdi, qword [rsp + 0xb0]
lea rsi, [rsp + 0xfc]
mov rbx, r13
mov qword [rsp + 0xd8], rsi
mov qword [rsp + 0x100], rdi
add rax, rdi
mov qword [rsp + 0x50], rax
mov rax, rdi
lea rdi, [rsp + 0x108]
mov qword [rsp + 0x78], rdi
lea rdi, [rsp + 0x100]
mov qword [rsp + 0x80], rdi
lea rdi, [rsp + 0xf4]
mov qword [rsp + 0x88], rdi
lea rdi, [rsp + 0x150]
mov qword [rsp + 0xd0], rdi
lea rdi, [rsp + 0xf8]
mov qword [rsp + 0xe0], rdi
jmp 0x1400b0439
mov r9d, dword [rbx + 0x4d0]
test r9d, r9d
je 0x1400b08b5
mov r10d, dword [rbx + 0x8c4]
test r10d, r10d
je 0x1400b08b5
mov rcx, qword [rsp + 0x1e0]
lea r8, str.EOI_missing__emulating_n
mov edx, 0x18
call fcn.14036cf30
mov rax, qword [rsp + 0x1e0]
cmp qword [rax + 0x2a0], 0
je 0x1400b0597
mov eax, dword [rbx + 0x4d0]
mov dword [rbx + 0x8c4], 0
test eax, eax
je 0x1400b05d8
mov edi, dword [rbx + 0x380]
test edi, edi
je 0x1400b0941
mov eax, dword [rbx + 0x384]
mov esi, dword [rbx + 0x8b8]
xor edx, edx
xor eax, 1
test esi, esi
sete dl
mov dword [rbx + 0x384], eax
cmp eax, edx
jne 0x1400b0941
mov rcx, qword [rsp + 0x100]
mov edx, dword [rbx + 0x20]
lea eax, [rdx + 0xe]
mov r9d, edx
lea r8, str.marker_parser_used__d_bytes___d_bits__n
add r9d, 7
mov dword [rsp + 0x20], edx
mov edx, 0x30
cmovs r9d, eax
sar r9d, 3
movsxd rax, r9d
add rax, rcx
mov rcx, qword [rsp + 0x1e0]
mov qword [rsp + 0x100], rax
call fcn.14036cf30
mov rax, qword [rsp + 0x100]
cmp qword [rsp + 0x50], rax
jbe 0x1400b0350
mov rax, qword [rsp + 0x88]
mov r9, qword [rsp + 0x78]
mov rcx, rbx
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
call fcn.1400afc30
test eax, eax
mov ebp, eax
js 0x1400b0350
mov eax, dword [rsp + 0xf4]
cmp eax, 0xfffffff
jg 0x1400b16d6
mov rax, qword [rsp + 0x50]
sub rax, qword [rsp + 0x100]
lea r8, str.marker_x_avail_size_in_buf_td_n
mov rcx, qword [rsp + 0x1e0]
mov r9d, ebp
mov edx, 0x30
mov qword [rsp + 0x20], rax
call fcn.14036cf30
mov eax, dword [rsp + 0xf4]
cmp eax, 0xfffffff
ja 0x1400b0601
shl eax, 3
mov rdx, qword [rsp + 0x108]
cmp eax, 0x7ffffdfe
ja 0x1400b0601
test rdx, rdx
je 0x1400b0601
lea ecx, [rax + 8]
mov dword [rbx + 0x24], eax
sar eax, 3
cdqe
mov qword [rbx + 0x10], rdx
mov dword [rbx + 0x20], 0
add rax, rdx
mov dword [rbx + 0x28], ecx
mov dword [rbx + 0x34], ebp
mov qword [rbx + 0x18], rax
mov rax, qword [rbx + 8]
test byte [rax + 0x28d], 1
jne 0x1400b0666
lea eax, [rbp - 0xd0]
cmp eax, 7
jbe 0x1400b0691
lea eax, [rbp - 0xe0]
cmp eax, 0xf
jbe 0x1400b06d8
cmp ebp, 0xfe
je 0x1400b0f00
cmp ebp, 0xdb
je 0x1400b0eea
lea eax, [rbp - 0xf7]
cmp eax, 1
jbe 0x1400b165f
mov rax, qword [rsp + 0x1e0]
mov r8d, dword [rax + 0x344]
lea eax, [rbp - 0xc0]
cmp r8d, 0x30
je 0x1400b06b6
cmp eax, 0x38
ja case.0x1400b0595.12
lea rdx, [0x1403ebcac]
movsxd rax, dword [rdx + rax*4]
add rdx, rax
jmp rdx
cmp dword [rax + 0x344], 0x30
je 0x1400b039f
mov edx, dword [rbx + 0x390]
test edx, edx
je 0x1400b039f
mov eax, dword [rbx + 0x8c4]
test eax, eax
je 0x1400b039f
mov eax, dword [rbx + 0x4d0]
test eax, eax
jne 0x1400b1091
mov dword [rbx + 0x8c4], 0
mov rcx, qword [rsp + 0x1e0]
lea r8, str.Found_EOI_before_any_SOF__ignoring_n
mov edx, 0x18
call fcn.14036cf30
mov rcx, qword [rsp + 0x100]
mov edx, dword [rbx + 0x20]
jmp 0x1400b03f4
mov rcx, qword [rsp + 0x1e0]
lea r8, str.invalid_buffer_n
mov qword [rbx + 0x10], 0
mov dword [rbx + 0x24], 0
mov dword [rbx + 0x28], 8
mov edx, 0x10
mov qword [rbx + 0x18], 0
mov dword [rbx + 0x20], 0
mov r13, rbx
call fcn.14036cf30
mov eax, 0xbebbb1b7
mov dword [r13 + 0x4d0], 0
add rsp, 0x198
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x1e0]
lea r8, str.startcode:__X_n
mov r9d, ebp
mov edx, 0x30
call fcn.14036cf30
lea eax, [rbp - 0xd0]
cmp eax, 7
ja 0x1400b0529
mov rcx, qword [rsp + 0x1e0]
mov r9d, ebp
lea r8, str.restart_marker:__d_n
and r9d, 0xf
mov edx, 0x30
call fcn.14036cf30
jmp 0x1400b0550
cmp eax, 0x37
ja case.0x1400b0595.12
movabs rdx, 0x8000000700000f
bt rdx, rax
jae case.0x1400b0595.12
jmp 0x1400b057e
mov eax, dword [rbx + 0x20]
mov r8, qword [rbx + 0x10]
mov r9d, dword [rbx + 0x28]
mov edx, eax
mov ecx, eax
add eax, 0x10
shr edx, 3
and ecx, 7
mov edx, dword [r8 + rdx]
bswap edx
shl edx, cl
mov esi, edx
shr esi, 0xf0
cmp r9d, eax
cmovbe eax, r9d
cmp esi, 5
mov dword [rbx + 0x20], eax
jle 0x1400b0e98
mov edx, dword [rbx + 0x24]
lea ecx, [rsi*8]
sub edx, eax
cmp ecx, edx
jg 0x1400b0e98
mov edx, eax
mov ecx, eax
add eax, 0x10
shr edx, 3
and ecx, 7
lea r14d, [rsi - 6]
mov edx, dword [r8 + rdx]
bswap edx
shl edx, cl
shr edx, 0xf0
cmp eax, r9d
cmova eax, r9d
mov ecx, eax
mov dword [rbx + 0x20], eax
shr ecx, 3
mov r8d, dword [r8 + rcx]
mov ecx, eax
add eax, 0x10
and ecx, 7
bswap r8d
shl r8d, cl
mov ecx, r8d
shr ecx, 0xf0
cmp eax, r9d
cmova eax, r9d
shl edx, 0x10
mov dword [rbx + 0x20], eax
mov rax, qword [rbx + 8]
or edx, ecx
mov r12d, edx
mov edi, edx
test byte [rax + 0x28d], 1
je 0x1400b07e9
lea rcx, [rsp + 0x130]
bswap edx
mov qword [rsp + 0x130], 0
mov qword [rsp + 0x138], 0
mov qword [rsp + 0x140], 0
mov qword [rsp + 0x148], 0
call fcn.14037f4d0
mov rcx, qword [rbx + 8]
lea r8, str.APPx___s____8X__len_d_n
mov r9, rax
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r12d
mov edx, 0x30
call fcn.14036cf30
cmp r12d, 0x41564931
je 0x1400b1682
cmp r12d, 0x4a464946
je 0x1400b14d1
cmp r12d, 0x41646f62
je 0x1400b13b0
cmp r12d, 0x4c4a4946
je 0x1400b0dcd
cmp r12d, 0x726c6f63
jne 0x1400b1cc2
test r14d, r14d
je 0x1400b2652
mov edx, dword [rbx + 0x20]
mov rcx, qword [rbx + 0x10]
mov eax, edx
shr eax, 3
mov eax, dword [rcx + rax]
mov ecx, edx
add edx, 8
and ecx, 7
bswap eax
shl eax, cl
mov rcx, qword [rbx + 8]
mov r9d, eax
shr r9d, 0xf8
cmp dword [rbx + 0x28], edx
mov dword [rbx + 0x3ac], r9d
cmovbe edx, dword [rbx + 0x28]
test byte [rcx + 0x28c], 1
mov dword [rbx + 0x20], edx
jne 0x1400b263c
lea r14d, [rsi - 7]
test r14d, r14d
js 0x1400b1ca8
lea ecx, [r14 - 1]
test ecx, ecx
jle 0x1400b0550
mov eax, dword [rbx + 0x20]
mov edx, dword [rbx + 0x28]
nop word cs:[rax + rax]
add eax, 8
cmp eax, edx
cmova eax, edx
sub ecx, 1
jne 0x1400b08a0
mov dword [rbx + 0x20], eax
jmp 0x1400b0550
mov rcx, qword [rsp + 0x1e0]
lea r8, str.No_JPEG_data_found_in_image_n
mov edx, 8
call fcn.14036cf30
mov eax, 0xbebbb1b7
jmp 0x1400b0652
mov rax, qword [r13 + 0x8f8]
test rax, rax
je 0x1400b090e
test edx, edx
jle 0x1400b090e
xor esi, esi
xor ebx, ebx
jmp 0x1400b08f5
mov rax, qword [r13 + 0x8f8]
lea rcx, [rax + rsi]
add ebx, 1
add rsi, 8
call fcn.14036dc30
cmp ebx, dword [r13 + 0x908]
jl 0x1400b08ee
lea rcx, [r13 + 0x8f8]
call fcn.14036dc30
lea rcx, [r13 + 0x900]
call fcn.14036dc30
mov dword [r13 + 0x90c], 0
mov dword [r13 + 0x908], 0
jmp 0x1400b02c2
mov rax, qword [rsp + 0x1e0]
mov r13, rbx
cmp dword [rax + 0x344], 0x30
je 0x1400b1053
mov rcx, qword [rbx + 8]
mov rax, qword [rcx + 0x2a0]
test rax, rax
je 0x1400b0980
call qword [rax + 0x38]
test eax, eax
js 0x1400b0652
lea rcx, [rbx + 0x11b8]
call fcn.14036dc30
mov rdx, qword [r13 + 0x4c8]
mov rcx, qword [rsp + 0x1e8]
call fcn.140366090
test eax, eax
js 0x1400b0652
mov rax, qword [rsp + 0x1f0]
mov dword [rax], 1
mov r11d, dword [r13 + 0x388]
mov dword [r13 + 0x4d0], 0
test r11d, r11d
je 0x1400b1a52
mov rax, qword [r13 + 8]
mov ecx, dword [rax + 0x88]
call fcn.1403768d0
mov r9d, dword [r13 + 0x398]
test r9d, r9d
jne 0x1400b1830
mov r8d, dword [r13 + 0x39c]
test r8d, r8d
je 0x1400b176c
mov rax, qword [rsp + 0x1e0]
mov eax, dword [rax + 0x88]
cmp eax, 0x21
ja 0x1400b170b
movabs rdx, 0x380007031
bt rdx, rax
jae 0x1400b1727
mov rax, qword [r13 + 8]
lea rdx, [rsp + 0xfc]
lea r8, [rsp + 0x110]
mov ecx, dword [rax + 0x88]
call fcn.1403769a0
test eax, eax
jne 0x1400b0652
mov rax, qword [r13 + 0x4c8]
mov ebx, dword [r13 + 0x3e0]
mov ecx, dword [rax + 0x74]
call fcn.1403769e0
cmp ebx, eax
jne 0x1400b2665
mov eax, dword [r13 + 0x3e0]
test eax, eax
jle 0x1400b176c
lea r15, [r13 + 0x39c]
lea rdi, [r13 + 0x4d4]
xor r14d, r14d
cmp byte [r15], 0
mov ebx, dword [r13 + 0x3d0]
mov esi, dword [r13 + 0x3d4]
je 0x1400b1757
lea edx, [r14 - 1]
cmp edx, 1
jbe 0x1400b269d
mov r11d, dword [rdi]
sub esi, 1
mov rdx, qword [r13 + 0x4c8]
mov r9d, esi
movsxd r12, r14d
imul r9d, r11d
mov rcx, qword [rdx + r12*8]
movsxd r9, r9d
add r9, rcx
test esi, esi
je 0x1400b1757
movsxd rax, ebx
mov ebp, esi
mov qword [rsp + 0x48], rax
lea eax, [rbp + 1]
mov edx, ebp
shr edx, 0x1f
mov r8d, eax
add edx, ebp
shr r8d, 0x1f
sar edx, 1
add eax, r8d
sar eax, 1
imul eax, r11d
imul edx, r11d
cdqe
movsxd rdx, edx
lea r8, [rcx + rax]
add rdx, rcx
cmp rdx, r8
je 0x1400b2685
cmp esi, ebp
je 0x1400b2685
xor ecx, ecx
test ebx, ebx
jle 0x1400b0b3d
movzx r10d, byte [rdx + rcx]
movzx eax, byte [r8 + rcx]
add eax, r10d
sar eax, 1
mov byte [r9 + rcx], al
add rcx, 1
cmp ebx, ecx
jg 0x1400b0b1f
mov r11d, dword [rdi]
movsxd rax, r11d
sub r9, rax
sub ebp, 1
je 0x1400b1750
mov rax, qword [r13 + 0x4c8]
mov rcx, qword [rax + r12*8]
jmp 0x1400b0adc
cmp ebp, 0xc0
mov rax, qword [rbx + 8]
je 0x1400b1650
mov dword [rax + 0x334], 0xc1
mov dword [rbx + 0x388], 0
mov dword [rbx + 0x38c], 0
mov dword [rbx + 0x390], 0
mov rcx, rbx
call fcn.1400ab7f0
test eax, eax
jns case.0x1400b0595.12
mov r13, rbx
jmp 0x1400b0647
mov rax, qword [rbx + 8]
mov rcx, rbx
mov dword [rax + 0x334], 0xc2
mov dword [rbx + 0x388], 0
mov dword [rbx + 0x38c], 0
mov dword [rbx + 0x390], 1
call fcn.1400ab7f0
test eax, eax
jns case.0x1400b0595.12
jmp 0x1400b0ba1
mov rcx, rbx
call fcn.1400aae10
test eax, eax
jns case.0x1400b0595.12
mov rcx, qword [rsp + 0x1e0]
lea r8, str.huffman_table_decode_error_n
mov edx, 0x10
mov dword [rsp + 0x48], eax
mov r13, rbx
call fcn.14036cf30
mov eax, dword [rsp + 0x48]
jmp 0x1400b0647
mov rcx, qword [rsp + 0x1e0]
lea r8, str.mjpeg:_unsupported_coding_type___x__n
mov r9d, ebp
mov edx, 0x10
call fcn.14036cf30
jmp case.0x1400b0595.12
mov rax, qword [rbx + 8]
mov dword [rax + 0x334], 0xc3
or dword [rax + 0x3d8], 1
mov dword [rbx + 0x388], 1
mov dword [rbx + 0x38c], 0
jmp 0x1400b0b87
mov rcx, qword [rsp + 0x100]
mov rax, qword [rsp + 0x50]
mov dword [rbx + 0x8a8], 0
mov dword [rbx + 0x8ac], 0
mov edx, dword [rbx + 0x20]
sub rax, rcx
mov qword [rbx + 0x910], rcx
mov qword [rbx + 0x918], rax
jmp 0x1400b03f4
mov rcx, qword [rsp + 0x100]
mov rax, qword [rsp + 0x50]
add dword [rbx + 0x8c4], 1
sub rax, rcx
cmp r8d, 0x30
mov qword [rbx + 0x920], rcx
mov qword [rbx + 0x928], rax
jne 0x1400b1021
mov edx, dword [rbx + 0x24]
cmp dword [rbx + 0x28], edx
cmovbe edx, dword [rbx + 0x28]
mov dword [rbx + 0x20], edx
jmp 0x1400b03f4
mov r9d, dword [rbx + 0x20]
mov r10, qword [rbx + 0x10]
mov r8d, dword [rbx + 0x28]
mov eax, r9d
mov ecx, r9d
shr eax, 3
and ecx, 7
mov eax, dword [r10 + rax]
bswap eax
shl eax, cl
mov edx, eax
lea eax, [r9 + 0x10]
shr edx, 0xf0
cmp r8d, eax
cmovbe eax, r8d
cmp edx, 4
mov dword [rbx + 0x20], eax
jne 0x1400b1d32
mov edx, eax
mov ecx, eax
add eax, 0x10
shr edx, 3
and ecx, 7
mov edx, dword [r10 + rdx]
mov dword [rbx + 0x8ac], 0
bswap edx
shl edx, cl
mov rcx, qword [rbx + 8]
mov r9d, edx
mov edx, 0x30
shr r9d, 0xf0
cmp eax, r8d
mov dword [rbx + 0x8a8], r9d
cmova eax, r8d
lea r8, str.restart_interval:__d_n
mov dword [rbx + 0x20], eax
call fcn.14036cf30
mov rcx, qword [rsp + 0x100]
mov edx, dword [rbx + 0x20]
jmp 0x1400b03f4
mov r13, rbx
mov eax, 0xffffffff
jmp 0x1400b0647
mov rax, qword [rbx + 8]
mov dword [rax + 0x334], 0xf7
or dword [rax + 0x3d8], 1
mov dword [rbx + 0x388], 1
mov dword [rbx + 0x38c], 1
jmp 0x1400b0b87
mov rcx, qword [rbx + 8]
mov r12d, dword [rbx + 0x394]
mov edi, dword [rbx + 0x3a4]
test byte [rcx + 0x28c], 1
jne 0x1400b2316
mov eax, dword [rbx + 0x20]
mov edx, dword [rbx + 0x28]
mov r8, qword [rbx + 0x10]
add eax, 0x10
cmp edx, eax
cmovbe eax, edx
add eax, 0x10
cmp eax, edx
cmova eax, edx
add eax, 0x10
cmp eax, edx
cmova eax, edx
add eax, 0x10
cmp eax, edx
cmova eax, edx
mov ecx, eax
mov dword [rbx + 0x20], eax
shr ecx, 3
mov r8d, dword [r8 + rcx]
mov ecx, eax
add eax, 8
and ecx, 7
bswap r8d
shl r8d, cl
mov r9d, r8d
shr r9d, 0xf8
cmp eax, edx
cmova eax, edx
cmp r9d, 1
mov dword [rbx + 0x20], eax
je 0x1400b1c9b
cmp r9d, 2
jne 0x1400b1c81
mov edi, 1
mov r12d, 1
mov r8d, dword [rbx + 0x4d0]
lea r14d, [rsi - 0xf]
test r8d, r8d
je 0x1400b1c6f
cmp dword [rbx + 0x394], r12d
je 0x1400b1c63
mov rcx, qword [rbx + 8]
lea r8, str.Mismatching_LJIF_tag_n
mov edx, 0x18
call fcn.14036cf30
jmp 0x1400b087b
mov r9d, 0xbebbb1b7
mov rsi, qword [rsp + 0xd0]
lea rdi, [rsp + 0x150]
xor eax, eax
mov ecx, 8
mov r8d, 0x40
rep stosq qword [rdi], rax
mov rdx, rsi
mov ecx, r9d
call fcn.1403561a0
mov rcx, qword [rsp + 0x1e0]
lea r8, str.unable_to_decode_APP_fields:__s_n
mov r9, rsi
mov edx, 0x10
call fcn.14036cf30
jmp 0x1400b0550
mov rcx, rbx
call fcn.1400aabd0
test eax, eax
jns 0x1400b0550
jmp 0x1400b0652
mov eax, dword [rbx + 0x20]
mov rcx, qword [rbx + 0x10]
mov edx, eax
shr edx, 3
mov edx, dword [rcx + rdx]
mov ecx, eax
add eax, 0x10
and ecx, 7
bswap edx
shl edx, cl
mov r13d, edx
shr r13d, 0xf0
cmp dword [rbx + 0x28], eax
cmovbe eax, dword [rbx + 0x28]
cmp r13d, 1
mov dword [rbx + 0x20], eax
jle 0x1400b0550
lea esi, [r13 - 2]
mov edi, dword [rbx + 0x24]
lea edx, [rsi*8]
sub edi, eax
cmp edx, edi
jg 0x1400b0550
lea ecx, [r13 - 1]
movsxd rcx, ecx
call fcn.14036d890
test rax, rax
mov r12, rax
je 0x1400b2632
test esi, esi
je 0x1400b262b
mov rdx, rax
lea eax, [r13 - 3]
lea r8, [r12 + rax + 1]
mov r9d, dword [rbx + 0x20]
mov rcx, qword [rbx + 0x10]
mov eax, r9d
shr eax, 3
mov eax, dword [rcx + rax]
mov ecx, r9d
add r9d, 8
and ecx, 7
bswap eax
shl eax, cl
shr eax, 0xf8
cmp dword [rbx + 0x28], r9d
cmovbe r9d, dword [rbx + 0x28]
add rdx, 1
mov dword [rbx + 0x20], r9d
mov byte [rdx - 1], al
cmp rdx, r8
jne 0x1400b0f7a
movsxd rax, esi
lea rdx, [r12 + rax - 1]
cmp byte [rdx], 0xa
je 0x1400b2767
mov byte [r12 + rax], 0
mov rcx, qword [rbx + 8]
test byte [rcx + 0x28c], 1
jne 0x1400b274e
lea rdi, str.AVID
mov ecx, 4
mov rsi, r12
repe cmpsb byte [rsi], byte [rdi]
je 0x1400b26cb
lea rdi, [0x1403eb677]
mov ecx, 0xa
mov rsi, r12
repe cmpsb byte [rsi], byte [rdi]
jne 0x1400b2298
mov dword [rbx + 0x8b4], 1
mov rcx, r12
call fcn.14036dc20
jmp 0x1400b0550
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.1400ace60
test eax, eax
jns case.0x1400b0595.12
mov rsi, qword [rsp + 0x1e0]
test byte [rsi + 0x290], 8
je case.0x1400b0595.12
jmp 0x1400b0ba1
mov dword [rbx + 0x4d0], 0
mov rcx, rax
mov r9, qword [rsp + 0x50]
sub r9, qword [rsp + 0x100]
lea r8, str.decode_frame_unused__td_bytes_n
mov edx, 0x30
call fcn.14036cf30
mov eax, dword [rsp + 0x100]
sub eax, dword [rsp + 0xb0]
jmp 0x1400b0652
xor eax, eax
cmp dword [rbx + 0x3a8], 9
setge al
cmp dword [rbx + 0x388], 1
lea eax, [rax*8 + 8]
mov dword [rsp + 0x48], eax
sbb eax, eax
and eax, 7
add eax, 1
mov dword [rsp + 0xec], eax
mov eax, dword [rbx + 0x3e0]
test eax, eax
jle 0x1400b26bc
lea rax, [rbx + 0x4d4]
mov dword [rsp + 0xe8], 0
mov edi, 8
mov qword [rsp + 0x68], rax
lea rax, [rbx + 0x5c0]
mov qword [rsp + 0x70], rax
mov r9d, dword [rsp + 0xe8]
mov rax, qword [rbx + 0x4c8]
mov rsi, qword [rsp + 0x68]
mov r15d, dword [rsp + 0xec]
movsxd rdx, r9d
mov rax, qword [rax + rdx*8]
movsxd r12, dword [rsi]
mov qword [rsp + 0x90], rax
mov eax, dword [rbx + 0x494]
cdq
idiv dword [rsi - 0xd0]
imul eax, r15d
mov ecx, eax
add eax, dword [rbx + 0x3d0]
sub eax, 1
cdq
idiv ecx
mov dword [rsp + 0xb8], eax
mov eax, dword [rbx + 0x498]
cdq
idiv dword [rsi - 0xc0]
imul eax, r15d
mov ecx, eax
add eax, dword [rbx + 0x3d4]
sub eax, 1
cdq
idiv ecx
mov dword [rsp + 0x98], eax
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0xffffffffffffffff
je 0x1400b118e
mov rcx, qword [rbx + 8]
lea r8, str.component__d_is_incomplete_n
mov edx, 0x18
call fcn.14036cf30
mov eax, dword [rbx + 0x380]
test eax, eax
je 0x1400b11b1
mov eax, dword [rbx + 0x384]
test eax, eax
je 0x1400b11b1
mov eax, r12d
sar eax, 1
cdqe
add qword [rsp + 0x90], rax
mov eax, dword [rsp + 0x98]
test eax, eax
jle 0x1400b1384
mov rax, qword [rbx + 8]
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x5c], 0
mov r14d, dword [rax + 0x300]
lea eax, [r12*8]
mov dword [rsp + 0xa0], eax
mov eax, dword [rsp + 0xb8]
sub eax, 1
add rax, 1
shl rax, 7
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x68]
mov ebp, dword [rsp + 0x5c]
mov ecx, r14d
mov r13d, dword [rsp + 0x60]
mov r15d, dword [rsp + 0xb8]
imul ebp, dword [rax - 0xf0]
mov rax, qword [rsp + 0x70]
sar r13d, cl
movsxd r13, r13d
add r13, qword [rsp + 0x90]
movsxd rbp, ebp
shl rbp, 7
add rbp, qword [rax - 0x40]
test r15d, r15d
jle 0x1400b1363
mov rax, qword [rsp + 0xa8]
lea rsi, [rbp + rax]
jmp 0x1400b127b
mov eax, dword [rsp + 0x48]
mov ecx, r14d
sub rbp, 0xffffffffffffff80
sar eax, cl
cdqe
add r13, rax
cmp rsi, rbp
je 0x1400b1363
mov r8, rbp
mov rdx, r12
mov rcx, r13
call qword [rbx + 0x850]
mov r8d, dword [rbx + 0x3a8]
mov rax, qword [rbx + 8]
test r8b, 7
mov r14d, dword [rax + 0x300]
je 0x1400b1260
mov r11d, edi
mov ecx, r14d
sar r11d, cl
cmp r8d, 8
jg 0x1400b1301
test r11d, r11d
jle 0x1400b1260
lea r15d, [r11 - 1]
mov r10, r13
xor r14d, r14d
lea r9, [r15 + r10]
mov rax, r10
jmp 0x1400b12db
mov r8d, dword [rbx + 0x3a8]
add rax, 1
movzx edx, byte [rax]
mov ecx, edi
sub ecx, r8d
shl edx, cl
cmp r9, rax
mov byte [rax], dl
jne 0x1400b12d0
add r14d, 1
add r10, r12
cmp r11d, r14d
je 0x1400b1353
mov r8d, dword [rbx + 0x3a8]
jmp 0x1400b12c0
test r11d, r11d
jle 0x1400b1260
lea eax, [r11 - 1]
mov ecx, 0x10
mov r9, r13
sub ecx, r8d
xor r10d, r10d
lea r15, [rax + rax + 2]
lea r8, [r15 + r9]
mov rax, r9
nop dword [rax + rax]
movzx edx, word [rax]
add rax, 2
shl edx, cl
mov word [rax - 2], dx
cmp rax, r8
jne 0x1400b1330
add r10d, 1
add r9, r12
cmp r11d, r10d
jne 0x1400b1321
jmp 0x1400b1260
mov rax, qword [rbx + 8]
mov r14d, dword [rax + 0x300]
jmp 0x1400b1260
add dword [rsp + 0x5c], 1
mov ecx, dword [rsp + 0xa0]
mov eax, dword [rsp + 0x5c]
add dword [rsp + 0x60], ecx
cmp dword [rsp + 0x98], eax
jne 0x1400b1204
add dword [rsp + 0xe8], 1
add qword [rsp + 0x68], 4
mov eax, dword [rsp + 0xe8]
add qword [rsp + 0x70], 8
cmp eax, dword [rbx + 0x3e0]
jl 0x1400b10f4
jmp 0x1400b039f
cmp r14d, 6
jle 0x1400b13e0
mov eax, dword [rbx + 0x20]
mov r10, qword [rbx + 0x10]
mov edx, eax
mov ecx, eax
shr edx, 3
and ecx, 7
mov r8d, dword [r10 + rdx]
bswap r8d
shl r8d, cl
mov edx, r8d
shr edx, 0xf8
cmp edx, 0x65
je 0x1400b1e95
mov eax, dword [rbx + 0x34]
cmp eax, 0xe3
je 0x1400b1f48
cmp eax, 0xe1
je 0x1400b2040
cmp eax, 0xe2
jne 0x1400b0884
cmp edi, 0x4943435f
jne 0x1400b087b
cmp r14d, 9
jle 0x1400b087b
mov edx, dword [rbx + 0x20]
mov rax, qword [rbx + 0x10]
lea esi, [r14 - 7]
mov r8d, dword [rbx + 0x28]
mov ecx, edx
shr ecx, 3
mov r9d, dword [rax + rcx]
mov ecx, edx
add edx, 0x10
and ecx, 7
bswap r9d
shl r9d, cl
shr r9d, 0xf0
cmp r8d, edx
cmovbe edx, r8d
mov ecx, edx
mov dword [rbx + 0x20], edx
shr ecx, 3
mov r10d, dword [rax + rcx]
mov ecx, edx
add edx, 0x10
and ecx, 7
bswap r10d
shl r10d, cl
shr r10d, 0xf0
cmp edx, r8d
cmova edx, r8d
mov ecx, edx
mov dword [rbx + 0x20], edx
shr ecx, 3
mov eax, dword [rax + rcx]
mov ecx, edx
add edx, 0x18
and ecx, 7
bswap eax
shl eax, cl
mov ecx, eax
mov eax, edx
shr ecx, 0xe8
cmp edx, r8d
cmova eax, r8d
shl r9d, 0x10
or r10d, r9d
mov dword [rbx + 0x20], eax
cmp r10d, 0x50524f46
jne 0x1400b14b4
cmp ecx, 0x494c45
je 0x1400b282d
mov rcx, qword [rbx + 8]
lea r8, str.Invalid_ICC_PROFILE_header_in_APP2_n
mov edx, 0x18
mov r14d, esi
call fcn.14036cf30
jmp 0x1400b0884
cmp r14d, 7
jle 0x1400b0884
mov eax, dword [rbx + 0x20]
mov edx, dword [rbx + 0x28]
mov r11, qword [rbx + 0x10]
mov r10, qword [rbx + 8]
add eax, 8
cmp edx, eax
cmovbe eax, edx
mov ecx, eax
mov dword [rbx + 0x20], eax
shr ecx, 3
mov r8d, dword [r11 + rcx]
mov ecx, eax
add eax, 8
and ecx, 7
bswap r8d
shl r8d, cl
mov r9d, r8d
shr r9d, 0xf8
cmp eax, edx
cmova eax, edx
mov ecx, eax
mov dword [rbx + 0x20], eax
shr ecx, 3
mov r8d, dword [r11 + rcx]
mov ecx, eax
add eax, 8
and ecx, 7
bswap r8d
shl r8d, cl
shr r8d, 0xf8
cmp eax, edx
cmova eax, edx
add eax, 8
cmp eax, edx
cmova eax, edx
mov ecx, eax
mov dword [rbx + 0x20], eax
shr ecx, 3
mov ecx, dword [r11 + rcx]
mov edi, ecx
mov ecx, eax
add eax, 0x10
and ecx, 7
bswap edi
shl edi, cl
mov ecx, edi
shr ecx, 0xf0
cmp eax, edx
mov edi, ecx
cmova eax, edx
mov dword [rbx + 0x20], eax
mov dword [r10 + 0xe8], ecx
mov ecx, eax
shr ecx, 3
mov r11d, dword [r11 + rcx]
mov ecx, eax
add eax, 0x10
and ecx, 7
bswap r11d
shl r11d, cl
mov ecx, r11d
shr ecx, 0xf0
cmp eax, edx
cmova eax, edx
test ecx, ecx
mov dword [rbx + 0x20], eax
mov dword [r10 + 0xec], ecx
jle 0x1400b1e73
test edi, edi
jle 0x1400b1e73
test byte [r10 + 0x28c], 1
jne 0x1400b1e4d
lea r14d, [rsi - 0xe]
cmp r14d, 1
jle 0x1400b087b
mov eax, dword [rbx + 0x20]
mov r8, qword [rbx + 0x10]
mov r10d, dword [rbx + 0x28]
mov edx, eax
mov ecx, eax
add eax, 8
shr edx, 3
and ecx, 7
mov edx, dword [r8 + rdx]
bswap edx
shl edx, cl
mov r9d, edx
shr r9d, 0xf8
cmp r10d, eax
cmovbe eax, r10d
mov edx, eax
mov dword [rbx + 0x20], eax
mov ecx, eax
shr edx, 3
and ecx, 7
add eax, 8
mov r8d, dword [r8 + rdx]
bswap r8d
mov edx, r8d
shl edx, cl
shr edx, 0xf8
cmp eax, r10d
cmova eax, r10d
test r9d, r9d
mov dword [rbx + 0x20], eax
je 0x1400b1640
test edx, edx
je 0x1400b1640
imul edx, r9d
lea eax, [rdx + rdx*2]
neg eax
lea edx, [rax + rsi - 0x18]
add eax, r14d
test edx, edx
cmovg r14d, eax
sub r14d, 2
jmp 0x1400b087b
mov dword [rax + 0x334], 0xc0
jmp 0x1400b0b73
mov rcx, qword [rsp + 0x1e0]
lea r8, str.JPEG_LS_support_not_enabled._n
mov edx, 0x10
call fcn.14036cf30
mov eax, 0xffffffd8
jmp 0x1400b0652
mov edx, dword [rbx + 0x20]
mov rcx, qword [rbx + 0x10]
lea r8, str.polarity__d_n
mov dword [rbx + 0x8b0], 1
lea r14d, [rsi - 7]
mov eax, edx
shr eax, 3
mov eax, dword [rcx + rax]
mov ecx, edx
add edx, 8
and ecx, 7
bswap eax
shl eax, cl
mov rcx, qword [rbx + 8]
mov r9d, eax
shr r9d, 0xf8
cmp dword [rbx + 0x28], edx
cmovbe edx, dword [rbx + 0x28]
mov dword [rbx + 0x20], edx
mov edx, 0x30
call fcn.14036cf30
jmp 0x1400b087b
mov esi, dword [rsp + 0xbc]
mov rcx, qword [rsp + 0x1e0]
lea r8, str.MJPEG_packet_0x_x_too_big___d__d___corrupt_data__n
mov dword [rsp + 0x20], eax
mov r9d, ebp
mov edx, 0x10
mov dword [rsp + 0x28], esi
call fcn.14036cf30
mov eax, 0xbebbb1b7
jmp 0x1400b0652
sub eax, 0x49
cmp eax, 0x28
ja 0x1400b1727
movabs rdx, 0x10000400101
bt rdx, rax
jb 0x1400b0a1f
lea rax, str.libavcodec_mjpegdec.c
mov dword [rsp + 0x28], 0xa13
lea r9, str.avctx__pix_fmt__AV_PIX_FMT_YUVJ444P__avctx__pix_fmt__AV_PIX_FMT_YUV444P__avctx__pix_fmt__AV_PIX_FMT_YUVJ422P__avctx__pix_fmt__AV_PIX_FMT_YUV422P__avctx__pix_fmt__AV_PIX_FMT_YUVJ420P__avctx__pix_fmt__AV_PIX_FMT_YUV420P__avctx__pix_fmt__AV_PIX_FMT_YUV440P__avctx__pix_fmt__AV_PIX_FMT_YUVJ440P__avctx__pix_fmt__AV_PIX_FMT_YUVA444P__avctx__pix_fmt__AV_PIX_FMT_YUVA420P__avctx__pix_fmt__AV_PIX_FMT_YUVA420P16LE_avctx__pix_fmt__AV_PIX_FMT_GBRP__avctx__pix_fmt__AV_PIX_FMT_GBRAP
mov qword [rsp + 0x20], rax
jmp 0x1400b1e38
mov eax, dword [r13 + 0x3e0]
add r14d, 1
add r15, 1
add rdi, 4
cmp r14d, eax
jl 0x1400b0a84
mov ecx, dword [r13 + 0x8c8]
test ecx, ecx
je 0x1400b1786
mov edx, dword [r13 + 0x394]
test edx, edx
je 0x1400b232c
mov eax, dword [r13 + 0x3b4]
test eax, eax
jne 0x1400b1b33
mov rax, qword [r13 + 8]
cmp dword [rax + 0x88], 0x71
je 0x1400b1d3c
cmp qword [r13 + 0x8e8], 0
je 0x1400b17e0
mov rcx, qword [rsp + 0x1e8]
call fcn.14037e4a0
test rax, rax
je 0x1400b17d3
mov rdx, qword [r13 + 0x8e8]
mov ecx, dword [rdx]
mov edx, dword [rdx + 4]
mov dword [rax], ecx
mov dword [rax + 4], edx
mov rcx, qword [rsp + 0xc8]
call fcn.14036dc30
mov edx, dword [r13 + 0x908]
test edx, edx
je 0x1400b17f8
cmp edx, dword [r13 + 0x90c]
je 0x1400b278f
mov rax, qword [rsp + 0x1e8]
mov rdx, qword [r13 + 0x8e0]
xor r8d, r8d
lea rcx, [rax + 0x1b0]
call fcn.140354a20
mov rcx, qword [rsp + 0xc0]
call fcn.1403549c0
mov rcx, qword [rsp + 0x1e0]
jmp 0x1400b1060
mov rsi, qword [rsp + 0x1e0]
mov edx, dword [rsi + 0x88]
cmp edx, 0x2f
ja 0x1400b1af0
movabs rcx, 0x800380005021
bt rcx, rdx
jae 0x1400b1b0c
mov eax, dword [rax + 0x1c]
lea rdx, [rsp + 0xfc]
lea r8, [rsp + 0x110]
mov dword [rsp + 0x5c], eax
mov rax, qword [r13 + 8]
mov ecx, dword [rax + 0x88]
call fcn.1403769a0
test eax, eax
jne 0x1400b0652
mov rax, qword [r13 + 0x4c8]
mov ebx, dword [r13 + 0x3e0]
mov ecx, dword [rax + 0x74]
call fcn.1403769e0
cmp ebx, eax
jne 0x1400b25eb
mov eax, dword [r13 + 0x3e0]
test eax, eax
jle 0x1400b09e4
mov rdx, r13
mov rbp, r13
xor r14d, r14d
neg rdx
mov r15d, 0x55555556
lea rsi, [r13 + rdx*4]
mov qword [rsp + 0x48], rsi
movzx r8d, byte [rbp + 0x398]
test r8b, r8b
je 0x1400b2477
lea edx, [r14 - 1]
mov esi, dword [r13 + 0x3d0]
mov ebx, dword [r13 + 0x3d4]
cmp edx, 1
jbe 0x1400b25cc
cmp byte [rbp + 0x39c], 0
je 0x1400b190c
add ebx, 1
sar ebx, 1
test esi, esi
jle 0x1400b260b
test ebx, ebx
jle 0x1400b2477
mov rax, qword [r13 + 0x4c8]
movsxd rdx, r14d
lea r9d, [rsi - 1]
lea r12d, [rsi - 2]
mov rcx, qword [rax + rdx*8]
movsxd rax, esi
lea r10, [rax + rax]
mov qword [rsp + 0x60], rax
lea rax, [r10 - 2]
mov qword [rsp + 0x68], rax
mov eax, r9d
imul r15d
mov eax, r9d
sar r9d, 1
sar eax, 0x1f
movsxd rdi, r9d
mov qword [rsp + 0x70], rdi
add rdi, rdi
sub edx, eax
mov qword [rsp + 0x78], rdi
movsxd rdi, r12d
movsxd rax, edx
mov qword [rsp + 0x98], rdi
add rdi, rdi
mov qword [rsp + 0x80], rax
add rax, rax
mov qword [rsp + 0xa0], rdi
mov qword [rsp + 0x88], rax
lea rax, [r10 - 4]
xor edi, edi
mov qword [rsp + 0x90], rax
lea eax, [rsi - 3]
mov dword [rsp + 0xb8], eax
cdqe
mov qword [rsp + 0xa8], rax
jmp 0x1400b19e5
cmp r8b, 2
je 0x1400b2490
mov rax, qword [rsp + 0x48]
add edi, 1
movsxd rax, dword [rax + rbp*4 + 0x4d4]
add rcx, rax
cmp ebx, edi
je 0x1400b2470
movzx r8d, byte [rbp + 0x398]
cmp r8b, 1
jne 0x1400b19b8
cmp dword [rsp + 0x5c], 1
jle 0x1400b254a
mov rax, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x68]
test r12d, r12d
mov r8d, r12d
movzx eax, word [rcx + rax]
mov word [rcx + rdx], ax
mov rax, qword [rsp + 0xa0]
lea r9, [rcx + rax]
jle 0x1400b19c2
nop dword [rax]
lea eax, [r8 + 1]
mov edx, r8d
sub r9, 2
sar edx, 1
sar eax, 1
movsxd rdx, edx
cdqe
movzx r10d, word [rcx + rax*2]
movzx eax, word [rcx + rdx*2]
add eax, r10d
sar eax, 1
mov word [r9 + 2], ax
sub r8d, 1
jne 0x1400b1a20
jmp 0x1400b19c2
mov eax, dword [r13 + 0x36c]
cmp dword [r13 + 0x370], eax
cmovge eax, dword [r13 + 0x370]
mov ebx, dword [r13 + 0x368]
mov edx, dword [r13 + 0x3d0]
cmp eax, ebx
mov esi, edx
cmovge ebx, eax
lea eax, [rdx + 0x1e]
add esi, 0xf
cmovs esi, eax
sar esi, 4
mov ecx, esi
call fcn.1403518b0
test rax, rax
mov rdi, rax
je 0x1400b1abc
mov rcx, qword [rax + 8]
movsxd r8, esi
mov edx, ebx
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x1e8]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
call fcn.140364d60
mov rax, qword [rsp + 0x1e0]
test byte [rax + 0x28c], 0x10
je 0x1400b09c5
lea r8, str.QP:__d_n
mov r9d, ebx
mov edx, 0x30
mov rcx, rax
call fcn.14036cf30
jmp 0x1400b09c5
sub edx, 0x49
cmp edx, 0x28
ja 0x1400b1b0c
movabs rcx, 0x10000400101
bt rcx, rdx
jb 0x1400b185b
lea rax, str.libavcodec_mjpegdec.c
mov dword [rsp + 0x28], 0x9d5
lea r9, str.avctx__pix_fmt__AV_PIX_FMT_YUVJ444P__avctx__pix_fmt__AV_PIX_FMT_YUV444P__avctx__pix_fmt__AV_PIX_FMT_YUVJ440P__avctx__pix_fmt__AV_PIX_FMT_YUV440P__avctx__pix_fmt__AV_PIX_FMT_YUVA444P__avctx__pix_fmt__AV_PIX_FMT_YUVJ420P__avctx__pix_fmt__AV_PIX_FMT_YUV420P__avctx__pix_fmt__AV_PIX_FMT_YUV420P16LE_avctx__pix_fmt__AV_PIX_FMT_YUVA420P__avctx__pix_fmt__AV_PIX_FMT_YUVA420P16LE_avctx__pix_fmt__AV_PIX_FMT_GBRP__avctx__pix_fmt__AV_PIX_FMT_GBRAP
mov qword [rsp + 0x20], rax
jmp 0x1400b1e38
mov eax, dword [r13 + 0x3b4]
cmp eax, 2
jne 0x1400b17a6
mov rax, qword [r13 + 8]
cmp dword [rax + 0x88], 0x51
jne 0x1400b17a6
cmp dword [r13 + 0x3e0], 4
mov rax, qword [r13 + 0x4c8]
mov r12d, dword [rax + 0x68]
mov ebp, dword [rax + 0x6c]
jne 0x1400b276f
test ebp, ebp
jle 0x1400b17a6
xor r9d, r9d
mov r15d, pe_nt_image_headers64
mov r14d, 0xff
mov r10d, dword [rax + 0x40]
mov ecx, dword [rax + 0x44]
mov edx, dword [rax + 0x48]
mov r8d, dword [rax + 0x4c]
mov rbx, qword [rax]
mov r11, qword [rax + 8]
imul r10d, r9d
mov rdi, qword [rax + 0x10]
mov rsi, qword [rax + 0x18]
imul ecx, r9d
movsxd r10, r10d
imul edx, r9d
movsxd rcx, ecx
imul r8d, r9d
test r12d, r12d
movsxd rdx, edx
movsxd rax, r8d
jle 0x1400b1c4a
add rbx, r10
lea r10, [rdi + rdx]
xor r8d, r8d
add rsi, rax
add r11, rcx
mov dword [rsp + 0x48], r9d
movzx eax, byte [r11 + r8]
mov edx, r15d
mov edi, r15d
movzx ecx, byte [rsi + r8]
mov r9d, r14d
sub edx, eax
movzx eax, byte [r10 + r8]
imul edx, ecx
sub edi, eax
mov eax, edi
movzx edi, byte [rbx + r8]
imul eax, ecx
sub r9d, edi
imul ecx, r9d
mov edi, ecx
shl edi, 8
add ecx, edi
sar ecx, 0x10
mov byte [rbx + r8], cl
mov ecx, edx
shl ecx, 8
add edx, ecx
sar edx, 0x10
add edx, 0xffffff80
mov byte [r11 + r8], dl
mov edx, eax
shl edx, 8
add eax, edx
sar eax, 0x10
add eax, 0xffffff80
mov byte [r10 + r8], al
mov byte [rsi + r8], 0xff
add r8, 1
cmp r12d, r8d
jg 0x1400b1bd7
mov r9d, dword [rsp + 0x48]
add r9d, 1
cmp ebp, r9d
je 0x1400b17a6
mov rax, qword [r13 + 0x4c8]
jmp 0x1400b1b80
cmp dword [rbx + 0x3a4], edi
jne 0x1400b0e7e
mov dword [rbx + 0x394], r12d
mov dword [rbx + 0x3a4], edi
jmp 0x1400b087b
mov rcx, qword [rbx + 8]
lea r8, str.unknown_colorspace__d_n
mov edx, 0x10
call fcn.14036cf30
jmp 0x1400b0e5d
xor edi, edi
mov r12d, 1
jmp 0x1400b0e5d
mov rcx, qword [rbx + 8]
lea r8, str.mjpeg:_error__decode_app_parser_read_over_the_end_n
mov edx, 0x10
call fcn.14036cf30
jmp 0x1400b0884
test r14d, r14d
je 0x1400b13e0
cmp r12d, 0x6d726678
jne 0x1400b13e0
mov edx, dword [rbx + 0x20]
mov rcx, qword [rbx + 0x10]
mov eax, edx
shr eax, 3
mov eax, dword [rcx + rax]
mov ecx, edx
add edx, 8
and ecx, 7
bswap eax
shl eax, cl
mov rcx, qword [rbx + 8]
mov r9d, eax
shr r9d, 0xf8
cmp dword [rbx + 0x28], edx
mov dword [rbx + 0x3b0], r9d
cmovbe edx, dword [rbx + 0x28]
test byte [rcx + 0x28c], 1
mov dword [rbx + 0x20], edx
je 0x1400b0877
lea r8, str.XFRM__d_n
mov edx, 0x20
call fcn.14036cf30
jmp 0x1400b0877
mov eax, 0xbebbb1b7
jmp 0x1400b0652
cmp dword [r13 + 0x3e0], 4
mov rax, qword [r13 + 0x4c8]
mov r12d, dword [rax + 0x68]
mov ebp, dword [rax + 0x6c]
jne 0x1400b1e1d
test ebp, ebp
jle 0x1400b17a6
xor r9d, r9d
mov r10d, dword [rax + 0x40]
mov r8d, dword [rax + 0x44]
mov ecx, dword [rax + 0x48]
mov edx, dword [rax + 0x4c]
mov rbx, qword [rax]
mov r11, qword [rax + 8]
imul r10d, r9d
mov rdi, qword [rax + 0x10]
mov rsi, qword [rax + 0x18]
imul r8d, r9d
movsxd r10, r10d
imul ecx, r9d
movsxd r8, r8d
imul edx, r9d
test r12d, r12d
movsxd rcx, ecx
movsxd rax, edx
jle 0x1400b1e04
add rbx, r10
lea r10, [rdi + rcx]
xor edx, edx
add rsi, rax
add r11, r8
movzx eax, byte [rsi + rdx]
movzx edi, byte [r11 + rdx]
movzx ecx, byte [rbx + rdx]
movzx r8d, byte [r10 + rdx]
imul ecx, eax
imul r8d, eax
imul eax, edi
mov edi, eax
shl edi, 8
add eax, edi
sar eax, 0x10
mov byte [rbx + rdx], al
mov eax, r8d
shl eax, 8
add eax, r8d
sar eax, 0x10
mov byte [r11 + rdx], al
mov eax, ecx
shl eax, 8
add eax, ecx
sar eax, 0x10
mov byte [r10 + rdx], al
mov byte [rsi + rdx], 0xff
add rdx, 1
cmp r12d, edx
jg 0x1400b1db0
add r9d, 1
cmp ebp, r9d
je 0x1400b1b2c
mov rax, qword [r13 + 0x4c8]
jmp 0x1400b1d63
lea rax, str.libavcodec_mjpegdec.c
lea r9, str.s__nb_components__4
mov dword [rsp + 0x28], 0xa4e
mov qword [rsp + 0x20], rax
lea r8, [0x1403ea9be]
xor edx, edx
xor ecx, ecx
call fcn.14036cf30
call sub.msvcrt.dll_abort
mov dword [rsp + 0x20], r8d
lea r8, str.mjpeg:_JFIF_header_found__version:__x._x__SAR_d__d_n
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], edi
mov edx, 0x20
mov rcx, r10
call fcn.14036cf30
jmp 0x1400b15bc
mov dword [r10 + 0xe8], 0
mov dword [r10 + 0xec], 1
xor edi, edi
mov ecx, 1
jmp 0x1400b15ae
mov edx, dword [rbx + 0x28]
lea ecx, [rax + 0x10]
shr r8d, 0xf0
cmp ecx, edx
cmova ecx, edx
shl r8d, 0x10
mov r9d, ecx
and ecx, 7
shr r9d, 3
mov r9d, dword [r10 + r9]
bswap r9d
shl r9d, cl
mov ecx, r9d
shr ecx, 0xf0
or ecx, r8d
cmp ecx, 0x655f434d
je 0x1400b13e0
add eax, 8
cmp eax, edx
cmova eax, edx
add eax, 0x10
cmp eax, edx
cmova eax, edx
add eax, 0x10
cmp eax, edx
cmova eax, edx
add eax, 0x10
cmp eax, edx
cmova eax, edx
mov ecx, eax
mov dword [rbx + 0x20], eax
shr ecx, 3
mov r8d, dword [r10 + rcx]
mov ecx, eax
add eax, 8
and ecx, 7
bswap r8d
shl r8d, cl
mov rcx, qword [rbx + 8]
mov r9d, r8d
shr r9d, 0xf8
cmp eax, edx
mov dword [rbx + 0x3b4], r9d
cmova eax, edx
test byte [rcx + 0x28c], 1
mov dword [rbx + 0x20], eax
je 0x1400b1f3f
lea r8, str.mjpeg:_Adobe_header_found__transform_d_n
mov edx, 0x20
call fcn.14036cf30
lea r14d, [rsi - 0xd]
jmp 0x1400b087b
cmp r14d, 9
jle 0x1400b0884
cmp r12d, 0x5f4a5053
jne 0x1400b0884
mov rcx, qword [rbx + 8]
test byte [rcx + 0x28c], 1
je 0x1400b1f7d
lea r8, str._JPSJPS__n
mov edx, 0x20
call fcn.14036cf30
mov eax, dword [rbx + 0x20]
mov edx, dword [rbx + 0x28]
lea r14d, [rsi - 0x10]
mov r8, qword [rbx + 0x10]
add eax, 0x20
cmp edx, eax
cmovbe eax, edx
add eax, 0x10
cmp eax, edx
cmova eax, edx
add eax, 8
cmp eax, edx
cmova eax, edx
mov ecx, eax
mov dword [rbx + 0x20], eax
shr ecx, 3
mov r9d, dword [r8 + rcx]
mov ecx, eax
add eax, 8
and ecx, 7
bswap r9d
shl r9d, cl
mov r12d, r9d
shr r12d, 0xf8
cmp eax, edx
cmova eax, edx
mov ecx, eax
mov dword [rbx + 0x20], eax
shr ecx, 3
mov r9d, dword [r8 + rcx]
mov ecx, eax
add eax, 8
and ecx, 7
bswap r9d
shl r9d, cl
mov edi, r9d
shr edi, 0xf8
cmp eax, edx
cmova eax, edx
mov ecx, eax
mov dword [rbx + 0x20], eax
shr ecx, 3
mov r8d, dword [r8 + rcx]
mov ecx, eax
add eax, 8
and ecx, 7
bswap r8d
shl r8d, cl
mov r13d, r8d
shr r13d, 0xf8
cmp eax, edx
cmova eax, edx
mov dword [rbx + 0x20], eax
call fcn.14037e490
test rax, rax
mov qword [rbx + 0x8e8], rax
je 0x1400b087b
test r13d, r13d
jne 0x1400b2219
mov dword [rax], 0
jmp 0x1400b087b
cmp r12d, 0x45786966
jne 0x1400b2170
cmp r14d, 1
jle 0x1400b2170
mov eax, dword [rbx + 0x20]
mov edx, dword [rbx + 0x28]
lea edi, [rsi - 8]
add eax, 0x10
cmp edx, eax
cmovbe eax, edx
mov ecx, eax
mov dword [rbx + 0x20], eax
neg ecx
and ecx, 7
je 0x1400b207e
add eax, ecx
cmp eax, edx
cmova eax, edx
mov dword [rbx + 0x20], eax
sar eax, 3
cdqe
add rax, qword [rbx + 0x10]
test edi, edi
js 0x1400b2278
movsxd rdx, edi
mov qword [rsp + 0x110], rax
mov qword [rsp + 0x120], rax
lea rsi, [rsp + 0x110]
add rax, rdx
mov r8, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0xe0]
mov qword [rsp + 0x118], rax
mov rcx, rsi
call fcn.14011def0
test eax, eax
jne 0x1400b225e
mov eax, dword [rsp + 0xfc]
mov r8, qword [rsp + 0x120]
xor edx, edx
mov rcx, qword [rsp + 0x118]
sub rcx, r8
test eax, eax
js 0x1400b20fd
cmp eax, ecx
cmovg eax, ecx
movsxd rdx, eax
lea rax, [r8 + rdx]
mov r8d, dword [rsp + 0xf8]
xor r9d, r9d
mov rdx, rsi
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rbx + 8]
mov qword [rsp + 0x20], rax
call fcn.14014d4e0
test eax, eax
jns 0x1400b2146
mov rcx, qword [rbx + 8]
lea r8, str.mjpeg:_error_decoding_EXIF_data_n
mov edx, 0x10
call fcn.14036cf30
mov rax, qword [rsp + 0x110]
sub rax, qword [rsp + 0x120]
mov edx, dword [rbx + 0x20]
lea edx, [rdx + rax*8]
cmp dword [rbx + 0x28], edx
cmovbe edx, dword [rbx + 0x28]
sub edi, eax
mov r14d, edi
mov dword [rbx + 0x20], edx
jmp 0x1400b087b
cmp r14d, 0x20
jle 0x1400b0884
mov eax, dword [rbx + 0x20]
mov r8, qword [rbx + 0x10]
lea r14d, [rsi - 0xa]
mov r9d, dword [rbx + 0x28]
mov edx, eax
mov ecx, eax
add eax, 0x10
shr edx, 3
and ecx, 7
mov edx, dword [r8 + rdx]
bswap edx
shl edx, cl
shr edx, 0xf0
cmp r9d, eax
cmovbe eax, r9d
mov ecx, eax
mov dword [rbx + 0x20], eax
shr ecx, 3
mov r8d, dword [r8 + rcx]
mov ecx, eax
add eax, 0x10
and ecx, 7
bswap r8d
shl r8d, cl
mov ecx, r8d
shr ecx, 0xf0
cmp eax, r9d
cmova eax, r9d
shl edx, 0x10
mov edi, edx
mov dword [rbx + 0x20], eax
or edi, ecx
cmp edi, 0x6d6a7067
jne 0x1400b087b
mov rcx, qword [rbx + 8]
test byte [rcx + 0x28c], 1
je 0x1400b087b
lea r8, str.mjpeg:_Apple_MJPEG_A_header_found_n
mov edx, 0x20
call fcn.14036cf30
cmp dword [rbx + 0x34], 0xe2
jne 0x1400b087b
jmp 0x1400b1404
cmp r13d, 1
jne 0x1400b087b
cmp edi, 2
je 0x1400b2256
cmp edi, 3
je 0x1400b224e
cmp edi, 1
jne 0x1400b2238
mov dword [rax], 6
and r12d, 4
jne 0x1400b087b
mov dword [rax + 4], 1
jmp 0x1400b087b
mov dword [rax], 2
jmp 0x1400b2238
mov dword [rax], 1
jmp 0x1400b2238
mov rcx, qword [rbx + 8]
lea r8, str.mjpeg:_invalid_TIFF_header_in_EXIF_data_n
mov edx, 0x10
call fcn.14036cf30
jmp 0x1400b2146
lea rax, [0x1403eb3eb]
mov dword [rsp + 0x28], 0x89
lea r9, [0x1403eb3dd]
mov qword [rsp + 0x20], rax
jmp 0x1400b1e38
lea rdi, str.Intel_R__JPEG_Library__version_1
mov ecx, 0x20
mov rsi, r12
repe cmpsb byte [rsi], byte [rdi]
jne 0x1400b22b6
mov rax, qword [rbx + 8]
mov ecx, dword [rax + 0x1c]
test ecx, ecx
jne 0x1400b22c9
lea rdi, str.Metasoft_MJPEG_Codec
mov ecx, 0x14
mov rsi, r12
repe cmpsb byte [rsi], byte [rdi]
jne 0x1400b22d8
mov dword [rbx + 0x8c8], 1
jmp 0x1400b1014
lea rdi, str.MULTISCOPE_II
mov ecx, 0xe
mov rsi, r12
repe cmpsb byte [rsi], byte [rdi]
jne 0x1400b1014
mov rax, qword [rbx + 8]
mov dword [rax + 0xe8], 1
mov dword [rax + 0xec], 2
mov dword [rbx + 0x8bc], 2
jmp 0x1400b1014
lea r8, str.Pegasus_lossless_jpeg_header_found_n
mov edx, 0x20
call fcn.14036cf30
jmp 0x1400b0deb
mov rax, qword [r13 + 8]
lea rdx, [rsp + 0xfc]
lea r8, [rsp + 0x110]
mov ecx, dword [rax + 0x88]
call fcn.1403769a0
test eax, eax
jne 0x1400b0652
mov rax, qword [r13 + 0x4c8]
mov ebx, dword [r13 + 0x3e0]
mov ecx, dword [rax + 0x74]
call fcn.1403769e0
cmp ebx, eax
jne 0x1400b244f
mov ebx, dword [r13 + 0x3e0]
test ebx, ebx
jle 0x1400b1786
mov r10, qword [r13 + 0x4c8]
xor r11d, r11d
mov r8, qword [r10]
mov r9d, dword [r10 + 0x68]
mov eax, dword [r10 + 0x6c]
test r8, r8
je 0x1400b23fe
movsxd rdi, r11d
lea edx, [rax - 1]
mov esi, eax
imul edx, dword [r10 + rdi*4 + 0x40]
shr esi, 0x1f
xor ebp, ebp
add eax, esi
sar eax, 1
mov esi, eax
movsxd rdx, edx
add rdx, r8
test eax, eax
jle 0x1400b23fe
xor eax, eax
test r9d, r9d
jle 0x1400b23e5
movzx ecx, byte [rdx + rax]
movzx r10d, byte [r8 + rax]
mov byte [rdx + rax], r10b
mov byte [r8 + rax], cl
add rax, 1
cmp r9d, eax
jg 0x1400b23c4
mov r10, qword [r13 + 0x4c8]
movsxd rax, dword [r10 + rdi*4 + 0x40]
add ebp, 1
add r8, rax
sub rdx, rax
cmp ebp, esi
jne 0x1400b23bd
mov ebx, dword [r13 + 0x3e0]
add r11d, 1
cmp r11d, ebx
jge 0x1400b1786
movsxd rax, r11d
test r11d, r11d
mov r9d, dword [r10 + 0x68]
mov r8, qword [r10 + rax*8]
mov eax, dword [r10 + 0x6c]
je 0x1400b2395
cmp r11d, 2
jg 0x1400b2395
mov ecx, dword [rsp + 0xfc]
neg r9d
neg eax
sar r9d, cl
mov ecx, dword [rsp + 0x110]
neg r9d
sar eax, cl
neg eax
jmp 0x1400b2395
lea rax, str.libavcodec_mjpegdec.c
mov dword [rsp + 0x28], 0xa37
lea r9, str.s__nb_components__av_pix_fmt_count_planes_s__picture_ptr__format_
mov qword [rsp + 0x20], rax
jmp 0x1400b1e38
mov eax, dword [r13 + 0x3e0]
add r14d, 1
add rbp, 1
cmp r14d, eax
jl 0x1400b18d2
jmp 0x1400b09e4
cmp dword [rsp + 0x5c], 1
jle 0x1400b25a5
mov rax, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x68]
cmp esi, 1
movzx eax, word [rcx + rax]
mov word [rcx + rdx], ax
je 0x1400b19c2
mov rdx, qword [rsp + 0x90]
mov word [rcx + rdx], ax
mov eax, dword [rsp + 0xb8]
test eax, eax
jle 0x1400b19c2
mov rdx, qword [rsp + 0xa8]
mov r8d, eax
lea r11, [rcx + rdx]
lea r9d, [r8 + 1]
sub r11, 1
mov eax, r9d
sar r9d, 0x1f
imul r15d
sub edx, r9d
movsxd rax, edx
movzx r9d, byte [rcx + rax]
mov eax, r8d
imul r15d
mov eax, r8d
sar eax, 0x1f
sub edx, eax
movsxd rax, edx
movzx r10d, byte [rcx + rax]
add r10d, r9d
lea r9d, [r8 + 2]
mov eax, r9d
sar r9d, 0x1f
imul r15d
sub edx, r9d
movsxd rax, edx
movzx eax, byte [rcx + rax]
lea edx, [r10 + rax + 1]
mov eax, edx
imul r15d
mov byte [r11 + 1], dl
sub r8d, 1
jne 0x1400b24e3
jmp 0x1400b19c2
mov rax, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x60]
test r12d, r12d
movzx eax, byte [rcx + rax]
mov byte [rcx + rdx - 1], al
jle 0x1400b19c2
mov rax, qword [rsp + 0x98]
mov r8d, r12d
lea r9, [rcx + rax]
lea eax, [r8 + 1]
mov edx, r8d
sub r9, 1
sar edx, 1
sar eax, 1
movsxd rdx, edx
cdqe
movzx r10d, byte [rcx + rax]
movzx eax, byte [rcx + rdx]
add eax, r10d
sar eax, 1
mov byte [r9 + 1], al
sub r8d, 1
jne 0x1400b2574
jmp 0x1400b19c2
mov rax, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x60]
cmp esi, 1
movzx eax, byte [rcx + rax]
mov byte [rcx + rdx - 1], al
je 0x1400b19c2
mov byte [rcx + rdx - 2], al
jmp 0x1400b24c5
mov ecx, dword [rsp + 0xfc]
neg esi
neg ebx
sar esi, cl
mov ecx, dword [rsp + 0x110]
neg esi
sar ebx, cl
neg ebx
jmp 0x1400b18fe
lea rax, str.libavcodec_mjpegdec.c
mov dword [rsp + 0x28], 0x9da
lea r9, str.s__nb_components__av_pix_fmt_count_planes_s__picture_ptr__format_
mov qword [rsp + 0x20], rax
jmp 0x1400b1e38
lea rax, str.libavcodec_mjpegdec.c
mov dword [rsp + 0x28], 0x9e7
lea r9, str.w___0
mov qword [rsp + 0x20], rax
jmp 0x1400b1e38
xor eax, eax
jmp 0x1400b0fc6
mov eax, 0xfffffff4
jmp 0x1400b0652
lea r8, str.COLR__d_n
mov edx, 0x20
call fcn.14036cf30
jmp 0x1400b0877
mov eax, dword [rbx + 0x34]
cmp eax, 0xe3
jne 0x1400b13ee
jmp 0x1400b0884
lea rax, str.libavcodec_mjpegdec.c
mov dword [rsp + 0x28], 0xa18
lea r9, str.s__nb_components__av_pix_fmt_count_planes_s__picture_ptr__format_
mov qword [rsp + 0x20], rax
jmp 0x1400b1e38
mov r8, qword [rsp + 0x48]
mov rcx, r9
call sub.msvcrt.dll_memcpy
mov r11d, dword [rdi]
mov r9, rax
jmp 0x1400b0b3d
mov ecx, dword [rsp + 0xfc]
neg ebx
neg esi
sar ebx, cl
mov ecx, dword [rsp + 0x110]
neg ebx
sar esi, cl
neg esi
jmp 0x1400b0aa9
mov dword [rbx + 0x8c4], 0
jmp 0x1400b03b7
cmp r13d, 0xe
mov dword [rbx + 0x8b0], 1
jle 0x1400b2737
movzx eax, byte [r12 + 0xc]
cmp al, 1
jne 0x1400b26f5
mov dword [rbx + 0x8b8], 1
movzx eax, byte [r12 + 0xc]
cmp al, 2
jne 0x1400b2703
mov dword [rbx + 0x8b8], 0
mov rcx, qword [rbx + 8]
test byte [rcx + 0x28c], 1
je 0x1400b1014
movzx eax, byte [r12 + 0xc]
lea r8, str.AVID:_len:_d__d_n
mov dword [rsp + 0x20], eax
mov r9d, r13d
mov edx, 0x20
call fcn.14036cf30
jmp 0x1400b1014
mov rcx, qword [rbx + 8]
mov eax, 0xffffffff
test byte [rcx + 0x28c], 1
jne 0x1400b271a
jmp 0x1400b1014
lea r8, str.comment:__s_n
mov r9, r12
mov edx, 0x20
call fcn.14036cf30
jmp 0x1400b0fdc
mov byte [rdx], 0
jmp 0x1400b0fcb
lea rax, str.libavcodec_mjpegdec.c
mov dword [rsp + 0x28], 0xa65
lea r9, str.s__nb_components__4
mov qword [rsp + 0x20], rax
jmp 0x1400b1e38
test edx, edx
jle 0x1400b286d
mov rax, qword [r13 + 0x900]
sub edx, 1
xor r8d, r8d
lea rdx, [rax + rdx*4 + 4]
add r8d, dword [rax]
add rax, 4
cmp rdx, rax
jne 0x1400b27a9
mov rcx, qword [rsp + 0x1e8]
mov edx, 0xf
call fcn.140365d40
test rax, rax
mov rbp, rax
je 0x1400b28b3
mov eax, dword [r13 + 0x908]
test eax, eax
jle 0x1400b17f8
mov rax, qword [r13 + 0x900]
xor ebx, ebx
xor edi, edi
xor esi, esi
mov rdx, qword [r13 + 0x8f8]
mov rcx, rsi
movsxd r8, dword [rax + rbx]
add rcx, qword [rbp + 8]
add edi, 1
mov rdx, qword [rdx + rbx*2]
call sub.msvcrt.dll_memcpy
mov rax, qword [r13 + 0x900]
movsxd rdx, dword [rax + rbx]
add rbx, 4
add rsi, rdx
cmp dword [r13 + 0x908], edi
jg 0x1400b27ef
jmp 0x1400b17f8
add eax, 8
lea r15, [rbx + 0x10]
lea esi, [r14 - 9]
cmp eax, r8d
cmova eax, r8d
mov rcx, r15
mov dword [rbx + 0x20], eax
call fcn.1403928f5
test eax, eax
mov edi, eax
jne 0x1400b2875
mov rcx, qword [rbx + 8]
lea r8, str.Invalid_sequence_number_in_APP2_n
mov edx, 0x18
mov r14d, esi
call fcn.14036cf30
jmp 0x1400b0884
xor r8d, r8d
jmp 0x1400b27b5
mov rcx, r15
sub r14d, 0xa
call fcn.1403928f5
test eax, eax
mov esi, eax
je 0x1400b2959
mov eax, dword [rbx + 0x908]
test eax, eax
je 0x1400b290d
cmp esi, eax
je 0x1400b28d2
mov rcx, qword [rbx + 8]
lea r8, str.Mistmatch_in_coded_number_of_ICC_markers_between_markers_n
mov edx, 0x18
call fcn.14036cf30
jmp 0x1400b0884
mov rcx, qword [r13 + 8]
lea r8, str.Could_not_allocate_frame_side_data_n
mov edx, 0x10
call fcn.14036cf30
mov eax, 0xfffffff4
jmp 0x1400b0652
cmp edi, esi
ja 0x1400b2a4d
mov rdx, qword [rbx + 0x8f8]
sub edi, 1
lea r12, [rdx + rdi*8]
cmp qword [r12], 0
je 0x1400b2993
mov rcx, qword [rbx + 8]
lea r8, str.Duplicate_ICC_sequence_number_n
mov edx, 0x18
call fcn.14036cf30
jmp 0x1400b0884
cmp edi, esi
ja 0x1400b2a4d
mov r12d, esi
lea rcx, [r12*8]
call fcn.14036dc50
lea rcx, [r12*4]
mov qword [rbx + 0x8f8], rax
call fcn.14036dc50
mov rdx, qword [rbx + 0x8f8]
mov qword [rbx + 0x900], rax
test rdx, rdx
je 0x1400b2973
test rax, rax
je 0x1400b2973
mov dword [rbx + 0x908], esi
jmp 0x1400b28e1
mov rcx, qword [rbx + 8]
lea r8, str.Invalid_number_of_markers_coded_in_APP2_n
mov edx, 0x18
call fcn.14036cf30
jmp 0x1400b0884
mov rcx, qword [rbx + 8]
lea r8, str.Could_not_allocate_ICC_data_arrays_n
mov edx, 0x10
call fcn.14036cf30
mov r9d, 0xfffffff4
jmp 0x1400b0e9e
mov rax, qword [rbx + 0x900]
movsxd rsi, r14d
mov rcx, rsi
mov dword [rax + rdi*4], r14d
call fcn.14036d890
mov qword [r12], rax
mov rax, qword [rbx + 0x8f8]
mov rcx, qword [rax + rdi*8]
test rcx, rcx
je 0x1400b2a2d
mov eax, dword [rbx + 0x20]
mov edx, eax
neg edx
and edx, 7
je 0x1400b29d5
add eax, edx
cmp dword [rbx + 0x28], eax
cmovbe eax, dword [rbx + 0x28]
mov dword [rbx + 0x20], eax
sar eax, 3
mov r8, rsi
movsxd rdx, eax
add rdx, qword [rbx + 0x10]
call sub.msvcrt.dll_memcpy
mov eax, dword [rbx + 0x20]
lea eax, [rax + r14*8]
cmp dword [rbx + 0x28], eax
cmovbe eax, dword [rbx + 0x28]
mov dword [rbx + 0x20], eax
mov eax, dword [rbx + 0x90c]
add eax, 1
cmp eax, dword [rbx + 0x908]
mov dword [rbx + 0x90c], eax
jle 0x1400b0550
mov rcx, qword [rbx + 8]
lea r8, str.Read_more_ICC_markers_than_are_supposed_to_be_coded_n
mov edx, 0x18
call fcn.14036cf30
jmp 0x1400b0550
mov rcx, qword [rbx + 8]
lea r8, str.Could_not_allocate_ICC_data_buffer_n
mov edx, 0x10
call fcn.14036cf30
mov r9d, 0xfffffff4
jmp 0x1400b0e9e
mov rcx, qword [rbx + 8]
lea r8, str.Mismatching_sequence_number_and_coded_number_of_ICC_markers_n
mov edx, 0x18
call fcn.14036cf30
jmp 0x1400b0884