Function at 0x14005ffe0
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov r13, r8
mov rdi, rdx
mov r12, rcx
xor esi, esi
mov qword [rbp - 1], rsi
mov qword [rbp + 0xf], rsi
mov qword [rbp + 0x17], 7
mov word [rbp - 1], si
lea r8d, [rsi + 1]
lea rdx, [0x1400b4b8c]
lea rcx, [rbp - 1]
call fcn.14005bbe0
nop
lea r8, [rbp - 1]
mov rdx, r12
lea rcx, [rbp - 0x39]
call fcn.14005fa70
nop
mov rdx, qword [rbp + 0x17]
cmp rdx, 8
jb 0x140060086
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140060081
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140060372
call fcn.14006ef8c
mov rcx, qword [rbp - 0x39]
mov rbx, qword [rbp - 0x31]
cmp rcx, rbx
jne 0x14006009b
xor dil, dil
jmp 0x140060305
mov rdx, qword [rbx - 8]
cmp rdx, 8
jb 0x1400600db
mov rcx, qword [rbx - 0x20]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1400600d6
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140060372
mov rcx, r8
call fcn.14006ef8c
mov word [rbx - 0x20], si
mov qword [rbx - 0x10], rsi
mov qword [rbx - 8], 7
mov r15, qword [rbp - 0x31]
sub r15, 0x20
mov qword [rbp - 0x31], r15
mov qword [rbp - 0x21], rsi
mov qword [rbp - 0x11], rsi
mov qword [rbp - 9], 7
mov word [rbp - 0x21], si
mov r14, qword [rbp - 0x39]
cmp r14, r15
je 0x14006021d
movzx ebx, byte [rbp + 0x7f]
nop dword [rax]
lea r8, [0x1400b4b8c]
mov rdx, r14
lea rcx, [rbp - 1]
call fcn.140062ab0
mov r9, rax
mov rdx, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140060144
mov r9, qword [rax]
mov rcx, qword [rbp - 0x11]
mov r8, qword [rbp - 9]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x140060184
lea rsi, [rcx + rdx]
mov qword [rbp - 0x11], rsi
lea rdi, [rbp - 0x21]
cmp r8, 8
cmovae rdi, qword [rbp - 0x21]
lea rcx, [rdi + rcx*2]
lea r8, [rdx + rdx]
mov rdx, r9
call fcn.1400713e0
xor eax, eax
mov word [rdi + rsi*2], ax
jmp 0x140060197
mov qword [rsp + 0x20], rdx
movzx r8d, bl
lea rcx, [rbp - 0x21]
call fcn.140063000
nop
mov rdx, qword [rbp + 0x17]
cmp rdx, 8
jb 0x1400601d7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400601d2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006036c
call fcn.14006ef8c
lea rcx, [rbp - 0x21]
cmp qword [rbp - 9], 8
cmovae rcx, qword [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400601f4
test al, 0x10
jne 0x14006020a
lea rcx, [rbp - 0x21]
cmp qword [rbp - 9], 8
cmovae rcx, qword [rbp - 0x21]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add r14, 0x20
cmp r14, r15
jne 0x140060120
mov rdi, qword [rbp + 0x6f]
xor esi, esi
mov rcx, r12
cmp qword [r12 + 0x18], 8
jb 0x14006022c
mov rcx, qword [r12]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp qword [r12 + 0x18], 8
jb 0x14006023e
mov r12, qword [r12]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 2]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1400602aa
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov r8d, r13d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dil, 1
jmp 0x1400602ad
xor dil, dil
mov rdx, qword [rbp - 9]
cmp rdx, 8
jb 0x1400602ed
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400602e8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140060372
call fcn.14006ef8c
mov qword [rbp - 0x11], rsi
mov qword [rbp - 9], 7
mov word [rbp - 0x21], si
mov rbx, qword [rbp - 0x31]
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x140060347
mov rdx, rbx
call fcn.1400631c0
mov rdx, qword [rbp - 0x29]
mov rcx, qword [rbp - 0x39]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140060342
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140060366
call fcn.14006ef8c
movzx eax, dil
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14007eb84
nop
call fcn.14007eb84
nop
call fcn.14007eb84
int3