Function at 0x140026420
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x290
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1401750a0]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rdi, rcx
lea rbx, [rcx + 0xa8]
xor edx, edx
mov rcx, rbx
call fcn.14000aaa0
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x70]
call fcn.1400dfb10
xor r9d, r9d
lea r8d, [r9 + 0x1c]
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x140026678
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140002e90
nop
lea r8, str._Overwolf_BrowserCache_Network_
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140009ea0
nop
sub rdi, 0xffffffffffffff80
lea rcx, [rsp + 0x30]
call sym.OverwolfLauncher.exe_public:_class_Json::CharReader____ptr64___cdecl_Json::CharReader::operator_class_Json::CharReader_const____ptr64____ptr64
cmp rdi, rax
je 0x1400264ed
lea rcx, [rsp + 0x30]
call sym.OverwolfLauncher.exe_public:_class_Json::CharReader____ptr64___cdecl_Json::CharReader::operator_class_Json::CharReader_const____ptr64____ptr64
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x1400264e1
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
mov rcx, rdi
call fcn.140003d30
lea rcx, str.Cookies
call fcn.1400042c0
mov r8, rax
lea rdx, str.Cookies
lea rcx, [rsp + 0x30]
call fcn.140007160
lea rcx, [rsp + 0x30]
call fcn.140002e40
mov rcx, rax
call fcn.140017e20
mov rdx, rax
mov rcx, rbx
call fcn.14000aaa0
mov rcx, rbx
call sym.OverwolfLauncher.exe_public:_char_const____ptr64___cdecl_Json::StaticString::operator_char_const____ptr64_void_const___ptr64
lea rcx, [rax + 8]
call fcn.140002e40
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14002665c
mov rcx, rbx
call sym.OverwolfLauncher.exe_public:_char_const____ptr64___cdecl_Json::StaticString::operator_char_const____ptr64_void_const___ptr64
lea rcx, [rax + 0x68]
call fcn.140002e40
mov rdx, rax
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x140026577
cmp eax, 0xb7
jne 0x14002659d
mov rcx, rbx
call sym.OverwolfLauncher.exe_public:_char_const____ptr64___cdecl_Json::StaticString::operator_char_const____ptr64_void_const___ptr64
lea rcx, [rax + 8]
call fcn.140002e40
mov rcx, rax
call fcn.140030c20
mov rsi, rax
mov qword [rsp + 0x28], rax
test rax, rax
jne 0x1400265a5
xor dil, dil
jmp 0x14002665f
mov rcx, rsi
call fcn.140031100
movzx ebx, al
lea rdx, str.BEGIN_TRANSACTION
mov rcx, rsi
call fcn.140030e20
and bl, al
lea rdx, str.CREATE_TABLE_meta_key_LONGVARCHAR_NOT_NULL_UNIQUE_PRIMARY_KEY__value_LONGVARCHAR__
mov rcx, rsi
call fcn.140030e20
and bl, al
lea rdx, str.INSERT_INTO__meta__VALUES__mmap_status__1__
mov rcx, rsi
call fcn.140030e20
and bl, al
lea rdx, str.INSERT_INTO__meta__VALUES__version_9__
mov rcx, rsi
call fcn.140030e20
and bl, al
lea rdx, str.INSERT_INTO__meta__VALUES__last_compatible_version_5__
mov rcx, rsi
call fcn.140030e20
and bl, al
lea rdx, str.CREATE_TABLE_cookies_creation_utc_INTEGER_NOT_NULL_UNIQUE_PRIMARY_KEY__host_key_TEXT_NOT_NULL__name_TEXT_NOT_NULL__value_TEXT_NOT_NULL__path_TEXT_NOT_NULL__expires_utc_INTEGER_NOT_NULL__secure_INTEGER_NOT_NULL__httponly_INTEGER_NOT_NULL__last_access_utc_INTEGER_NOT_NULL__has_expires_INTEGER_NOT_NULL_DEFAULT_1__persistent_INTEGER_NOT_NULL_DEFAULT_1__priority_INTEGER_NOT_NULL_DEFAULT_1__encrypted_value_BLOB_DEFAULT___firstpartyonly_INTEGER_NOT_NULL_DEFAULT_0__
mov rcx, rsi
call fcn.140030e20
and bl, al
lea rdx, str.CREATE_INDEX_is_transient_ON_cookies_persistent__where_persistent___1_
mov rcx, rsi
call fcn.140030e20
and bl, al
lea rdx, str.CREATE_INDEX_domain_ON_cookies_host_key__
mov rcx, rsi
call fcn.140030e20
and bl, al
lea rdx, str.COMMIT_TRANSACTION
mov rcx, rsi
call fcn.140030e20
movzx edi, al
and dil, bl
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [rax]
jmp 0x14002665f
mov dil, 1
lea rcx, [rsp + 0x30]
call fcn.140002e50
nop
lea rcx, [rsp + 0x50]
call fcn.140002e50
movzx eax, dil
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400dd420
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret