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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x3468
call fcn.140389a00
sub rsp, rax
mov rsi, rdx
mov rbx, rcx
mov rcx, rdx
call fcn.1400ff9d3
test rax, rax
js 0x1400c5322
mov r13, rax
mov rcx, rax
shr rcx, 2
mov qword [rsp + 0x88], rcx
mov dl, 1
call fcn.14006db06
mov r15, rax
mov r14, rdx
lea rdi, [rsp + 0x1268]
mov r8d, 0x1108
mov rcx, rdi
mov rdx, rsi
call fcn.14038a820
mov rcx, qword [rdi]
mov rdx, qword [rdi + 0x38]
cmp rdx, 4
jb 0x1400c534c
mov rax, qword [rsp + 0x12b0]
cmp rax, rcx
jbe 0x1400c59cb
mov rax, qword [rsp + 0x12b8]
imul r10, rcx, 0x590
mov rax, qword [rax + r10 + 0x4d0]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x12b0]
cmp rax, rcx
jbe 0x1400c59cb
mov rax, qword [rsp + 0x12b0]
cmp rax, rcx
jbe 0x1400c59cb
mov r8b, byte [rsp + 0x2368]
mov r9b, byte [rsp + 0x2369]
mov rax, qword [rsp + 0x12b8]
lea rsi, [rax + r10]
add rsi, 0x528
mov r11d, dword [rsi + 0x10]
mov eax, dword [rsi + 0x14]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x12b8]
mov r12d, dword [rax + r10 + 0x1f0]
mov ebp, dword [rax + r10 + 0x1f4]
cmp rdx, 3
jbe 0x1400c539f
mov rdx, qword [rsp + 0x12b0]
mov rax, qword [rsp + 0x12b8]
jmp 0x1400c53a7
mov qword [rbx], 3
mov byte [rbx + 0x38], 9
add rsi, 8
mov rcx, rsi
add rsp, 0x3468
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.14009abf5
cmp rdx, rcx
jbe 0x1400c59c8
lea rax, [rsp + 0x12b0]
imul r10, rcx, 0x590
mov r8, qword [rax + r10 + 0x4d0]
mov qword [rsp + 0x58], r8
mov r8b, byte [rax + 0x10b8]
mov r9b, byte [rax + 0x10b9]
lea rsi, [rsp + r10 + 0x17d8]
mov r11d, dword [rsi + 0x10]
mov eax, dword [rsi + 0x14]
mov dword [rsp + 0x38], eax
mov r12d, dword [rsi - 0x338]
mov ebp, dword [rsi - 0x334]
lea rax, [rsp + 0x12b0]
cmp rdx, rcx
jbe 0x1400c59bf
mov dword [rsp + 0x44], r11d
imul rcx, rcx, 0x590
mov edx, dword [rax + rcx + 0x528]
mov eax, dword [rax + rcx + 0x530]
cmp r8b, 2
movzx r9d, r9b
movzx ecx, r8b
cmove ecx, r9d
xor r8d, r8d
test cl, cl
setne r8b
lea r8, [r8*4 + 0xc]
imul rax, rdx
mul r8
jo 0x1400c5a2d
and r13, 0xfffffffffffffffc
cmp rax, r13
jne 0x1400c5a2d
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r14
cmp cl, 1
mov cl, 0x18
sbb cl, 0
call fcn.1400d0814
mov byte [rsp + 0x27], al
movups xmm0, xmmword [rsi]
movaps xmmword [rsp + 0x140], xmm0
movups xmm0, xmmword [rsi]
movaps xmmword [rsp + 0x150], xmm0
lea rdx, str.RGAa_channel_with_the_name____is_already_defined
lea rsi, [rsp + 0x60]
mov r8d, 1
mov rcx, rsi
call fcn.14006717b
lea rdx, [0x14041fcc9]
lea rdi, [rsp + 0x168]
mov r8d, 1
mov rcx, rdi
call fcn.14006717b
mov rcx, rsi
mov rdx, rdi
call fcn.1400d5fef
test al, al
jne 0x1400c5a47
lea r15, [rsp + 0x168]
mov rax, qword [r15 + 0x20]
lea rdi, [rsp + 0x1e0]
mov qword [rdi + 0x48], rax
movups xmm0, xmmword [r15]
movups xmm1, xmmword [r15 + 0x10]
movups xmmword [rdi + 0x38], xmm1
movups xmmword [rdi + 0x28], xmm0
movups xmm0, xmmword [rsp + 0x60]
movups xmm1, xmmword [rsp + 0x70]
movaps xmmword [rdi], xmm0
movaps xmmword [rdi + 0x10], xmm1
mov rax, qword [rsp + 0x80]
mov qword [rdi + 0x20], rax
lea rdx, [0x140493548]
mov r8d, 1
mov rcx, r15
call fcn.14006717b
mov rcx, rdi
mov rdx, r15
call fcn.1400d5f8b
test al, al
jne 0x1400c5a85
mov rax, qword [rsp + 0x188]
lea r14, [rsp + 0x2370]
mov qword [r14 + 0x70], rax
movups xmm0, xmmword [rsp + 0x168]
movups xmm1, xmmword [rsp + 0x178]
movups xmmword [r14 + 0x60], xmm1
movups xmmword [r14 + 0x50], xmm0
lea rsi, [rsp + 0x1e0]
mov ecx, 0xa
mov rdi, r14
rep movsq qword [rdi], qword [rsi]
lea rdx, [0x14041fcca]
lea rsi, [rsp + 0x60]
mov r8d, 1
mov rcx, rsi
call fcn.14006717b
mov r8, qword [r14 + 0x70]
cmp r8, 0x18
jbe 0x1400c5565
mov r8, qword [rsp + 0x23c8]
mov rcx, qword [rsp + 0x23d0]
jmp 0x1400c556d
lea rcx, [rsp + 0x23c1]
mov rax, qword [rsp + 0x80]
cmp rax, 0x18
jbe 0x1400c5587
mov rax, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
jmp 0x1400c558c
lea rdx, [rsp + 0x61]
cmp r8, rax
jne 0x1400c559e
call fcn.14038aeb0
test eax, eax
je 0x1400c59dc
lea rcx, [rsp + 0x2370]
lea rdx, [rsp + 0x60]
call fcn.1400d5f8b
test al, al
jne 0x1400c59dc
movzx r10d, byte [rsp + 0x27]
lea rdx, [rsp + 0x1270]
mov r11d, dword [rsp + 0x44]
sub r12d, r11d
mov r14d, dword [rsp + 0x38]
sub ebp, r14d
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xf0], rax
movups xmm0, xmmword [rsp + 0x60]
movups xmm1, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0xe0], xmm1
movaps xmmword [rsp + 0xd0], xmm0
lea rax, [rsp + 0x168]
lea r8, [rsp + 0x2370]
mov ecx, 0xf
mov rdi, rax
mov rsi, r8
rep movsq qword [rdi], qword [rsi]
movaps xmm0, xmmword [rsp + 0x140]
lea r9, [rsp + 0x238]
movups xmmword [r9 - 0x48], xmm0
movaps xmm0, xmmword [rsp + 0x150]
movaps xmmword [r8], xmm0
mov dword [r9 - 0x38], r11d
mov dword [r9 - 0x34], r14d
mov qword [r9 - 0x30], r10
mov dword [r9 - 0x28], r12d
mov dword [r9 - 0x24], ebp
movups xmmword [r9 - 0x20], xmm0
mov dword [r9 - 0x10], r11d
mov dword [r9 - 0xc], r14d
mov qword [r9 - 8], r10
mov ecx, 0xf
mov rdi, r9
mov rsi, rax
rep movsq qword [rdi], qword [rsi]
mov rax, qword [rsp + 0xf0]
mov qword [r9 + 0x98], rax
movaps xmm0, xmmword [rsp + 0xd0]
movaps xmm1, xmmword [rsp + 0xe0]
movups xmmword [r9 + 0x88], xmm1
movups xmmword [r9 + 0x78], xmm0
mov dword [r9 + 0xa0], 0x3f800000
lea rax, [rsp + 0x30]
mov qword [r9 - 0x58], rax
lea rax, [rsp + 0x58]
mov qword [r9 - 0x50], rax
mov word [r9 + 0xa8], 0x100
lea rsi, [rsp + 0x2370]
mov r8d, 0x10f8
mov rcx, rsi
call fcn.14038a820
lea rdi, [rsp + 0xd40]
lea rdx, [rsp + 0x1e0]
mov rcx, rdi
mov r8, rsi
call fcn.14009acc6
cmp dword [rdi + 0x30], 2
jne 0x1400c5740
mov rax, qword [rsp + 0xd60]
lea rdx, [rsp + 0x2370]
mov qword [rdx + 0x20], rax
movups xmm0, xmmword [rsp + 0xd40]
movups xmm1, xmmword [rsp + 0xd50]
movaps xmmword [rdx + 0x10], xmm1
movaps xmmword [rdx], xmm0
lea rcx, [rsp + 0x320]
call fcn.1400f4e46
mov r14, qword [rsp + 0x50]
mov r15, qword [rsp + 0x48]
jmp 0x1400c5776
lea rsi, [rsp + 0x2e8]
lea rdx, [rsp + 0xd40]
mov r8d, 0x528
mov rcx, rsi
call fcn.14038a820
mov rdi, qword [rsi + 0x30]
cmp rdi, 2
mov r14, qword [rsp + 0x50]
mov r15, qword [rsp + 0x48]
jne 0x1400c586b
mov rcx, qword [rsp + 0x350]
mov qword [rsp + 0xc0], rcx
movups xmm0, xmmword [rsp + 0x320]
movups xmm1, xmmword [rsp + 0x330]
movups xmm2, xmmword [rsp + 0x340]
movaps xmmword [rsp + 0xb0], xmm2
movaps xmmword [rsp + 0xa0], xmm1
movaps xmmword [rsp + 0x90], xmm0
mov al, byte [rsp + 0x358]
mov edx, dword [rsp + 0x359]
mov dword [rsp + 0x28], edx
mov edx, dword [rsp + 0x35c]
mov dword [rsp + 0x2b], edx
movaps xmmword [rsp + 0x100], xmm0
movaps xmmword [rsp + 0x110], xmm1
movaps xmmword [rsp + 0x120], xmm2
mov qword [rsp + 0x130], rcx
mov ecx, dword [rsp + 0x28]
mov edx, dword [rsp + 0x2b]
mov dword [rsp + 0x3f], edx
mov dword [rsp + 0x3c], ecx
cmp al, 0xc
je 0x1400c5994
mov rcx, qword [rsp + 0x130]
mov qword [rbx + 0x30], rcx
movaps xmm0, xmmword [rsp + 0x100]
movaps xmm1, xmmword [rsp + 0x110]
movaps xmm2, xmmword [rsp + 0x120]
movups xmmword [rbx + 0x20], xmm2
movups xmmword [rbx + 0x10], xmm1
movups xmmword [rbx], xmm0
mov ecx, dword [rsp + 0x3c]
mov edx, dword [rsp + 0x3f]
mov dword [rbx + 0x39], ecx
mov dword [rbx + 0x3c], edx
mov byte [rbx + 0x38], al
test r15, r15
je 0x1400c59ab
mov rcx, qword [0x1404fd180]
xor edx, edx
mov r8, r14
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x1400c59ab
lea rdx, [rsp + 0x360]
movups xmm0, xmmword [rdx - 0x78]
movups xmm1, xmmword [rdx - 0x68]
movups xmm2, xmmword [rdx - 0x58]
movups xmm3, xmmword [rdx - 0x40]
lea rsi, [rsp + 0x888]
movaps xmmword [rsi - 0x58], xmm2
movaps xmmword [rsi - 0x68], xmm1
movaps xmmword [rsi - 0x78], xmm0
movaps xmmword [rsp + 0x90], xmm3
movups xmm0, xmmword [rdx - 0x30]
movaps xmmword [rsp + 0xa0], xmm0
movups xmm0, xmmword [rdx - 0x20]
movaps xmmword [rsp + 0xb0], xmm0
mov rax, qword [rdx - 0x10]
mov qword [rsp + 0xc0], rax
mov bpl, byte [rdx - 8]
mov eax, dword [rdx - 7]
mov dword [rsp + 0x28], eax
mov eax, dword [rdx - 4]
mov dword [rsp + 0x2b], eax
mov r8d, 0x4b0
mov rcx, rsi
call fcn.14038a820
movaps xmm0, xmmword [rsp + 0x90]
movaps xmm1, xmmword [rsp + 0xa0]
movaps xmm2, xmmword [rsp + 0xb0]
movups xmmword [rsi - 0x40], xmm0
movups xmmword [rsi - 0x30], xmm1
movups xmmword [rsi - 0x20], xmm2
mov rax, qword [rsp + 0xc0]
mov qword [rsi - 0x10], rax
mov byte [rsi - 8], bpl
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x2b]
mov dword [rsi - 7], eax
mov dword [rsi - 4], ecx
mov qword [rsi - 0x48], rdi
mov rdx, qword [rsi + 0x3f8]
shl rdx, 2
cmp r13, rdx
jne 0x1400c5ad2
lea rsi, [rsp + 0xcb0]
mov rdx, qword [rsi - 0x38]
mov rcx, r14
mov r8, r13
call fcn.14038a820
mov rcx, rsi
call fcn.140067f6c
lea rcx, [rsp + 0xb70]
call fcn.1400d38b8
cmp qword [rsi - 0x40], 0
je 0x1400c5987
mov r8, qword [rsp + 0xc78]
mov rcx, qword [0x1404fd180]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
lea rcx, [rsp + 0x820]
call fcn.14009aaad
mov qword [rbx], r15
mov qword [rbx + 8], r14
mov rax, qword [rsp + 0x88]
mov qword [rbx + 0x10], rax
mov byte [rbx + 0x38], 0xc
add rsp, 0x3468
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str.C:Userslucak.cargo_registry_srcindex.crates.io_6f17d22bba15001fimage_0.24.7._srccodecsopenexr.rs
jmp 0x1400c59d5
mov rax, rdx
lea r8, str.C:Userslucak.cargo_registry_srcindex.crates.io_6f17d22bba15001fimage_0.24.7._srccodecsopenexr.rs
mov rdx, rax
call fcn.14038e8b0
ud2
mov qword [rsp + 0x168], rsi
lea rax, [0x14006733e]
mov qword [rsp + 0x170], rax
lea rax, [0x14041fcf8]
lea rcx, [rsp + 0x1e0]
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], 2
mov qword [rcx], 0
mov qword [rcx + 0x20], r15
mov qword [rcx + 0x28], 1
lea rdx, [0x14041fd18]
jmp 0x1400c5acb
lea rcx, str.byte_buffer_not_large_enough_for_the_specified_dimensions_and_f32_pixels
lea r8, str.C:Userslucak.cargo_registry_srcindex.crates.io_6f17d22bba15001fimage_0.24.7._srccodecsopenexr.rs
mov edx, 0x48
call fcn.14038f7d9
ud2
lea rax, [rsp + 0x1e0]
mov qword [rax], rdi
lea rcx, [0x14006733e]
mov qword [rax + 8], rcx
lea rdx, [0x14041fcf8]
lea rcx, [rsp + 0x2370]
mov qword [rcx + 0x10], rdx
mov qword [rcx + 0x18], 2
mov qword [rcx], 0
mov qword [rcx + 0x20], rax
jmp 0x1400c5abc
mov qword [rsp + 0x60], r15
lea rax, [0x14006733e]
mov qword [rsp + 0x68], rax
lea rax, [0x14041fcf8]
lea rcx, [rsp + 0x2370]
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], 2
mov qword [rcx], 0
mov qword [rcx + 0x20], rsi
mov qword [rcx + 0x28], 1
lea rdx, [0x14041fd30]
call fcn.14038e870
ud2
lea r8, str.C:Userslucak.cargo_registry_srcindex.crates.io_6f17d22bba15001fimage_0.24.7._srccodecsopenexr.rs
mov rcx, r13
call fcn.14038eeb0
ud2