Function at 0x14000f5f0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14006f0d0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r15, rcx
cmp qword [rcx + 0x68], 0
je 0x14000f871
cmp byte [rcx + 0x72], 0
je 0x14000f871
mov rax, qword [rcx]
mov edi, 0xffff
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140028b40]
movzx edx, di
mov rcx, r15
call rbx
cmp di, ax
jne 0x14000f666
xor al, al
jmp 0x14000f873
mov edx, reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rbp - 0x18], rdx
mov byte [rbp - 0x30], 0
xor ecx, ecx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x20], 8
lea rax, [rbp - 0x30]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
xor r13d, r13d
mov r8, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
nop dword [rax + rax]
lea r9, [rbp - 0x30]
cmp r8, 0x10
cmovae r9, rcx
lea r14, [rbp - 0x30]
cmovae r14, rcx
mov rsi, qword [r15 + 0x68]
mov rdx, qword [rsi]
mov rbx, qword [rbp - 0x20]
add rbx, r9
mov rdi, qword [rdx + 0x40]
mov rcx, rdi
call qword [fcn.140028b40]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8, r14
lea rdx, [r15 + 0x74]
mov rcx, rsi
call rdi
test eax, eax
je 0x14000f6f6
sub eax, 1
jne 0x14000f7f5
jmp 0x14000f6fa
mov byte [r15 + 0x72], r13b
lea rax, [rbp - 0x30]
mov rcx, qword [rbp - 0x30]
mov r8, qword [rbp - 0x18]
cmp r8, 0x10
cmovae rax, rcx
mov rbx, qword [rbp - 0x40]
sub rbx, rax
je 0x14000f74b
lea rax, [rbp - 0x30]
cmp r8, 0x10
cmovae rax, rcx
mov r9, qword [r15 + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.14002e9cc
mov r8, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
cmp rbx, rax
jne 0x14000f802
cmp byte [r15 + 0x72], r13b
je 0x14000f81a
test rbx, rbx
jne 0x14000f6a0
or rax, 0xffffffffffffffff
mov rdx, qword [rbp - 0x20]
sub rax, rdx
cmp rax, 8
jbe 0x14000f810
lea rbx, [rdx + 8]
cmp rbx, 0xfffffffffffffffe
ja 0x14000f806
cmp r8, rbx
jae 0x14000f79f
mov r8, rdx
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.140003fb0
mov r8, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
jmp 0x14000f7bc
test rbx, rbx
jne 0x14000f7c5
mov qword [rbp - 0x20], r13
lea rax, [rbp - 0x30]
cmp r8, 0x10
cmovae rax, rcx
mov byte [rax], r13b
jmp 0x14000f693
test rbx, rbx
je 0x14000f6a0
lea rdx, [rbp - 0x30]
cmp r8, 0x10
cmovae rdx, rcx
mov rax, qword [rbp - 0x20]
xor ecx, ecx
mov qword [rax + rdx], rcx
mov qword [rbp - 0x20], rbx
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rax, qword [rbp - 0x30]
mov byte [rbx + rax], cl
jmp 0x14000f693
sub eax, 2
mov r8, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
je 0x14000f81a
xor bl, bl
jmp 0x14000f81c
lea rcx, [rbp - 0x30]
call fcn.140005dc0
int3
lea rcx, [rbp - 0x30]
call fcn.140005dc0
int3
mov bl, 1
cmp r8, 0x10
jb 0x14000f86c
lea rax, [r8 + 1]
cmp rax, 0x1000
jb 0x14000f867
test byte [rbp - 0x30], 0x1f
je 0x14000f83a
call fcn.14002c050
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14000f849
call fcn.14002c050
int3
sub rcx, rax
cmp rcx, 8
jae 0x14000f858
call fcn.14002c050
int3
cmp rcx, 0x27
jbe 0x14000f864
call fcn.14002c050
int3
mov rcx, rax
call fcn.140027790
movzx eax, bl
jmp 0x14000f873
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140027e60
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret