Function at 0x1401468e0
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, 0xe0
mov rax, qword [0x1401c1050]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rax, rdx
mov qword [rbp - 0x79], rdx
mov qword [rbp - 0x71], rcx
mov qword [rsp + 0x28], rcx
xor ecx, ecx
lea rdx, [0x140187c88]
test rax, rax
je 0x140146931
mov dword [rax], ecx
mov byte [rax + 4], cl
mov qword [rax + 8], rdx
lea rax, [0x140187e90]
mov qword [rbp - 9], rax
lea rax, str.TEMP
mov qword [rbp - 1], rax
lea rax, str.LOCALAPPDATA
mov qword [rbp + 7], rax
lea rax, str.USERPROFILE
mov qword [rbp + 0xf], rax
mov qword [rbp - 0x49], rcx
mov qword [rbp - 0x39], rcx
mov qword [rbp - 0x31], 7
mov word [rbp - 0x49], cx
mov dword [rsp + 0x20], ecx
lea r13, [rbp - 9]
mov qword [rsp + 0x28], r13
mov r12, 0xffffffffffffffff
nop word [rax + rax]
mov rsi, qword [r13]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
je 0x140146a21
mov eax, 2
mul rdi
cmovo rax, r12
mov rcx, rax
call fcn.14007c470
mov rbx, rax
mov qword [rbp - 0x59], rax
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140146a19
xor esi, esi
mov qword [rbp - 0x29], rsi
mov qword [rbp - 0x19], rsi
mov qword [rbp - 0x11], rsi
mov r8, r12
nop word [rax + rax]
inc r8
cmp word [rbx + r8*2], si
jne 0x1401469f0
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.140006890
nop
mov rcx, rbx
call fcn.14007c190
mov r15, qword [rbp - 0x11]
mov rbx, qword [rbp - 0x19]
jmp 0x140146a3b
mov rcx, rbx
call fcn.14007c190
xor esi, esi
mov qword [rbp - 0x29], rsi
mov ebx, esi
mov qword [rbp - 0x19], rbx
mov r15d, 7
mov qword [rbp - 0x11], r15
mov word [rbp - 0x29], si
mov r14, qword [rbp - 0x29]
test rbx, rbx
je 0x140146bd2
lea r13, [rbp - 0x29]
cmp r15, 8
cmovae r13, r14
mov rsi, qword [rbp - 0x31]
cmp rbx, rsi
ja 0x140146a8a
lea rdi, [rbp - 0x49]
cmp rsi, 8
cmovae rdi, qword [rbp - 0x49]
mov qword [rbp - 0x39], rbx
add rbx, rbx
mov r8, rbx
mov rdx, r13
mov rcx, rdi
call fcn.14007e1c0
xor esi, esi
mov word [rbx + rdi], si
jmp 0x140146b48
movabs rdx, 0x7ffffffffffffffe
cmp rbx, rdx
ja 0x140146dd1
mov rdi, rbx
or rdi, 7
cmp rdi, rdx
jbe 0x140146aae
mov rdi, rdx
jmp 0x140146acf
mov rcx, rsi
shr rcx, 1
mov rax, rdx
sub rax, rcx
cmp rsi, rax
jbe 0x140146ac4
mov rdi, rdx
jmp 0x140146acf
lea rax, [rsi + rcx]
cmp rdi, rax
cmovb rdi, rax
lea rdx, [rdi + 1]
lea rcx, [rbp - 0x49]
call fcn.140007410
mov r12, rax
mov qword [rbp - 0x39], rbx
mov qword [rbp - 0x31], rdi
add rbx, rbx
mov r8, rbx
mov rdx, r13
mov rcx, rax
call fcn.14007e1c0
xor ecx, ecx
mov word [rbx + r12], cx
cmp rsi, 8
jb 0x140146b3b
lea rdx, [rsi*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140146b36
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140146dcb
call fcn.14007c190
mov qword [rbp - 0x49], r12
mov r12, 0xffffffffffffffff
xor esi, esi
mov ebx, dword [rsp + 0x20]
cmp ebx, 2
jb 0x140146b61
lea rdx, str.Temp
lea rcx, [rbp - 0x49]
call fcn.140143940
mov dword [rsp + 0x30], esi
mov byte [rsp + 0x34], 0
lea r13, [0x140187c88]
mov qword [rsp + 0x38], r13
lea r8, [rsp + 0x30]
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x51]
call fcn.1401466c0
cmp dword [rax], 1
jbe 0x140146bb6
cmp byte [rsp + 0x34], 0
jne 0x140146bb6
lea r8, [rsp + 0x30]
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x61]
call fcn.1401466c0
cmp dword [rax], 3
jne 0x140146bb6
cmp byte [rsp + 0x34], 0
je 0x140146ca6
mov qword [rbp - 0x39], rsi
lea rax, [rbp - 0x49]
cmp qword [rbp - 0x31], 8
cmovae rax, qword [rbp - 0x49]
mov word [rax], si
mov r13, qword [rsp + 0x28]
jmp 0x140146bd6
mov ebx, dword [rsp + 0x20]
cmp r15, 8
jb 0x140146c11
lea rdx, [r15*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x140146c09
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140146dd7
mov rcx, r14
call fcn.14007c190
inc ebx
mov dword [rsp + 0x20], ebx
add r13, 8
mov qword [rsp + 0x28], r13
cmp ebx, 4
jb 0x140146990
lea r13, [0x140187c88]
cmp qword [rbp - 0x39], 0
jne 0x140146d23
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edi, eax
test eax, eax
je 0x140146c7d
mov eax, 2
mul rdi
cmovo rax, r12
mov rcx, rax
call fcn.14007c470
mov rbx, rax
mov qword [rbp - 0x61], rax
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x140146cf0
mov rcx, rbx
call fcn.14007c190
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rbp - 0x79]
test eax, eax
jne 0x140146d5d
test rdx, rdx
je 0x140146d6b
mov dword [rdx], esi
mov byte [rdx + 4], al
mov qword [rdx + 8], r13
jmp 0x140146d6b
cmp r15, 8
jb 0x140146c30
lea rdx, [r15*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x140146cd9
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140146dd7
mov rcx, r14
call fcn.14007c190
jmp 0x140146c30
inc r12
cmp word [rbx + r12*2], 0
jne 0x140146cf0
mov r8, r12
mov rdx, rbx
lea rcx, [rbp - 0x49]
call fcn.140006410
lea rdx, str.Temp
lea rcx, [rbp - 0x49]
call fcn.140143940
nop
mov rcx, rbx
call fcn.14007c190
mov rax, qword [rbp - 0x71]
movups xmm0, xmmword [rbp - 0x49]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rbp - 0x39]
movups xmmword [rax + 0x10], xmm1
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14007bb60
mov rbx, qword [rsp + 0x130]
add rsp, 0xe0
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.140147850
mov rbx, qword [rbp - 0x71]
mov qword [rbx], rsi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
mov rdx, qword [rbp - 0x31]
cmp rdx, 8
jb 0x140146dbd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140146db8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140146dc5
call fcn.14007c190
mov rax, rbx
jmp 0x140146d36
call fcn.140082b90
nop
call fcn.140082b90
int3
call fcn.140002490
nop
call fcn.140082b90
int3