Function at 0x140007eb8
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.1400014ec
xor r14d, r14d
mov rcx, rax
test rax, rax
je 0x1400080d1
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 0x140007f1e
mov edx, 0x104
lea rcx, [rbp + 0x20]
call fcn.140001b94
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 0x140007f4b
lea rdx, [0x140042ac0]
lea rcx, [rbp + 0x30]
call fcn.140005590
jmp 0x140007f74
lea rdx, str.BraveSoftwareUpdateLog
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x140007f39
mov rcx, qword [rbp + 0x20]
add rcx, 0xffffffffffffffe8
call fcn.140001ab0
add rax, 0x18
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x20]
test rax, rax
jne 0x140007f82
mov ecx, r14d
jmp 0x140007f9d
movsxd rdx, dword [rax - 0xc]
mov rcx, rax
call fcn.14003042c
mov rcx, rax
test eax, eax
js 0x1400080c6
mov rax, qword [rbp + 0x20]
cmp ecx, dword [rax - 0xc]
jg 0x1400080c6
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 0x140007fd5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbp + 0x30]
cmp dword [rcx - 0x10], r14d
jne 0x140007ff8
call fcn.1400014ec
test rax, rax
je 0x1400080dc
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
jmp 0x140008071
mov eax, dword [rcx - 0xc]
sub esi, dword [rcx - 8]
sub eax, 0x104
or esi, eax
jge 0x140008019
mov edx, 0x104
lea rcx, [rbp + 0x30]
call fcn.140001b94
mov rcx, qword [rbp + 0x30]
lea rdx, str.BraveUpdate.log
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rcx, qword [rbp + 0x30]
mov esi, eax
test rcx, rcx
jne 0x140008036
mov eax, r14d
jmp 0x140008047
movsxd rdx, dword [rcx - 0xc]
call fcn.14003042c
test eax, eax
js 0x1400080bb
mov rcx, qword [rbp + 0x30]
cmp eax, dword [rcx - 0xc]
jg 0x1400080bb
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rbp + 0x30]
mov word [rax + rcx*2], r14w
test esi, esi
jne 0x1400080ac
call fcn.1400014ec
mov rcx, rax
test rax, rax
je 0x1400080dc
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 0x140008096
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.140001ab0
jmp 0x140008071
mov ecx, 0x80070057
call fcn.1400013e0
int3
mov ecx, 0x80070057
call fcn.1400013e0
int3
mov ecx, 0x80004005
call fcn.1400013e0
int3
mov ecx, 0x80004005
call fcn.1400013e0
int3