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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x1400610a0]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rsi, rdx
mov r14, rcx
mov qword [rbp - 0x39], rdx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x31], xmm0
mov qword [rbp - 0x21], rax
movups xmmword [rbp - 0x59], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x49], xmm1
lea r8d, [rax + 1]
lea rdx, [0x14005a4f8]
lea rcx, [rbp - 0x59]
call fcn.14000d0a0
nop
lea r8, [rbp - 0x59]
mov rdx, r14
lea rcx, [rbp - 0x31]
call fcn.140005b50
nop
mov rdx, qword [rbp - 0x41]
cmp rdx, 8
jb 0x140005e4f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005e4a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006278
call fcn.140010d38
mov rcx, qword [rbp - 0x31]
mov rdi, qword [rbp - 0x29]
cmp rcx, rdi
jne 0x140005f1d
xor ebx, ebx
test rcx, rcx
je 0x140005eb4
mov rdx, rdi
call fcn.14000d420
mov rdx, qword [rbp - 0x21]
mov rcx, qword [rbp - 0x31]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005ea3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000627e
call fcn.140010d38
mov qword [rbp - 0x31], rbx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
mov rcx, qword [rsi]
test rcx, rcx
je 0x140005ef8
mov rdx, qword [rsi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140005ee8
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140006284
mov rcx, r8
call fcn.140010d38
mov qword [rsi], rbx
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], rbx
xor al, al
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140010d10
mov rbx, qword [rsp + 0x110]
add rsp, 0xd0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rdx, qword [rdi - 8]
cmp rdx, 8
jb 0x140005f5d
mov rcx, qword [rdi - 0x20]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140005f58
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140006278
mov rcx, r8
call fcn.140010d38
xor ebx, ebx
mov qword [rdi - 0x10], rbx
mov qword [rdi - 8], 7
mov word [rdi - 0x20], bx
mov r15, qword [rbp - 0x29]
add r15, 0xffffffffffffffe0
mov qword [rbp - 0x29], r15
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], rbx
mov qword [rbp - 1], 7
mov word [rbp - 0x19], bx
mov rdi, qword [rbp - 0x31]
cmp rdi, r15
je 0x14000604a
lea r8, [0x14005a4f8]
mov rdx, rdi
lea rcx, [rbp - 0x59]
call fcn.14000c950
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140005fc1
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x19]
call fcn.14000ba30
nop
mov rdx, qword [rbp - 0x41]
cmp rdx, 8
jb 0x14000600e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006009
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000628a
call fcn.140010d38
lea rcx, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae rcx, qword [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000602b
test al, 0x10
jne 0x140006041
lea rcx, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae rcx, qword [rbp - 0x19]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add rdi, 0x20
jmp 0x140005f96
mov rcx, r14
cmp qword [r14 + 0x18], 8
jb 0x140006057
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp qword [r14 + 0x18], 8
jb 0x140006067
mov r14, qword [r14]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 2]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400061dd
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp + 7], ebx
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
movups xmmword [rbp + 0x1f], xmm0
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
sub r8, rdx
lea rcx, [rbp + 0xf]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 7]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x14000612b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006126
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006278
call fcn.140010d38
mov qword [rbp - 9], rbx
mov qword [rbp - 1], 7
mov word [rbp - 0x19], bx
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x140006192
mov rdx, qword [rbp - 0x29]
call fcn.14000d420
mov rdx, qword [rbp - 0x21]
mov rcx, qword [rbp - 0x31]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006181
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000627e
call fcn.140010d38
mov qword [rbp - 0x31], rbx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400061d6
mov rdx, qword [rsi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x1400061c6
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140006284
mov rcx, r8
call fcn.140010d38
mov qword [rsi], rbx
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], rbx
mov al, 1
jmp 0x140005efa
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x140006219
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006214
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006278
call fcn.140010d38
mov qword [rbp - 9], rbx
mov qword [rbp - 1], 7
mov word [rbp - 0x19], bx
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x140005eb4
mov rdx, qword [rbp - 0x29]
call fcn.14000d420
mov rdx, qword [rbp - 0x21]
mov rcx, qword [rbp - 0x31]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005ea3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000627e
jmp 0x140005ea3
call fcn.14001852c
nop
call fcn.14001852c
nop
call fcn.14001852c
nop
call fcn.14001852c
int3