Function at 0x140007db0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x30
mov rdi, rdx
call fcn.1400014b8
xor r14d, r14d
mov rcx, rax
test rax, rax
je 0x140007fd7
mov rax, qword [rax]
call qword [rax + 0x18]
lea esi, [r14 + 1]
mov ecx, esi
lea rbx, [rax + 0x18]
mov qword [rbp + 0x20], rbx
mov eax, dword [rbx - 0xc]
sub ecx, dword [rbx - 8]
sub eax, 0x104
or ecx, eax
jge 0x140007e16
mov edx, 0x104
lea rcx, [rbp + 0x20]
call fcn.140001b34
mov rbx, qword [rbp + 0x20]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x23]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x140007e43
lea rdx, [0x140048d48]
lea rcx, [rbp + 0x30]
call fcn.140005938
jmp 0x140007e6c
lea rdx, str.BraveSoftwareUpdateLog
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x140007e31
mov rcx, qword [rbp + 0x20]
add rcx, 0xffffffffffffffe8
call fcn.140001a9c
add rax, 0x18
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x20]
test rax, rax
jne 0x140007e7a
mov ecx, r14d
jmp 0x140007e95
movsxd rdx, dword [rax - 0xc]
mov rcx, rax
call fcn.140030e18
mov rcx, rax
test eax, eax
js 0x140007fcc
mov rax, qword [rbp + 0x20]
cmp ecx, dword [rax - 0xc]
jg 0x140007fcc
mov dword [rax - 0x10], ecx
or ebx, 0xffffffff
mov rax, qword [rbp + 0x20]
mov ecx, ecx
mov word [rax + rcx*2], r14w
mov eax, ebx
mov rdx, qword [rbp + 0x20]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140007ecd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbp + 0x30]
cmp dword [rcx - 0x10], r14d
jne 0x140007ef3
call fcn.1400014b8
test rax, rax
je 0x140007fe2
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
jmp 0x140007f77
mov eax, dword [rcx - 0xc]
sub esi, dword [rcx - 8]
sub eax, 0x104
or esi, eax
jge 0x140007f14
mov edx, 0x104
lea rcx, [rbp + 0x30]
call fcn.140001b34
mov rcx, qword [rbp + 0x30]
lea rdx, str.BraveUpdate.log
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
mov rax, qword [rbp + 0x30]
sete sil
test rax, rax
jne 0x140007f35
mov ecx, r14d
jmp 0x140007f4c
movsxd rdx, dword [rax - 0xc]
mov rcx, rax
call fcn.140030e18
mov rcx, rax
test eax, eax
js 0x140007fc1
mov rax, qword [rbp + 0x30]
cmp ecx, dword [rax - 0xc]
jg 0x140007fc1
mov dword [rax - 0x10], ecx
mov rax, qword [rbp + 0x30]
mov ecx, ecx
mov word [rax + rcx*2], r14w
test sil, sil
je 0x140007fb2
call fcn.1400014b8
mov rcx, rax
test rax, rax
je 0x140007fe2
mov rax, qword [rax]
call qword [rax + 0x18]
mov rdx, qword [rbp + 0x30]
add rax, 0x18
mov qword [rdi], rax
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140007f9c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x58]
mov rax, rdi
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret
mov rcx, qword [rbp + 0x30]
add rcx, 0xffffffffffffffe8
call fcn.140001a9c
jmp 0x140007f77
mov ecx, 0x80070057
call fcn.140001834
int3
mov ecx, 0x80070057
call fcn.140001834
int3
mov ecx, 0x80004005
call fcn.140001834
int3
mov ecx, 0x80004005
call fcn.140001834
int3