Function at 0x140028470
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 [0x1402fa010]
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.1400195b0
mov rcx, rax
test rax, rax
je 0x14002882b
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140038716.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 0x1400284fd
mov edx, 0x104
lea rcx, [rbp + 0x1f]
call fcn.140018ec0
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.1401fa6e8
test eax, eax
js 0x140028820
cmp eax, dword [rbx - 0xc]
jg 0x140028820
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r12w
mov rdi, 0xffffffffffffffff
test rsi, rsi
je 0x1400286b7
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.1400195b0
mov rcx, rax
test rax, rax
je 0x140028836
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140038716.0]
add rax, 0x18
mov qword [rbp - 0x21], rax
lea r15, [0x1402624f4]
mov rdx, r15
lea rcx, [rbp - 0x21]
call fcn.140018bd0
test al, al
jne 0x1400285bb
mov r8, rdi
inc r8
cmp word [r15 + r8*2], 0
jne 0x1400285a3
mov rdx, r15
lea rcx, [rbp - 0x21]
call fcn.140018f70
nop
call fcn.1400195b0
mov rcx, rax
test rax, rax
je 0x140028815
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140038716.0]
add rax, 0x18
mov qword [rbp - 0x19], rax
mov rdx, rsi
lea rcx, [rbp - 0x19]
call fcn.140018bd0
test al, al
jne 0x14002860c
mov r8, rdi
inc r8
cmp word [rsi + r8*2], 0
jne 0x1400285f4
mov rdx, rsi
lea rcx, [rbp - 0x19]
call fcn.140018f70
nop
add rbx, 0xffffffffffffffe8
mov rcx, rbx
call fcn.1400191a0
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.140025220
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
cmp rcx, rbx
je 0x14002868f
cmp dword [rbx + 0x10], 0
jl 0x140028681
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140028681
call fcn.1400191a0
mov rsi, rax
mov eax, edi
lock xadd dword [rbx + 0x10], eax
sub eax, 1
jg 0x140028677
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
lea rax, [rsi + 0x18]
mov qword [rbp + 0x1f], rax
jmp 0x14002868f
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x1f]
call fcn.140018f70
nop
mov rdx, qword [rbp + 7]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400286b3
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
mov rbx, qword [rbp + 0x1f]
mov rcx, rbx
call fcn.1400246b0
test eax, eax
jne 0x140028746
lea rax, [rbp - 0x11]
mov qword [rbp + 0xf], rax
lea rcx, [rbx - 0x18]
call fcn.1400191a0
add rax, 0x18
mov qword [rbp - 0x11], rax
lea rcx, [rbp - 0x11]
call fcn.140024ca0
test eax, eax
jne 0x140028746
mov rcx, r14
call fcn.140022bf0
mov dword [rbp - 0x29], 1
lock xadd dword [rbx - 8], edi
sub edi, 1
jg 0x14002871b
mov rcx, qword [rbx - 0x18]
mov r8, qword [rcx]
lea rdx, [rbx - 0x18]
mov rax, qword [r8 + 8]
call qword [case.0x140038716.0]
mov rax, r14
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1401f3bf0
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.14001da50
nop
mov rcx, qword [rax]
cmp dword [rcx - 0x10], 1
jne 0x14002876d
cmp word [rcx], 0x5c
jne 0x14002876d
xor bl, bl
jmp 0x14002876f
mov bl, 1
mov rdx, qword [rbp - 1]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140028793
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
mov rax, qword [rbp + 0x1f]
test bl, bl
je 0x1400287db
mov esi, dword [rax - 0x10]
lea ebx, [rsi + 1]
test ebx, ebx
js 0x140028820
mov edx, 1
sub edx, dword [rax - 8]
mov ecx, dword [rax - 0xc]
sub ecx, ebx
or ecx, edx
jge 0x1400287c5
mov edx, ebx
lea rcx, [rbp + 0x1f]
call fcn.140018ec0
mov rax, qword [rbp + 0x1f]
mov word [rax + rsi*2], 0x5c
cmp ebx, dword [rax - 0xc]
jg 0x140028820
mov dword [rax - 0x10], ebx
movsxd rcx, ebx
mov word [rax + rcx*2], r12w
lea rbx, [rax - 0x18]
mov rcx, rbx
call fcn.1400191a0
add rax, 0x18
mov qword [r14], rax
mov dword [rbp - 0x29], 1
lock xadd dword [rbx + 0x10], edi
sub edi, 1
jg 0x14002871b
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
mov rax, qword [rax + 8]
jmp 0x140028715
mov ecx, 0x80004005
call fcn.140019320
nop
mov ecx, 0x80070057
call fcn.140019320
nop
mov ecx, 0x80004005
call fcn.140019320
nop
mov ecx, 0x80004005
call fcn.140019320
int3