Function at 0x140007074
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x480]
sub rsp, 0x580
mov rax, qword [0x14002d008]
xor rax, rsp
mov qword [rbp + 0x470], rax
mov rdi, qword [rbp + 0x4d0]
lea rax, [rbp + 0x270]
mov esi, 0x100
mov rbx, rdx
mov qword [rsp + 0x40], rsi
xor r15d, r15d
mov qword [rsp + 0x38], rax
xor r9d, r9d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
xor r8d, r8d
and qword [rsp + 0x20], r15
xor edx, edx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__splitpath_s]
lea rcx, [rsp + 0x60]
call fcn.14000794c
cmp byte [rbp + 0x270], 0x2e
jne 0x14000710a
lea rcx, [rbp + 0x271]
call fcn.14000794c
xor r9d, r9d
mov byte [rbp + 0x60], r15b
lea rax, [rbp + 0x60]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x20]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov r13d, 0x208
test eax, eax
jns 0x140007140
lea rdx, [rbp + 0x60]
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
and qword [rsp + 0x40], r15
lea r9, [rbp + 0x370]
and qword [rsp + 0x38], r15
lea rdx, [rsp + 0x50]
and qword [rsp + 0x30], r15
lea rcx, [rbp + 0x60]
and qword [rsp + 0x28], r15
mov r8d, 3
mov qword [rsp + 0x20], rsi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__splitpath_s]
lea r8, [rsp + 0x60]
mov rdx, r13
lea rax, [rbp + 0x60]
sub r8, rax
lea rcx, [rbp + 0x60]
lea rax, [rdx + 0x7ffffdf6]
test rax, rax
je 0x1400071a7
mov al, byte [r8 + rcx]
test al, al
je 0x1400071a7
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140007188
lea rax, [rcx - 1]
test rdx, rdx
cmovne rax, rcx
lea rcx, [rsp + 0x60]
mov byte [rax], r15b
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r9, [rbp + 0x370]
mov edx, 0x101
mov esi, eax
lea r8, [rsp + 0x50]
lea rax, [rbp + 0x270]
mov rcx, rbx
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__makepath_s]
test eax, eax
jne 0x14000735b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000720f
test al, 0x10
jne 0x14000720f
mov al, 1
jmp 0x140007211
xor al, al
test al, al
jne 0x140007254
and qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rbx
call qword [sym.imp.Mso98Win32Client.dll_Ordinal_3035]
cmp rax, 0xffffffffffffffff
je 0x140007254
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140007368
inc r15d
jmp 0x14000728f
test esi, esi
jle 0x14000735b
movsxd rax, esi
lea rdx, [rsp + 0x60]
add rdx, rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_CharPrevA]
mov rcx, rax
mov r14, rax
call qword [sym.imp.OLMAPI32.dll_FGLeadBytep]
test eax, eax
je 0x140007289
dec esi
dec esi
mov byte [r14], 0
lea r9, [rsp + 0x60]
mov dword [rsp + 0x20], r15d
lea r8, str._s_x
mov rdx, r13
lea rcx, [rbp + 0x60]
call fcn.1400019d8
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0xff
jge 0x140007259
lea rax, [rbp + 0x270]
mov edx, 0x101
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x370]
lea rax, [rbp + 0x60]
mov rcx, rbx
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__makepath_s]
test eax, eax
jne 0x14000735b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140007306
test al, 0x10
jne 0x140007306
mov al, 1
jmp 0x140007308
xor al, al
test al, al
jne 0x140007254
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x14000735b
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rbx
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_3839]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rbx, 0xffffffffffffffff
jne 0x14000724d
mov edx, 0x80004005
mov rcx, rdi
call fcn.140010748
mov rcx, qword [rbp + 0x470]
xor rcx, rsp
call fcn.14001f240
lea r11, [rsp + 0x580]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret