Function at 0x14000ed30
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400e9088]
xor rax, rsp
mov qword [rbp + 0x27], rax
movzx r14d, dx
mov rbx, rcx
mov esi, 0xffff
cmp si, dx
jne 0x14000ed81
xor r15d, r15d
movzx eax, r15w
jmp 0x14000efc4
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x14000edbe
mov rax, qword [rcx + 0x58]
movsxd r9, dword [rax]
lea rdx, [r8 + r9*2]
cmp r8, rdx
jae 0x14000edbe
lea ecx, [r9 - 1]
mov dword [rax], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], r14w
movzx eax, r14w
jmp 0x14000efc4
cmp qword [rcx + 0x80], 0
je 0x14000efc1
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14000edfd
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
sub rdx, rcx
sar rdx, 1
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp qword [rbx + 0x68], 0
jne 0x14000ee26
mov rdx, qword [rbx + 0x80]
movzx ecx, r14w
call fcn.14007fb98
cmp ax, si
je 0x14000efc1
movzx esi, r14w
jmp 0x14000efc1
mov word [rbp - 1], r14w
xor r15d, r15d
mov qword [rbp + 0x17], r15
mov qword [rbp + 0x1f], r15
mov qword [rbp + 0x1f], SafeArrayGetLBound
mov qword [rbp + 0x17], r15
mov byte [rbp + 7], r15b
xor r8d, r8d
lea edx, [r15 + 8]
lea rcx, [rbp + 7]
call fcn.140011c90
nop
mov r10, qword [rbp + 7]
mov r9, qword [rbp + 0x1f]
nop
lea rdx, [rbp + 7]
cmp r9, 0x10
cmovae rdx, r10
lea r8, [rbp + 7]
cmovae r8, r10
mov rcx, qword [rbx + 0x68]
mov r10, qword [rcx]
add rdx, qword [rbp + 0x17]
lea rax, [rbp - 0x11]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], r8
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 1]
lea r8, [rbp - 1]
lea rdx, [rbx + 0x74]
call qword [r10 + 0x38]
test eax, eax
js 0x14000ef5b
cmp eax, 1
jg 0x14000ef3e
lea rax, [rbp + 7]
mov r10, qword [rbp + 7]
mov r9, qword [rbp + 0x1f]
cmp r9, 0x10
cmovae rax, r10
mov rdi, qword [rbp - 0x11]
sub rdi, rax
je 0x14000ef06
lea rcx, [rbp + 7]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rbx + 0x80]
mov r8, rdi
mov edx, 1
call fcn.1400810f8
cmp rdi, rax
jne 0x14000ef5b
mov r9, qword [rbp + 0x1f]
mov r10, qword [rbp + 7]
mov byte [rbx + 0x72], 1
lea rax, [rbp - 1]
cmp qword [rbp - 9], rax
jne 0x14000ef38
test rdi, rdi
jne 0x14000ee60
cmp qword [rbp + 0x17], 0x20
jae 0x14000ef5b
xor r8d, r8d
lea edx, [rdi + 8]
lea rcx, [rbp + 7]
call fcn.140011d80
jmp 0x14000ee57
movzx esi, r14w
jmp 0x14000ef5b
cmp eax, 3
jne 0x14000ef5b
mov rdx, qword [rbx + 0x80]
movzx ecx, word [rbp - 1]
call fcn.14007fb98
cmp ax, si
cmovne si, r14w
mov rax, qword [rbp + 0x1f]
cmp rax, 0x10
jb 0x14000efb1
inc rax
mov rcx, qword [rbp + 7]
cmp rax, 0x1000
jb 0x14000efac
test cl, 0x1f
je 0x14000ef7f
call fcn.14007c118
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14000ef8e
call fcn.14007c118
int3
sub rcx, rax
cmp rcx, 8
jae 0x14000ef9d
call fcn.14007c118
int3
cmp rcx, 0x27
jbe 0x14000efa9
call fcn.14007c118
int3
mov rcx, rax
call fcn.1400562e0
mov qword [rbp + 0x1f], SafeArrayGetLBound
mov qword [rbp + 0x17], r15
mov byte [rbp + 7], 0
movzx eax, si
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140056280
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret