Function at 0x22db126f0
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 0x22db128a0
cmp esi, 4
je 0x22db128c0
cmp esi, 7
je 0x22db12770
cmp esi, 2
je 0x22db12828
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.22db0d8d0
mov r13, rax
jmp 0x22db12780
mov r13, r14
xor edi, edi
mov r15d, 4
nop dword [rax + rax]
lea rdx, [0x22dd78437]
mov rcx, rbx
call fcn.22dc10400
test al, al
je 0x22db12840
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.22db035f0
mov r8d, dword [rsp + 0x60]
mov rcx, rbx
mov r12, rax
mov rdx, rax
call fcn.22db29730
mov rcx, r12
movzx esi, al
call sub.msvcrt.dll_free
test dil, dil
jne 0x22db128b0
test esi, esi
je 0x22db12884
mov r8, rbx
lea rdx, str.FILEIO:___s__Image_exported_successfully
mov ecx, 3
call fcn.22dce62c0
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 0x22db12780
lea rdx, str..qoi
mov rcx, rbx
call fcn.22dc10400
test al, al
je 0x22db12958
cmp esi, 4
je 0x22db128d0
mov eax, 4
cmp esi, 7
je 0x22db128d5
lea rdx, str.IMAGE:_Image_pixel_format_must_be_R8G8B8_or_R8G8B8A8
mov ecx, 4
call fcn.22dce6140
test dil, dil
je 0x22db12884
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.22dce6140
xor eax, eax
jmp 0x22db1280b
mov r13, r14
mov r15d, 1
xor edi, edi
jmp 0x22db12780
mov rcx, r13
call sub.msvcrt.dll_free
jmp 0x22db127ea
mov r13, r14
xor edi, edi
mov r15d, 3
jmp 0x22db12780
mov eax, 3
xor edx, edx
mov rcx, rbx
mov byte [rsp + 0x6b], 0
mov word [rsp + 0x69], dx
lea rdx, [0x22dd77a95]
mov byte [rsp + 0x68], al
movq qword [rsp + 0x60], xmm6
call sub.msvcrt.dll_fopen
mov r12, rax
test rax, rax
je 0x22db12877
lea rdx, [rsp + 0x60]
lea r8, [rsp + 0x5c]
mov rcx, r13
call fcn.22db01260
mov r14, rax
test rax, rax
je 0x22db129e8
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 0x22db127e1
lea rdx, [0x22dd78605]
mov rcx, rbx
call fcn.22dc10400
test al, al
je 0x22db12877
lea edx, [rsi - 1]
xor eax, eax
cmp edx, 0x14
jbe 0x22db129b8
cmp r12d, 3
jg 0x22db129e0
cmp ebp, 3
jg 0x22db129e0
lea edx, [rsi - 0xb]
mov r8d, 8
cmp edx, 1
jbe 0x22db129a2
sub esi, 0xd
mov r8d, 0x10
cmp esi, 8
cmovae r8d, eax
mov rdx, r14
mov rcx, rbx
call fcn.22db29730
movzx esi, al
jmp 0x22db127e1
mov eax, ebp
lea rcx, [0x22dd78c40]
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 0x22db12979
mov r8d, eax
jmp 0x22db129a2
mov rcx, r12
call sub.msvcrt.dll_fclose
jmp 0x22db12877