Function at 0x140010340
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400e00c0]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rbp - 0x50], rcx
mov qword [rbp - 0x50], rdx
xor r12d, r12d
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r12w
xor r8d, r8d
mov edx, 0x105
lea rcx, [rbp - 0x48]
call fcn.140015620
nop
mov r14, qword [rdi + 0x10]
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400103ad
mov rcx, qword [rdi]
mov qword [rsp + 0x20], 1
lea r9, [0x1400bd39c]
mov rdx, r14
call fcn.140017560
mov rbx, rax
lea rdx, [0x1400bd39c]
mov rcx, rdi
call fcn.140014830
mov rdx, rax
lea eax, [rbx + 1]
movsxd rcx, eax
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 7
cmp r14, rcx
jb 0x14001067a
lea eax, [rdx - 1]
movsxd r8, eax
sub r14, rcx
cmp r14, r8
cmovb r8, r14
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x140010416
mov rax, qword [rdi]
lea rdx, [rax + rcx*2]
lea rcx, [rbp - 0x28]
call fcn.1400027d0
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
lea rdx, [0x1400bd3a0]
call fcn.140081b9c
test eax, eax
jne 0x140010446
lea edx, [rax + 0x1a]
jmp 0x14001046b
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
lea rdx, str.LOCALAPPDATA
call fcn.140081b9c
test eax, eax
jne 0x1400105c4
lea edx, [rax + 0x1c]
lea rax, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rax, qword [rbp - 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
movups xmm0, xmmword [rbp - 0x48]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rbp - 0x38]
movups xmmword [rsi + 0x10], xmm1
mov qword [rbp - 0x38], r12
mov edx, 7
mov qword [rbp - 0x30], rdx
mov word [rbp - 0x48], r12w
mov rax, qword [rbp - 0x10]
cmp rax, 8
jb 0x1400104f1
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400104e8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140010668
call fcn.140070654
mov rdx, qword [rbp - 0x30]
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r12w
cmp rdx, 8
jb 0x14001053e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010539
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001066e
call fcn.140070654
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r12w
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x14001058e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140010589
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140010674
mov rcx, r8
call fcn.140070654
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 7
mov word [rdi], r12w
mov rax, rsi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140070140
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [rsi], r12
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 7
mov word [rsi], r12w
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x140010613
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001060e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140010668
call fcn.140070654
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r12w
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x14001053e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010539
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001066e
jmp 0x140010539
call fcn.14007d0fc
nop
call fcn.14007d0fc
nop
call fcn.14007d0fc
nop
call fcn.140015b70
int3