Function at 0x1401fd180
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov rax, qword [0x140648080]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r13, rdx
mov r12, rcx
mov qword [rbp - 0x61], rcx
xor r15d, r15d
test rdx, rdx
je 0x1401fd1d0
xorps xmm0, xmm0
mov qword [rbp - 0x69], r15
movups xmmword [rdx], xmm0
movsd xmm0, qword [rbp - 0x69]
movsd qword [rdx + 0x10], xmm0
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], r15
mov qword [rbp + 0xf], 7
mov word [rbp - 9], r15w
mov rdi, 0xffffffffffffffff
lea rcx, [0x1404eb1a0]
mov eax, r15d
mov r14, qword [rcx + rax*8]
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
je 0x1401fd28f
mov eax, 2
mul rsi
cmovb rax, rdi
mov rcx, rax
call fcn.1404a50d8
mov rbx, rax
mov qword [rbp - 0x49], rax
mov r8d, esi
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1401fd282
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
xor r14d, r14d
mov qword [rbp - 0x19], r14
mov qword [rbp - 0x11], r14
mov r8, rdi
inc r8
cmp word [rbx + r8*2], r14w
jne 0x1401fd254
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.1401b3e80
nop
test rbx, rbx
je 0x1401fd278
mov rcx, rbx
call fcn.1404a4b9c
mov r8, qword [rbp - 0x11]
mov r9, qword [rbp - 0x19]
jmp 0x1401fd2af
test rbx, rbx
je 0x1401fd28f
mov rcx, rbx
call fcn.1404a4b9c
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
xor r14d, r14d
mov r9d, r14d
mov qword [rbp - 0x19], r14
mov r8d, 7
mov qword [rbp - 0x11], r8
mov word [rbp - 0x29], r14w
test r9, r9
je 0x1401fd3af
lea rcx, [rbp - 0x29]
cmp r8, 7
cmova rcx, qword [rbp - 0x29]
lea rdx, [rbp - 0x29]
cmova rdx, qword [rbp - 0x29]
lea r8, [rcx + r9*2]
sub r8, rdx
sar r8, 1
lea rcx, [rbp - 9]
call fcn.1401faca0
cmp r15d, 2
jb 0x1401fd2ff
lea r8, [0x1404eb218]
lea rdx, str.Temp
lea rcx, [rbp - 9]
call fcn.1401fe3c0
nop
xorps xmm0, xmm0
mov qword [rbp - 0x31], r14
movups xmmword [rbp - 0x79], xmm0
movsd xmm0, qword [rbp - 0x31]
movsd qword [rbp - 0x69], xmm0
lea r8, [rbp - 0x79]
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x51]
call fcn.1401fce20
cmp dword [rbp - 0x51], 1
seta al
test al, al
je 0x1401fd395
test byte [rbp - 0x69], 1
je 0x1401fd348
cmp qword [rbp - 0x69], 1
jne 0x1401fd395
cmp dword [rbp - 0x79], 0
setne al
test al, al
jne 0x1401fd395
xorps xmm0, xmm0
mov qword [rbp - 0x31], r14
movups xmmword [rbp - 0x79], xmm0
movsd xmm0, qword [rbp - 0x31]
movsd qword [rbp - 0x69], xmm0
lea r8, [rbp - 0x79]
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x61]
call fcn.1401fce20
nop
cmp dword [rbp - 0x61], 3
jne 0x1401fd395
test byte [rbp - 0x69], 1
je 0x1401fd481
cmp qword [rbp - 0x69], 1
jne 0x1401fd395
cmp dword [rbp - 0x79], 0
setne al
test al, al
je 0x1401fd481
mov qword [rbp + 7], r14
lea rax, [rbp - 9]
cmp qword [rbp + 0xf], 7
cmova rax, qword [rbp - 9]
mov word [rax], r14w
mov r8, qword [rbp - 0x11]
cmp r8, 7
jbe 0x1401fd3eb
lea rdx, [r8*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401fd3e6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401fd5c3
call fcn.1404a4b9c
inc r15d
cmp r15d, 4
jb 0x1401fd1ef
cmp qword [rbp + 7], 0
jne 0x1401fd513
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esi, eax
test eax, eax
je 0x1401fd44e
mov eax, 2
mul rsi
cmovb rax, rdi
mov rcx, rax
call fcn.1404a50d8
mov rbx, rax
mov qword [rbp - 0x49], rax
mov edx, esi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x1401fd4d0
test rbx, rbx
je 0x1401fd44e
mov rcx, rbx
call fcn.1404a4b9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401fd550
test r13, r13
je 0x1401fd561
xorps xmm0, xmm0
mov qword [rbp - 0x31], r14
movups xmmword [r13], xmm0
movsd xmm0, qword [rbp - 0x31]
movsd qword [r13 + 0x10], xmm0
jmp 0x1401fd561
mov rdx, qword [rbp - 0x11]
cmp rdx, 7
jbe 0x1401fd3f8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401fd4c0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401fd5c3
call fcn.1404a4b9c
jmp 0x1401fd3f8
lea rdi, [rdi + 1]
cmp word [rbx + rdi*2], 0
jne 0x1401fd4d0
lea r8, [rdi + rdi]
sar r8, 1
mov rdx, rbx
lea rcx, [rbp - 9]
call fcn.1401faca0
lea r8, [0x1404eb218]
lea rdx, str.Temp
lea rcx, [rbp - 9]
call fcn.1401fe3c0
nop
test rbx, rbx
je 0x1401fd513
mov rcx, rbx
call fcn.1404a4b9c
movups xmm0, xmmword [rbp - 9]
movups xmmword [r12], xmm0
movups xmm1, xmmword [rbp + 7]
movups xmmword [r12 + 0x10], xmm1
mov rax, r12
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1404a4900
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, str.boost::filesystem::temp_directory_path
mov rdx, r13
mov ecx, eax
call fcn.1401ffba0
xorps xmm0, xmm0
movups xmmword [r12], xmm0
mov qword [r12 + 0x10], r14
mov qword [r12 + 0x18], 7
mov word [r12], r14w
mov rdx, qword [rbp + 0xf]
cmp rdx, 7
jbe 0x1401fd526
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401fd5b3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401fd5bd
call fcn.1404a4b9c
jmp 0x1401fd526
call fcn.1404abb04
nop
call fcn.1404abb04
int3