Function at 0x1400ce220
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x108
mov rax, qword [0x1402a83b0]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov r14, rcx
lea rcx, [rsp + 0x40]
mov rsi, rdx
call fcn.140061e90
mov eax, dword [0x1402133f8]
mov ebx, dword [rsi + 0x50]
movups xmm0, xmmword [str.Wavefront_Raster_Image]
movsxd rcx, dword [rsi + 0x54]
mov dword [rsp + 0x80], eax
movzx eax, word [0x1402133fc]
movaps xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x84], ax
movzx eax, byte [0x1402133fe]
xor ebp, ebp
cmp word [rsi + 0x4c], 0x20
mov byte [rsp + 0x86], al
mov eax, 0x10
mov word [rsp + 0x44], ax
mov eax, 8
lea edx, [rbp + 4]
mov word [rsp + 0x52], ax
mov eax, ebp
sete al
add ax, 3
mov dword [rsp + 0x5c], ebx
mov word [rsp + 0x50], ax
call fcn.1401be1f8
mov rdi, rax
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x1400ce2d9
lea eax, [rbp + 1]
jmp 0x1400ce4a1
lea eax, [rbx + rbx]
mov r12d, 1
mov qword [rsp + 0x150], r13
movsxd rcx, eax
mov edx, r12d
call fcn.1401be1f8
mov r13, rax
test rax, rax
jne 0x1400ce30e
mov rcx, rdi
call fcn.1401be23c
movzx eax, r12w
jmp 0x1400ce499
mov rdx, rsi
mov rcx, r14
mov qword [rsp + 0x100], r15
call fcn.1400ce4e0
test ax, ax
jne 0x1400ce340
mov rcx, rdi
call fcn.1401be23c
mov rcx, r13
call fcn.1401be23c
mov eax, 6
jmp 0x1400ce491
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14005fe70
movzx ebx, ax
mov dword [rsp + 0x20], ebx
test ax, ax
je 0x1400ce371
mov rcx, rdi
call fcn.1401be23c
mov rcx, r13
call fcn.1401be23c
movzx eax, bx
jmp 0x1400ce491
mov rcx, qword [r14]
call fcn.1401c2310
mov ebx, ebp
mov dword [rsp + 0x24], eax
cmp dword [rsi + 0x54], ebx
jle 0x1400ce395
mov rdx, r14
xor ecx, ecx
call fcn.140067100
inc ebx
cmp ebx, dword [rsi + 0x54]
jl 0x1400ce384
mov r15d, ebp
cmp dword [rsi + 0x54], ebp
jle 0x1400ce43f
mov rbx, rdi
mov qword [rsp + 0x28], rbx
nop dword [rax]
mov r8d, r12d
mov edx, r15d
mov rcx, rsi
call fcn.1400629c0
mov rcx, qword [r14]
call fcn.1401c2310
mov dword [rbx], eax
mov ebx, ebp
cmp bp, word [rsp + 0x50]
jge 0x1400ce41f
mov r8d, dword [rsi + 0x50]
mov eax, ebx
mov rcx, r13
imul eax, dword [rsp + 0x5c]
movsxd rdx, eax
add rdx, qword [rsp + 0x48]
call fcn.1400ce0a0
mov rdx, r14
movsxd rdi, eax
movzx ecx, di
call fcn.1400671a0
mov r9, qword [r14]
mov rdx, rdi
mov r8, r12
mov rcx, r13
call fcn.1401c24f8
cmp rax, r12
jne 0x1400ce4c1
movsx eax, word [rsp + 0x50]
inc ebx
cmp ebx, eax
jl 0x1400ce3d1
mov rbx, qword [rsp + 0x28]
inc r15d
add rbx, 4
mov qword [rsp + 0x28], rbx
cmp r15d, dword [rsi + 0x54]
jl 0x1400ce3b0
mov rdi, qword [rsp + 0x30]
mov r15d, dword [rsp + 0x20]
mov edx, dword [rsp + 0x24]
mov rcx, qword [r14]
xor r8d, r8d
call fcn.1401c1f88
cmp dword [rsi + 0x54], ebp
jle 0x1400ce475
mov rbx, rdi
nop dword [rax + rax]
mov ecx, dword [rbx]
mov rdx, r14
call fcn.140067100
inc ebp
lea rbx, [rbx + 4]
cmp ebp, dword [rsi + 0x54]
jl 0x1400ce460
mov rcx, rdi
call fcn.1401be23c
mov rcx, r13
call fcn.1401be23c
mov rcx, rsi
call fcn.14005dcb0
movzx eax, r15w
mov r15, qword [rsp + 0x100]
mov r13, qword [rsp + 0x150]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1401bd600
add rsp, 0x108
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rdi, qword [rsp + 0x30]
mov r15d, 6
jmp 0x1400ce444