Function at 0x1400067c0
Capabilities:
Read file on windows

Disassembly:
mov r9d, 1
jmp 0x1400067c0
mov dword [rsp + 0x20], r9d
push rbx
push rsi
push r14
push r15
sub rsp, 0x58
mov eax, dword [rdx + 0x4718]
mov rsi, r8
mov r14d, dword [rdx + 0x4714]
mov r15, rdx
mov dword [rsp + 0x88], eax
mov rbx, rcx
mov eax, dword [r8 + 8]
and eax, dword [r8 + 0xc]
and eax, dword [r8 + 4]
mov dword [rsp + 0x90], r14d
test dword [r8], eax
je 0x1400068cc
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._nError:_invalid_raw_image_parameters_n
call fcn.140002170
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.Please_use_the_Format_option__F:_n
call fcn.140002170
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._F__width___height___ncomp___bitdepth__s_u__dx1_x_dy1_:...:_dxn_x_dyn__n
call fcn.140002170
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.If_subsampling_is_omitted__1x1_is_assumed_for_all_components_n
call fcn.140002170
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.Example:__i_image.raw__o_image.j2k__F_512_512_3_8_u_1x1:2x2:2x2_n
call fcn.140002170
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._________for_raw_512x512_image_with_4:2:0_subsampling_n
call fcn.140002170
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.Aborting._n
call fcn.140002170
xor eax, eax
add rsp, 0x58
pop r15
pop r14
pop rsi
pop rbx
ret
lea rdx, [0x1400114b8]
mov qword [rsp + 0x50], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [rsp + 0x30], rax
mov rdi, rax
test rax, rax
jne 0x140006930
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.Failed_to_open__s_for_reading____n
mov rcx, rax
call fcn.140002170
lea ecx, [rdi + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Aborting_n
call fcn.140002170
mov rdi, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x58
pop r15
pop r14
pop rsi
pop rbx
ret
movsxd rbx, dword [rsi + 8]
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r13
cmp ebx, 1
jne 0x140006950
lea ebp, [rbx + 1]
jmp 0x140006976
cmp ebx, 3
jl 0x140006971
movzx eax, byte [r15 + 0x490a]
test al, al
jne 0x140006968
mov ebp, 3
jmp 0x140006976
mov ebp, 1
cmp al, 2
jne 0x140006976
mov ebp, 0xffffffff
mov eax, dword [rsi + 4]
mov edx, 0x24
mov r13d, dword [rsi]
mov ecx, ebx
mov dword [rsp + 0x24], eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov r12, rax
test rax, rax
jne 0x1400069cc
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.Failed_to_allocate_image_components_parameters____n
call fcn.140002170
lea ecx, [r12 + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Aborting_n
call fcn.140002170
jmp 0x140006cd1
mov qword [rsp + 0x28], rbx
test ebx, ebx
jle 0x140006a3f
mov r8d, dword [rsp + 0x88]
lea r9, [rax + 0x1c]
mov edi, dword [rsp + 0x24]
xor r10d, r10d
nop dword [rax + rax]
mov eax, dword [rsi + 0xc]
mov dword [r9 - 4], eax
lea r9, [r9 + 0x24]
mov eax, dword [rsi + 0xc]
mov dword [r9 - 0x24], eax
mov eax, dword [rsi + 0x10]
mov dword [r9 - 0x20], eax
mov rax, qword [rsi + 0x18]
mov ecx, dword [rax + r10*8]
imul ecx, r14d
mov dword [r9 - 0x40], ecx
mov rax, qword [rsi + 0x18]
mov edx, dword [rax + r10*8 + 4]
inc r10
imul edx, r8d
mov dword [r9 - 0x38], r13d
mov dword [r9 - 0x34], edi
mov dword [r9 - 0x3c], edx
cmp r10, rbx
jl 0x1400069f0
mov rdi, qword [rsp + 0x30]
mov r8d, ebp
mov rdx, r12
mov ecx, ebx
call sub.openjp2.dll_opj_image_create
mov rcx, r12
mov r14, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r14, r14
je 0x140006cd1
mov eax, dword [r15 + 0x470c]
lea ecx, [r13 - 1]
imul ecx, dword [rsp + 0x90]
mov edx, dword [rsp + 0x24]
mov dword [r14], eax
mov eax, dword [r15 + 0x4710]
mov dword [r14 + 4], eax
mov eax, dword [r15 + 0x470c]
inc eax
add ecx, eax
mov dword [r14 + 8], ecx
lea ecx, [rdx - 1]
imul ecx, dword [rsp + 0x88]
mov eax, dword [r15 + 0x4710]
inc eax
add ecx, eax
mov dword [r14 + 0xc], ecx
mov eax, dword [rsi + 0xc]
cmp eax, 8
jg 0x140006b77
mov byte [rsp + 0x88], 0
test ebx, ebx
jle 0x140006c6c
imul edx, r13d
xor r12d, r12d
xor ebp, ebp
mov dword [rsp + 0x24], edx
nop dword [rax + rax]
mov rax, qword [rsi + 0x18]
xor ebx, ebx
mov ecx, dword [rax + r12*8 + 4]
imul ecx, dword [rax + r12*8]
mov eax, edx
cdq
idiv ecx
movsxd r15, eax
test eax, eax
jle 0x140006b48
nop dword [rax]
mov edx, 1
lea rcx, [rsp + 0x88]
mov r8d, edx
mov r9, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
je 0x140006b60
cmp dword [rsi + 0x10], 0
movsx edx, byte [rsp + 0x88]
jne 0x140006b34
movzx edx, byte [rsp + 0x88]
mov rax, qword [r14 + 0x18]
mov rcx, qword [rax + rbp + 0x30]
mov dword [rcx + rbx*4], edx
inc rbx
cmp rbx, r15
jl 0x140006b00
inc r12
add rbp, 0x40
cmp r12, qword [rsp + 0x28]
jge 0x140006c6c
mov edx, dword [rsp + 0x24]
jmp 0x140006ae0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Error_reading_raw_file._End_of_file_probably_reached._n
jmp 0x140006cc1
cmp eax, 0x10
jg 0x140006caf
cmp rbx, 0
jle 0x140006c6c
imul edx, r13d
xor r12d, r12d
mov r13d, dword [rsp + 0x98]
xor ebp, ebp
mov dword [rsp + 0x24], edx
nop
mov rax, qword [rsi + 0x18]
xor ebx, ebx
mov ecx, dword [rax + r12*8 + 4]
imul ecx, dword [rax + r12*8]
mov eax, edx
cdq
idiv ecx
movsxd r15, eax
test eax, eax
jle 0x140006c55
mov edx, 1
lea rcx, [rsp + 0x90]
mov r8d, edx
mov r9, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
je 0x140006b60
mov edx, 1
lea rcx, [rsp + 0x88]
mov r8d, edx
mov r9, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
je 0x140006b60
movzx eax, byte [rsp + 0x90]
mov ecx, 0x100
test r13d, r13d
je 0x140006c22
imul eax, ecx
movzx ecx, byte [rsp + 0x88]
add ax, cx
jmp 0x140006c30
movzx edx, byte [rsp + 0x88]
imul edx, ecx
add ax, dx
cmp dword [rsi + 0x10], 0
movzx ecx, ax
movsx edx, ax
mov rax, qword [r14 + 0x18]
cmove edx, ecx
mov rcx, qword [rax + rbp + 0x30]
mov dword [rcx + rbx*4], edx
inc rbx
cmp rbx, r15
jl 0x140006bc0
inc r12
add rbp, 0x40
cmp r12, qword [rsp + 0x28]
jge 0x140006c6c
mov edx, dword [rsp + 0x24]
jmp 0x140006ba0
mov edx, 1
lea rcx, [rsp + 0x20]
mov r8d, edx
mov r9, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
je 0x140006ca1
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.Warning._End_of_raw_file_not_reached..._processing_anyway_n
call fcn.140002170
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, r14
jmp 0x140006cdc
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.OpenJPEG_cannot_encode_raw_components_with_bit_depth_higher_than_16_bits._n
mov rcx, rax
call fcn.140002170
mov rcx, r14
call sub.openjp2.dll_opj_image_destroy
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov r12, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x80]
mov r13, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
add rsp, 0x58
pop r15
pop r14
pop rsi
pop rbx
ret