Function at 0x1400f5a60
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 [0x14028a238]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r15, rcx
cmp qword [rcx + 0x68], 0
je 0x1400f5cd2
cmp byte [rcx + 0x71], 0
je 0x1400f5cd2
mov rax, qword [rcx]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140005fb0]
or edx, 0xffffffff
mov rcx, r15
call rbx
cmp eax, 0xffffffff
jne 0x1400f5ad1
xor al, al
jmp 0x1400f5cd4
mov qword [rbp - 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
xor r13d, r13d
mov qword [rbp - 0x20], r13
mov byte [rbp - 0x30], r13b
xor r8d, r8d
lea edx, [r13 + 8]
lea rcx, [rbp - 0x30]
call fcn.1400d60d0
nop
mov r8, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
nop dword [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.140005fb0]
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 0x1400f5b56
sub eax, 1
jne 0x1400f5c56
jmp 0x1400f5b5b
mov byte [r15 + 0x71], 0
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 0x1400f5bac
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.1401bdd0c
mov r8, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
cmp rbx, rax
jne 0x1400f5c63
cmp byte [r15 + 0x71], 0
je 0x1400f5c7b
test rbx, rbx
jne 0x1400f5b00
or rax, 0xffffffffffffffff
mov rdx, qword [rbp - 0x20]
sub rax, rdx
cmp rax, 8
jbe 0x1400f5c71
lea rbx, [rdx + 8]
cmp rbx, 0xfffffffffffffffe
ja 0x1400f5c67
cmp r8, rbx
jae 0x1400f5c01
mov r8, rdx
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.1400d28f0
mov r8, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
jmp 0x1400f5c1d
test rbx, rbx
jne 0x1400f5c26
mov qword [rbp - 0x20], r13
lea rax, [rbp - 0x30]
cmp r8, 0x10
cmovae rax, rcx
mov byte [rax], bl
jmp 0x1400f5af5
test rbx, rbx
je 0x1400f5b00
lea rdx, [rbp - 0x30]
cmp r8, 0x10
cmovae rdx, rcx
mov rax, qword [rbp - 0x20]
xor ecx, ecx
mov qword [rdx + rax], rcx
mov qword [rbp - 0x20], rbx
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rax, qword [rbp - 0x30]
mov byte [rax + rbx], cl
jmp 0x1400f5af5
sub eax, 2
mov r8, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
je 0x1400f5c7b
xor bl, bl
jmp 0x1400f5c7d
lea rcx, [rbp - 0x30]
call fcn.1400c3a80
int3
lea rcx, [rbp - 0x30]
call fcn.1400c3a80
int3
mov bl, 1
cmp r8, 0x10
jb 0x1400f5ccd
lea rax, [r8 + 1]
cmp rax, 0x1000
jb 0x1400f5cc8
test byte [rbp - 0x30], 0x1f
je 0x1400f5c9b
call fcn.1401b34dc
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400f5caa
call fcn.1401b34dc
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400f5cb9
call fcn.1401b34dc
int3
cmp rcx, 0x27
jbe 0x1400f5cc5
call fcn.1401b34dc
int3
mov rcx, rax
call fcn.140005f10
movzx eax, bl
jmp 0x1400f5cd4
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14016ce60
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