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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14002b040]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r15, rdx
mov rdi, rcx
mov rbx, rcx
cmp qword [rcx + 0x18], 7
jbe 0x1400017cf
mov rbx, qword [rcx]
mov rsi, qword [rcx + 0x10]
test rsi, rsi
je 0x1400018a2
mov r12d, 0x100
mov r8d, r12d
xor edx, edx
lea rcx, [rbp + 0x70]
call sub.VCRUNTIME140.dll_memset
lea rcx, [0x140006564]
lea rdx, [0x140006566]
nop
movzx eax, word [rcx]
cmp ax, r12w
jae 0x14000184c
movzx eax, al
mov byte [rbp + rax + 0x70], 1
add rcx, 2
cmp rcx, rdx
jne 0x140001800
lea rcx, [rsi - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea r8, [rbx + rax*2]
movzx eax, word [r8]
cmp ax, r12w
jae 0x140001841
cmp byte [rbp + rax + 0x70], 0
jne 0x14000189a
cmp r8, rbx
je 0x1400018a2
sub r8, 2
jmp 0x140001830
lea rcx, [rsi - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea r8, [rbx + rax*2]
nop dword [rax]
nop word [rax + rax]
mov ecx, 1
lea rax, [0x140006564]
movzx edx, word [r8]
cmp word [rax], dx
je 0x14000189a
add rax, 2
sub rcx, 1
jne 0x140001880
cmp r8, rbx
je 0x1400018a2
sub r8, 2
jmp 0x140001870
sub r8, rbx
sar r8, 1
jmp 0x1400018a9
mov r8, 0xffffffffffffffff
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
cmp rsi, r8
cmovb r8, rsi
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x1400018ce
mov rdx, qword [rdi]
lea rcx, [rsp + 0x38]
call fcn.140004130
nop
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 7
cmova rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000190e
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 7
cmova rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
cmp qword [rdi + 0x18], 7
jbe 0x14000192a
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.140003da0
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x5c], edx
mov rdx, qword [r15]
mov r8, qword [r15 + 8]
sub r8, rdx
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
lea rcx, [rsp + 0x68]
call fcn.140003ce0
test rax, rax
jne 0x1400019a2
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x60]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
lea rcx, [rsp + 0x60]
call fcn.140001a20
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 7
jbe 0x1400019f2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400019ed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400019ed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140005138
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140004a10
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x280
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret