Function at 0x14001b7b0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x14010c1d0]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor esi, esi
mov dword [rbp - 9], esi
lea r9, [rbp + 0x1f]
xor edx, edx
lea r8, [rsi - 1]
lea rcx, [0x1400db260]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x14001ba38
mov qword [rbp + 0x27], rsi
mov qword [rbp + 0x37], rsi
mov qword [rbp + 0x3f], 7
mov word [rbp + 0x27], si
mov rdx, qword [rbp + 0x1f]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], si
jne 0x14001b820
lea rcx, [rbp + 0x27]
call fcn.14003d860
nop
mov rcx, qword [rbp + 0x1f]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rbp + 0x37]
mov rdx, qword [rbp + 0x3f]
mov rax, rdx
sub rax, rcx
cmp rax, 0xb
jb 0x14001b883
lea rdi, [rcx + 0xb]
mov qword [rbp + 0x37], rdi
lea rbx, [rbp + 0x27]
cmp rdx, 8
cmovae rbx, qword [rbp + 0x27]
lea rcx, [rbx + rcx*2]
mov r8d, 0x16
lea rdx, str.BDLogging_
call fcn.1400a5290
mov word [rbx + rdi*2], si
jmp 0x14001b8a3
mov qword [rsp + 0x20], 0xb
lea r9, str.BDLogging_
xor r8d, r8d
lea edx, [r8 + 0xb]
lea rcx, [rbp + 0x27]
call fcn.14002db40
mov rdx, qword [0x14010ce70]
lea rcx, [rbp + 0x27]
call fcn.140021cf0
lea rbx, [rbp + 0x27]
cmp qword [rbp + 0x3f], 8
cmovae rbx, qword [rbp + 0x27]
mov ecx, dword [0x140112b70]
mov eax, dword [0x140112b74]
add ecx, eax
je 0x14001b925
mov dword [rbp + 7], esi
call fcn.140021750
mov qword [rbp - 1], rax
lock inc dword [rbp + 7]
mov dword [rbp - 9], 1
mov rax, qword [rbp - 1]
test rax, rax
jne 0x14001b8fe
call fcn.140021750
mov qword [rbp - 1], rax
lock inc dword [rbp + 7]
mov rax, qword [rbp - 1]
cmp qword [rax], 0
je 0x14001b91e
mov rax, qword [rax + 0x28]
test rax, rax
je 0x14001b91e
mov rcx, rbx
call qword [case.0x14003c22e.0]
mov ebx, eax
jmp 0x14001b92a
mov ebx, 0x80004002
jmp 0x14001b92a
mov ebx, 0x80004005
mov eax, dword [rbp - 9]
test al, 1
je 0x14001b968
and eax, 0xfffffffe
mov dword [rbp - 9], eax
mov qword [rbp - 1], rsi
mov eax, 0xffffffff
lock xadd dword [rbp + 7], eax
cmp eax, 1
js 0x14001b964
nop word [rax + rax]
call fcn.14002ade0
mov eax, 0xffffffff
lock xadd dword [rbp + 7], eax
cmp eax, 1
jns 0x14001b950
lock inc dword [rbp + 7]
test ebx, ebx
js 0x14001b9fc
mov ecx, dword [0x140112b70]
mov eax, dword [0x140112b74]
add ecx, eax
je 0x14001b9c4
mov dword [rbp + 0x17], esi
call fcn.140021750
mov qword [rbp + 0xf], rax
lock inc dword [rbp + 0x17]
or dword [rbp - 9], 2
mov rax, qword [rbp + 0xf]
test rax, rax
jne 0x14001b9aa
call fcn.140021750
mov qword [rbp + 0xf], rax
lock inc dword [rbp + 0x17]
mov rax, qword [rbp + 0xf]
cmp qword [rax], 0
je 0x14001b9c4
mov rax, qword [rax + 8]
test rax, rax
je 0x14001b9c4
call qword [case.0x14003c22e.0]
nop
mov eax, dword [rbp - 9]
test al, 2
je 0x14001b9fc
and eax, 0xfffffffd
mov dword [rbp - 9], eax
mov qword [rbp + 0xf], rsi
mov eax, 0xffffffff
lock xadd dword [rbp + 0x17], eax
cmp eax, 1
js 0x14001b9f8
call fcn.14002ade0
mov eax, 0xffffffff
lock xadd dword [rbp + 0x17], eax
cmp eax, 1
jns 0x14001b9e4
lock inc dword [rbp + 0x17]
mov rdx, qword [rbp + 0x3f]
cmp rdx, 8
jb 0x14001ba38
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001ba33
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001ba5d
call fcn.1400a2ab0
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400a2a50
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.1400a99c0
int3