Function at 0x1401ff820
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 [0x140628fc0]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov qword [rbp - 0x61], rdx
mov r15, rcx
mov qword [rbp - 0x59], rcx
xor r12d, r12d
test rdx, rdx
je 0x1401ff871
xorps xmm0, xmm0
mov qword [rbp - 0x69], r12
movups xmmword [rdx], xmm0
movsd xmm0, qword [rbp - 0x69]
movsd qword [rdx + 0x10], xmm0
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], r12
mov qword [rbp - 9], 7
mov word [rbp - 0x21], r12w
lea r13, [0x1404e81a0]
mov rdi, 0xffffffffffffffff
nop word [rax + rax]
mov r14, qword [r13]
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
je 0x1401ff931
mov eax, 2
mul rsi
cmovo rax, rdi
mov rcx, rax
call fcn.1404a1204
mov rbx, rax
mov qword [rbp - 0x41], rax
mov r8d, esi
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1401ff929
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
xor r14d, r14d
mov qword [rbp + 0xf], r14
mov qword [rbp + 0x17], r14
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp word [rbx + r8*2], r14w
jne 0x1401ff900
mov rdx, rbx
lea rcx, [rbp - 1]
call fcn.1401b6dd0
nop
mov rcx, rbx
call fcn.1404a0a50
mov rax, qword [rbp + 0x17]
mov rcx, qword [rbp + 0xf]
jmp 0x1401ff950
mov rcx, rbx
call fcn.1404a0a50
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
xor r14d, r14d
mov ecx, r14d
mov qword [rbp + 0xf], rcx
mov eax, 7
mov qword [rbp + 0x17], rax
mov word [rbp - 1], r14w
test rcx, rcx
je 0x1401ffa54
lea rdx, [rbp - 1]
cmp rax, 7
jbe 0x1401ff96c
mov rdx, qword [rbp - 1]
mov rax, rdx
jmp 0x1401ff970
lea rax, [rbp - 1]
lea r8, [rdx + rcx*2]
sub r8, rax
sar r8, 1
mov rdx, rax
lea rcx, [rbp - 0x21]
call fcn.1401fd460
cmp r12d, 2
jb 0x1401ff9a4
lea r8, [0x1404e8218]
lea rdx, str.Temp
lea rcx, [rbp - 0x21]
call fcn.140200790
nop
xorps xmm0, xmm0
mov qword [rbp - 0x29], r14
movups xmmword [rbp - 0x79], xmm0
movsd xmm0, qword [rbp - 0x29]
movsd qword [rbp - 0x69], xmm0
lea r8, [rbp - 0x79]
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 0x49]
call fcn.1401ff500
cmp dword [rbp - 0x49], 1
seta al
test al, al
je 0x1401ffa3a
test byte [rbp - 0x69], 1
je 0x1401ff9ed
cmp qword [rbp - 0x69], 1
jne 0x1401ffa3a
cmp dword [rbp - 0x79], 0
setne al
test al, al
jne 0x1401ffa3a
xorps xmm0, xmm0
mov qword [rbp - 0x29], r14
movups xmmword [rbp - 0x79], xmm0
movsd xmm0, qword [rbp - 0x29]
movsd qword [rbp - 0x69], xmm0
lea r8, [rbp - 0x79]
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 0x59]
call fcn.1401ff500
nop
cmp dword [rbp - 0x59], 3
jne 0x1401ffa3a
test byte [rbp - 0x69], 1
je 0x1401ffb26
cmp qword [rbp - 0x69], 1
jne 0x1401ffa3a
cmp dword [rbp - 0x79], 0
setne al
test al, al
je 0x1401ffb26
mov qword [rbp - 0x11], r14
lea rax, [rbp - 0x21]
cmp qword [rbp - 9], 7
cmova rax, qword [rbp - 0x21]
mov word [rax], r14w
mov rax, qword [rbp + 0x17]
cmp rax, 7
jbe 0x1401ffa90
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401ffa8b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401ffc55
call fcn.1404a0a50
inc r12d
add r13, 8
cmp r12d, 4
jb 0x1401ff8a0
cmp qword [rbp - 0x11], 0
jne 0x1401ffbae
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esi, eax
test eax, eax
je 0x1401ffaf2
mov eax, 2
mul rsi
cmovo rax, rdi
mov rcx, rax
call fcn.1404a1204
mov rbx, rax
mov qword [rbp - 0x41], rax
mov edx, esi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x1401ffb70
mov rcx, rbx
call fcn.1404a0a50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rbp - 0x61]
test eax, eax
jne 0x1401ffbe9
test rdx, rdx
je 0x1401ffbf7
xorps xmm0, xmm0
mov qword [rbp - 0x29], r14
movups xmmword [rdx], xmm0
movsd xmm0, qword [rbp - 0x29]
movsd qword [rdx + 0x10], xmm0
jmp 0x1401ffbf7
mov rdx, qword [rbp + 0x17]
cmp rdx, 7
jbe 0x1401ffaa1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401ffb65
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401ffc55
call fcn.1404a0a50
jmp 0x1401ffaa1
lea rdi, [rdi + 1]
cmp word [rbx + rdi*2], 0
jne 0x1401ffb70
lea r8, [rdi + rdi]
sar r8, 1
mov rdx, rbx
lea rcx, [rbp - 0x21]
call fcn.1401fd460
lea r8, [0x1404e8218]
lea rdx, str.Temp
lea rcx, [rbp - 0x21]
call fcn.140200790
nop
mov rcx, rbx
call fcn.1404a0a50
movups xmm0, xmmword [rbp - 0x21]
movups xmmword [r15], xmm0
movups xmm1, xmmword [rbp - 0x11]
movups xmmword [r15 + 0x10], xmm1
mov rax, r15
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1404a0a30
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 ecx, eax
call fcn.140201f10
xorps xmm0, xmm0
movups xmmword [r15], xmm0
mov qword [r15 + 0x10], r14
mov qword [r15 + 0x18], 7
mov word [r15], r14w
mov rdx, qword [rbp - 9]
cmp rdx, 7
jbe 0x1401ffbbf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401ffc45
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401ffc4f
call fcn.1404a0a50
jmp 0x1401ffbbf
call fcn.1404b7494
nop
call fcn.1404b7494
int3