Function at 0x14002f974
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x228]
sub rsp, 0x328
mov rax, qword [0x14008a3a8]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rax, qword [rbp + 0x2a8]
mov rsi, r9
mov r14, qword [rbp + 0x290]
mov rbx, r8
mov r12, qword [rbp + 0x2b0]
mov r15, rdx
mov r13, qword [rbp + 0x2c0]
mov rdi, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rbp + 0x2b8]
mov qword [rsp + 0x50], rax
call fcn.140034e88
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x10]
mov rcx, rax
call fcn.14003d138
test al, al
je 0x14002fa41
mov rax, qword [rsp + 0x50]
mov r9, r14
mov qword [rsp + 0x48], r13
mov r8, rsi
mov qword [rsp + 0x40], rax
mov rdx, rbx
mov rax, qword [rsp + 0x58]
mov rcx, r15
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 0x2a0]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp + 0x298]
mov dword [rsp + 0x20], eax
call rdi
xor r14d, r14d
test eax, eax
jne 0x14002fc1c
jmp 0x14002fa44
xor r14d, r14d
call fcn.140034e88
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x10]
mov rcx, rax
call fcn.14003d130
test al, al
je 0x14002fab3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x18
mov rcx, r13
mov dword [rsp + 0x50], eax
lea r8d, [rdx - 0x17]
call fcn.140035c34
test al, al
je 0x14002faa9
call fcn.1400356ec
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14002faa9
mov rdi, r14
mov rsi, r14
test rbx, rbx
je 0x14002fad8
mov rcx, rbx
call fcn.1400353dc
xor ebx, ebx
mov rdi, rax
test rax, rax
jne 0x14002fad8
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.1400722b0
add rsp, 0x328
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
test r15, r15
je 0x14002faf9
mov rcx, r15
call fcn.1400353dc
mov rsi, rax
test rax, rax
jne 0x14002faf9
mov rcx, rdi
xor edx, edx
call fcn.140034f30
jmp 0x14002faa9
test r12, r12
je 0x14002fb1d
mov rcx, r12
call fcn.1400353dc
mov r14, rax
test rax, rax
jne 0x14002fb1d
xor edx, edx
mov rcx, rdi
call fcn.140034f30
mov rcx, rsi
jmp 0x14002faf0
test rdi, rdi
je 0x14002fb28
mov rax, qword [rdi + 8]
jmp 0x14002fb2b
mov rax, rbx
mov qword [rsp + 0x78], rax
test rsi, rsi
je 0x14002fb3b
mov rax, qword [rsi + 8]
jmp 0x14002fb3e
mov rax, rbx
mov qword [rbp - 0x80], rax
test r14, r14
je 0x14002fb4d
mov rax, qword [r14 + 8]
jmp 0x14002fb50
mov rax, rbx
lea rdx, [rbp]
mov qword [rsp + 0x68], rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rdx, qword [rsp + 0x58]
lea rcx, [rbp]
dec eax
cmp eax, 0x102
cmova rcx, rbx
mov qword [rsp + 0x70], rcx
lea rcx, [rbp - 0x78]
call fcn.1400397e0
xor edx, edx
lea rcx, [rbp - 0x60]
lea r8d, [rdx + 0x58]
call sub.VCRUNTIME140.dll_memset
lea rax, [rbp - 0x60]
mov dword [rsp + 0x58], 0x18
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x78]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x30], rax
lea r8, [rbp - 0x80]
lea rax, [rsp + 0x68]
mov edx, 0xd
mov qword [rsp + 0x28], rax
lea rcx, [rbp - 0x78]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call fcn.14002f7a4
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.140034f30
xor edx, edx
mov rcx, rsi
call fcn.140034f30
xor edx, edx
mov rcx, r14
call fcn.140034f30
xor edi, edi
test ebx, ebx
jne 0x14002faa9
mov ecx, dword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [rbp - 0x58], edi
jne 0x14002fab3
mov eax, 1
jmp 0x14002fab5