Function at 0x140037a74
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x360]
sub rsp, 0x460
mov rax, qword [0x1400592a0]
xor rax, rsp
mov qword [rbp + 0x350], rax
xor r14d, r14d
mov r13d, edx
mov r12, rcx
mov qword [rsp + 0x20], r14
lea r8, [rsp + 0x20]
xor ecx, ecx
lea edx, [r14 + 0x23]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
nop dword [rax + rax]
or rdi, 0xffffffffffffffff
mov esi, 0x104
mov ebx, eax
mov r15d, eax
test eax, eax
js 0x140037b64
mov rcx, qword [rsp + 0x20]
lea rdx, [rbp + 0x140]
mov qword [rsp + 0x28], r14
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
nop dword [rax + rax]
test eax, eax
lea rcx, [rsp + 0x28]
lea eax, [rdi + 2]
cmovne r14d, eax
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
nop dword [rax + rax]
test eax, eax
js 0x140037b5c
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140037b5c
mov rax, qword [rcx]
movabs r10, 0xcb3d1ea576d29870
mov rdx, qword [rsp + 0x20]
mov rax, qword [rax + 0x28]
call qword [0x140048188]
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [0x140048188]
test r14d, r14d
jne 0x140037baa
xor r14d, r14d
mov edx, esi
lea rcx, [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x140037d4f
lea r8, str.All_UsersApplication_Data
mov rdx, rsi
lea rcx, [rbp + 0x140]
call fcn.140010d0c
test eax, eax
js 0x140037d4f
test r15d, r15d
js 0x140037d14
jmp 0x140037bad
xor r14d, r14d
lea r8, [rbp + 0x140]
mov rdx, rsi
lea rax, [rsp + 0x30]
mov r15d, 1
sub r8, rax
lea rcx, [rsp + 0x30]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140037bec
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140037bec
mov word [rcx], ax
add rcx, 2
sub rdx, r15
jne 0x140037bca
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r14w
je 0x140037c5d
lea rcx, [rsp + 0x30]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140037c05
test rax, rax
je 0x140037c3b
cmp word [rsp + rax*2 + 0x2e], 0x5c
jne 0x140037c3b
lea rcx, [rsp + 0x30]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140037c24
test rax, rax
je 0x140037c3b
mov word [rsp + rax*2 + 0x2e], r14w
jmp 0x140037bfd
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140037c5d
test al, 0x10
je 0x140037c5d
mov ebx, r14d
jmp 0x140037d18
xor edx, edx
lea rcx, [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
lea rdx, [rbp + 0x140]
lea rax, [rsp + 0x30]
sub rdx, rax
lea rcx, [rsp + 0x30]
lea rax, [rsi + 0x7ffffefa]
test rax, rax
je 0x140037ca7
movzx eax, word [rdx + rcx]
test ax, ax
je 0x140037ca7
mov word [rcx], ax
add rcx, 2
sub rsi, r15
jne 0x140037c86
test rsi, rsi
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r14w
je 0x140037d14
lea rcx, [rsp + 0x30]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140037cc0
test rax, rax
je 0x140037cf6
cmp word [rsp + rax*2 + 0x2e], 0x5c
jne 0x140037cf6
lea rcx, [rsp + 0x30]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140037cdf
test rax, rax
je 0x140037cf6
mov word [rsp + rax*2 + 0x2e], r14w
jmp 0x140037cb8
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140037d14
test al, 0x10
jne 0x140037c55
test ebx, ebx
jne 0x140037d54
mov rdx, r13
lea rax, [rbp + 0x140]
shr rdx, 1
inc rdi
cmp word [rax + rdi*2], r14w
jne 0x140037d25
inc rdi
cmp rdx, rdi
jbe 0x140037d48
lea r8, [rbp + 0x140]
mov rcx, r12
call fcn.140010dd0
jmp 0x140037d54
mov ebx, 0x8007007a
jmp 0x140037d54
mov ebx, 0x80070057
mov eax, ebx
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.1400017f0
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x460
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret