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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x480]
sub rsp, 0x580
mov rax, qword [0x140030010]
xor rax, rsp
mov qword [rbp + 0x470], rax
mov rdi, qword [rbp + 0x4d0]
lea rax, [rbp + 0x270]
mov ebx, 0x100
mov rsi, rdx
mov qword [rsp + 0x40], rbx
xor r15d, r15d
mov qword [rsp + 0x38], rax
xor r9d, r9d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rbx
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.140007ae0
cmp byte [rbp + 0x270], 0x2e
jne 0x14000714c
lea rcx, [rbp + 0x271]
call fcn.140007ae0
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 r14d, 0x208
test eax, eax
jns 0x140007182
lea rdx, [rbp + 0x60]
mov ecx, r14d
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], rbx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__splitpath_s]
lea r8, [rsp + 0x60]
mov rdx, r14
lea rax, [rbp + 0x60]
sub r8, rax
lea rcx, [rbp + 0x60]
lea rax, [rdx + 0x7ffffdf6]
test rax, rax
je 0x1400071e9
mov al, byte [r8 + rcx]
test al, al
je 0x1400071e9
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x1400071ca
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 ebx, eax
lea r8, [rsp + 0x50]
lea rax, [rbp + 0x270]
mov rcx, rsi
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 0x14000739f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000724d
test al, 0x10
je 0x140007294
mov dword [rsp + 0x38], 1
xor r9d, r9d
and qword [rsp + 0x30], r15
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov rcx, rsi
mov dword [rsp + 0x20], 2
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_248]
cmp rax, 0xffffffffffffffff
je 0x140007294
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400073ac
inc r15d
jmp 0x1400072d5
test ebx, ebx
jle 0x14000739f
movsxd rax, ebx
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 0x1400072c9
dec ebx
mov byte [r14], 0
dec ebx
mov r14d, 0x208
lea r9, [rsp + 0x60]
mov dword [rsp + 0x20], r15d
lea r8, str._s_x
mov rdx, r14
lea rcx, [rbp + 0x60]
call fcn.14000198c
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0xff
jge 0x140007299
lea rax, [rbp + 0x270]
mov edx, 0x101
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x370]
lea rax, [rbp + 0x60]
mov rcx, rsi
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 0x14000739f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000734c
test al, 0x10
je 0x140007294
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x14000739f
mov dword [rsp + 0x38], 1
xor r9d, r9d
and qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov rcx, rsi
mov dword [rsp + 0x20], 2
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_248]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rbx, 0xffffffffffffffff
jne 0x14000728d
mov edx, 0x80004005
mov rcx, rdi
call fcn.1400108d8
mov rcx, qword [rbp + 0x470]
xor rcx, rsp
call fcn.14001fbe0
mov rbx, qword [rsp + 0x5c0]
add rsp, 0x580
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret