Function at 0x1400cd330
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0xf0
mov rax, qword [0x1402a83b0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov r14, rcx
lea rcx, [rsp + 0x20]
mov rdi, rdx
call fcn.140061e90
cmp word [rdi + 0x138], 0
je 0x1400cd382
movzx eax, word [0x14020d5f8]
movsd xmm0, qword [str.Softimage]
mov word [rsp + 0x58], ax
jmp 0x1400cd3a0
mov eax, dword [0x14021e080]
movsd xmm0, qword [str.Softimage_RLE]
mov dword [rsp + 0x58], eax
movzx eax, word [0x14021e084]
mov word [rsp + 0x5c], ax
mov edx, 0x20
mov eax, 0x18
mov r13d, 1
cmp word [rdi + 0x4c], dx
mov rcx, rdi
movsd qword [rsp + 0x50], xmm0
cmove ax, dx
xor esi, esi
cmp word [rdi + 0x4c], dx
mov word [rsp + 0x32], ax
mov eax, esi
sete al
add eax, 3
lea rdx, [rsp + 0x20]
mov word [rsp + 0x30], r13w
imul eax, dword [rdi + 0x50]
mov dword [rsp + 0x3c], eax
call fcn.14005fe70
movzx r15d, ax
test ax, ax
je 0x1400cd3fa
jmp 0x1400cd66a
mov rdx, rdi
mov rcx, r14
mov qword [rsp + 0xe0], r12
call fcn.1400cd690
test ax, ax
jne 0x1400cd424
mov rcx, rdi
call fcn.14005dcb0
mov eax, 6
jmp 0x1400cd662
cmp word [rdi + 0x4c], 0x20
movzx edx, word [rdi + 0x138]
mov qword [rsp + 0x130], rbx
mov ebx, esi
sete bl
mov rcx, r14
movzx r8d, bx
call fcn.1400cd7e0
test ax, ax
jne 0x1400cd460
mov rcx, rdi
call fcn.14005dcb0
mov eax, 6
jmp 0x1400cd65a
mov qword [rsp + 0xe8], rbp
cmp word [rdi + 0x138], si
je 0x1400cd53b
cmp word [rdi + 0x4c], 0x18
jle 0x1400cd4f2
cmp dword [rdi + 0x54], esi
jle 0x1400cd646
nop word [rax + rax]
mov r8d, r13d
mov edx, esi
mov rcx, rdi
call fcn.1400629c0
mov r8d, dword [rdi + 0x50]
mov rdx, qword [rsp + 0x28]
movzx r9d, bx
mov rcx, r14
call fcn.1400cdb70
movzx r15d, ax
test ax, ax
jne 0x1400cd646
test bx, bx
je 0x1400cd4e6
mov rdx, qword [rsp + 0x28]
mov r8d, dword [rdi + 0x50]
mov rcx, r14
add rdx, 3
call fcn.1400cd880
movzx r15d, ax
test ax, ax
jne 0x1400cd646
inc esi
cmp esi, dword [rdi + 0x54]
jl 0x1400cd490
jmp 0x1400cd646
cmp dword [rdi + 0x54], esi
jle 0x1400cd646
nop dword [rax + rax]
mov r8d, r13d
mov edx, esi
mov rcx, rdi
call fcn.1400629c0
mov r8d, dword [rdi + 0x50]
mov rdx, qword [rsp + 0x28]
movzx r9d, bx
mov rcx, r14
call fcn.1400cdb70
movzx r15d, ax
test ax, ax
jne 0x1400cd646
inc esi
cmp esi, dword [rdi + 0x54]
jl 0x1400cd500
jmp 0x1400cd646
cmp word [rdi + 0x4c], 0x18
jle 0x1400cd601
mov ebp, esi
cmp dword [rdi + 0x54], esi
jle 0x1400cd646
mov r12d, 6
nop word [rax + rax]
mov r8d, r13d
mov edx, ebp
mov rcx, rdi
call fcn.1400629c0
mov eax, dword [rsp + 0x3c]
mov ebx, esi
test eax, eax
jle 0x1400cd5b0
nop word [rax + rax]
mov r9, qword [r14]
movsxd rcx, ebx
mov r8, r13
add rcx, qword [rsp + 0x28]
mov edx, 3
call fcn.1401c24f8
cmp rax, r13
mov eax, dword [rsp + 0x3c]
jne 0x1400cd5aa
add ebx, 4
cmp ebx, eax
jl 0x1400cd580
jmp 0x1400cd5b0
mov ebp, dword [rdi + 0x54]
mov r15d, r12d
mov ebx, esi
test eax, eax
jle 0x1400cd5f4
nop word [rax + rax]
mov rax, qword [rsp + 0x28]
mov r9, qword [r14]
movsxd rcx, ebx
add rax, 3
mov r8, r13
mov rdx, r13
add rcx, rax
call fcn.1401c24f8
cmp rax, r13
jne 0x1400cd5ed
add ebx, 4
cmp ebx, dword [rsp + 0x3c]
jl 0x1400cd5c0
jmp 0x1400cd5f4
mov ebp, dword [rdi + 0x54]
movzx r15d, r12w
inc ebp
cmp ebp, dword [rdi + 0x54]
jl 0x1400cd560
jmp 0x1400cd646
cmp dword [rdi + 0x54], esi
jle 0x1400cd646
nop word [rax + rax]
mov r8d, r13d
mov edx, esi
mov rcx, rdi
call fcn.1400629c0
movsxd rdx, dword [rsp + 0x3c]
mov r9, qword [r14]
mov rcx, qword [rsp + 0x28]
mov r8, r13
call fcn.1401c24f8
cmp rax, r13
jne 0x1400cd640
inc esi
cmp esi, dword [rdi + 0x54]
jl 0x1400cd610
jmp 0x1400cd646
mov r15d, 6
mov rcx, rdi
call fcn.14005dcb0
mov rbp, qword [rsp + 0xe8]
movzx eax, r15w
mov rbx, qword [rsp + 0x130]
mov r12, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1401bd600
add rsp, 0xf0
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret