Function at 0x14001b850
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 [0x14010c1f0]
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, [0x1400db210]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x14001bad8
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 0x14001b8c0
lea rcx, [rbp + 0x27]
call fcn.14003d900
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 0x14001b923
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.1400a5e80
mov word [rbx + rdi*2], si
jmp 0x14001b943
mov qword [rsp + 0x20], 0xb
lea r9, str.BDLogging_
xor r8d, r8d
lea edx, [r8 + 0xb]
lea rcx, [rbp + 0x27]
call fcn.14002dbe0
mov rdx, qword [0x14010ce90]
lea rcx, [rbp + 0x27]
call fcn.140021d90
lea rbx, [rbp + 0x27]
cmp qword [rbp + 0x3f], 8
cmovae rbx, qword [rbp + 0x27]
mov ecx, dword [0x140112be0]
mov eax, dword [0x140112be4]
add ecx, eax
je 0x14001b9c5
mov dword [rbp + 7], esi
call fcn.1400217f0
mov qword [rbp - 1], rax
lock inc dword [rbp + 7]
mov dword [rbp - 9], 1
mov rax, qword [rbp - 1]
test rax, rax
jne 0x14001b99e
call fcn.1400217f0
mov qword [rbp - 1], rax
lock inc dword [rbp + 7]
mov rax, qword [rbp - 1]
cmp qword [rax], 0
je 0x14001b9be
mov rax, qword [rax + 0x28]
test rax, rax
je 0x14001b9be
mov rcx, rbx
call qword [case.0x14003c2ce.0]
mov ebx, eax
jmp 0x14001b9ca
mov ebx, 0x80004002
jmp 0x14001b9ca
mov ebx, 0x80004005
mov eax, dword [rbp - 9]
test al, 1
je 0x14001ba08
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 0x14001ba04
nop word [rax + rax]
call fcn.14002ae80
mov eax, 0xffffffff
lock xadd dword [rbp + 7], eax
cmp eax, 1
jns 0x14001b9f0
lock inc dword [rbp + 7]
test ebx, ebx
js 0x14001ba9c
mov ecx, dword [0x140112be0]
mov eax, dword [0x140112be4]
add ecx, eax
je 0x14001ba64
mov dword [rbp + 0x17], esi
call fcn.1400217f0
mov qword [rbp + 0xf], rax
lock inc dword [rbp + 0x17]
or dword [rbp - 9], 2
mov rax, qword [rbp + 0xf]
test rax, rax
jne 0x14001ba4a
call fcn.1400217f0
mov qword [rbp + 0xf], rax
lock inc dword [rbp + 0x17]
mov rax, qword [rbp + 0xf]
cmp qword [rax], 0
je 0x14001ba64
mov rax, qword [rax + 8]
test rax, rax
je 0x14001ba64
call qword [case.0x14003c2ce.0]
nop
mov eax, dword [rbp - 9]
test al, 2
je 0x14001ba9c
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 0x14001ba98
call fcn.14002ae80
mov eax, 0xffffffff
lock xadd dword [rbp + 0x17], eax
cmp eax, 1
jns 0x14001ba84
lock inc dword [rbp + 0x17]
mov rdx, qword [rbp + 0x3f]
cmp rdx, 8
jb 0x14001bad8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001bad3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001bafd
call fcn.1400a36a0
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400a3640
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.1400aa5b0
int3