Function at 0x14000bca0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
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 [0x1400408d8]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rcx
cmp qword [rcx + 0x80], 0
je 0x14000bf03
cmp byte [rcx + 0x89], 0
je 0x14000bf03
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000bec9
mov r13d, 0xf
mov qword [rbp - 0x18], r13
xor r12d, r12d
mov qword [rbp - 0x20], r12
mov byte [rbp - 0x30], r12b
xor ecx, ecx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x20], 8
lea rax, [rbp - 0x30]
cmp r13, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
mov r9, qword [rbp - 0x18]
mov r10, qword [rbp - 0x30]
nop dword [rax + rax]
lea rdx, [rbp - 0x30]
cmp r9, 0x10
cmovae rdx, r10
lea r8, [rbp - 0x30]
cmovae r8, r10
mov rcx, qword [rdi + 0x80]
mov r10, qword [rcx]
mov rax, qword [rbp - 0x20]
lea r9, [rdx + rax]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x8c]
call qword [r10 + 0x30]
test eax, eax
je 0x14000bd88
dec eax
jne 0x14000be86
jmp 0x14000bd8f
mov byte [rdi + 0x89], 0
lea rax, [rbp - 0x30]
mov r10, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
cmp r9, 0x10
cmovae rax, r10
mov rbx, qword [rbp - 0x40]
sub rbx, rax
je 0x14000bddd
lea rcx, [rbp - 0x30]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rdi + 0x98]
mov r8, rbx
mov edx, 1
call fcn.140012b34
cmp rbx, rax
jne 0x14000bead
mov r9, qword [rbp - 0x18]
mov r10, qword [rbp - 0x30]
cmp byte [rdi + 0x89], 0
je 0x14000bee7
test rbx, rbx
jne 0x14000bd40
or rax, 0xffffffffffffffff
mov r8, qword [rbp - 0x20]
sub rax, r8
cmp rax, 8
jbe 0x14000beda
lea rbx, [r8 + 8]
cmp rbx, 0xfffffffffffffffe
ja 0x14000becd
cmp r9, rbx
jae 0x14000be31
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.140002f90
mov r9, qword [rbp - 0x18]
mov r10, qword [rbp - 0x30]
jmp 0x14000be4d
test rbx, rbx
jne 0x14000be56
mov qword [rbp - 0x20], r12
lea rax, [rbp - 0x30]
cmp r9, 0x10
cmovae rax, r10
mov byte [rax], bl
jmp 0x14000bd33
test rbx, rbx
je 0x14000bd40
lea rcx, [rbp - 0x30]
cmp r9, 0x10
cmovae rcx, r10
mov rax, qword [rbp - 0x20]
xor edx, edx
mov qword [rcx + rax], rdx
mov qword [rbp - 0x20], rbx
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rax, qword [rbp - 0x30]
mov byte [rax + rbx], dl
jmp 0x14000bd33
sub eax, 2
je 0x14000beab
cmp qword [rbp - 0x18], 0x10
jb 0x14000bebd
mov rcx, qword [rbp - 0x30]
call fcn.140011c44
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x20], r12
mov byte [rbp - 0x30], 0
xor al, al
jmp 0x14000bf05
jmp 0x14000bee7
cmp qword [rbp - 0x18], 0x10
jb 0x14000bebd
mov rcx, qword [rbp - 0x30]
call fcn.140011c44
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x20], r12
mov byte [rbp - 0x30], 0
xor al, al
jmp 0x14000bf05
lea rcx, str.string_too_long
call fcn.140010678
int3
lea rcx, str.string_too_long
call fcn.140010678
nop
cmp qword [rbp - 0x18], 0x10
jb 0x14000bef7
mov rcx, qword [rbp - 0x30]
call fcn.140011c44
mov byte [rbp - 0x30], 0
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x18], r13
mov al, 1
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400114c0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret