Function at 0x1800cf730
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, 0xa8
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x50], 0
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x24]
imul rax, rax, 0x70
mov rcx, qword [rsp + 0xb8]
mov rcx, qword [rcx + 0x18]
mov rdx, qword [rsp + 0xc0]
mov edx, dword [rdx + 0x28]
imul rdx, rdx, 0xc0
add rdx, qword [rcx + rax + 0x20]
mov rax, rdx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
add rax, 0x20
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 0
jmp 0x1800cf7cc
mov eax, dword [rsp + 0x68]
inc eax
mov dword [rsp + 0x68], eax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x68], eax
jae 0x1800cfb9d
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x2c]
imul rax, rax, 0x38
mov rcx, qword [rsp + 0x60]
add rax, qword [rcx + 0x18]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx]
mov eax, dword [rax + 8]
sub eax, ecx
test eax, eax
je 0x1800cf82c
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 4]
mov eax, dword [rax + 0xc]
sub eax, ecx
test eax, eax
jne 0x1800cf83c
mov rax, qword [rsp + 0x60]
add rax, 0x30
mov qword [rsp + 0x60], rax
jmp 0x1800cf7c2
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x80]
mov eax, dword [rax + 0x10]
imul eax, dword [rcx + 0x14]
mov dword [rsp + 0x7c], eax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x6c], 0
jmp 0x1800cf87c
mov eax, dword [rsp + 0x6c]
inc eax
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x7c]
cmp dword [rsp + 0x6c], eax
jae 0x1800cfb8a
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x28], 0
jne 0x1800cf8ae
mov rax, qword [rsp + 0x50]
add rax, 0x48
mov qword [rsp + 0x50], rax
jmp 0x1800cf872
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x2c], 0
jne 0x1800cf8da
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x2c]
inc eax
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x2c], eax
jmp 0x1800cf929
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x2c]
dec eax
mov eax, eax
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x50]
add rax, qword [rcx]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x58]
mov ecx, dword [rcx + 0xc]
cmp dword [rax + 4], ecx
jne 0x1800cf929
mov rax, qword [rsp + 0x58]
add rax, 0x18
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x2c]
inc eax
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x2c], eax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x14]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
cmp rax, qword [rsp + 0x70]
jb 0x1800cf970
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x14]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0xd8]
mov rdx, qword [rsp + 0xc8]
add rdx, rcx
mov rcx, rdx
cmp rax, rcx
jbe 0x1800cf9e1
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x24]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x28]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x2c]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xd8]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x58]
mov r9d, dword [rax + 0x14]
lea r8, str.read:_segment_too_long___d__with_max___d__for_codeblock__d__p_d__b_d__r_d__c_d__n
mov edx, 1
mov rcx, qword [rsp + 0xe8]
call fcn.18006c770
xor eax, eax
jmp 0x1800cfbbf
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x3c]
cmp dword [rax + 0x38], ecx
jne 0x1800cfa6c
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x3c]
lea eax, [rax + rax + 1]
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x78]
imul rax, rax, 0x10
mov rdx, rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
call fcn.180094580
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
jne 0x1800cfa4f
lea r8, str.cannot_allocate_opj_tcd_seg_data_chunk_t_array
mov edx, 1
mov rcx, qword [rsp + 0xe8]
call fcn.18006c770
xor eax, eax
jmp 0x1800cfbbf
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x90]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x78]
mov dword [rax + 0x3c], ecx
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x38]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 8]
mov rdx, qword [rsp + 0x70]
mov qword [rcx + rax], rdx
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x38]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 8]
mov rdx, qword [rsp + 0x58]
mov edx, dword [rdx + 0x14]
mov dword [rcx + rax + 8], edx
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x38]
inc eax
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x38], eax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x14]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x58]
add eax, dword [rcx + 0x14]
mov rcx, qword [rsp + 0x58]
mov dword [rcx], eax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 4]
mov rcx, qword [rsp + 0x58]
add eax, dword [rcx + 0x10]
mov rcx, qword [rsp + 0x58]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov ecx, dword [rcx + 0x10]
mov eax, dword [rax + 0x28]
sub eax, ecx
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x28], eax
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x58]
mov ecx, dword [rcx + 4]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x28], 0
jbe 0x1800cfb58
mov rax, qword [rsp + 0x58]
add rax, 0x18
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x2c]
inc eax
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x2c], eax
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x28], 0
ja 0x1800cf929
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x2c]
mov dword [rax + 0x30], ecx
mov rax, qword [rsp + 0x50]
add rax, 0x48
mov qword [rsp + 0x50], rax
jmp 0x1800cf872
mov rax, qword [rsp + 0x60]
add rax, 0x30
mov qword [rsp + 0x60], rax
jmp 0x1800cf7c2
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x70]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xd0]
mov dword [rcx], eax
mov eax, 1
add rsp, 0xa8
ret