Function at 0x2e3c72970
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm6
movq xmm6, qword [rcx + 8]
mov esi, dword [rcx + 0x14]
mov r14, qword [rcx]
pshufd xmm0, xmm6, 0xe5
movd r12d, xmm6
movd ebp, xmm0
mov rbx, rdx
cmp esi, 1
je 0x2e3c72b20
cmp esi, 4
je 0x2e3c72b40
cmp esi, 7
je 0x2e3c729f0
cmp esi, 2
je 0x2e3c72aa8
movdqu xmm1, xmmword [rcx]
mov edi, 1
mov r15d, 4
movaps xmmword [rsp + 0x30], xmm1
mov rax, qword [rcx + 0x10]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x40], rax
call fcn.2e3c6db50
mov r13, rax
jmp 0x2e3c72a00
mov r13, r14
xor edi, edi
mov r15d, 4
nop dword [rax + rax]
lea rdx, [0x2e3ed5437]
mov rcx, rbx
call fcn.2e3d71820
test al, al
je 0x2e3c72ac0
lea rax, [rsp + 0x60]
mov edx, r15d
mov dword [rsp + 0x20], r15d
mov r8d, r12d
imul edx, r12d
mov qword [rsp + 0x28], rax
mov r9d, ebp
mov rcx, r13
mov dword [rsp + 0x60], 0
call fcn.2e3c63870
mov r8d, dword [rsp + 0x60]
mov rcx, rbx
mov r12, rax
mov rdx, rax
call fcn.2e3c89b20
mov rcx, r12
movzx esi, al
call sub.msvcrt.dll_free
test dil, dil
jne 0x2e3c72b30
test esi, esi
je 0x2e3c72b04
mov r8, rbx
lea rdx, str.FILEIO:___s__Image_exported_successfully
mov ecx, 3
call fcn.2e3e42a40
mov eax, 1
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r13, r14
mov r15d, 2
xor edi, edi
jmp 0x2e3c72a00
lea rdx, str..qoi
mov rcx, rbx
call fcn.2e3d71820
test al, al
je 0x2e3c72bd8
cmp esi, 4
je 0x2e3c72b50
mov eax, 4
cmp esi, 7
je 0x2e3c72b55
lea rdx, str.IMAGE:_Image_pixel_format_must_be_R8G8B8_or_R8G8B8A8
mov ecx, 4
call fcn.2e3e428c0
test dil, dil
je 0x2e3c72b04
mov rcx, r13
call sub.msvcrt.dll_free
mov r8, rbx
lea rdx, str.FILEIO:___s__Failed_to_export_image
mov ecx, 4
call fcn.2e3e428c0
xor eax, eax
jmp 0x2e3c72a8b
mov r13, r14
mov r15d, 1
xor edi, edi
jmp 0x2e3c72a00
mov rcx, r13
call sub.msvcrt.dll_free
jmp 0x2e3c72a6a
mov r13, r14
xor edi, edi
mov r15d, 3
jmp 0x2e3c72a00
mov eax, 3
xor edx, edx
mov rcx, rbx
mov byte [rsp + 0x6b], 0
mov word [rsp + 0x69], dx
lea rdx, [0x2e3ed4a95]
mov byte [rsp + 0x68], al
movq qword [rsp + 0x60], xmm6
call sub.msvcrt.dll_fopen
mov r12, rax
test rax, rax
je 0x2e3c72af7
lea rdx, [rsp + 0x60]
lea r8, [rsp + 0x5c]
mov rcx, r13
call fcn.2e3c614e0
mov r14, rax
test rax, rax
je 0x2e3c72c68
movsxd r8, dword [rsp + 0x5c]
mov r9, r12
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
call sub.msvcrt.dll_fclose
mov rcx, r14
call sub.msvcrt.dll_free
mov esi, dword [rsp + 0x5c]
jmp 0x2e3c72a61
lea rdx, [0x2e3ed5605]
mov rcx, rbx
call fcn.2e3d71820
test al, al
je 0x2e3c72af7
lea edx, [rsi - 1]
xor eax, eax
cmp edx, 0x14
jbe 0x2e3c72c38
cmp r12d, 3
jg 0x2e3c72c60
cmp ebp, 3
jg 0x2e3c72c60
lea edx, [rsi - 0xb]
mov r8d, 8
cmp edx, 1
jbe 0x2e3c72c22
sub esi, 0xd
mov r8d, 0x10
cmp esi, 8
cmovae r8d, eax
mov rdx, r14
mov rcx, rbx
call fcn.2e3c89b20
movzx esi, al
jmp 0x2e3c72a61
mov eax, ebp
lea rcx, [0x2e3ed5c00]
imul eax, r12d
imul eax, dword [rcx + rdx*4]
mov edx, eax
lea eax, [rax + 7]
test edx, edx
cmovns eax, edx
sar eax, 3
jmp 0x2e3c72bf9
mov r8d, eax
jmp 0x2e3c72c22
mov rcx, r12
call sub.msvcrt.dll_fclose
jmp 0x2e3c72af7