Function at 0x140002630
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rbp
push rdi
push r14
lea rbp, [rsp - 0x5970]
mov eax, 0x5a70
call fcn.14000cd40
sub rsp, rax
mov rax, qword [0x140014098]
xor rax, rsp
mov qword [rbp + 0x5910], rax
mov qword [rsp + 0x5aa0], rbx
mov rdi, rdx
mov qword [rsp + 0x5a58], r13
mov ebx, ecx
mov qword [rsp + 0x5a50], r15
lea rcx, [rsp + 0x58]
xor r15d, r15d
movaps xmmword [rsp + 0x5a30], xmm7
mov r13d, r15d
mov qword [rsp + 0x68], r15
mov r14d, r15d
mov dword [rsp + 0x50], r15d
movaps xmmword [rsp + 0x5a20], xmm8
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x58]
xorps xmm7, xmm7
xorps xmm8, xmm8
test rax, rax
je 0x1400026d7
cvtsi2sd xmm8, qword [rsp + 0x70]
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
divsd xmm8, xmm0
lea rcx, [rbp - 0x40]
mov dword [rsp + 0x58], r15d
mov dword [rsp + 0x60], r15d
call sub.openjp2.dll_opj_set_default_encoder_parameters
xor eax, eax
mov byte [rbp + 0x4910], r13b
mov qword [rbp - 0x80], rax
lea r9, [rbp - 0x80]
mov qword [rbp - 0x78], rax
lea r8, [rbp - 0x40]
mov qword [rbp - 0x70], rax
mov rdx, rdi
lea rax, [rsp + 0x60]
mov qword [rbp - 0x60], r15
mov qword [rsp + 0x48], rax
mov ecx, ebx
lea rax, [rsp + 0x58]
mov qword [rbp - 0x50], r15
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x4910]
mov qword [rsp + 0x30], 0x1000
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x68], r15
mov dword [rbp - 0x58], r15d
mov byte [rbp + 0x48ca], 0xff
call fcn.1400034d0
mov edi, 1
cmp eax, edi
je 0x14000309f
lea ebx, [rdi + 1]
mov qword [rsp + 0x5a68], rsi
mov qword [rsp + 0x5a60], r12
movaps xmmword [rsp + 0x5a40], xmm6
cmp byte [rbp - 0x70], dil
jne 0x140002ad2
mov rbx, qword [rbp - 0x80]
mov rcx, rbx
call fcn.140003310
mov r14, rax
test rax, rax
jne 0x1400027d0
mov r12d, 2
mov ecx, r12d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.Could_not_open_Folder__s_n
mov rcx, rax
call fcn.140002170
mov esi, r15d
jmp 0x14000283d
mov rcx, r14
mov esi, r15d
call fcn.140005070
mov rcx, rax
test rax, rax
je 0x14000282f
movzx eax, byte [0x14001019c]
cmp al, byte [rcx]
jne 0x1400027fa
movzx eax, byte [0x14001019d]
cmp al, byte [rcx + 1]
je 0x14000281f
movzx eax, byte [0x1400101a0]
cmp al, byte [rcx]
jne 0x14000281d
movzx eax, byte [0x1400101a1]
cmp al, byte [rcx + 1]
jne 0x14000281d
movzx eax, byte [0x1400101a2]
cmp al, byte [rcx + 2]
je 0x14000281f
inc esi
mov rcx, r14
call fcn.140005070
mov rcx, rax
test rax, rax
jne 0x1400027e3
mov rcx, r14
call fcn.140001020
mov r12d, 2
mov ecx, 0x10
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x1400029ca
mov ecx, esi
shl ecx, 0xc
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, esi
shl rcx, 3
mov qword [r14], rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea r9, [r14 + 8]
mov r8, rax
mov qword [r9], rax
mov rax, qword [r14]
test rax, rax
je 0x140003084
mov edx, r15d
test esi, esi
je 0x1400029ca
cmp esi, 8
jb 0x140002997
movdqa xmm6, xmmword [0x140011290]
movq xmm4, rax
punpcklqdq xmm4, xmm4
lea eax, [rsi - 1]
lea rax, [r8 + rax*8]
cmp r8, r14
ja 0x1400028be
cmp rax, r14
jae 0x140002997
cmp r8, r9
ja 0x1400028cc
cmp rax, r9
jae 0x140002997
mov ecx, esi
and ecx, 0xfffffff8
mov eax, 0xc
movd xmm5, eax
lea r10d, [rax - 8]
nop
movq xmm1, xmm5
movd xmm2, edx
pshufd xmm2, xmm2, 0
lea eax, [r10 - 2]
movd xmm3, eax
movq xmm0, xmm6
paddd xmm2, xmm0
pshufd xmm3, xmm3, 0
pslld xmm2, xmm1
xorps xmm0, xmm0
punpckldq xmm2, xmm0
movq xmm0, xmm6
paddd xmm3, xmm0
paddq xmm2, xmm4
movdqu xmmword [r8 + rdx*8], xmm2
add edx, 8
pslld xmm3, xmm1
xorps xmm0, xmm0
movd xmm2, r10d
punpckldq xmm3, xmm0
movq xmm0, xmm6
paddq xmm3, xmm4
pshufd xmm2, xmm2, 0
movdqu xmmword [r8 + rax*8], xmm3
mov eax, r10d
paddd xmm2, xmm0
xorps xmm0, xmm0
pslld xmm2, xmm1
punpckldq xmm2, xmm0
movq xmm0, xmm6
paddq xmm2, xmm4
movdqu xmmword [r8 + rax*8], xmm2
lea eax, [r10 + 2]
add r10d, 8
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm0
xorps xmm0, xmm0
pslld xmm3, xmm1
punpckldq xmm3, xmm0
paddq xmm3, xmm4
movdqu xmmword [r8 + rax*8], xmm3
cmp edx, ecx
jb 0x1400028e0
cmp edx, esi
jae 0x1400029ca
mov eax, edx
lea r8, [rax*8]
nop word [rax + rax]
mov rax, qword [r9]
lea r8, [r8 + 8]
mov ecx, edx
inc edx
shl ecx, 0xc
add rcx, qword [r14]
mov qword [r8 + rax - 8], rcx
cmp edx, esi
jb 0x1400029b0
mov rbx, qword [rbp - 0x80]
mov rcx, rbx
call fcn.140003310
mov r15, rax
test rax, rax
jne 0x140002a00
mov ecx, r12d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.Could_not_open_Folder__s_n
mov rcx, rax
call fcn.140002170
xor edi, edi
jmp 0x140003087
mov ebx, 2
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Folder_opened_successfully_n
call fcn.140002170
mov rcx, r15
call fcn.140005070
mov rcx, rax
test rax, rax
je 0x140002aa8
xor ebx, ebx
nop
movzx eax, byte [0x14001019c]
cmp al, byte [rcx]
jne 0x140002a47
movzx eax, byte [0x14001019d]
cmp al, byte [rcx + 1]
je 0x140002a95
movzx eax, byte [0x1400101a0]
cmp al, byte [rcx]
jne 0x140002a6a
movzx eax, byte [0x1400101a1]
cmp al, byte [rcx + 1]
jne 0x140002a6a
movzx eax, byte [0x1400101a2]
cmp al, byte [rcx + 2]
je 0x140002a95
mov rax, qword [r14 + 8]
mov rdx, qword [rbx + rax]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140002a80
add rbx, 8
mov rcx, r15
call fcn.140005070
mov rcx, rax
test rax, rax
jne 0x140002a30
lea ebx, [rax + 2]
mov rcx, r15
call fcn.140001020
test esi, esi
jne 0x140002ad6
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Folder_is_empty_n
call fcn.140002170
xor edi, edi
jmp 0x140003087
mov esi, edi
jmp 0x140002ad9
xor r15d, r15d
mov r12d, r15d
test esi, esi
je 0x140003003
mov r15d, dword [rsp + 0x50]
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x14000e5f4]
call fcn.140002170
cmp byte [rbp - 0x70], dil
jne 0x140002b21
lea r9, [rbp - 0x40]
mov rdx, r14
lea r8, [rbp - 0x80]
mov ecx, r12d
call fcn.140002240
test al, al
jne case.0x140002b48.13
mov edx, dword [rbp + 0x46dc]
add edx, 0xfffffff6
cmp edx, 8
ja case.0x140002b48.13
lea r8, [0x140000000]
movsxd rax, edx
mov ecx, dword [r8 + rax*4 + 0x32bc]
add rcx, r8
jmp rcx
movsxd rax, edx
mov ecx, dword [r8 + rax*4 + 0x32e0]
add rcx, r8
jmp rcx
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x16c8]
call fcn.140005c90
mov rbx, rax
test rax, rax
jne 0x140002cec
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Unable_to_load_pgx_file_n
call fcn.140002170
jmp 0x140003087
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x16c8]
call fcn.140006160
mov rbx, rax
test rax, rax
jne 0x140002cec
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Unable_to_load_pnm_file_n
call fcn.140002170
jmp 0x140003087
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x16c8]
call fcn.140009020
mov rbx, rax
test rax, rax
jne 0x140002cec
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Unable_to_load_bmp_file_n
call fcn.140002170
jmp 0x140003087
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x16c8]
call fcn.14000bcd0
mov rbx, rax
test rax, rax
jne 0x140002cec
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Unable_to_load_tiff_file_n
call fcn.140002170
jmp 0x140003087
lea r8, [rbp - 0x68]
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x16c8]
call fcn.1400067b0
mov rbx, rax
test rax, rax
jne 0x140002cec
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Unable_to_load_raw_file_n
call fcn.140002170
jmp 0x140003087
lea r8, [rbp - 0x68]
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x16c8]
call fcn.1400067a0
mov rbx, rax
test rax, rax
je 0x140002c5e
jmp 0x140002cec
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x16c8]
call fcn.140007a20
mov rbx, rax
test rax, rax
jne 0x140002cec
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Unable_to_load_tga_file_n
call fcn.140002170
jmp 0x140003087
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x16c8]
call fcn.14000c550
mov rbx, rax
test rax, rax
je 0x140003281
movzx eax, byte [rbp + 0x48ca]
cmp al, 0xff
jne 0x140002d04
cmp dword [rbx + 0x10], 3
setae byte [rbp + 0x48ca]
jmp 0x140002d5c
cmp al, dil
jne 0x140002d4a
cmp dword [rbx + 0x10], 3
jae 0x140002d5c
mov r12d, 2
mov ecx, r12d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.RGB__YCC_conversion_cannot_be_used:_n
call fcn.140002170
mov ecx, r12d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Input_image_has_less_than_3_components_n
call fcn.140002170
jmp 0x140003087
cmp al, 2
jne 0x140002d5c
cmp qword [rbp + 0x48d0], 0
je 0x14000314f
movzx eax, word [rbp + 0x48dc]
mov ecx, 0x400
sub ax, cx
mov ecx, 0x59b
cmp ax, cx
ja 0x140002e5f
test r15d, r15d
jle 0x140002e5f
mov edx, dword [rbp + 0x48dc]
and edx, 0xf
jbe 0x140002e5f
cmp edx, 0xb
ja 0x140002e5f
movdqa xmm0, xmmword [0x1400112a0]
mov r8d, 2
movdqa xmm1, xmmword [0x1400112c0]
mov ecx, dword [rbx + 0x10]
movdqu xmmword [rbp + 0x48e0], xmm0
movdqa xmm0, xmmword [0x1400112e0]
movdqu xmmword [rbp + 0x4900], xmm0
movdqu xmmword [rbp + 0x48f0], xmm1
cmp ecx, 3
jne 0x140002dea
mov rax, qword [rbx + 0x18]
cmp dword [rax + 0x40], r8d
jne 0x140002dea
cmp dword [rax + 0x44], r8d
cmove ecx, r8d
mov eax, dword [rbx + 0xc]
xorps xmm6, xmm6
xorps xmm0, xmm0
xorps xmm1, xmm1
cvtsi2sd xmm6, rax
mov eax, dword [rbx + 8]
cvtsi2sd xmm0, rax
mov eax, ecx
cvtsi2sd xmm1, rax
mulsd xmm6, xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, r15d
mov r15d, dword [rbp + rdx*4 + 0x48e0]
mulsd xmm6, xmm1
mulsd xmm6, xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, r15d
divsd xmm6, qword [0x140011278]
comisd xmm6, xmm0
jbe 0x140002e5f
mov ecx, r8d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
movaps xmm2, xmm6
lea rdx, str.Warning:_MSamples_sec_is__f__whereas_limit_is__d._n
movq r8, xmm2
mov rcx, rax
mov r9d, r15d
call fcn.140002170
mov ecx, dword [rbp + 0x46e0]
test ecx, ecx
je 0x140002ea1
cmp ecx, edi
je 0x140002e96
mov ebx, 2
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.skipping_file.._n
call fcn.140002170
mov rcx, r13
call sub.openjp2.dll_opj_stream_destroy
jmp 0x140002ff4
mov r13d, 2
mov ecx, r13d
jmp 0x140002ea7
xor ecx, ecx
lea r13d, [rcx + 2]
call sub.openjp2.dll_opj_create_compress
xor r8d, r8d
lea rdx, [0x140002600]
mov rcx, rax
mov r15, rax
call sub.openjp2.dll_opj_set_info_handler
xor r8d, r8d
lea rdx, [0x140005200]
mov rcx, r15
call sub.openjp2.dll_opj_set_warning_handler
xor r8d, r8d
lea rdx, [0x140002140]
mov rcx, r15
call sub.openjp2.dll_opj_set_error_handler
mov r8, rbx
lea rdx, [rbp - 0x40]
mov rcx, r15
call sub.openjp2.dll_opj_setup_encoder
test eax, eax
je 0x140003254
cmp dword [rsp + 0x58], 0
je 0x140002f2d
lea rax, str.PLTYES
mov qword [rsp + 0x78], 0
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x70], rax
mov rcx, r15
call sub.openjp2.dll_opj_encoder_set_extra_options
test eax, eax
je 0x14000318a
mov edx, dword [rsp + 0x60]
cmp edx, edi
jl 0x140002f45
mov rcx, r15
call sub.openjp2.dll_opj_codec_set_threads
test eax, eax
je 0x14000319f
xor edx, edx
lea rcx, [rbp + 0x26c8]
call sub.openjp2.dll_opj_stream_create_default_file_stream
mov r13, rax
test rax, rax
je 0x140003087
mov r8, rax
mov rdx, rbx
mov rcx, r15
call sub.openjp2.dll_opj_start_compress
test eax, eax
je 0x1400031b4
mov rdx, r13
mov rcx, r15
call sub.openjp2.dll_opj_encode
test eax, eax
je 0x1400031d4
mov rdx, r13
mov rcx, r15
call sub.openjp2.dll_opj_end_compress
test eax, eax
je 0x1400031f4
inc qword [rsp + 0x68]
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea r8, [rbp + 0x26c8]
lea rdx, str._INFO__Generated_outfile__s_n
call fcn.140002170
mov rcx, r13
call sub.openjp2.dll_opj_stream_destroy
mov rcx, r15
call sub.openjp2.dll_opj_destroy_codec
mov rcx, rbx
call sub.openjp2.dll_opj_image_destroy
mov ebx, 2
jmp 0x140002ff4
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.skipping_file..._n
call fcn.140002170
inc r12d
cmp r12d, esi
jb 0x140002ae4
xor r15d, r15d
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x140003039
xorps xmm7, xmm7
xorps xmm0, xmm0
cvtsi2sd xmm7, qword [rsp + 0x58]
cvtsi2sd xmm0, rax
divsd xmm7, xmm0
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140003084
subsd xmm7, xmm8
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
mulsd xmm7, qword [0x140011270]
jns 0x140003062
addsd xmm0, qword [0x140011280]
divsd xmm7, xmm0
mov ecx, edi
cvttsd2si ebx, xmm7
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, ebx
lea rdx, str.encode_time:__d_ms__n
mov rcx, rax
call fcn.140002170
mov edi, r15d
mov r12, qword [rsp + 0x5a60]
mov rsi, qword [rsp + 0x5a68]
movaps xmm6, xmmword [rsp + 0x5a40]
mov rcx, qword [rbp - 0x18]
movaps xmm8, xmmword [rsp + 0x5a20]
movaps xmm7, xmmword [rsp + 0x5a30]
mov r15, qword [rsp + 0x5a50]
mov r13, qword [rsp + 0x5a58]
test rcx, rcx
je 0x1400030cf
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x1400030de
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x1400030ed
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rbp - 0x80]
test rbx, rbx
je 0x1400030ff
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x5aa0]
test r14, r14
je 0x140003132
mov rcx, qword [r14]
test rcx, rcx
je 0x14000311a
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [r14 + 8]
test rcx, rcx
je 0x140003129
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, edi
mov rcx, qword [rbp + 0x5910]
xor rcx, rsp
call fcn.14000cdb0
add rsp, 0x5a70
pop r14
pop rdi
pop rbp
ret
mov r12d, 2
mov ecx, r12d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Custom_MCT_has_been_set_but_no_array_based_MCT_n
call fcn.140002170
mov ecx, r12d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.has_been_provided._Aborting._n
call fcn.140002170
jmp 0x140003087
mov ecx, r13d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.failed_to_encode_image:_opj_encoder_set_extra_options_n
jmp 0x140003264
mov ecx, r13d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.failed_to_set_number_of_threads_n
jmp 0x140003264
mov r12d, 2
mov ecx, r12d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.failed_to_encode_image:_opj_start_compress_n
call fcn.140002170
jmp 0x1400031da
mov r12d, 2
mov ecx, r12d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.failed_to_encode_image:_opj_encode_n
call fcn.140002170
jmp 0x1400031fa
mov r12d, 2
mov ecx, r12d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.failed_to_encode_image:_opj_end_compress_n
call fcn.140002170
mov rcx, r13
call sub.openjp2.dll_opj_stream_destroy
mov rcx, r15
call sub.openjp2.dll_opj_destroy_codec
mov rcx, rbx
call sub.openjp2.dll_opj_image_destroy
mov ecx, r12d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.failed_to_encode_image_n
call fcn.140002170
lea rcx, [rbp + 0x26c8]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
jmp 0x140003087
mov ecx, r13d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.failed_to_encode_image:_opj_setup_encoder_n
mov rcx, rax
call fcn.140002170
mov rcx, r15
call sub.openjp2.dll_opj_destroy_codec
mov rcx, rbx
call sub.openjp2.dll_opj_image_destroy
jmp 0x140003087
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Unable_to_load_png_file_n
call fcn.140002170
jmp 0x140003087
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Unable_to_load_file:_got_no_image_n
call fcn.140002170
jmp 0x140003087