Function at 0x140017cd0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp - 0x51], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rbp + 0x37], rax
lea rdx, [rbp + 0xf]
call fcn.1400222a0
nop
xor edx, edx
lea rcx, [rbp + 0xf]
call fcn.14001f4b0
lea rcx, [rbp - 0x19]
call fcn.14001cac0
nop
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x69], xmm0
xor r14d, r14d
mov qword [rbp - 0x59], r14
xor dil, dil
lea rdx, [0x1402d29a4]
lea rcx, [rbp - 0x41]
call fcn.14001c950
nop
xor r8d, r8d
lea rdx, [rbp - 0x41]
lea rcx, [rbp + 0xf]
call fcn.140025ef0
movzx ebx, al
lea rcx, [rbp - 0x41]
call fcn.14001d440
test bl, bl
je 0x140017d81
lea rcx, [rbp + 0xf]
call fcn.140026e10
cmp eax, 2
jne 0x140017d7e
lea r14d, [rax - 3]
jmp 0x140017f59
mov dil, 1
lea rdx, [0x1402d29ac]
lea rcx, [rbp - 0x41]
call fcn.14001c950
nop
lea r8, [rbp - 0x41]
lea rdx, [rbp - 0x69]
lea rcx, [rbp + 0xf]
call fcn.140023510
nop
lea rcx, [rbp - 0x41]
call fcn.14001d440
mov esi, r14d
mov rcx, qword [rbp - 0x61]
mov r8, qword [rbp - 0x69]
sub rcx, r8
movabs r15, 0x6666666666666667
mov rax, r15
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x140017f59
mov rax, r14
nop dword [rax]
nop word [rax + rax]
lea rax, [rax + rax*4]
lea rbx, [rax*8]
lea rcx, [rbx + r8]
call fcn.14001f680
test al, al
jne 0x140017f2c
lea rcx, [rbp - 0x19]
call fcn.140028de0
test al, al
je 0x140017e42
lea rdx, [0x1402d03d8]
lea rcx, [rbp - 0x41]
call fcn.14001c950
nop
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 0x19]
call fcn.14001d850
nop
lea rcx, [rbp - 0x41]
call fcn.14001d440
test dil, dil
je 0x140017e7c
lea rcx, [rbp - 0x19]
call fcn.14001f680
test al, al
je 0x140017e7c
lea rdx, [0x1402d29a4]
lea rcx, [rbp - 0x41]
call fcn.14001c950
nop
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 0x19]
call fcn.14001d850
nop
lea rcx, [rbp - 0x41]
call fcn.14001d440
mov rdx, qword [rbp - 0x69]
add rdx, rbx
lea rcx, [rbp - 0x19]
call fcn.14001d850
lea rdx, [0x1402d03c4]
lea rcx, [rbp - 0x19]
call fcn.14001d8d0
test al, al
jne 0x140017f2c
lea rdx, [0x1402d29b4]
lea rcx, [rbp - 0x19]
call fcn.14001d8d0
test al, al
jne 0x140017f2c
lea rcx, [rbp - 0x19]
call fcn.140026e10
cmp eax, 2
jne 0x140017ed8
lea edx, [rax - 1]
lea rcx, [rbp - 0x19]
call fcn.14001d960
cmp word [rax], 0x3a
je 0x140017f2c
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 0x19]
call fcn.1400222a0
nop
lea rcx, [rbp - 0x41]
call fcn.14002aa20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140017f23
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
lea rcx, [rbp - 0x41]
call fcn.14001d440
lea rcx, [rbp - 0x19]
call fcn.14002aa20
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x140017f2c
lea rcx, [rbp - 0x41]
call fcn.14001d440
inc esi
mov rcx, qword [rbp - 0x61]
mov r8, qword [rbp - 0x69]
sub rcx, r8
mov rax, r15
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
movsxd rax, esi
cmp rax, rdx
jb 0x140017df0
lea rcx, [rbp - 0x69]
call fcn.140002cd0
nop
lea rcx, [rbp - 0x19]
call fcn.14001d440
nop
lea rcx, [rbp + 0xf]
call fcn.14001d440
mov eax, r14d
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140283120
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret