Function at 0x1400218b0
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 [0x140099110]
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, [0x1400754a0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x140021986
mov rdx, qword [rbp - 0x58]
cmp word [rdx], ax
jne 0x140021926
mov r8d, ebx
jmp 0x14002193b
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140021930
lea rcx, [rbp - 0x50]
call fcn.14001cdd0
mov r8d, reloc.WLDAP32.dll_Ordinal_32
lea rdx, str.NVIDIA_CorporationFrameViewSDK
lea rcx, [rbp - 0x50]
call fcn.14001e630
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.14001d4e0
mov r8d, 0xa
lea rdx, str._nvrla.log
lea rcx, [rbp - 0x30]
call fcn.14001e630
jmp 0x140021992
lea rcx, str.SHGetKnownFolderPath_Failed_n
call fcn.140021800
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, [0x140085820]
lea rcx, [0x1400a0588]
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 0x140021a49
inc rax
mov rcx, qword [rbp - 0x50]
cmp rax, rdi
jbe 0x1400219fc
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 0x140021a44
test byte [rbp - 0x50], 0x1f
je 0x140021a14
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 0x140021a24
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 0x140021a34
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140021a41
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.14006ec98
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], rbx
mov word [rbp - 0x50], bx
mov rax, qword [rbp - 0x18]
cmp rax, 8
jb 0x140021ac3
inc rax
mov rcx, qword [rbp - 0x30]
cmp rax, rdi
jbe 0x140021a76
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 0x140021abe
test byte [rbp - 0x30], 0x1f
je 0x140021a8e
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 0x140021a9e
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 0x140021aae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140021abb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.14006ec98
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14006e6d0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret