Function at 0x14000adf0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov qword [rbp - 0x11], 0xfffffffffffffffe
mov qword [rsp + 0xe0], rbx
mov rax, qword [0x1400408d8]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r12d, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x14000ae38
xor eax, eax
jmp 0x14000b100
mov rdx, qword [rcx + 0x48]
cmp qword [rdx], 0
je 0x14000ae70
mov rdx, qword [rdx]
mov r8, qword [rcx + 0x60]
movsxd rcx, dword [r8]
add rcx, rdx
cmp rdx, rcx
jae 0x14000ae70
dec dword [r8]
mov rdx, qword [rdi + 0x48]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], r12b
mov eax, r12d
jmp 0x14000b100
cmp qword [rdi + 0x98], 0
jne 0x14000ae82
or eax, 0xffffffff
jmp 0x14000b100
mov rdx, qword [rdi + 0x20]
lea rax, [rdi + 0x88]
cmp qword [rdx], rax
jne 0x14000aeac
mov rcx, qword [rdi + 0x78]
mov rax, qword [rdi + 0x70]
mov qword [rdx], rax
mov rax, qword [rdi + 0x40]
mov qword [rax], rcx
sub ecx, ecx
mov rax, qword [rdi + 0x58]
mov dword [rax], ecx
cmp qword [rdi + 0x80], 0
jne 0x14000aed5
movsx ecx, r12b
mov rdx, qword [rdi + 0x98]
call fcn.140012510
or rsi, 0xffffffffffffffff
cmp eax, esi
cmovne esi, r12d
jmp 0x14000b0fe
mov byte [rbp - 0x29], r12b
mov r15d, 0xf
mov qword [rbp + 0xf], r15
xor r14d, r14d
mov qword [rbp + 7], r14
mov byte [rbp - 9], r14b
xor ecx, ecx
mov qword [rbp - 9], rcx
mov qword [rbp + 7], 8
lea rax, [rbp - 9]
cmp r15, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
or rsi, 0xffffffffffffffff
mov r9, qword [rbp + 0xf]
mov r8, qword [rbp + 7]
mov r10, qword [rbp - 9]
nop dword [rax + rax]
lea rax, [rbp - 9]
cmp r9, 0x10
cmovae rax, r10
lea rdx, [rbp - 9]
cmovae rdx, r10
mov rcx, qword [rdi + 0x80]
mov r10, qword [rcx]
add rax, r8
lea r8, [rbp - 0x19]
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdx
lea rax, [rbp - 0x21]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x28]
lea r8, [rbp - 0x29]
lea rdx, [rdi + 0x8c]
call qword [r10 + 0x28]
test eax, eax
js 0x14000b0e2
cmp eax, 1
jg 0x14000b0c4
lea rax, [rbp - 9]
mov r10, qword [rbp - 9]
mov r9, qword [rbp + 0xf]
cmp r9, 0x10
cmovae rax, r10
mov rbx, qword [rbp - 0x19]
sub rbx, rax
je 0x14000afcf
lea rcx, [rbp - 9]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rdi + 0x98]
mov r8, rbx
mov edx, 1
call fcn.140012b34
cmp rbx, rax
jne 0x14000b085
mov r9, qword [rbp + 0xf]
mov r10, qword [rbp - 9]
mov byte [rdi + 0x89], 1
lea rax, [rbp - 0x29]
cmp qword [rbp - 0x21], rax
jne 0x14000b0a3
mov r8, qword [rbp + 7]
test rbx, rbx
jne 0x14000af20
cmp r8, 0x20
jae 0x14000b0a1
mov rax, rsi
sub rax, r8
cmp rax, 8
jbe 0x14000b094
lea rbx, [r8 + 8]
cmp rbx, 0xfffffffffffffffe
ja 0x14000b087
cmp r9, rbx
jae 0x14000b034
mov rdx, rbx
lea rcx, [rbp - 9]
call fcn.140002f90
mov r9, qword [rbp + 0xf]
mov r8, qword [rbp + 7]
mov r10, qword [rbp - 9]
jmp 0x14000b050
test rbx, rbx
jne 0x14000b059
mov qword [rbp + 7], r14
lea rax, [rbp - 9]
cmp r9, 0x10
cmovae rax, r10
mov byte [rax], bl
jmp 0x14000af0f
test rbx, rbx
je 0x14000af20
lea rax, [rbp - 9]
cmp r9, 0x10
cmovae rax, r10
xor ecx, ecx
mov qword [r8 + rax], rcx
mov qword [rbp + 7], rbx
lea rax, [rbp - 9]
cmp qword [rbp + 0xf], 0x10
cmovae rax, qword [rbp - 9]
mov byte [rbx + rax], cl
jmp 0x14000af0f
jmp 0x14000b0e2
lea rcx, str.string_too_long
call fcn.140010678
int3
lea rcx, str.string_too_long
call fcn.140010678
nop
jmp 0x14000b0e2
cmp qword [rbp + 0xf], 0x10
jb 0x14000b0b3
mov rcx, qword [rbp - 9]
call fcn.140011c44
mov qword [rbp + 0xf], r15
mov qword [rbp + 7], r14
mov byte [rbp - 9], 0
mov eax, r12d
jmp 0x14000b100
cmp eax, 3
jne 0x14000b0e2
movsx ecx, byte [rbp - 0x29]
mov rdx, qword [rdi + 0x98]
call fcn.140012510
cmp eax, 0xffffffff
cmovne esi, r12d
jmp 0x14000b0e2
cmp qword [rbp + 0xf], 0x10
jb 0x14000b0f2
mov rcx, qword [rbp - 9]
call fcn.140011c44
mov byte [rbp - 9], 0
mov qword [rbp + 7], r14
mov qword [rbp + 0xf], r15
mov eax, esi
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1400114c0
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret