Function at 0x140004b50
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
sub rsp, 0x110
lea rbp, [rsp + 0x40]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x14019d3c0]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov rbx, rcx
mov qword [rbp], rcx
lea r9, [rbp + 0x48]
xor r8d, r8d
test edx, edx
jne 0x140004d58
lea rcx, [0x14015bb70]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x140004f38
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x60], xmm1
mov rdx, qword [rbp + 0x48]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140004bc0
lea rcx, [rbp + 0x50]
call fcn.14000dec0
nop
lea rdx, [rbp + 0x50]
cmp qword [rbp + 0x68], 7
cmova rdx, qword [rbp + 0x50]
mov rax, qword [rbp + 0x60]
lea r8, [rdx + rax*2]
lea rdx, [rbp + 0x50]
cmova rdx, qword [rbp + 0x50]
lea rcx, [rbp + 0x70]
call fcn.14000c9c0
nop
movabs rax, 0xdb4e800812d79a19
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x20], rax
movabs rax, 0x7c38af096c848daa
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x28], rax
movabs rcx, 0x6c146633a37821b7
mov qword [rbp], rcx
mov rax, qword [rbp]
mov qword [rbp + 0x30], rax
movabs rdx, 0xc82ae15e24436654
mov qword [rbp], rdx
mov rax, qword [rbp]
mov qword [rbp + 0x38], rax
movabs rax, 0xba22ec6168b8d745
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0xa0], rax
movabs rax, 0x457c96c1eedcb8a
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0xa8], rax
mov qword [rbp], rcx
mov rax, qword [rbp]
mov qword [rbp + 0xb0], rax
mov qword [rbp], rdx
mov rax, qword [rbp]
mov qword [rbp + 0xb8], rax
vmovdqu ymm0, ymmword [rbp + 0x20]
vpxor ymm1, ymm0, ymmword [rbp + 0xa0]
vmovdqa ymmword [rbp + 0x20], ymm1
lea r8, [rbp + 0x20]
lea rdx, [rbp + 0x70]
mov rcx, rbx
vzeroupper
call fcn.140001fc0
nop
mov rdx, qword [rbp + 0x88]
cmp rdx, 0xf
jbe 0x140004d0e
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004d08
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004d08
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140157d3c
nop
mov rdx, qword [rbp + 0x68]
cmp rdx, 7
jbe 0x140004f35
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004f30
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004f30
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor edx, edx
lea rcx, [0x14015bb60]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x140004f38
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x60], xmm1
mov rdx, qword [rbp + 0x48]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140004d90
lea rcx, [rbp + 0x50]
call fcn.14000dec0
nop
lea rdx, [rbp + 0x50]
cmp qword [rbp + 0x68], 7
cmova rdx, qword [rbp + 0x50]
mov rax, qword [rbp + 0x60]
lea r8, [rdx + rax*2]
lea rdx, [rbp + 0x50]
cmova rdx, qword [rbp + 0x50]
lea rcx, [rbp + 0x70]
call fcn.14000c9c0
nop
movabs rax, 0xdb4e800812d79a19
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x20], rax
movabs rax, 0x7c38af096c848dd6
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x28], rax
movabs rax, 0x9780f55cc0a71eb
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x30], rax
movabs rax, 0xc82ae15e24436627
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x38], rax
movabs rax, 0xba22ec6168b8d745
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0xa0], rax
movabs rax, 0x457c96c1eedcb8a
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0xa8], rax
movabs rcx, 0x6c146633a37821b7
mov qword [rbp], rcx
mov rax, qword [rbp]
mov qword [rbp + 0xb0], rax
movabs rdx, 0xc82ae15e24436654
mov qword [rbp], rdx
mov rax, qword [rbp]
mov qword [rbp + 0xb8], rax
vmovdqu ymm0, ymmword [rbp + 0x20]
vpxor ymm1, ymm0, ymmword [rbp + 0xa0]
vmovdqa ymmword [rbp + 0x20], ymm1
lea r8, [rbp + 0x20]
lea rdx, [rbp + 0x70]
mov rcx, rbx
vzeroupper
call fcn.140001fc0
nop
mov rdx, qword [rbp + 0x88]
cmp rdx, 0xf
jbe 0x140004ef2
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004eec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004eec
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140157d3c
nop
mov rdx, qword [rbp + 0x68]
cmp rdx, 7
jbe 0x140004f35
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004f30
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004f30
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140157d3c
mov rax, rbx
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.140157800
mov rbx, qword [rsp + 0x128]
add rsp, 0x110
pop rbp
ret