Function at 0x1400299e0
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x2c0]
sub rsp, 0x3c0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x400], rbx
mov rax, qword [0x1400bc190]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
mov rsi, rdx
mov rbx, rcx
xor r13d, r13d
mov dword [rsp + 0x20], r13d
mov dword [rsp + 0x20], 0x23
lea rdi, [rbp + 0xa0]
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
mov qword [rsp + 0x28], r13
lea r9, [rsp + 0x28]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14009b608]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jns 0x140029bf2
mov qword [rsp + 0x50], 0xf
mov qword [rsp + 0x48], r13
mov byte [rsp + 0x38], r13b
xor r8d, r8d
lea rdx, [0x14009b802]
lea rcx, [rsp + 0x38]
call fcn.1400050b0
nop
lea rcx, [rbp + 0x30]
call fcn.140057a14
nop
lea rbx, vtable.BaseException.0
mov qword [rbp + 0x30], rbx
mov qword [rbp + 0x60], 0xf
mov qword [rbp + 0x58], r13
mov byte [rbp + 0x48], r13b
xor r8d, r8d
lea rdx, [0x14009b802]
lea rcx, [rbp + 0x48]
call fcn.1400050b0
nop
lea rsi, vtable.ExceptionStream_class_Exception__class_BaseException_.0
mov qword [rbp + 0x30], rsi
mov qword [rbp + 0x88], 0xf
mov qword [rbp + 0x80], r13
mov byte [rbp + 0x70], r13b
cmp qword [rsp + 0x48], r13
jbe 0x140029b35
lea r8, [0x14009c634]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.140008610
nop
mov rdx, rax
lea rcx, [rbp + 0x70]
call fcn.140004f10
nop
cmp qword [rsp + 0x78], 0x10
jb 0x140029b22
mov rcx, qword [rsp + 0x60]
call fcn.140058288
mov qword [rsp + 0x78], 0xf
mov qword [rsp + 0x70], r13
mov byte [rsp + 0x60], 0
cmp qword [rsp + 0x50], 0x10
jb 0x140029b47
mov rcx, qword [rsp + 0x38]
call fcn.140058288
mov qword [rsp + 0x50], 0xf
mov qword [rsp + 0x48], r13
mov byte [rsp + 0x38], 0
lea r12, vtable.Exception.0
mov qword [rbp + 0x30], r12
lea rcx, [rbp + 0x30]
call fcn.14002a0d0
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.140015290
mov rdi, rax
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.140057c1c
nop
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x40], 0xf
mov qword [rbp - 0x48], r13
mov byte [rbp - 0x58], 0
lea rdx, [rdi + 0x18]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x58]
call fcn.140004fa0
nop
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x18], 0xf
mov qword [rbp - 0x20], r13
mov byte [rbp - 0x30], 0
lea rdx, [rdi + 0x40]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x30]
call fcn.140004fa0
nop
mov qword [rbp - 0x70], r12
lea rdx, [0x1400b9790]
lea rcx, [rbp - 0x70]
call fcn.14005a4ec
nop
mov qword [rbp + 0x18], 7
mov qword [rbp + 0x10], r13
mov word [rbp], r13w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdx, qword [rsp + 0x28]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp]
call fcn.1400055c0
nop
lea rdx, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rdx, qword [rbp]
lea rcx, [rbp + 0xa0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov qword [rsp + 0x78], 0xf
mov qword [rsp + 0x70], r13
mov byte [rsp + 0x60], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [0x1400c2898]
lea rcx, [rsp + 0x60]
call fcn.140004fa0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.140001890
cmp qword [rax + 0x18], 8
jb 0x140029c84
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp + 0xa0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp qword [rsp + 0x50], 8
jb 0x140029ca6
mov rcx, qword [rsp + 0x38]
call fcn.140058288
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r13
mov word [rsp + 0x38], r13w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0xa0]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0xa0]
lea rcx, [rsp + 0x38]
call fcn.1400055c0
nop
lea rcx, [rsp + 0x38]
call fcn.14002d700
test al, al
sete dil
cmp qword [rsp + 0x50], 8
jb 0x140029d05
mov rcx, qword [rsp + 0x38]
call fcn.140058288
test dil, dil
je 0x140029dbb
lea rcx, [rbp + 0x30]
call fcn.1400119f0
nop
mov rcx, rax
call fcn.14002a280
mov rcx, rax
lea rdx, [rbp + 0xa0]
call fcn.14002a430
mov rdi, rax
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.140057c1c
nop
lea rbx, vtable.BaseException.0
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x40], 0xf
mov qword [rbp - 0x48], r13
mov byte [rbp - 0x58], 0
lea rdx, [rdi + 0x18]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x58]
call fcn.140004fa0
nop
lea rsi, vtable.ExceptionStream_class_Exception__class_BaseException_.0
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x18], 0xf
mov qword [rbp - 0x20], r13
mov byte [rbp - 0x30], 0
lea rdx, [rdi + 0x40]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x30]
call fcn.140004fa0
nop
lea r12, vtable.Exception.0
mov qword [rbp - 0x70], r12
lea rdx, [0x1400b9790]
lea rcx, [rbp - 0x70]
call fcn.14005a4ec
nop
lea rcx, [rbp + 0xa0]
call fcn.140029880
lea rcx, [rbp + 0xa0]
call fcn.1400297e0
cmp qword [rsi + 0x18], 8
jb 0x140029ddd
mov rsi, qword [rsi]
mov rdx, rsi
lea rcx, [rbp + 0xa0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
mov word [rbx], r13w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0xa0]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0xa0]
mov rcx, rbx
call fcn.1400055c0
nop
cmp qword [rbp + 0x18], 8
jb 0x140029e34
mov rcx, qword [rbp]
call fcn.140058288
mov rax, rbx
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.1400579a0
mov rbx, qword [rsp + 0x400]
add rsp, 0x3c0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret