Function at 0x140009af0
Capabilities:
Get common file path
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rax, qword [0x14008d040]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rsi, rcx
mov qword [rbp - 0x41], rcx
mov dword [rbp - 0x49], 1
xor r14d, r14d
mov qword [rcx], r14
xorps xmm0, xmm0
movups xmmword [rcx + 8], xmm0
mov qword [rcx + 0x18], r14
mov qword [rcx + 0x20], r14
lea r8d, [r14 + 0x15]
lea rdx, str.Edge_history_length:
call fcn.140005310
nop
mov dword [rbp - 0x49], 1
mov ecx, 0x104
call fcn.140010f90
mov rdi, rax
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r14 + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x140009b8b
lea ecx, [r14 + 1]
call fcn.140010f90
mov rdi, rax
xor eax, eax
mov byte [rdi], al
mov qword [rbp - 9], r14
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
mov qword [rbp + 0xf], r14
mov qword [rbp + 0x17], r14
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp byte [rdi + r8], 0
jne 0x140009bb0
mov rdx, rdi
lea rcx, [rbp - 9]
call fcn.140005310
nop
mov r8d, 0x29
lea rdx, str.MicrosoftEdgeUser_DataDefaultHistory
lea rcx, [rbp - 9]
call fcn.1400041a0
lea rcx, [rbp - 1]
cmp qword [rbp + 0x17], 0xf
cmova rcx, qword [rbp - 1]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140009ce4
mov ecx, 0x104
call fcn.140010f90
mov rdi, rax
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x140009c60
mov ecx, 1
call fcn.140010f90
mov rdi, rax
xor eax, eax
mov byte [rdi], al
nop dword [rax + rax]
inc rbx
cmp byte [rdi + rbx], 0
jne 0x140009c60
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp - 9]
call fcn.14000b3c0
mov r8d, 0x2b
lea rdx, str.MicrosoftEdgeUser_DataProfile_1History
lea rcx, [rbp - 9]
call fcn.1400041a0
lea rcx, [rbp - 1]
cmp qword [rbp + 0x17], 0xf
cmova rcx, qword [rbp - 1]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140009ce4
lea r8d, [rax + 4]
lea rdx, [0x140085e28]
mov rcx, rsi
call fcn.1400041a0
jmp 0x140009d98
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x1f]
mov r8d, 4
lea rdx, [rbp - 0x11]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
lea r9, [rbp + 0x3c]
mov r8d, dword [rbp - 0x11]
nop dword [rax + rax]
dec r9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8d, edx
test edx, edx
jne 0x140009d10
lea r8, [rbp + 0x3c]
mov rdx, r9
lea rcx, [rbp - 0x39]
call fcn.14000b740
mov dword [rbp - 0x49], 7
lea rdx, [rbp - 0x39]
mov rcx, rsi
call fcn.140002f60
nop
lea rcx, [rbp - 0x39]
call fcn.140004080
mov rcx, qword [rbp - 0x39]
mov qword [rbp - 0x39], r14
mov edx, 0x10
call fcn.140005ea0
mov r8d, 1
lea rdx, [0x14008574c]
mov rcx, rsi
call fcn.1400041a0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp - 9]
call fcn.140004080
mov rcx, qword [rbp - 9]
mov qword [rbp - 9], r14
mov edx, 0x10
call fcn.140005ea0
nop
mov rax, rsi
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140010e80
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret