Function at 0x1400d4d10
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
lea rbp, [rsp - 0x810]
sub rsp, 0x910
mov rax, qword [0x1402a83b0]
xor rax, rsp
mov qword [rbp + 0x7f0], rax
mov r12, rcx
mov rdi, rdx
lea rcx, [rbp]
xor edx, edx
mov r8d, 0xc0
call fcn.1401c0040
mov eax, dword [str.V4.5]
mov rcx, qword [r12 + 0x100]
mov dword [rbp + 0x18], eax
movzx eax, byte [0x14021e438]
lea rdx, [rbp + 0x20]
xor esi, esi
mov dword [rbp], 0x802a5fd7
mov dword [rbp + 4], 0x800
mov byte [rbp + 0x1c], al
mov dword [rbp + 0x14], 0x800
mov dword [rbp + 8], 0x400
mov qword [rbp + 0xc], 0x400
sub rdx, rcx
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx + rcx - 1], al
test al, al
jne 0x1400d4da0
xor ecx, ecx
mov qword [rsp + 0x908], r14
call fcn.1401bf51c
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
call fcn.1401bf1c8
lea r8, str._Y:_m:_d
lea rcx, [rbp + 0x84]
mov edx, 0xc
mov r9, rax
mov rbx, rax
call fcn.1401bf1ac
lea r8, str._H:_M:_S10
lea rcx, [rbp + 0x90]
mov r9, rbx
mov edx, 0xc
call fcn.1401bf1ac
lea rdx, [rbp]
mov rcx, r12
call fcn.1400d5200
test ax, ax
je 0x1400d4e21
mov eax, 6
jmp 0x1400d5138
lea rcx, [rbp + 0xc0]
xor edx, edx
mov r8d, 0x1e8
mov qword [rsp + 0x950], r13
call fcn.1401c0040
mov r9, qword [rdi + 0x168]
test r9, r9
je 0x1400d4e52
mov byte [rbp + 0xc1], 3
jmp 0x1400d4e5c
movzx eax, byte [rdi + 0x64]
mov byte [rbp + 0xc1], al
mov ecx, 4
test r9, r9
jne 0x1400d4e6a
movsx ecx, word [rdi + 0x64]
mov r11d, dword [rdi + 0x50]
mov r10d, dword [rdi + 0x54]
mov word [rbp + 0xc2], 0xffff
mov eax, r11d
mov r8d, esi
lea rdx, [rbp + 0xc5]
mov r13d, 1
imul eax, r10d
imul eax, ecx
add dword [rbp + 0x14], eax
nop dword [rax + rax]
lea eax, [r8 + 1]
mov byte [rdx - 1], sil
mov byte [rdx], al
mov eax, 0xa
test r9, r9
jne 0x1400d4eb8
movsx eax, word [rdi + 0x62]
mov byte [rdx + 1], al
movzx ecx, al
mov eax, r13d
shl eax, cl
xorps xmm0, xmm0
inc r8d
dec eax
mov dword [rdx + 3], r11d
mov dword [rdx + 7], r10d
mov qword [rdx + 0xb], rsi
mov dword [rdx + 0x17], 0x40000000
add rdx, 0x1c
cvtsi2ss xmm0, rax
movss dword [rdx - 9], xmm0
cmp r8d, 3
jl 0x1400d4ea0
movaps xmm0, xmmword [0x14021e460]
lea rdx, [rbp + 0xc0]
mov rcx, r12
mov dword [rbp + 0x1a4], 0x4eff0000
mov dword [rbp + 0x1a8], 0x4eff0000
mov dword [rbp + 0x1ac], 0x4eff0000
movaps xmmword [rbp + 0x1b0], xmm0
mov dword [rbp + 0x1c0], 0x4eff0000
call fcn.1400d5350
test ax, ax
jne 0x1400d5051
xor eax, eax
lea rdx, [rbp - 0x20]
mov rcx, r12
mov qword [rbp - 0x20], rax
mov word [rbp - 0x20], 0x500
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
call fcn.1400d52d0
test ax, ax
jne 0x1400d5051
lea rcx, [rbp + 0x2b0]
xor edx, edx
mov r8d, 0x138
call fcn.1401c0040
mov rcx, qword [r12 + 0x100]
lea rdx, [rbp + 0x2b8]
sub rdx, rcx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx + rcx - 1], al
test al, al
jne 0x1400d4fa0
movss xmm1, dword [0x140269a84]
lea rdx, [rbp + 0x2b0]
mov rcx, r12
mov dword [rbp + 0x3b4], 0x4326ab85
mov dword [rbp + 0x3b8], 0x4326ab85
movss dword [rbp + 0x3bc], xmm1
call fcn.1400d5530
test ax, ax
jne 0x1400d5051
lea rcx, [rbp + 0x3f0]
xor edx, edx
mov r8d, 0x400
call fcn.1401c0040
mov eax, dword [str.none]
lea rdx, [rbp + 0x3f0]
mov dword [rbp + 0x424], eax
movzx eax, byte [0x140219c0c]
mov rcx, r12
mov dword [rbp + 0x3f0], 0xffffffff
mov qword [rbp + 0x3f4], 0xffffffffffffffff
mov dword [rbp + 0x41c], 0xff
mov byte [rbp + 0x428], al
mov dword [rbp + 0x420], 0x4eff0000
call fcn.1400d5640
test ax, ax
je 0x1400d505b
mov eax, 6
jmp 0x1400d5130
lea rcx, [rsp + 0x30]
call fcn.140061e90
mov eax, dword [0x14020e358]
movzx ecx, byte [rbp + 0xc1]
movsd xmm0, qword [str.Kodak_Cineon]
movsd qword [rsp + 0x60], xmm0
mov dword [rsp + 0x68], eax
movzx eax, byte [0x14020e35c]
lea rdx, [rsp + 0x30]
mov byte [rsp + 0x6c], al
mov eax, ecx
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x34], 0x10000
mov word [rsp + 0x40], r13w
mov word [rsp + 0x50], si
imul eax, dword [rdi + 0x50]
mov dword [rsp + 0x4c], eax
movzx eax, cx
mov rcx, rdi
shl ax, 3
mov word [rsp + 0x42], ax
call fcn.14005fe70
movzx r14d, ax
test ax, ax
jne 0x1400d512c
mov qword [rsp + 0x900], r15
mov r15d, esi
cmp dword [rdi + 0x54], esi
jle 0x1400d511c
mov r8d, r13d
mov edx, r15d
mov rcx, rdi
call fcn.1400629c0
cmp byte [rbp + 0xc6], 8
jne 0x1400d515d
movsxd rdx, dword [rsp + 0x4c]
mov r9, qword [r12]
mov rcx, qword [rsp + 0x38]
mov r8, r13
call fcn.1401c24f8
test rax, rax
jne 0x1400d51e5
lea r14d, [rax + 6]
mov rcx, rdi
call fcn.14005dcb0
mov r15, qword [rsp + 0x900]
movzx eax, r14w
mov r13, qword [rsp + 0x950]
mov r14, qword [rsp + 0x908]
mov rcx, qword [rbp + 0x7f0]
xor rcx, rsp
call fcn.1401bd600
add rsp, 0x910
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
cmp dword [rdi + 0x50], 0
jle 0x1400d51e3
mov rbx, qword [rsp + 0x38]
add rbx, 2
mov rdx, qword [rdi + 0x168]
test rdx, rdx
je 0x1400d51af
movzx eax, byte [rbx - 1]
movzx r8d, word [rdx + rax*2 + 0x200]
movzx eax, byte [rbx - 2]
movzx ecx, word [rdx + rax*2]
movzx eax, byte [rbx]
shl ecx, 0xa
or r8d, ecx
movzx ecx, word [rdx + rax*2 + 0x400]
shl r8d, 0xa
or r8d, ecx
shl r8d, 2
jmp 0x1400d51cd
movzx eax, byte [rbx - 1]
movzx r8d, byte [rbx - 2]
shl r8d, 0xa
or r8d, eax
movzx eax, byte [rbx]
shl r8d, 0xa
or r8d, eax
shl r8d, 4
mov rdx, r12
mov ecx, r8d
add rbx, 3
call fcn.140067100
inc esi
cmp esi, dword [rdi + 0x50]
jl 0x1400d5170
xor esi, esi
inc r15d
cmp r15d, dword [rdi + 0x54]
jl 0x1400d50e2
jmp 0x1400d511c