Function at 0x1400302d0
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r15
lea rbp, [rsp - 0x298]
sub rsp, 0x398
mov rax, qword [0x1402a0480]
xor rax, rsp
mov qword [rbp + 0x280], rax
mov rdi, rdx
mov qword [rsp + 0x50], 0x104
mov rsi, rcx
lea rax, [rsp + 0x58]
xor ebx, ebx
mov qword [rsp + 0x40], rax
mov rcx, rdi
mov qword [rsp + 0x48], rbx
lea rdx, [rsp + 0x40]
mov r15, r9
mov r13, r8
call fcn.14003efe0
mov r8, qword [rsp + 0x48]
cmp r8, 4
jb 0x140030383
mov rdx, qword [rsp + 0x40]
lea r9, [0x1401a867c]
mov ecx, ebx
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r9 + rcx - 1]
jne 0x140030368
cmp rcx, 4
jne 0x140030350
mov eax, ebx
jmp 0x14003036d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140030383
lea edx, [rax + 3]
lea rcx, [rsp + 0x40]
call fcn.14002cca0
mov r8, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x38], r8
lea rcx, [rsp + 0x20]
mov r8, r13
mov qword [rsp + 0x30], rax
call fcn.140028a10
cmp dword [rsp + 0x20], ebx
je 0x1400303d0
movups xmm0, xmmword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
movups xmmword [rsi], xmm0
cmp rcx, rax
je 0x14003066b
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14003066b
xor edx, edx
mov qword [rsp + 0x390], r14
mov rcx, rdi
call fcn.14002bff0
movzx r14d, al
test al, al
je 0x140030429
mov rcx, rbx
add rcx, qword [r13 + 8]
mov rdi, qword [rsp + 0x40]
cmp rcx, r15
jb 0x140030645
cmp qword [rsp + 0x48], 4
lea r15, [0x1401a8684]
jb 0x14003046e
mov rcx, rbx
movzx eax, byte [rdi + rcx]
inc rcx
cmp al, byte [r15 + rcx - 1]
jne 0x140030461
cmp rcx, 4
jne 0x140030411
mov eax, ebx
jmp 0x140030466
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, eax
test eax, eax
jne 0x1400303ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rsi
call fcn.14003de40
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
cmp rcx, rax
je 0x140030663
jmp 0x14003065d
sbb eax, eax
or eax, 1
test eax, eax
je 0x140030645
test r14b, r14b
jne 0x140030492
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.14002c7a0
cmp dword [rsp + 0x20], ebx
je 0x140030492
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
jmp 0x140030449
mov edx, 3
lea rcx, [rsp + 0x40]
call fcn.14002cca0
mov r8d, 3
lea rcx, [rsp + 0x40]
mov dl, 1
call fcn.14002deb0
mov rax, qword [rsp + 0x40]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x48]
xor r8d, r8d
mov qword [rsp + 0x28], rax
call fcn.14002f460
lea rdi, [0x1401a8688]
mov qword [rbp + 0x68], rbx
sub rdi, r15
mov qword [rbp + 0x70], 0x208
lea rax, [rbp + 0x78]
mov qword [rbp + 0x60], rax
cmp rdi, 0x208
jbe 0x14003051e
mov r9d, 1
lea rdx, [rbp + 0x78]
mov r8, rdi
lea rcx, [rbp + 0x60]
call fcn.140022b50
mov rax, qword [rbp + 0x60]
mov rbx, qword [rbp + 0x68]
lea rcx, [rbx + rax]
mov r8, rdi
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
mov r8, qword [rbp + 0x68]
mov rax, qword [rsp + 0x30]
add r8, rdi
mov qword [rbp + 0x68], r8
cmp byte [rax + 1], 0x3a
je 0x1400305b2
lea rbx, [0x1401a8690]
lea rdi, str.UNC_
sub rbx, rdi
lea rax, [rbx + r8]
cmp qword [rbp + 0x70], rax
jae 0x140030578
mov r9d, 1
lea rdx, [rbp + 0x78]
mov r8, rax
lea rcx, [rbp + 0x60]
call fcn.140022b50
mov r8, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x60]
mov rdx, rdi
add rcx, r8
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsp + 0x40]
mov r8, qword [rbp + 0x68]
mov r14, qword [rsp + 0x48]
add r8, rbx
add r14, rcx
mov qword [rbp + 0x68], r8
lea rdi, [rcx + 2]
mov rbx, r14
sub rbx, rdi
lea rax, [r8 + rbx]
jmp 0x1400305c9
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add r14, rdi
mov rbx, r14
sub rbx, rdi
lea rax, [rbx + r8]
cmp qword [rbp + 0x70], rax
jae 0x1400305e9
mov r9d, 1
lea rdx, [rbp + 0x78]
mov r8, rax
lea rcx, [rbp + 0x60]
call fcn.140022b50
mov r8, qword [rbp + 0x68]
cmp rdi, r14
je 0x140030604
mov rcx, qword [rbp + 0x60]
mov rdx, rdi
add rcx, r8
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov r8, qword [rbp + 0x68]
mov rax, qword [rbp + 0x60]
lea rdx, [rsp + 0x20]
add r8, rbx
mov qword [rsp + 0x20], rax
mov qword [rbp + 0x68], r8
mov rcx, rsi
mov qword [rsp + 0x28], r8
mov r8, r13
call fcn.140028a10
mov rcx, qword [rbp + 0x60]
lea rax, [rbp + 0x78]
cmp rcx, rax
je 0x140030449
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140030449
mov dword [rsi], ebx
call fcn.140005800
mov qword [rsi + 8], rax
lea rax, [rsp + 0x58]
cmp rdi, rax
je 0x140030663
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r14, qword [rsp + 0x390]
mov rax, rsi
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.1401842c0
add rsp, 0x398
pop r15
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret