Function at 0x140016a70
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
lea rbp, [rsp - 0x2e0]
sub rsp, 0x3e0
mov rax, qword [0x14016e028]
xor rax, rsp
mov qword [rbp + 0x2c0], rax
lea rax, [rbp + 0x20]
mov dword [rbp + 0x1c], 0x80
mov qword [rbp + 0x10], rax
mov rdi, rcx
lea rax, [0x1401430b0]
xor r12d, r12d
mov qword [rbp - 0x50], rax
xor ecx, ecx
lea rax, [rbp + 0x10]
mov dword [rbp + 0x18], r12d
mov qword [rbp - 0x28], rax
mov rsi, r8
mov rbx, rdx
call fcn.14013e7e8
movzx r9d, byte [rbx + 0x10]
lea rdx, [rbp - 0x50]
mov r8, qword [rbx]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], r12
mov dword [rbp - 0x30], r12d
call fcn.140023bc0
movzx r9d, byte [rbx + 0x11]
lea rdx, [rbp - 0x50]
mov r8, qword [rbx + 8]
call fcn.140023bc0
cmp dword [rbp - 0x30], 1
lea rax, [0x140143060]
mov qword [rbp - 0x50], rax
jne 0x140016b1d
mov rcx, qword [rbp - 0x48]
call fcn.14013e7e8
lea rax, [rbp + 0x10]
mov qword [rsp + 0x3d8], r14
mov edx, 2
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x40]
mov word [rsp + 0x50], 0x106
call fcn.140015bb0
test al, al
je 0x140016b99
mov r14, r12
mov ebx, dword [rbp + 0x18]
mov qword [rsp + 0x3d0], r15
lea rax, [rbx + r14]
cmp rax, 0xf8
jb 0x140016f56
lea rdx, [0x140149724]
cmp rbx, 4
jb 0x140016be7
mov r8, qword [rbp + 0x10]
mov rcx, r12
nop word [rax + rax]
movzx eax, byte [r8 + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x140016bd6
cmp rcx, 4
jne 0x140016b80
mov eax, r12d
jmp 0x140016bdb
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140016b4b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
call fcn.14001c470
mov rcx, qword [rbp + 0x10]
lea rdx, [rbp + 0x20]
cmp rcx, rdx
je 0x14001703f
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14001703f
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140016be7
mov r15, r8
jmp 0x140016f66
lea rax, [rbp + 0xb0]
mov dword [rbp + 0xa8], r12d
lea r8, [0x140149728]
mov qword [rbp + 0xa0], rax
lea rcx, [rbp + 0xa0]
mov dword [rbp + 0xac], 0x208
call fcn.140008430
test r14, r14
je 0x140016d13
lea rax, [rbp - 0x40]
mov dword [rbp - 0x48], r12d
lea rdx, [rbp - 0x50]
mov qword [rbp - 0x50], rax
lea rcx, [rsp + 0x30]
mov dword [rbp - 0x44], 0x50
call fcn.1400171c0
cmp dword [rsp + 0x30], r12d
je 0x140016c87
movups xmm0, xmmword [rsp + 0x30]
mov rcx, qword [rbp - 0x50]
lea rax, [rbp - 0x40]
movups xmmword [rdi], xmm0
cmp rcx, rax
je 0x140016c65
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp + 0xa0]
lea rax, [rbp + 0xb0]
cmp rcx, rax
je 0x140017024
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140017024
mov rdx, qword [rbp - 0x50]
mov ecx, dword [rbp + 0xa8]
mov r15, rdx
mov r14d, dword [rbp - 0x48]
mov r8d, ecx
mov eax, dword [rbp + 0xac]
add r14, rdx
mov rbx, r14
sub rax, rcx
sub rbx, rdx
cmp rbx, rax
jbe 0x140016cd8
add r8, rbx
lea rdx, [rbp + 0xb0]
mov r9d, 1
lea rcx, [rbp + 0xa0]
call fcn.14001d070
mov ecx, dword [rbp + 0xa8]
mov rdx, qword [rbp - 0x50]
cmp r15, r14
je 0x140016cf9
add rcx, qword [rbp + 0xa0]
mov r8, rbx
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [rbp + 0xa8]
mov rdx, qword [rbp - 0x50]
add ecx, ebx
lea rax, [rbp - 0x40]
mov dword [rbp + 0xa8], ecx
cmp rdx, rax
je 0x140016d13
mov rcx, rdx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rbp + 0x10]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x40]
mov eax, dword [rbp + 0x18]
mov r8d, 2
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp - 0x50], xmm0
movdqa xmmword [rsp + 0x30], xmm0
call fcn.140013eb0
mov rbx, qword [rbp + 0x10]
mov r14d, dword [rbp + 0x18]
movups xmm0, xmmword [rax]
mov rax, r12
mov dword [rbp - 0x28], 2
mov qword [rbp - 0x30], rax
movups xmmword [rbp - 0x40], xmm0
cmp qword [rbp - 0x50], rbx
jne 0x140016d74
cmp rax, r14
je 0x140016e7c
mov rax, qword [rbp - 0x38]
cmp rax, 1
jne 0x140016e06
mov rcx, qword [rbp - 0x40]
movzx eax, byte [rcx]
cmp al, 0x2f
je 0x140016df4
cmp al, 0x5c
je 0x140016df4
cmp al, 0x2e
jne 0x140016d9a
mov eax, r12d
jmp 0x140016d9f
sbb eax, eax
or eax, 1
test eax, eax
je 0x140016df4
lea rax, [rbp - 0x40]
mov word [rsp + 0x70], 0x101
mov qword [rsp + 0x40], rax
lea r9, [rbp - 0x70]
lea rax, [rsp + 0x60]
mov word [rbp - 0x78], 0x101
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x78]
mov word [rbp - 0x60], 0x101
mov edx, 2
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0xa0]
mov word [rsp + 0x50], 0x105
call fcn.140015100
lea rcx, [rbp - 0x50]
call fcn.140014be0
mov rax, qword [rbp - 0x30]
jmp 0x140016d65
cmp rax, 2
jne 0x140016da3
mov rax, qword [rbp - 0x40]
cmp byte [rax], 0x2e
jne 0x140016e20
cmp byte [rax + 1], 0x2e
jne 0x140016e20
mov eax, r12d
jmp 0x140016e25
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140016da3
mov rax, qword [rbp + 0xa0]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov edx, 2
mov eax, dword [rbp + 0xa8]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
call fcn.1400142b0
cmp rax, 0xffffffffffffffff
je 0x140016df4
lea rcx, [rbp - 0x50]
mov dword [rbp + 0xa8], eax
call fcn.140014be0
mov rax, qword [rbp - 0x30]
jmp 0x140016d65
mov r14d, dword [rbp + 0xa8]
mov r15, qword [rbp + 0xa0]
test r14, r14
je 0x140016f19
mov rax, qword [rsi]
mov r9d, r14d
mov dword [rsp + 0x28], r12d
mov r8, r15
mov edx, 8
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
test eax, eax
jne 0x140016ed1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
call fcn.14001c470
jmp 0x140016c65
inc eax
movsxd r8, eax
mov eax, dword [rsi + 0xc]
cmp rax, r8
jae 0x140016ef0
lea rdx, [rsi + 0x10]
mov r9d, 2
mov rcx, rsi
call fcn.14001d070
mov rax, qword [rsi]
mov r9d, r14d
mov dword [rsp + 0x28], ebx
mov r8, r15
mov edx, 8
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
mov dword [rsi + 8], ebx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140016ebc
mov eax, dword [rsi + 8]
cmp eax, dword [rsi + 0xc]
jb 0x140016f39
lea rdx, [rsi + 0x10]
mov r9d, 2
xor r8d, r8d
mov rcx, rsi
call fcn.14001d070
mov eax, dword [rsi + 8]
mov ecx, eax
mov rax, qword [rsi]
mov word [rax + rcx*2], r12w
lea rax, [0x14016e048]
mov qword [rdi + 8], rax
mov dword [rdi], r12d
jmp 0x140016c65
mov r8, qword [rbp + 0x10]
mov r15, r8
test rbx, rbx
je 0x140016fec
mov rax, qword [rsi]
mov r9d, ebx
mov dword [rsp + 0x28], r12d
mov edx, 8
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov r14d, eax
test eax, eax
jne 0x140016fa2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
call fcn.14001c470
jmp 0x140017024
inc eax
movsxd r8, eax
mov eax, dword [rsi + 0xc]
cmp rax, r8
jae 0x140016fc1
lea rdx, [rsi + 0x10]
mov r9d, 2
mov rcx, rsi
call fcn.14001d070
mov rax, qword [rsi]
mov r9d, ebx
mov dword [rsp + 0x28], r14d
mov r8, r15
mov edx, 8
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
mov dword [rsi + 8], r14d
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140016f8d
mov eax, dword [rsi + 8]
cmp eax, dword [rsi + 0xc]
jb 0x14001700c
lea rdx, [rsi + 0x10]
mov r9d, 2
xor r8d, r8d
mov rcx, rsi
call fcn.14001d070
mov eax, dword [rsi + 8]
mov ecx, eax
mov rax, qword [rsi]
mov word [rax + rcx*2], r12w
lea rax, [0x14016e048]
mov qword [rdi + 8], rax
mov dword [rdi], r12d
mov rcx, qword [rbp + 0x10]
lea rax, [rbp + 0x20]
cmp rcx, rax
je 0x140017037
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r15, qword [rsp + 0x3d0]
mov r14, qword [rsp + 0x3d8]
mov rax, rdi
mov rcx, qword [rbp + 0x2c0]
xor rcx, rsp
call fcn.14013e7c0
add rsp, 0x3e0
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret