Function at 0x14001bd50
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rdi
sub rsp, 0x38
mov rdi, rcx
mov rbx, rdx
mov rcx, qword [rcx + 0x248]
test rcx, rcx
je 0x14001ccb8
mov eax, dword [rdi + 0x168]
and eax, 0x4040
cmp eax, 0x4000
je 0x14001ccc8
mov edx, dword [rdi + 0x16c]
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r14
mov r14d, 7
mov qword [rsp + 0x30], r15
mov r15d, 4
bt edx, 0xc
jae 0x14001bfa4
movzx r8d, byte [rbx + 0x10]
movzx eax, word [rdi + 0x280]
cmp r8b, 3
jne 0x14001bded
mov r9, qword [rdi + 0x270]
lea r8, [rcx + 1]
mov dword [rsp + 0x28], eax
mov rdx, rbx
mov rax, qword [rdi + 0x308]
mov qword [rsp + 0x20], rax
call fcn.14001b3e0
jmp 0x14001bfa4
test ax, ax
je 0x14001be10
bt edx, 0x19
jae 0x14001be10
lea rdx, [rcx + 1]
mov rcx, rbx
lea r8, [rdi + 0x310]
call fcn.14001b6e0
jmp 0x14001bfa4
mov r11d, dword [rbx]
lea rdx, [rcx + 1]
test r8b, r8b
jne 0x14001bfa4
movzx eax, byte [rbx + 0x11]
cmp al, 8
jae 0x14001bfa4
mov ecx, eax
sub ecx, 1
je 0x14001bf30
sub ecx, 1
je 0x14001beb2
cmp ecx, 2
jne 0x14001bf98
lea eax, [r11 - 1]
mov r9d, r15d
mov r8d, eax
lea r10, [r11 - 1]
and eax, 1
shr r8, 1
shl eax, 2
add r8, rdx
sub r9d, eax
add r10, rdx
mov esi, r11d
test r11d, r11d
je 0x14001bf98
movzx edx, byte [r8]
lea r10, [r10 - 1]
movzx ecx, r9b
shr dl, cl
movzx eax, dl
shl dl, 4
and al, 0xf
xor al, dl
mov byte [r10 + 1], al
cmp r9d, r15d
lea rax, [r8 - 1]
cmovne rax, r8
mov r8, rax
xor eax, eax
cmp r9d, r15d
cmovne eax, r15d
mov r9d, eax
sub rsi, 1
jne 0x14001be71
jmp 0x14001bf98
lea eax, [r11 - 1]
mov r8d, 6
mov r9d, eax
lea r10, [r11 - 1]
and eax, 3
shr r9, 2
add eax, eax
add r9, rdx
sub r8d, eax
add r10, rdx
mov rsi, r11
test r11d, r11d
je 0x14001bf98
movzx edx, byte [r9]
lea r10, [r10 - 1]
movzx ecx, r8b
shr dl, cl
lea ecx, [r8 + 2]
and dl, 3
movzx eax, dl
shl al, 2
or al, dl
shl al, 2
or al, dl
shl al, 2
or al, dl
cmp r8d, 6
mov byte [r10 + 1], al
lea rax, [r9 - 1]
cmovne rax, r9
mov r9, rax
mov eax, r8d
xor r8d, r8d
cmp eax, 6
cmovne r8d, ecx
sub rsi, 1
jne 0x14001bee1
jmp 0x14001bf98
lea eax, [r11 - 1]
mov r9, r11
mov r8d, eax
lea r10, [r11 - 1]
add r10, rdx
shr r8, 3
add r8, rdx
and eax, r14d
mov edx, r14d
sub edx, eax
test r11d, r11d
je 0x14001bf98
nop word [rax + rax]
movzx eax, byte [r8]
lea r10, [r10 - 1]
movzx ecx, dl
shr al, cl
lea ecx, [rdx + 1]
and al, 1
neg al
sbb al, al
cmp edx, r14d
mov byte [r10 + 1], al
lea rax, [r8 - 1]
cmovne rax, r8
mov r8, rax
mov eax, edx
xor edx, edx
cmp eax, r14d
cmovne edx, ecx
sub r9, 1
jne 0x14001bf60
mov byte [rbx + 0x11], 8
mov byte [rbx + 0x13], 8
mov qword [rbx + 8], r11
mov eax, dword [rdi + 0x16c]
and eax, 0x40080
cmp eax, 0x40000
jne 0x14001c137
movzx r10d, byte [rbx + 0x10]
lea eax, [r10 - 4]
test al, 0xfd
jne 0x14001c137
mov r9, qword [rdi + 0x248]
lea rax, [rbx + 0x12]
mov r8, qword [rbx + 8]
inc r9
movzx ecx, byte [rax]
add r8, r9
cmp cl, 2
jne 0x14001c077
movzx ecx, byte [rbx + 0x11]
cmp cl, 8
jne 0x14001c029
lea rdx, [r9 + 2]
lea rcx, [r9 + 1]
cmp rdx, r8
jae 0x14001c025
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdx]
add rdx, 2
mov byte [rcx], al
inc rcx
cmp rdx, r8
jb 0x14001c010
lea rax, [rbx + 0x12]
mov dl, 8
jmp 0x14001c05e
cmp cl, 0x10
jne 0x14001c137
lea rdx, [r9 + 4]
lea rcx, [r9 + 2]
cmp rdx, r8
jae 0x14001c05c
nop
movzx eax, byte [rdx]
mov byte [rcx], al
movzx eax, byte [rdx + 1]
add rdx, r15
mov byte [rcx + 1], al
add rcx, 2
cmp rdx, r8
jb 0x14001c040
lea rax, [rbx + 0x12]
mov dl, 0x10
mov byte [rbx + 0x13], dl
mov byte [rax], 1
cmp byte [rbx + 0x10], r15b
jne 0x14001c130
mov byte [rbx + 0x10], 0
jmp 0x14001c130
cmp cl, r15b
jne 0x14001c137
movzx ecx, byte [rbx + 0x11]
cmp cl, 8
jne 0x14001c0cc
lea rdx, [r9 + 4]
lea rcx, [r9 + 3]
cmp rdx, r8
jae 0x14001c0c8
nop word [rax + rax]
movzx eax, byte [rdx]
mov byte [rcx], al
movzx eax, byte [rdx + 1]
mov byte [rcx + 1], al
movzx eax, byte [rdx + 2]
add rdx, r15
mov byte [rcx + 2], al
add rcx, 3
cmp rdx, r8
jb 0x14001c0a0
movzx r10d, byte [rbx + 0x10]
lea rax, [rbx + 0x12]
mov dl, 0x18
jmp 0x14001c120
cmp cl, 0x10
jne 0x14001c137
lea rdx, [r9 + 8]
lea rcx, [r9 + 6]
cmp rdx, r8
jae 0x14001c11e
nop
movzx eax, byte [rdx]
mov byte [rcx], al
movzx eax, byte [rdx + 1]
mov byte [rcx + 1], al
movzx eax, byte [rdx + 2]
mov byte [rcx + 2], al
movzx eax, byte [rdx + 3]
mov byte [rcx + 3], al
movzx eax, byte [rdx + 4]
mov byte [rcx + 4], al
movzx eax, byte [rdx + 5]
add rdx, 8
mov byte [rcx + 5], al
add rcx, 6
cmp rdx, r8
jb 0x14001c0e0
movzx r10d, byte [rbx + 0x10]
lea rax, [rbx + 0x12]
mov dl, 0x30
mov byte [rbx + 0x13], dl
mov byte [rax], 3
cmp r10b, 6
jne 0x14001c130
mov byte [rbx + 0x10], 2
sub rcx, r9
mov qword [rbx + 8], rcx
test dword [rdi + 0x16c], 0x600000
mov ebp, 2
je 0x14001c1e1
mov r8, qword [rdi + 0x248]
mov rdx, rbx
inc r8
mov rcx, rdi
call fcn.140019800
test eax, eax
je 0x14001c1e1
mov eax, dword [rdi + 0x16c]
and eax, 0x600000
mov byte [rdi + 0x3f0], 1
cmp eax, 0x400000
jne 0x14001c1cb
mov rax, qword [rdi + 0x120]
test rax, rax
je 0x14001c198
lea rdx, str.png_do_rgb_to_gray_found_nongray_pixel
mov rcx, rdi
call rax
jmp 0x14001c1cb
mov ecx, ebp
call fcn.140040788
mov rcx, rax
lea r8, str.png_do_rgb_to_gray_found_nongray_pixel
lea rdx, str.libpng_warning:__s
call fcn.14001cd00
mov ecx, ebp
call fcn.140040788
mov rcx, rax
lea rdx, [0x14006816c]
call fcn.14001cd00
mov eax, dword [rdi + 0x16c]
and eax, 0x600000
cmp eax, 0x200000
je 0x14001ccd8
test dword [rdi + 0x16c], 0x4000
je 0x14001c20b
test dword [rdi + 0x164], 0x800
jne 0x14001c20b
mov rdx, qword [rdi + 0x248]
mov rcx, rbx
inc rdx
call fcn.140019640
test byte [rdi + 0x16c], 0x80
je 0x14001c229
mov rdx, qword [rdi + 0x248]
mov r8, rdi
inc rdx
mov rcx, rbx
call fcn.140019d30
mov ecx, dword [rdi + 0x16c]
mov eax, ecx
and eax, 0x602000
cmp eax, 0x2000
jne 0x14001c272
test cl, cl
jns 0x14001c254
cmp word [rdi + 0x280], 0
jne 0x14001c272
test byte [rdi + 0x287], r15b
jne 0x14001c272
cmp byte [rdi + 0x287], 3
je 0x14001c272
mov rdx, qword [rdi + 0x248]
mov r8, rdi
inc rdx
mov rcx, rbx
call fcn.14001af40
mov eax, dword [rdi + 0x16c]
and eax, 0x40080
cmp eax, 0x40080
jne 0x14001c3f7
movzx r10d, byte [rbx + 0x10]
lea eax, [r10 - 4]
test al, 0xfd
jne 0x14001c3f7
mov r9, qword [rdi + 0x248]
lea rax, [rbx + 0x12]
mov r8, qword [rbx + 8]
inc r9
movzx ecx, byte [rax]
add r8, r9
cmp cl, bpl
jne 0x14001c336
movzx ecx, byte [rbx + 0x11]
cmp cl, 8
jne 0x14001c2e8
lea rdx, [r9 + 2]
lea rcx, [r9 + 1]
cmp rdx, r8
jae 0x14001c2e4
movzx eax, byte [rdx]
add rdx, rbp
mov byte [rcx], al
inc rcx
cmp rdx, r8
jb 0x14001c2d0
lea rax, [rbx + 0x12]
mov dl, 8
jmp 0x14001c31d
cmp cl, 0x10
jne 0x14001c3f7
lea rdx, [r9 + 4]
lea rcx, [r9 + 2]
cmp rdx, r8
jae 0x14001c31b
nop
movzx eax, byte [rdx]
mov byte [rcx], al
movzx eax, byte [rdx + 1]
add rdx, r15
mov byte [rcx + 1], al
add rcx, rbp
cmp rdx, r8
jb 0x14001c300
lea rax, [rbx + 0x12]
mov dl, 0x10
mov byte [rbx + 0x13], dl
mov byte [rax], 1
cmp byte [rbx + 0x10], r15b
jne 0x14001c3f0
mov byte [rbx + 0x10], 0
jmp 0x14001c3f0
cmp cl, r15b
jne 0x14001c3f7
movzx ecx, byte [rbx + 0x11]
cmp cl, 8
jne 0x14001c38c
lea rdx, [r9 + 4]
lea rcx, [r9 + 3]
cmp rdx, r8
jae 0x14001c388
nop word [rax + rax]
movzx eax, byte [rdx]
mov byte [rcx], al
movzx eax, byte [rdx + 1]
mov byte [rcx + 1], al
movzx eax, byte [rdx + 2]
add rdx, r15
mov byte [rcx + 2], al
add rcx, 3
cmp rdx, r8
jb 0x14001c360
movzx r10d, byte [rbx + 0x10]
lea rax, [rbx + 0x12]
mov dl, 0x18
jmp 0x14001c3e0
cmp cl, 0x10
jne 0x14001c3f7
lea rdx, [r9 + 8]
lea rcx, [r9 + 6]
cmp rdx, r8
jae 0x14001c3de
nop
movzx eax, byte [rdx]
mov byte [rcx], al
movzx eax, byte [rdx + 1]
mov byte [rcx + 1], al
movzx eax, byte [rdx + 2]
mov byte [rcx + 2], al
movzx eax, byte [rdx + 3]
mov byte [rcx + 3], al
movzx eax, byte [rdx + 4]
mov byte [rcx + 4], al
movzx eax, byte [rdx + 5]
add rdx, 8
mov byte [rcx + 5], al
add rcx, 6
cmp rdx, r8
jb 0x14001c3a0
movzx r10d, byte [rbx + 0x10]
lea rax, [rbx + 0x12]
mov dl, 0x30
mov byte [rbx + 0x13], dl
mov byte [rax], 3
cmp r10b, 6
jne 0x14001c3f0
mov byte [rbx + 0x10], bpl
sub rcx, r9
mov qword [rbx + 8], rcx
test dword [rdi + 0x16c], 0x800000
mov esi, 3
je 0x14001c53d
movzx eax, byte [rbx + 0x10]
test r15b, al
je 0x14001c53d
movzx ecx, byte [rbx + 0x11]
mov r10, qword [rdi + 0x248]
mov r8d, dword [rbx]
cmp cl, 8
jne 0x14001c478
mov r9, qword [rdi + 0x2d8]
test r9, r9
je 0x14001c4f0
and al, bpl
mov rdx, rbp
cmovne rdx, r15
add rdx, r10
test r8d, r8d
je 0x14001c53d
test al, al
cmovne rbp, r15
nop dword [rax + rax]
movzx eax, byte [rdx]
movzx ecx, byte [rax + r9]
mov byte [rdx], cl
add rdx, rbp
add r8d, 0xffffffff
jne 0x14001c460
jmp 0x14001c53d
cmp cl, 0x10
jne 0x14001c4f0
mov r11, qword [rdi + 0x2e8]
test r11, r11
je 0x14001c4f0
and al, bpl
mov r9, rsi
cmovne r9, r14
add r9, r10
test r8d, r8d
je 0x14001c53d
movzx ebp, byte [rdi + 0x2c0]
test al, al
mov r10, r15
mov ecx, 8
cmovne r10, rcx
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r9 + 1]
mov rcx, rbp
shr rax, cl
movzx ecx, byte [r9]
mov rax, qword [r11 + rax*8]
movzx edx, word [rax + rcx*2]
movzx eax, dx
mov byte [r9 + 1], dl
shr ax, 8
mov byte [r9], al
add r9, r10
add r8d, 0xffffffff
jne 0x14001c4c0
jmp 0x14001c53d
mov rax, qword [rdi + 0x120]
test rax, rax
je 0x14001c50a
lea rdx, str.png_do_encode_alpha:_unexpected_call
mov rcx, rdi
call rax
jmp 0x14001c53d
mov ecx, ebp
call fcn.140040788
mov rcx, rax
lea r8, str.png_do_encode_alpha:_unexpected_call
lea rdx, str.libpng_warning:__s
call fcn.14001cd00
mov ecx, ebp
call fcn.140040788
mov rcx, rax
lea rdx, [0x14006816c]
call fcn.14001cd00
mov ecx, dword [rdi + 0x16c]
mov r9d, ecx
bt ecx, 0x1a
jae 0x14001c5b9
cmp byte [rbx + 0x11], 0x10
jne 0x14001c5b9
mov rdx, qword [rdi + 0x248]
mov r10, qword [rbx + 8]
inc rdx
add r10, rdx
mov r8, rdx
cmp rdx, r10
jae 0x14001c59f
nop dword [rax + rax]
movzx ecx, byte [rdx]
lea r8, [r8 + 1]
movzx eax, byte [rdx + 1]
add rdx, 2
sub eax, ecx
sub eax, 0xffffff80
imul eax, eax, 0xffff
sar eax, 0x18
add ecx, eax
mov byte [r8 - 1], cl
cmp rdx, r10
jb 0x14001c570
mov r9d, dword [rdi + 0x16c]
movzx ecx, byte [rbx + 0x12]
movzx eax, cl
mov byte [rbx + 0x11], 8
shl al, 3
imul ecx, dword [rbx]
mov byte [rbx + 0x13], al
mov eax, ecx
mov qword [rbx + 8], rax
mov r10d, r9d
bt r9d, 0xa
jae 0x14001c623
cmp byte [rbx + 0x11], 0x10
jne 0x14001c623
mov rcx, qword [rdi + 0x248]
mov r8, qword [rbx + 8]
inc rcx
add r8, rcx
mov rdx, rcx
cmp rcx, r8
jae 0x14001c609
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
add rcx, 2
mov byte [rdx], al
lea rdx, [rdx + 1]
cmp rcx, r8
jb 0x14001c5f0
mov r10d, dword [rdi + 0x16c]
movzx ecx, byte [rbx + 0x12]
movzx eax, cl
mov byte [rbx + 0x11], 8
shl al, 3
imul ecx, dword [rbx]
mov byte [rbx + 0x13], al
mov eax, ecx
mov qword [rbx + 8], rax
test r10b, 0x40
je 0x14001c654
mov rdx, qword [rdi + 0x248]
mov rcx, rbx
mov r9, qword [rdi + 0x3a0]
inc rdx
mov r8, qword [rdi + 0x398]
call fcn.14001bbf0
cmp qword [rbx + 8], 0
je 0x14001cce8
mov r9d, dword [rdi + 0x16c]
mov ecx, r9d
bt r9d, 9
jae 0x14001c6c5
cmp byte [rbx + 0x11], 8
jne 0x14001c6c5
cmp byte [rbx + 0x10], sil
je 0x14001c6c5
mov rcx, qword [rbx + 8]
lea r8, [rcx + 1]
add r8, qword [rdi + 0x248]
lea rdx, [rcx + r8]
mov ecx, r9d
cmp rdx, r8
jbe 0x14001c6ac
nop dword [rax]
movzx eax, byte [r8 - 1]
dec r8
mov byte [rdx - 1], al
add rdx, 0xfffffffffffffffe
mov byte [rdx], al
cmp rdx, r8
ja 0x14001c690
mov ecx, dword [rdi + 0x16c]
mov rax, qword [rbx + 8]
add rax, rax
mov byte [rbx + 0x11], 0x10
mov qword [rbx + 8], rax
movzx eax, byte [rbx + 0x12]
shl al, 4
mov byte [rbx + 0x13], al
bt ecx, 0xe
jae 0x14001c6e9
test dword [rdi + 0x164], 0x800
je 0x14001c6e9
mov rdx, qword [rdi + 0x248]
mov rcx, rbx
inc rdx
call fcn.140019640
test byte [rdi + 0x16c], 0x20
je 0x14001c704
mov rdx, qword [rdi + 0x248]
mov rcx, rbx
inc rdx
call fcn.140022a20
test dword [rdi + 0x16c], 0x80000
je 0x14001c80e
mov rcx, qword [rdi + 0x248]
movzx eax, byte [rbx + 0x10]
inc rcx
mov r8d, dword [rbx]
cmp al, 6
jne 0x14001c7a1
add rcx, qword [rbx + 8]
cmp byte [rbx + 0x11], 8
jne 0x14001c76b
mov r9, rcx
test r8d, r8d
je 0x14001c80e
mov edx, r8d
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx - 1]
sub rcx, r15
not al
mov byte [r9 - 1], al
mov r9, rcx
sub rdx, 1
jne 0x14001c750
jmp 0x14001c80e
mov rdx, rcx
test r8d, r8d
je 0x14001c80e
mov r9, r8
nop word [rax + rax]
movzx eax, byte [rcx - 1]
not al
mov byte [rdx - 1], al
movzx eax, byte [rcx - 2]
sub rcx, 8
not al
mov byte [rdx - 2], al
mov rdx, rcx
sub r9, 1
jne 0x14001c780
jmp 0x14001c80e
cmp al, r15b
jne 0x14001c80e
mov rax, qword [rbx + 8]
add rcx, rax
cmp byte [rbx + 0x11], 8
mov rdx, rcx
jne 0x14001c7de
test r8d, r8d
je 0x14001c80e
mov r9, r8
nop
movzx eax, byte [rcx - 1]
lea rcx, [rcx - 2]
lea rdx, [rdx - 2]
not al
mov byte [rdx + 1], al
movzx eax, byte [rcx]
mov byte [rdx], al
sub r9, 1
jne 0x14001c7c0
jmp 0x14001c80e
test r8d, r8d
je 0x14001c80e
mov r9, r8
nop word [rax + rax]
movzx eax, byte [rcx - 1]
not al
mov byte [rdx - 1], al
movzx eax, byte [rcx - 2]
sub rcx, r15
not al
mov byte [rdx - 2], al
mov rdx, rcx
sub r9, 1
jne 0x14001c7f0
test byte [rdi + 0x16c], 8
je 0x14001c830
mov rdx, qword [rdi + 0x248]
lea r8, [rdi + 0x2fd]
inc rdx
mov rcx, rbx
call fcn.140019120
test byte [rdi + 0x16c], r15b
je 0x14001c9b3
mov r8, qword [rdi + 0x248]
movzx eax, byte [rbx + 0x11]
inc r8
cmp al, 8
jae 0x14001c9b3
mov r10d, dword [rbx]
mov ecx, eax
sub ecx, 1
je 0x14001c936
sub ecx, 1
je 0x14001c8d8
cmp ecx, 2
jne 0x14001c998
lea eax, [r10 - 1]
mov r11d, r10d
mov edx, eax
lea r9, [r10 - 1]
add r9, r8
shr rdx, 1
add rdx, r8
and eax, 1
mov r8d, 1
sub r8d, eax
shl r8d, 2
test r10d, r10d
je 0x14001c998
nop
movzx eax, byte [rdx]
lea r9, [r9 - 1]
movzx ecx, r8b
shr al, cl
and al, 0xf
mov byte [r9 + 1], al
cmp r8d, r15d
lea rax, [rdx - 1]
cmovne rax, rdx
mov rdx, rax
xor eax, eax
cmp r8d, r15d
cmovne eax, r15d
mov r8d, eax
sub r11, 1
jne 0x14001c8a0
jmp 0x14001c998
lea eax, [r10 - 1]
mov r9, r10
mov edx, eax
and eax, esi
shr rdx, 2
sub esi, eax
add rdx, r8
add esi, esi
dec r8
add r8, r10
test r10d, r10d
je 0x14001c998
nop dword [rax]
movzx eax, byte [rdx]
lea r8, [r8 - 1]
movzx ecx, sil
shr al, cl
and al, 3
mov byte [r8 + 1], al
cmp esi, 6
lea rax, [rdx - 1]
cmovne rax, rdx
xor ecx, ecx
cmp esi, 6
mov rdx, rax
lea eax, [rsi + 2]
cmovne ecx, eax
mov esi, ecx
sub r9, 1
jne 0x14001c900
jmp 0x14001c998
lea eax, [r10 - 1]
mov r9, r10
mov edx, eax
and eax, r14d
shr rdx, 3
sub r14d, eax
add rdx, r8
dec r8
add r8, r10
test r10d, r10d
je 0x14001c998
nop word [rax + rax]
movzx eax, byte [rdx]
lea r8, [r8 - 1]
movzx ecx, r14b
shr al, cl
and al, 1
mov byte [r8 + 1], al
cmp r14d, 7
lea rax, [rdx - 1]
cmovne rax, rdx
xor ecx, ecx
cmp r14d, 7
mov rdx, rax
lea eax, [r14 + 1]
cmovne ecx, eax
mov r14d, ecx
sub r9, 1
jne 0x14001c960
movzx ecx, byte [rbx + 0x12]
movzx eax, cl
mov byte [rbx + 0x11], 8
shl al, 3
imul ecx, r10d
mov byte [rbx + 0x13], al
mov eax, ecx
mov qword [rbx + 8], rax
cmp byte [rbx + 0x10], 3
jne 0x14001c9cd
cmp dword [rdi + 0x27c], 0
jl 0x14001c9cd
mov rdx, rbx
mov rcx, rdi
call fcn.140022c10
test byte [rdi + 0x16c], 1
je 0x14001c9e8
mov rdx, qword [rdi + 0x248]
mov rcx, rbx
inc rdx
call fcn.140022b10
test dword [rdi + 0x16c], 0x10000
je 0x14001ca52
mov rdx, qword [rdi + 0x248]
movzx ecx, byte [rbx + 0x11]
inc rdx
cmp cl, 8
jae 0x14001ca52
mov r9, qword [rbx + 8]
add r9, rdx
cmp cl, 1
jne 0x14001ca1c
lea r8, [0x140068d60]
jmp 0x14001ca36
cmp cl, 2
jne 0x14001ca2a
lea r8, [0x140068b60]
jmp 0x14001ca36
cmp cl, r15b
jne 0x14001ca52
lea r8, [0x140068c60]
cmp rdx, r9
jae 0x14001ca52
nop dword [rax + rax]
movzx eax, byte [rdx]
movzx ecx, byte [rax + r8]
mov byte [rdx], cl
inc rdx
cmp rdx, r9
jb 0x14001ca40
test dword [rdi + 0x16c], 0x8000
je 0x14001ca7f
mov rdx, qword [rdi + 0x248]
mov rcx, rbx
movzx r8d, word [rdi + 0x292]
inc rdx
mov r9d, dword [rdi + 0x168]
call fcn.140019320
test dword [rdi + 0x16c], 0x20000
je 0x14001cbe0
mov rdx, qword [rdi + 0x248]
movzx eax, byte [rbx + 0x10]
inc rdx
mov ecx, dword [rbx]
cmp al, 6
jne 0x14001cb62
mov rax, qword [rbx + 8]
add rax, rdx
cmp byte [rbx + 0x11], 8
jne 0x14001cb01
mov r8, rax
test ecx, ecx
je 0x14001cbe0
mov r9d, ecx
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rax - 2]
lea r8, [r8 - 4]
movzx edx, byte [rax - 1]
lea rax, [rax - 4]
mov byte [r8 + 3], cl
movzx ecx, byte [rax + 1]
mov byte [r8 + 2], cl
movzx ecx, byte [rax]
mov byte [r8 + 1], cl
mov byte [r8], dl
sub r9, 1
jne 0x14001cad0
jmp 0x14001cbe0
mov r9, rax
test ecx, ecx
je 0x14001cbe0
mov r10, rcx
nop
movzx ecx, byte [rax - 3]
lea r9, [r9 - 8]
movzx edx, byte [rax - 1]
movzx r8d, byte [rax - 2]
lea rax, [rax - 8]
mov byte [r9 + 7], cl
movzx ecx, byte [rax + 4]
mov byte [r9 + 6], cl
movzx ecx, byte [rax + 3]
mov byte [r9 + 5], cl
movzx ecx, byte [rax + 2]
mov byte [r9 + 4], cl
movzx ecx, byte [rax + 1]
mov byte [r9 + 3], cl
movzx ecx, byte [rax]
mov byte [r9 + 2], cl
mov byte [r9 + 1], dl
mov byte [r9], r8b
sub r10, 1
jne 0x14001cb10
jmp 0x14001cbe0
cmp al, r15b
jne 0x14001cbe0
cmp byte [rbx + 0x11], 8
mov rax, qword [rbx + 8]
jne 0x14001cb9e
add rdx, rax
mov r8, rdx
test ecx, ecx
je 0x14001cbe0
mov r9, rcx
nop
movzx ecx, byte [rdx - 1]
lea rdx, [rdx - 2]
movzx eax, byte [rdx]
mov byte [r8 - 1], al
lea r8, [r8 - 2]
mov byte [r8], cl
sub r9, 1
jne 0x14001cb80
jmp 0x14001cbe0
lea r8, [rax + rdx]
mov r9, r8
test ecx, ecx
je 0x14001cbe0
mov r10, rcx
nop dword [rax]
movzx eax, byte [r8 - 3]
lea r9, [r9 - 4]
movzx ecx, byte [r8 - 1]
movzx edx, byte [r8 - 2]
lea r8, [r8 - 4]
mov byte [r9 + 3], al
movzx eax, byte [r8]
mov byte [r9 + 2], al
mov byte [r9 + 1], cl
mov byte [r9], dl
sub r10, 1
jne 0x14001cbb0
test byte [rdi + 0x16c], 0x10
je 0x14001cc26
cmp byte [rbx + 0x11], 0x10
jne 0x14001cc26
movzx eax, byte [rbx + 0x12]
imul eax, dword [rbx]
mov rdx, qword [rdi + 0x248]
inc rdx
test eax, eax
je 0x14001cc26
mov r8d, eax
nop word [rax + rax]
movzx ecx, byte [rdx]
movzx eax, byte [rdx + 1]
mov byte [rdx], al
mov byte [rdx + 1], cl
lea rdx, [rdx + 2]
sub r8, 1
jne 0x14001cc10
test dword [rdi + 0x16c], 0x100000
je 0x14001cc9d
mov rax, qword [rdi + 0x148]
test rax, rax
je 0x14001cc50
mov r8, qword [rdi + 0x248]
mov rdx, rbx
inc r8
mov rcx, rdi
call rax
movzx eax, byte [rdi + 0x160]
test al, al
je 0x14001cc5e
mov byte [rbx + 0x11], al
movzx eax, byte [rdi + 0x161]
test al, al
je 0x14001cc6c
mov byte [rbx + 0x12], al
movzx eax, byte [rbx + 0x12]
movzx ecx, byte [rbx + 0x11]
imul ecx, eax
movzx eax, cl
mov ecx, dword [rbx]
mov byte [rbx + 0x13], al
cmp al, 8
jb 0x14001cc8d
shr rax, 3
imul rax, rcx
jmp 0x14001cc99
imul rax, rcx
add rax, 7
shr rax, 3
mov qword [rbx + 8], rax
mov r14, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov r15, qword [rsp + 0x30]
add rsp, 0x38
pop rdi
pop rbx
ret
lea rdx, str.NULL_row_buffer
mov rcx, rdi
call fcn.14001cd50
int3
lea rdx, str.Uninitialized_row
mov rcx, rdi
call fcn.14001cd50
int3
lea rdx, str.png_do_rgb_to_gray_found_nongray_pixel
mov rcx, rdi
call fcn.14001cd50
int3
lea rdx, str.png_do_quantize_returned_rowbytes0
mov rcx, rdi
call fcn.14001cd50
int3