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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x180112440]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
cmp qword [rcx + 0x18], 8
jb 0x180031290
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800312e1
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1800312da
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1800312d5
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18003159b
mov rcx, r8
call fcn.180085560
xor esi, esi
jmp 0x1800314d0
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
xor esi, esi
test rcx, rcx
jne 0x180031332
cmp rax, 8
jb 0x18003132b
lea rdx, [rax*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x180031326
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18003159b
mov rcx, r8
call fcn.180085560
xor al, al
jmp 0x1800314d2
cmp rax, 8
jb 0x180031341
mov rdx, qword [rbx]
lea r8, [rdx + rcx*2]
jmp 0x180031348
lea r8, [rbx + rcx*2]
mov rdx, rbx
cmp rdx, r8
je 0x180031368
mov eax, 0x5c
cmp word [rdx], 0x2f
jne 0x18003135b
mov word [rdx], ax
add rdx, 2
cmp rdx, r8
jne 0x180031352
mov rcx, qword [rbx + 0x10]
mov rdi, rsi
nop dword [rax + rax]
mov rdx, rbx
mov r9, qword [rbx + 0x18]
cmp r9, 8
jb 0x180031380
mov rdx, qword [rbx]
cmp rdi, rcx
jae 0x1800313c4
sub rcx, rdi
lea rax, [rdx + rdi*2]
mov rdi, rsi
je 0x1800313ad
cmp word [rax], 0x5c
je 0x1800313aa
cmp rcx, 1
je 0x1800313ad
dec rcx
add rax, 2
cmp word [rax], 0x5c
jne 0x180031397
mov rdi, rax
test rdi, rdi
je 0x1800313c4
sub rdi, rdx
sar rdi, 1
cmp rdi, 0xffffffffffffffff
je 0x1800313c4
mov rax, qword [rbx + 0x10]
jmp 0x1800313cb
mov rdi, qword [rbx + 0x10]
mov rax, rdi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], si
mov r8, rdi
cmp rax, rdi
cmovb r8, rax
mov rdx, rbx
cmp r9, 8
jb 0x1800313f4
mov rdx, qword [rbx]
lea rcx, [rsp + 0x28]
call fcn.180016910
cmp qword [rsp + 0x38], rsi
je 0x18003143f
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x18003143f
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call fcn.1800b2e90
test eax, eax
jne 0x1800314fe
inc rdi
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x180031484
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003147f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18003158f
call fcn.180085560
mov rcx, qword [rbx + 0x10]
cmp rdi, rcx
jb 0x180031370
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1800314d0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1800314cb
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18003159b
mov rcx, r8
call fcn.180085560
mov al, 1
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180085510
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x18003153c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180031537
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18003158f
call fcn.180085560
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], si
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x18003132b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x180031326
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180031595
jmp 0x180031323
call fcn.1800a889c
nop
call fcn.1800a889c
int3
call fcn.1800a889c
int3