Function at 0x140023170
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 [0x140038010]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rax, qword [rbp + 0x2a8]
mov r15, r9
mov rdi, qword [rbp + 0x2c0]
mov rbx, r8
mov r13, qword [rbp + 0x290]
mov r14, rdx
mov r12, qword [rbp + 0x2b0]
mov rsi, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rbp + 0x2b8]
mov qword [rsp + 0x60], rax
xor eax, eax
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x70], rdi
call fcn.14002744c
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x10]
cmp byte [rax + 4], 0
je 0x140023246
mov rax, qword [rsp + 0x60]
mov r9, r13
mov qword [rsp + 0x48], rdi
mov r8, r15
mov qword [rsp + 0x40], rax
mov rdx, rbx
mov rax, qword [rsp + 0x58]
mov rcx, r14
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 rsi
xor r15d, r15d
test eax, eax
je 0x140023249
mov eax, 1
jmp 0x1400232c6
xor r15d, r15d
mov r8d, 2
lea rcx, str.CreateProcessA
mov rdx, r14
call fcn.14000f944
call fcn.14002744c
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x10]
cmp dword [rax], 1
jle 0x1400232c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x18
mov rcx, rdi
mov dword [rsp + 0x50], eax
lea r8d, [rdx - 0x17]
call fcn.140027f48
test al, al
je 0x1400232ba
call fcn.140027be8
mov r13, rax
test rax, rax
je 0x1400232ba
mov rdi, r15
mov rsi, r15
test rbx, rbx
je 0x1400232e9
mov rcx, rbx
call fcn.140027960
xor ebx, ebx
mov rdi, rax
test rax, rax
jne 0x1400232e9
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.140006f20
add rsp, 0x328
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
test r14, r14
je 0x14002330a
mov rcx, r14
call fcn.140027960
mov rsi, rax
test rax, rax
jne 0x14002330a
mov rcx, rdi
xor edx, edx
call fcn.1400274f4
jmp 0x1400232ba
test r12, r12
je 0x14002332e
mov rcx, r12
call fcn.140027960
mov r15, rax
test rax, rax
jne 0x14002332e
xor edx, edx
mov rcx, rdi
call fcn.1400274f4
mov rcx, rsi
jmp 0x140023301
test rdi, rdi
je 0x14002333e
mov rax, qword [rdi + 8]
mov qword [rsp + 0x58], rax
jmp 0x140023343
mov qword [rsp + 0x58], rbx
test rsi, rsi
je 0x140023353
mov rax, qword [rsi + 8]
mov qword [rsp + 0x60], rax
jmp 0x140023358
mov qword [rsp + 0x60], rbx
test r15, r15
je 0x140023368
mov rax, qword [r15 + 8]
mov qword [rsp + 0x68], rax
jmp 0x14002336d
mov qword [rsp + 0x68], rbx
lea rdx, [rbp]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rcx, [rbp]
mov qword [rbp - 0x70], r13
dec eax
cmp eax, 0x102
cmova rcx, rbx
xor edx, edx
mov qword [rsp + 0x78], rcx
mov rcx, qword [r13 + 0x10]
add rcx, r13
mov qword [rbp - 0x68], rcx
lea r8d, [rdx + 0x58]
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x70]
lea r9, [rsp + 0x58]
mov qword [rbp - 0x78], rax
lea r8, [rsp + 0x60]
lea rax, [rbp - 0x60]
mov dword [rbp - 0x80], 0x18
mov qword [rsp + 0x38], rax
lea rcx, [rbp - 0x70]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
call fcn.140022f90
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.1400274f4
xor edx, edx
mov rcx, rsi
call fcn.1400274f4
xor edx, edx
mov rcx, r15
call fcn.1400274f4
test ebx, ebx
jne 0x1400232ba
mov ebx, dword [rbp - 0x58]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jne 0x1400232c4
mov rdx, r14
lea rcx, str.CreateProcessA
call fcn.14000f818
jmp 0x14002323c