Function at 0x1400285a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x140300040]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rdx
mov r14, rcx
mov qword [rbp + 0x17], rcx
xor r12d, r12d
mov dword [rbp - 0x29], r12d
mov qword [rbp + 0x1f], r12
call fcn.140019590
mov rcx, rax
test rax, rax
je 0x14002895b
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140038ca6.0]
lea rbx, [rax + 0x18]
mov qword [rbp + 0x1f], rbx
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x104
or eax, ecx
jge 0x14002862d
mov edx, 0x104
lea rcx, [rbp + 0x1f]
call fcn.140018ea0
mov rbx, qword [rbp + 0x1f]
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 5]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1401fe5d0
test eax, eax
js 0x140028950
cmp eax, dword [rbx - 0xc]
jg 0x140028950
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r12w
mov rdi, 0xffffffffffffffff
test rsi, rsi
je 0x1400287e7
lea rax, [rbp - 0x21]
mov qword [rbp - 1], rax
lea rax, [rbp - 0x19]
mov qword [rbp - 0x11], rax
lea rax, [rbp - 9]
mov qword [rbp + 0xf], rax
call fcn.140019590
mov rcx, rax
test rax, rax
je 0x140028966
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140038ca6.0]
add rax, 0x18
mov qword [rbp - 0x21], rax
lea r15, [0x140267514]
mov rdx, r15
lea rcx, [rbp - 0x21]
call fcn.140018bb0
test al, al
jne 0x1400286eb
mov r8, rdi
inc r8
cmp word [r15 + r8*2], 0
jne 0x1400286d3
mov rdx, r15
lea rcx, [rbp - 0x21]
call fcn.140018f50
nop
call fcn.140019590
mov rcx, rax
test rax, rax
je 0x140028945
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140038ca6.0]
add rax, 0x18
mov qword [rbp - 0x19], rax
mov rdx, rsi
lea rcx, [rbp - 0x19]
call fcn.140018bb0
test al, al
jne 0x14002873c
mov r8, rdi
inc r8
cmp word [rsi + r8*2], 0
jne 0x140028724
mov rdx, rsi
lea rcx, [rbp - 0x19]
call fcn.140018f50
nop
add rbx, 0xffffffffffffffe8
mov rcx, rbx
call fcn.140019180
add rax, 0x18
mov qword [rbp - 9], rax
lea r9, [rbp - 0x21]
lea r8, [rbp - 0x19]
lea rdx, [rbp - 9]
lea rcx, [rbp + 7]
call fcn.140025320
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
cmp rcx, rbx
je 0x1400287bf
cmp dword [rbx + 0x10], 0
jl 0x1400287b1
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1400287b1
call fcn.140019180
mov rsi, rax
mov eax, edi
lock xadd dword [rbx + 0x10], eax
sub eax, 1
jg 0x1400287a7
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
lea rax, [rsi + 0x18]
mov qword [rbp + 0x1f], rax
jmp 0x1400287bf
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x1f]
call fcn.140018f50
nop
mov rdx, qword [rbp + 7]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400287e3
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
mov rbx, qword [rbp + 0x1f]
mov rcx, rbx
call fcn.1400247b0
test eax, eax
jne 0x140028876
lea rax, [rbp - 0x11]
mov qword [rbp + 0xf], rax
lea rcx, [rbx - 0x18]
call fcn.140019180
add rax, 0x18
mov qword [rbp - 0x11], rax
lea rcx, [rbp - 0x11]
call fcn.140024da0
test eax, eax
jne 0x140028876
mov rcx, r14
call fcn.140022cf0
mov dword [rbp - 0x29], 1
lock xadd dword [rbx - 8], edi
sub edi, 1
jg 0x14002884b
mov rcx, qword [rbx - 0x18]
mov r8, qword [rcx]
lea rdx, [rbx - 0x18]
mov rax, qword [r8 + 8]
call qword [case.0x140038ca6.0]
mov rax, r14
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1401f74b0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov r8d, 1
lea rdx, [rbp - 1]
lea rcx, [rbp + 0x1f]
call fcn.14001dba0
nop
mov rcx, qword [rax]
cmp dword [rcx - 0x10], 1
jne 0x14002889d
cmp word [rcx], 0x5c
jne 0x14002889d
xor bl, bl
jmp 0x14002889f
mov bl, 1
mov rdx, qword [rbp - 1]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400288c3
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
mov rax, qword [rbp + 0x1f]
test bl, bl
je 0x14002890b
mov esi, dword [rax - 0x10]
lea ebx, [rsi + 1]
test ebx, ebx
js 0x140028950
mov edx, 1
sub edx, dword [rax - 8]
mov ecx, dword [rax - 0xc]
sub ecx, ebx
or ecx, edx
jge 0x1400288f5
mov edx, ebx
lea rcx, [rbp + 0x1f]
call fcn.140018ea0
mov rax, qword [rbp + 0x1f]
mov word [rax + rsi*2], 0x5c
cmp ebx, dword [rax - 0xc]
jg 0x140028950
mov dword [rax - 0x10], ebx
movsxd rcx, ebx
mov word [rax + rcx*2], r12w
lea rbx, [rax - 0x18]
mov rcx, rbx
call fcn.140019180
add rax, 0x18
mov qword [r14], rax
mov dword [rbp - 0x29], 1
lock xadd dword [rbx + 0x10], edi
sub edi, 1
jg 0x14002884b
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
mov rax, qword [rax + 8]
jmp 0x140028845
mov ecx, 0x80004005
call fcn.140019300
nop
mov ecx, 0x80070057
call fcn.140019300
nop
mov ecx, 0x80004005
call fcn.140019300
nop
mov ecx, 0x80004005
call fcn.140019300
int3