Function at 0x140005d90
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.14000cfe0
nop
lea r8, [rbp - 0x59]
mov rdx, r14
lea rcx, [rbp - 0x31]
call fcn.140005b40
nop
mov rdx, qword [rbp - 0x41]
cmp rdx, 8
jb 0x140005e3f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005e3a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006268
call fcn.140010c78
mov rcx, qword [rbp - 0x31]
mov rdi, qword [rbp - 0x29]
cmp rcx, rdi
jne 0x140005f0d
xor ebx, ebx
test rcx, rcx
je 0x140005ea4
mov rdx, rdi
call fcn.14000d360
mov rdx, qword [rbp - 0x21]
mov rcx, qword [rbp - 0x31]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005e93
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000626e
call fcn.140010c78
mov qword [rbp - 0x31], rbx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
mov rcx, qword [rsi]
test rcx, rcx
je 0x140005ee8
mov rdx, qword [rsi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140005ed8
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140006274
mov rcx, r8
call fcn.140010c78
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.140010c50
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 0x140005f4d
mov rcx, qword [rdi - 0x20]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140005f48
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140006268
mov rcx, r8
call fcn.140010c78
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 0x14000603a
lea r8, [0x14005a4f8]
mov rdx, rdi
lea rcx, [rbp - 0x59]
call fcn.14000c890
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140005fb1
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x19]
call fcn.14000b970
nop
mov rdx, qword [rbp - 0x41]
cmp rdx, 8
jb 0x140005ffe
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005ff9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000627a
call fcn.140010c78
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 0x14000601b
test al, 0x10
jne 0x140006031
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 0x140005f86
mov rcx, r14
cmp qword [r14 + 0x18], 8
jb 0x140006047
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp qword [r14 + 0x18], 8
jb 0x140006057
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 0x1400061cd
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 0x14000611b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006116
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006268
call fcn.140010c78
mov qword [rbp - 9], rbx
mov qword [rbp - 1], 7
mov word [rbp - 0x19], bx
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x140006182
mov rdx, qword [rbp - 0x29]
call fcn.14000d360
mov rdx, qword [rbp - 0x21]
mov rcx, qword [rbp - 0x31]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006171
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000626e
call fcn.140010c78
mov qword [rbp - 0x31], rbx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400061c6
mov rdx, qword [rsi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x1400061b6
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140006274
mov rcx, r8
call fcn.140010c78
mov qword [rsi], rbx
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], rbx
mov al, 1
jmp 0x140005eea
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x140006209
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006204
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006268
call fcn.140010c78
mov qword [rbp - 9], rbx
mov qword [rbp - 1], 7
mov word [rbp - 0x19], bx
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x140005ea4
mov rdx, qword [rbp - 0x29]
call fcn.14000d360
mov rdx, qword [rbp - 0x21]
mov rcx, qword [rbp - 0x31]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005e93
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000626e
jmp 0x140005e93
call fcn.14001846c
nop
call fcn.14001846c
nop
call fcn.14001846c
nop
call fcn.14001846c
int3