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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 0xc], str.VivaldiUser_DataLocal_State
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x4ae560
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x4085f4
push 0xfffe
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4085ea
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0x4a813c
push 0x7fff
mov eax, dword [ebp - 0x10]
push eax
call fcn.004930ae
add esp, 0x14
push 0
push 0
push 3
push 0
push 0
push 0x80000000
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x4085e0
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x4085d6
mov eax, dword [ebp - 0x18]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4085d6
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x18]
jne 0x4085cc
mov dword [ebp - 0x20], 0
push str.os_crypt
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00409230
add esp, 8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4085cc
push str._encrypted_key_
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00409230
add esp, 8
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4085cc
mov edx, dword [ebp - 0x24]
add edx, 0x11
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x28]
movsx ecx, byte [eax]
cmp ecx, 0x22
je 0x40853e
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
jmp 0x408525
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.00490ba0
add esp, 0xc
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x4085cc
mov eax, dword [ebp - 0x2c]
add eax, 5
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x30]
sub ecx, 5
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], edx
lea eax, [ebp - 0x38]
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0049383b
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x38]
mov dword [ecx], edx
mov eax, dword [ebp - 0x34]
jmp 0x4085f6
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
mov esp, ebp
pop ebp
ret