Function at 0x1800737f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [rsp + 0x80], 0
jne 0x180073833
lea r8, str.We_need_an_image_previously_created._n
mov edx, 1
mov rcx, qword [rsp + 0x88]
call fcn.18006c770
xor eax, eax
jmp 0x180073d17
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x60]
mov rcx, qword [rsp + 0x80]
mov eax, dword [rax + 0x10]
cmp dword [rcx + 0x10], eax
jae 0x18007386c
lea r8, str.Image_has_less_components_than_codestream._n
mov edx, 1
mov rcx, qword [rsp + 0x88]
call fcn.18006c770
xor eax, eax
jmp 0x180073d17
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x70]
mov eax, dword [rax + 0x90]
imul eax, dword [rcx + 0x94]
cmp dword [rsp + 0x90], eax
jb 0x1800738d1
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x70]
mov eax, dword [rax + 0x90]
imul eax, dword [rcx + 0x94]
dec eax
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x90]
lea r8, str.Tile_index_provided_by_the_user_is_incorrect__d__max___d___n
mov edx, 1
mov rcx, qword [rsp + 0x88]
call fcn.18006c770
xor eax, eax
jmp 0x180073d17
xor edx, edx
mov eax, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
div dword [rcx + 0x90]
mov eax, edx
mov dword [rsp + 0x34], eax
xor edx, edx
mov eax, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
div dword [rcx + 0x90]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x34]
imul ecx, dword [rax + 0x7c]
mov eax, ecx
mov rcx, qword [rsp + 0x70]
add eax, dword [rcx + 0x74]
mov rcx, qword [rsp + 0x80]
mov dword [rcx], eax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x60]
mov rcx, qword [rsp + 0x80]
mov eax, dword [rax]
cmp dword [rcx], eax
jae 0x180073950
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x60]
mov rcx, qword [rsp + 0x80]
mov eax, dword [rax]
mov dword [rcx], eax
mov eax, dword [rsp + 0x34]
inc eax
mov rcx, qword [rsp + 0x70]
imul eax, dword [rcx + 0x7c]
mov rcx, qword [rsp + 0x70]
add eax, dword [rcx + 0x74]
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x60]
mov rcx, qword [rsp + 0x80]
mov eax, dword [rax + 8]
cmp dword [rcx + 8], eax
jbe 0x1800739a2
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x60]
mov rcx, qword [rsp + 0x80]
mov eax, dword [rax + 8]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x38]
imul ecx, dword [rax + 0x80]
mov eax, ecx
mov rcx, qword [rsp + 0x70]
add eax, dword [rcx + 0x78]
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x60]
mov rcx, qword [rsp + 0x80]
mov eax, dword [rax + 4]
cmp dword [rcx + 4], eax
jae 0x1800739f7
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x60]
mov rcx, qword [rsp + 0x80]
mov eax, dword [rax + 4]
mov dword [rcx + 4], eax
mov eax, dword [rsp + 0x38]
inc eax
mov rcx, qword [rsp + 0x70]
imul eax, dword [rcx + 0x80]
mov rcx, qword [rsp + 0x70]
add eax, dword [rcx + 0x78]
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0xc], eax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x60]
mov rcx, qword [rsp + 0x80]
mov eax, dword [rax + 0xc]
cmp dword [rcx + 0xc], eax
jbe 0x180073a4c
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x60]
mov rcx, qword [rsp + 0x80]
mov eax, dword [rax + 0xc]
mov dword [rcx + 0xc], eax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x30], 0
jmp 0x180073a71
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x60]
mov eax, dword [rax + 0x10]
cmp dword [rsp + 0x30], eax
jae 0x180073ba4
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x60]
mov ecx, dword [rsp + 0x30]
imul rcx, rcx, 0x40
mov rax, qword [rax + 0x18]
mov rdx, qword [rsp + 0x50]
mov eax, dword [rax + rcx + 0x28]
mov dword [rdx + 0x28], eax
mov rax, qword [rsp + 0x50]
mov edx, dword [rax]
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax]
call fcn.1800750a0
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x10], eax
mov rax, qword [rsp + 0x50]
mov edx, dword [rax + 4]
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 4]
call fcn.1800750a0
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x14], eax
mov rax, qword [rsp + 0x50]
mov edx, dword [rax]
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 8]
call fcn.1800750a0
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x50]
mov edx, dword [rax + 4]
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0xc]
call fcn.1800750a0
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x50]
mov edx, dword [rax + 0x28]
mov ecx, dword [rsp + 0x3c]
call fcn.180075150
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x50]
mov edx, dword [rcx + 0x28]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x10]
call fcn.180075150
mov ecx, dword [rsp + 0x40]
sub ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 0x50]
mov edx, dword [rax + 0x28]
mov ecx, dword [rsp + 0x44]
call fcn.180075150
mov dword [rsp + 0x48], eax
mov rcx, qword [rsp + 0x50]
mov edx, dword [rcx + 0x28]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x14]
call fcn.180075150
mov ecx, dword [rsp + 0x48]
sub ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0xc], eax
mov rax, qword [rsp + 0x50]
add rax, 0x40
mov qword [rsp + 0x50], rax
jmp 0x180073a67
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x60]
mov rcx, qword [rsp + 0x80]
mov eax, dword [rax + 0x10]
cmp dword [rcx + 0x10], eax
jbe 0x180073c43
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x60]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x30], eax
jmp 0x180073bdd
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x10]
cmp dword [rsp + 0x30], eax
jae 0x180073c2c
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x40
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x18]
mov rcx, qword [rcx + rax + 0x30]
call qword [sym.f223.dll_opj_image_data_free]
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x40
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x18]
mov qword [rcx + rax + 0x30], 0
jmp 0x180073bd3
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x60]
mov rcx, qword [rsp + 0x80]
mov eax, dword [rax + 0x10]
mov dword [rcx + 0x10], eax
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
je 0x180073c5e
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x68]
call qword [sym.f223.dll_opj_image_destroy]
call fcn.18006d150
mov rcx, qword [rsp + 0x70]
mov qword [rcx + 0x68], rax
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
jne 0x180073c7f
xor eax, eax
jmp 0x180073d17
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax + 0x68]
mov rcx, qword [rsp + 0x80]
call fcn.18006d360
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x90]
mov dword [rax + 0x38], ecx
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x70]
call fcn.1800899d0
test eax, eax
jne 0x180073cbe
xor eax, eax
jmp 0x180073d17
mov r9, qword [rsp + 0x88]
mov r8, qword [rsp + 0x78]
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax + 0x108]
mov rcx, qword [rsp + 0x70]
call fcn.1800761b0
test eax, eax
jne 0x180073d05
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x60]
call qword [sym.f223.dll_opj_image_destroy]
mov rax, qword [rsp + 0x70]
mov qword [rax + 0x60], 0
xor eax, eax
jmp 0x180073d17
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
call fcn.180089a60
add rsp, 0x68
ret