Function at 0x140021bac
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 [0x140036018]
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 + 0x50], rax
mov rax, qword [rbp + 0x2b8]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x70], rdi
call fcn.140025d04
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x10]
xor ecx, ecx
cmp byte [rax + 4], cl
je 0x140021c7d
mov rax, qword [rsp + 0x58]
mov r9, r13
mov qword [rsp + 0x48], rdi
mov r8, r15
mov qword [rsp + 0x40], rax
mov rdx, rbx
mov rax, qword [rsp + 0x50]
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 0x140021c80
mov eax, 1
jmp 0x140021cfd
xor r15d, r15d
mov r8d, 2
lea rcx, str.CreateProcessA
mov rdx, r14
call fcn.14000d728
call fcn.140025d04
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x10]
cmp dword [rax], 1
jle 0x140021cfb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x18
mov rcx, rdi
mov dword [rsp + 0x60], eax
lea r8d, [rdx - 0x17]
call fcn.1400267d4
test al, al
je 0x140021cf1
call fcn.140026484
mov r13, rax
test rax, rax
je 0x140021cf1
mov rdi, r15
mov rsi, r15
test rbx, rbx
je 0x140021d20
mov rcx, rbx
call fcn.140026214
xor ebx, ebx
mov rdi, rax
test rax, rax
jne 0x140021d20
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.140005c90
add rsp, 0x328
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
test r14, r14
je 0x140021d41
mov rcx, r14
call fcn.140026214
mov rsi, rax
test rax, rax
jne 0x140021d41
mov rcx, rdi
xor edx, edx
call fcn.140025da8
jmp 0x140021cf1
test r12, r12
je 0x140021d65
mov rcx, r12
call fcn.140026214
mov r15, rax
test rax, rax
jne 0x140021d65
xor edx, edx
mov rcx, rdi
call fcn.140025da8
mov rcx, rsi
jmp 0x140021d38
test rdi, rdi
je 0x140021d75
mov rax, qword [rdi + 8]
mov qword [rsp + 0x50], rax
jmp 0x140021d7a
mov qword [rsp + 0x50], rbx
test rsi, rsi
je 0x140021d8a
mov rax, qword [rsi + 8]
mov qword [rsp + 0x58], rax
jmp 0x140021d8f
mov qword [rsp + 0x58], rbx
test r15, r15
je 0x140021d9f
mov rax, qword [r15 + 8]
mov qword [rsp + 0x68], rax
jmp 0x140021da4
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 + 0x50]
mov qword [rbp - 0x78], rax
lea r8, [rsp + 0x58]
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.1400219cc
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.140025da8
xor edx, edx
mov rcx, rsi
call fcn.140025da8
xor edx, edx
mov rcx, r15
call fcn.140025da8
test ebx, ebx
jne 0x140021cf1
mov ebx, dword [rbp - 0x58]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jne 0x140021cfb
mov rdx, r14
lea rcx, str.CreateProcessA
call fcn.14000d608
jmp 0x140021c73