Function at 0x140014a70
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5b8]
sub rsp, 0x690
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14004f018]
xor rax, rsp
mov qword [rbp + 0x580], rax
mov r14, rcx
xor r13d, r13d
mov qword [rsp + 0x48], r13
lea rdx, [0x140050070]
lea rcx, [rsp + 0x48]
call fcn.140004970
nop
lea rcx, [0x140050080]
call fcn.140002a60
test al, al
jne 0x140014cd8
lea rcx, [0x140050080]
call fcn.140002de0
cmp r14, rax
je 0x140014cc7
lea rcx, [0x140050080]
call fcn.140002de0
mov r12, rax
cmp qword [rax + 0x18], 8
jb 0x140014b0f
mov r12, qword [rax]
mov rsi, qword [rax + 0x10]
mov rcx, r14
call fcn.140002de0
mov rdi, rax
mov r15, qword [rax + 0x18]
cmp rsi, r15
ja 0x140014b5e
mov rbx, rax
cmp r15, 8
jb 0x140014b33
mov rbx, qword [rax]
mov rdx, r12
mov qword [rax + 0x10], rsi
mov r8, rsi
mov rcx, rbx
call fcn.140002fe4
mov word [rsp + 0x20], r13w
lea rcx, [rbx + rsi*2]
lea rdx, [rsp + 0x20]
call fcn.140002fdc
jmp 0x140014cc7
call fcn.140002f24
cmp rsi, rax
ja 0x14001509e
call fcn.140002f24
mov rbx, rax
mov rcx, r14
call fcn.140002de0
mov rcx, rsi
or rcx, 7
mov qword [rsp + 0x38], rcx
cmp rcx, rbx
ja 0x140014bbd
mov rdx, qword [rax + 0x18]
mov rcx, rdx
shr rcx, 1
mov rax, rbx
sub rax, rcx
cmp rdx, rax
ja 0x140014bbd
lea rax, [rcx + rdx]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140002e7c
mov rbx, qword [rax]
lea rax, [rbx + 1]
lea r8, [rax + rax]
movabs rcx, 0x7fffffffffffffff
mov rdx, 0xffffffffffffffff
cmp rax, rcx
jbe 0x140014be0
mov r8, rdx
jmp 0x140014be9
cmp r8, 0x1000
jb 0x140014c16
lea rcx, [r8 + 0x27]
cmp rcx, r8
cmovbe rcx, rdx
call fcn.140025ae4
mov rcx, rax
test rax, rax
je 0x140014c0f
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140014c28
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test r8, r8
je 0x140014c25
mov rcx, r8
call fcn.140025ae4
jmp 0x140014c28
mov rax, r13
mov qword [rsp + 0x28], rax
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rbx
mov rbx, qword [rsp + 0x28]
mov r8, rsi
mov rdx, r12
mov rcx, rbx
call fcn.140002e8c
mov word [rsp + 0x20], r13w
lea rcx, [rbx + rsi*2]
lea rdx, [rsp + 0x20]
call fcn.140002fdc
cmp r15, 8
jb 0x140014ca4
mov rcx, qword [rdi]
lea rdx, [r15*2 + 2]
cmp rdx, 0x1000
jb 0x140014c8e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140014c9d
mov rcx, r8
call fcn.140025dd4
mov rax, qword [rsp + 0x28]
mov qword [rdi], rax
jmp 0x140014cc7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.140002de0
mov rdx, rax
call fcn.1400029a0
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140002de0
mov rcx, qword [rax]
mov qword [rdx], rcx
lea rcx, [rsp + 0x48]
call fcn.1400049a0
mov al, 1
jmp 0x140015068
xor edx, edx
mov r8d, 0x20c
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x50]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x14001505c
mov word [rbp + 0x15a], r13w
xor edx, edx
mov r8d, 0x412
lea rcx, [rbp + 0x160]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x208
lea rdx, [rbp + 0x160]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea ecx, [rax - 1]
cmp ecx, 0x207
ja 0x140014ee3
mov eax, eax
add rax, rax
cmp rax, 0x412
jae 0x1400150aa
mov word [rbp + rax + 0x160], r13w
lea rcx, [rbp + 0x160]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rsi, rax
mov rcx, r14
call fcn.140002de0
mov rdi, rax
mov r15, qword [rax + 0x18]
cmp rsi, r15
ja 0x140014d9f
mov rbx, rax
cmp r15, 8
jb 0x140014d93
mov rbx, qword [rax]
lea rdx, [rbp + 0x160]
jmp 0x140014b36
call fcn.140002f24
cmp rsi, rax
ja 0x1400150a4
call fcn.140002f24
mov rbx, rax
mov rcx, r14
call fcn.140002de0
mov rcx, rsi
or rcx, 7
mov qword [rsp + 0x30], rcx
cmp rcx, rbx
ja 0x140014dfe
mov rdx, qword [rax + 0x18]
mov rcx, rdx
shr rcx, 1
mov rax, rbx
sub rax, rcx
cmp rdx, rax
ja 0x140014dfe
lea rax, [rcx + rdx]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140002e7c
mov rbx, qword [rax]
lea rax, [rbx + 1]
lea r8, [rax + rax]
movabs rcx, 0x7fffffffffffffff
mov rdx, 0xffffffffffffffff
cmp rax, rcx
jbe 0x140014e21
mov r8, rdx
jmp 0x140014e2a
cmp r8, 0x1000
jb 0x140014e57
lea rcx, [r8 + 0x27]
cmp rcx, r8
cmovbe rcx, rdx
call fcn.140025ae4
mov rcx, rax
test rax, rax
je 0x140014e50
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140014e69
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test r8, r8
je 0x140014e66
mov rcx, r8
call fcn.140025ae4
jmp 0x140014e69
mov rax, r13
mov qword [rsp + 0x28], rax
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rbx
mov rbx, qword [rsp + 0x28]
mov r8, rsi
lea rdx, [rbp + 0x160]
mov rcx, rbx
call fcn.140002e8c
mov word [rsp + 0x20], r13w
lea rcx, [rbx + rsi*2]
lea rdx, [rsp + 0x20]
call fcn.140002fdc
cmp r15, 8
jb 0x140014ca4
mov rcx, qword [rdi]
lea rdx, [r15*2 + 2]
cmp rdx, 0x1000
jb 0x140014c8e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x140014c8b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rcx, [rsp + 0x50]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rsi, rax
mov rcx, r14
call fcn.140002de0
mov rdi, rax
mov r15, qword [rax + 0x18]
cmp rsi, r15
ja 0x140014f1a
mov rbx, rax
cmp r15, 8
jb 0x140014f10
mov rbx, qword [rax]
lea rdx, [rsp + 0x50]
jmp 0x140014b36
call fcn.140002f24
cmp rsi, rax
ja 0x140015098
call fcn.140002f24
mov rbx, rax
mov rcx, r14
call fcn.140002de0
mov rcx, rsi
or rcx, 7
mov qword [rsp + 0x30], rcx
cmp rcx, rbx
ja 0x140014f79
mov rdx, qword [rax + 0x18]
mov rcx, rdx
shr rcx, 1
mov rax, rbx
sub rax, rcx
cmp rdx, rax
ja 0x140014f79
lea rax, [rcx + rdx]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140002e7c
mov rbx, qword [rax]
lea rax, [rbx + 1]
lea r8, [rax + rax]
movabs rcx, 0x7fffffffffffffff
mov rdx, 0xffffffffffffffff
cmp rax, rcx
jbe 0x140014f9c
mov r8, rdx
jmp 0x140014fa5
cmp r8, 0x1000
jb 0x140014fd2
lea rcx, [r8 + 0x27]
cmp rcx, r8
cmovbe rcx, rdx
call fcn.140025ae4
mov rcx, rax
test rax, rax
je 0x140014fcb
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140014fe4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test r8, r8
je 0x140014fe1
mov rcx, r8
call fcn.140025ae4
jmp 0x140014fe4
mov rax, r13
mov qword [rsp + 0x28], rax
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rbx
mov rbx, qword [rsp + 0x28]
mov r8, rsi
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140002e8c
mov word [rsp + 0x20], r13w
lea rcx, [rbx + rsi*2]
lea rdx, [rsp + 0x20]
call fcn.140002fdc
cmp r15, 8
jb 0x140014ca4
mov rcx, qword [rdi]
lea rdx, [r15*2 + 2]
cmp rdx, 0x1000
jb 0x140014c8e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x140014c8b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [rsp + 0x48]
call fcn.1400049a0
xor al, al
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.140025ac0
lea r11, [rsp + 0x690]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140003280
nop
call fcn.140003280
int3
call fcn.140003280
int3
call fcn.140026220
int3