Function at 0x1400e2300
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x680]
sub rsp, 0x780
mov rax, qword [0x1402a83b0]
xor rax, rsp
mov qword [rbp + 0x670], rax
movzx eax, byte [rdx + 0x162]
xor esi, esi
mov rdi, rdx
mov r15, rcx
lea r12d, [rsi + 1]
test al, al
je 0x1400e236d
cmp al, 2
jne 0x1400e236d
lea rax, [fcn.1400671a0]
mov word [rsp + 0x20], r12w
lea r14, [fcn.140067100]
mov qword [rsp + 0x28], rax
lea rax, [fcn.140067060]
jmp 0x1400e238c
lea rax, [fcn.140067160]
lea r14, [fcn.1400670d0]
mov word [rsp + 0x20], si
mov qword [rsp + 0x28], rax
lea rax, [0x140067010]
lea rcx, [rbp + 0x370]
xor edx, edx
mov r8d, 0x2fc
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], rax
mov word [rsp + 0x22], si
call fcn.1401c0040
mov eax, dword [str.V1.0]
lea rcx, [rbp + 0xf0]
movsd xmm0, qword [str.LIBFORMAT]
movsd qword [rbp + 0x40c], xmm0
mov dword [rbp + 0x374], eax
movzx eax, byte [0x14021ecdc]
xor edx, edx
mov byte [rbp + 0x378], al
movzx eax, word [0x14021ece8]
mov r8d, 0x280
mov dword [rbp + 0x370], 0x680
mov dword [rbp + 0x37c], esi
mov dword [rbp + 0x380], r12d
mov word [rbp + 0x414], ax
mov qword [rbp + 0x384], 0x680
mov dword [rbp + 0x38c], esi
mov dword [rbp + 0x600], 0xffffffff
call fcn.1401c0040
mov eax, dword [rdi + 0x50]
movss xmm1, dword [0x14021ecec]
xorps xmm0, xmm0
movss dword [rbp + 0x104], xmm0
movss dword [rbp + 0x10c], xmm1
cmp word [rdi + 0x64], 3
movzx ecx, byte [rdi + 0x154]
mov dword [rbp + 0xf4], eax
mov eax, dword [rdi + 0x54]
mov edx, 0xa
mov ebx, 8
mov dword [rbp + 0xf8], eax
setg al
mov r8d, 0x100
add al, 0x32
test cl, cl
lea rcx, [rbp - 0x10]
mov byte [rbp + 0x110], al
mov eax, ebx
mov dword [rbp + 0xf0], 0x10000
cmovne eax, edx
mov edx, 0x3ff
mov qword [rbp + 0xfc], rsi
mov byte [rbp + 0x113], al
mov eax, esi
setne al
mov word [rbp + 0x114], ax
mov eax, 0xff
mov word [rbp + 0x111], 0x202
cmovne eax, edx
xor edx, edx
mov word [rbp + 0x116], si
mov qword [rbp + 0x118], 0x680
mov dword [rbp + 0x120], esi
mov dword [rbp + 0x108], eax
call fcn.1401c0040
lea r8, [rsp + 0x20]
lea rdx, [rbp + 0x370]
mov rcx, r15
mov qword [rbp - 0x10], 0xffffffffffffffff
mov dword [rbp - 8], 0xbf800000
mov qword [rbp - 4], 0xffffffffbf800000
mov dword [rbp + 4], 0xffffffff
call fcn.1400e2700
lea r8, [rsp + 0x20]
lea rdx, [rbp + 0xf0]
mov rcx, r15
call fcn.1400e2820
lea r8, [rsp + 0x20]
lea rdx, [rbp - 0x10]
mov rcx, r15
call fcn.1400e2970
lea rcx, [rsp + 0x40]
call fcn.140061e90
mov dword [rsp + 0x70], 0x585044
mov word [rsp + 0x50], r12w
movsx ecx, word [rdi + 0x64]
mov edx, ecx
movzx eax, cx
shl ax, 3
mov word [rsp + 0x52], ax
imul edx, dword [rdi + 0x50]
mov dword [rsp + 0x5c], edx
cmp ecx, 3
jle 0x1400e258c
cmp byte [rdi + 0x165], sil
mov eax, 0x20
cmovne eax, esi
mov dword [rsp + 0x40], eax
jmp 0x1400e25aa
cmp byte [rdi + 0x165], sil
lea eax, [rdx + 3]
cmovne ebx, esi
cdq
and edx, 3
mov dword [rsp + 0x40], ebx
add eax, edx
and eax, 0xfffffffc
mov dword [rsp + 0x5c], eax
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14005fe70
movzx r13d, ax
test ax, ax
jne 0x1400e26ac
mov r12d, esi
cmp dword [rdi + 0x54], esi
jle 0x1400e26a4
mov r8d, 1
mov edx, r12d
mov rcx, rdi
call fcn.1400629c0
cmp byte [rdi + 0x154], 0
je 0x1400e2683
cmp dword [rdi + 0x50], 0
jle 0x1400e2672
mov rbx, qword [rsp + 0x48]
inc rbx
mov rdx, qword [rdi + 0x168]
test rdx, rdx
je 0x1400e2640
movzx eax, byte [rbx - 1]
movzx r8d, word [rdx + rax*2]
movzx eax, byte [rbx]
movzx ecx, word [rdx + rax*2 + 0x200]
movzx eax, byte [rbx + 1]
shl r8d, 0xa
or r8d, ecx
movzx ecx, word [rdx + rax*2 + 0x400]
shl r8d, 0xa
or r8d, ecx
shl r8d, 2
jmp 0x1400e265e
movzx eax, byte [rbx]
movzx r8d, byte [rbx + 1]
shl r8d, 0xa
or r8d, eax
movzx eax, byte [rbx - 1]
shl r8d, 0xa
or r8d, eax
shl r8d, 4
mov rdx, r15
mov ecx, r8d
add rbx, 3
call r14
inc esi
cmp esi, dword [rdi + 0x50]
jl 0x1400e2600
xor esi, esi
inc r12d
cmp r12d, dword [rdi + 0x54]
jl 0x1400e25d0
jmp 0x1400e26a4
movsxd rdx, dword [rsp + 0x5c]
mov r9, qword [r15]
mov rcx, qword [rsp + 0x48]
mov r8d, 1
call fcn.1401c24f8
test rax, rax
jne 0x1400e2674
lea r13d, [rax + 6]
mov rcx, rdi
call fcn.14005dcb0
mov rcx, qword [r15]
call fcn.1401c2310
mov rcx, qword [r15]
xor r8d, r8d
lea edx, [r8 + 0x10]
mov ebx, eax
call fcn.1401c1f88
mov rdx, r15
mov ecx, ebx
call r14
movzx eax, r13w
mov rcx, qword [rbp + 0x670]
xor rcx, rsp
call fcn.1401bd600
mov rbx, qword [rsp + 0x7d0]
add rsp, 0x780
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret