Function at 0x140021be0
Capabilities:
Create directory
Get common file path

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x14009a110]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x18], 7
xor ebx, ebx
mov qword [rbp - 0x20], rbx
mov word [rbp - 0x30], bx
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], rbx
mov word [rbp - 0x50], bx
lea r9, [rbp - 0x58]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400764a0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x140021cb6
mov rdx, qword [rbp - 0x58]
cmp word [rdx], ax
jne 0x140021c56
mov r8d, ebx
jmp 0x140021c6b
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140021c60
lea rcx, [rbp - 0x50]
call fcn.14001d1b0
mov r8d, reloc.WLDAP32.dll_Ordinal_32
lea rdx, str.NVIDIA_CorporationFrameViewSDK
lea rcx, [rbp - 0x50]
call fcn.14001ea10
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.14001d8c0
mov r8d, 0xa
lea rdx, str._nvrla.log
lea rcx, [rbp - 0x30]
call fcn.14001ea10
jmp 0x140021cc2
lea rcx, str.SHGetKnownFolderPath_Failed_n
call fcn.140021ee0
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rcx, qword [rbp - 0x50]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rdx, qword [rbp - 0x30]
lea r8, [0x140086b10]
lea rcx, [0x1400a1590]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
nop
movabs rdi, 0x7fffffffffffffff
mov rax, qword [rbp - 0x38]
cmp rax, 8
jb 0x140021d79
inc rax
mov rcx, qword [rbp - 0x50]
cmp rax, rdi
jbe 0x140021d2c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
add rax, rax
cmp rax, 0x1000
jb 0x140021d74
test byte [rbp - 0x50], 0x1f
je 0x140021d44
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140021d54
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x140021d64
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140021d71
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.14006f340
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], rbx
mov word [rbp - 0x50], bx
mov rax, qword [rbp - 0x18]
cmp rax, 8
jb 0x140021df3
inc rax
mov rcx, qword [rbp - 0x30]
cmp rax, rdi
jbe 0x140021da6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
add rax, rax
cmp rax, 0x1000
jb 0x140021dee
test byte [rbp - 0x30], 0x1f
je 0x140021dbe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140021dce
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x140021dde
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140021deb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.14006f340
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14006f2e0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret