Function at 0x1400014f0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x150
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x140013060]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov r14, rcx
xor esi, esi
mov dword [rsp + 0x20], esi
xor edx, edx
mov r8d, 0x105
lea rcx, [rsp + 0x30]
call fcn.140002e80
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x30]
lea rax, [rsp + 0x30]
lea r12d, [rsi + 1]
or r13, 0xffffffffffffffff
test rax, 0xffffffffffff0000
jne 0x1400015b1
movzx edi, cx
mov ecx, edi
call fcn.140002060
test rax, rax
je 0x140001695
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140001d40
mov rbx, qword [rsp + 0x20]
jmp 0x140001695
xor eax, eax
mov rcx, r13
lea rdi, [rsp + 0x30]
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x140001624
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140001695
cmp dword [rdx + 0x10], eax
jge 0x1400015f9
cmp dword [rbx - 0xc], eax
jge 0x1400015ef
mov ecx, 0x80070057
call fcn.1400021a0
int3
mov dword [rbx - 0x10], esi
mov byte [rbx], al
jmp 0x140001695
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140001610
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
jmp 0x140001695
mov ebp, dword [rbx - 0x10]
lea rsi, [rsp + 0x30]
sub rsi, rbx
test ecx, ecx
jns 0x14000163e
mov ecx, 0x80070057
call fcn.1400021a0
int3
mov ecx, r12d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14000165e
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.140001ce0
mov rbx, qword [rsp + 0x20]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
cmp rsi, rbp
movsxd rbp, edi
mov r9, rbp
ja 0x14000167b
lea r8, [rsi + rbx]
call fcn.1400028e0
jmp 0x140001685
lea r8, [rsp + 0x30]
call fcn.14000283c
cmp edi, dword [rbx - 0xc]
jg 0x140001727
mov dword [rbx - 0x10], edi
mov byte [rbx + rbp], 0
mov edx, dword [rbx - 0x10]
inc edx
jns 0x1400016a7
mov ecx, 0x80070057
call fcn.1400021a0
int3
sub r12d, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edx
or r12d, eax
jge 0x1400016c4
lea rcx, [rsp + 0x20]
call fcn.140001ce0
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1400028c4
test eax, eax
js 0x14000171c
cmp eax, dword [rbx - 0xc]
jg 0x14000171c
mov dword [rbx - 0x10], eax
cdqe
mov byte [rax + rbx], 0
lea rcx, [rbx - 0x18]
call fcn.140001c40
add rax, 0x18
mov qword [r14], rax
lock xadd dword [rbx - 8], r13d
dec r13d
test r13d, r13d
jg 0x140001717
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + 8]
mov rax, r14
jmp 0x140001732
mov ecx, 0x80070057
call fcn.1400021a0
nop
mov ecx, 0x80070057
call fcn.1400021a0
nop
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140002500
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret