Function at 0x1400a6530
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x140101078]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rsi, rcx
mov qword [rsp + 0x30], rcx
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
lea rbx, [0x1400ec4dc]
lea r15, [0x140106278]
mov eax, dword [rdx + rcx]
cmp dword [0x140106270], eax
jle 0x1400a65cd
lea rcx, [0x140106270]
call fcn.1400b8690
cmp dword [0x140106270], 0xffffffff
jne 0x1400a65cd
mov rdx, rbx
mov rcx, r15
call fcn.140088428
lea rcx, [0x1400d7390]
call fcn.1400b89e0
nop
lea rcx, [0x140106270]
call fcn.1400b8630
xor r14d, r14d
cmp qword [0x140106288], r14
jne 0x1400a6802
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp - 0x60]
call qword [sym.imp.VCRUNTIME140.dll_memset]
call fcn.140091f8c
test al, al
je 0x1400a67d4
mov qword [rsp + 0x78], r14
lea r12d, [r14 + 0xf]
mov qword [rbp - 0x70], r12
mov byte [rsp + 0x78], r14b
lea r8d, [r14 + 0xa]
mov qword [rbp - 0x78], r8
lea rdx, str.LogSession
lea rcx, [rsp + 0x78]
call qword [sym.imp.VCRUNTIME140.dll_memmove]
nop
mov byte [rbp - 0x7e], r14b
lea rcx, [rsp + 0x78]
call fcn.1400975b0
mov rdi, rax
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x80]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x50], r12
mov byte [rsp + 0x38], r14b
mov qword [rsp + 0x48], r14
xor r8d, r8d
lea rdx, [0x1400df5d8]
lea rcx, [rsp + 0x38]
call qword [sym.imp.VCRUNTIME140.dll_memmove]
nop
mov byte [rsp + 0x38], r14b
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], r12
mov byte [rsp + 0x58], r14b
lea r9, str.IE_is_protected_mode_
lea edx, [r14 + 0x15]
lea rcx, [rsp + 0x58]
call fcn.14008540c
nop
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x58]
mov rcx, rdi
mov rax, rbx
call qword [str.__r_]
nop
mov ebx, 0x1000
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x1400a66f5
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, rbx
jb 0x1400a66f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400a66f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b8460
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], r12
mov byte [rsp + 0x58], r14b
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x1400a6740
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, rbx
jb 0x1400a673b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400a673b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b8460
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r12
mov byte [rsp + 0x38], r14b
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x1400a678a
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, rbx
jb 0x1400a6785
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400a6785
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b8460
lea rcx, [rsp + 0x78]
call fcn.140092008
mov rbx, rax
cmp r15, rax
je 0x1400a67c8
mov rcx, r15
call fcn.14008858c
nop
mov r8d, 0x20
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
nop
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
lea rcx, [rsp + 0x78]
call fcn.14008858c
jmp 0x1400a6802
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x801a
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rdx, [rbp - 0x60]
test eax, eax
cmovne rdx, rbx
mov rcx, r15
call fcn.1400929a0
mov rdx, r15
mov rcx, rsi
call fcn.14008efb4
mov rax, rsi
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1400b8190
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret