Function at 0x140003590
Capabilities:
Get common file path
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xc70
mov rax, qword [0x14024a7f8]
xor rax, rsp
mov qword [rsp + 0xc60], rax
mov rsi, rcx
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
xor eax, eax
mov qword [rcx], rax
lea rcx, str.LOCALAPPDATA
call fcn.140196880
mov rdi, rax
call fcn.1400092f8
mov rcx, rax
test rax, rax
je 0x140003822
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsi], rax
mov rbx, 0xffffffffffffffff
test rdi, rdi
je 0x14000362d
cmp rdi, 0x10000
jae 0x140003618
movzx edx, di
mov rcx, rsi
call fcn.1400062b0
jmp 0x14000363c
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp word [rdi + r8*2], 0
jne 0x140003620
jmp 0x140003630
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call fcn.1400075d0
nop
mov dword [rsp + 0x20], 1
mov rax, qword [rsi]
mov rcx, qword [rax - 0x18]
test rcx, rcx
je 0x14000365e
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
test rax, rax
jne 0x140003678
call fcn.1400092f8
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x20]
mov rcx, rax
test rax, rax
je 0x14000382d
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rdx, [0x14021768f]
lea rcx, [rsp + 0x38]
cmp rdx, 0x10000
jae 0x1400036a6
movzx edx, dx
call fcn.1400062b0
jmp 0x1400036ac
call fcn.140006410
nop
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x14000382d
mov rcx, qword [rsi]
mov r8, rax
sub r8, rcx
movzx edi, word [rcx]
movzx edx, word [rcx + r8]
sub edi, edx
jne 0x1400036d7
add rcx, 2
test edx, edx
jne 0x1400036c3
lea rdx, [rax - 0x18]
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400036f0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test edi, edi
jne 0x1400037fa
mov dword [rsp + 0x38], 0x400
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x460]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea r9, [rsp + 0x460]
lea r8, str.C:Users_sAppDataLocal
mov edx, 0x208
lea rcx, [rsp + 0x250]
call fcn.140002340
xor edx, edx
lea rcx, [rsp + 0x250]
call fcn.140190878
test eax, eax
jne 0x140003767
lea rax, [rsp + 0x250]
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140003750
lea rdx, [rsp + 0x250]
jmp 0x1400037ef
mov qword [rsp + 0x30], 0
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, 0x8000
lea rcx, [0x14020bf80]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x1400037b2
mov r8d, 0x104
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.140195fd4
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140006410
jmp 0x1400037fa
xor r9d, r9d
lea r8d, [r9 + 0x1c]
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x1400037d9
lea rdx, [0x1402176b4]
mov rcx, rsi
call fcn.140006410
lea rax, [rsp + 0x40]
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1400037e0
lea rdx, [rsp + 0x40]
mov r8d, ebx
mov rcx, rsi
call fcn.1400075d0
mov rax, rsi
mov rcx, qword [rsp + 0xc60]
xor rcx, rsp
call fcn.140188d60
lea r11, [rsp + 0xc70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400023a0
int3
mov ecx, 0x80004005
call fcn.1400023a0
int3