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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc70
mov rax, qword [0x1402497f8]
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.140196790
mov rdi, rax
call fcn.140009208
mov rcx, rax
test rax, rax
je 0x140003836
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 0x14000361d
movzx edx, di
mov rcx, rsi
call fcn.1400061c0
jmp 0x14000363c
mov r8, rbx
inc r8
cmp word [rdi + r8*2], 0
jne 0x140003620
jmp 0x140003630
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call fcn.1400074e0
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.140009208
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x20]
mov rcx, rax
test rax, rax
je 0x140003841
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rbp, [0x140217698]
lea rcx, [rsp + 0x38]
cmp rbp, 0x10000
jae 0x1400036a6
movzx edx, bp
call fcn.1400061c0
jmp 0x1400036af
mov rdx, rbp
call fcn.140006320
nop
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x140003841
mov rcx, qword [rsi]
mov r8, rax
sub r8, rcx
nop word [rax + rax]
movzx edi, word [rcx]
movzx edx, word [rcx + r8]
sub edi, edx
jne 0x1400036e4
add rcx, 2
test edx, edx
jne 0x1400036d0
lea rdx, [rax - 0x18]
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400036fd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test edi, edi
jne 0x14000380a
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.140190788
test eax, eax
jne 0x140003777
lea rax, [rsp + 0x250]
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140003760
lea rdx, [rsp + 0x250]
jmp 0x1400037ff
mov qword [rsp + 0x30], 0
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, 0x8000
lea rcx, [0x14020bf50]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x1400037c2
mov r8d, 0x104
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.140195ee4
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140006320
jmp 0x14000380a
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 0x1400037e5
mov rdx, rbp
mov rcx, rsi
call fcn.140006320
lea rax, [rsp + 0x40]
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1400037f0
lea rdx, [rsp + 0x40]
mov r8d, ebx
mov rcx, rsi
call fcn.1400074e0
mov rax, rsi
mov rcx, qword [rsp + 0xc60]
xor rcx, rsp
call fcn.140188c70
lea r11, [rsp + 0xc70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400023a0
int3
mov ecx, 0x80004005
call fcn.1400023a0
int3