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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov qword [rbp - 0x51], 0xfffffffffffffffe
mov qword [rsp + 0x110], rbx
mov rax, qword [0x14005a138]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov qword [rbp - 0x69], rdx
mov r13, rcx
mov qword [rbp - 0x61], rcx
lea rax, [0x1400477b0]
mov qword [rbp - 1], rax
lea rax, str.TEMP
mov qword [rbp + 7], rax
lea rax, str.LOCALAPPDATA
mov qword [rbp + 0xf], rax
lea rax, str.USERPROFILE
mov qword [rbp + 0x17], rax
xor eax, eax
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x29], 7
mov word [rbp - 0x41], ax
mov r15d, eax
lea r12, [rbp - 1]
lea rdi, [rax - 1]
nop word [rax + rax]
mov r14, qword [r12]
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
je 0x14003ad81
mov eax, 2
mul rsi
cmovo rax, rdi
mov rcx, rax
call fcn.140035e14
mov rbx, rax
mov qword [rbp - 0x61], rax
mov r8d, esi
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14003ad79
xor r14d, r14d
mov qword [rbp - 0x11], r14
mov qword [rbp - 9], 7
mov word [rbp - 0x21], r14w
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rbx + r8*2], r14w
jne 0x14003ad50
mov rdx, rbx
lea rcx, [rbp - 0x21]
call fcn.140002c80
nop
mov rcx, rbx
call fcn.140035a38
mov rax, qword [rbp - 9]
mov r8, qword [rbp - 0x11]
jmp 0x14003ad99
mov rcx, rbx
call fcn.140035a38
xor r14d, r14d
mov r8d, r14d
mov qword [rbp - 0x11], r14
mov eax, 7
mov qword [rbp - 9], rax
mov word [rbp - 0x21], r14w
test r8, r8
je 0x14003ae37
lea rdx, [rbp - 0x21]
cmp rax, 8
cmovae rdx, qword [rbp - 0x21]
lea rcx, [rbp - 0x41]
call fcn.140002c80
cmp r15d, 2
jb 0x14003adce
lea rdx, str.Temp
lea rcx, [rbp - 0x41]
call fcn.140037e60
mov dword [rbp - 0x79], r14d
mov byte [rbp - 0x75], 0
lea rax, [0x140041130]
mov qword [rbp - 0x71], rax
lea r8, [rbp - 0x79]
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 0x49]
call fcn.14003aab0
cmp dword [rax], 1
jbe 0x14003ae1d
cmp dword [rbp - 0x79], 0
jne 0x14003ae1d
lea r8, [rbp - 0x79]
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 0x59]
call fcn.14003aab0
cmp dword [rax], 3
jne 0x14003ae1d
cmp dword [rbp - 0x79], 0
je 0x14003af08
mov qword [rbp - 0x31], r14
lea rax, [rbp - 0x41]
cmp qword [rbp - 0x29], 8
cmovae rax, qword [rbp - 0x41]
mov word [rax], r14w
mov rax, qword [rbp - 9]
cmp rax, 8
jb 0x14003ae74
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003ae6e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003af51
call fcn.140035a38
nop
inc r15d
add r12, 8
cmp r15d, 4
jb 0x14003acf0
cmp qword [rbp - 0x31], 0
jne 0x14003af92
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esi, eax
test eax, eax
je 0x14003aed6
mov eax, 2
mul rsi
cmovo rax, rdi
mov rcx, rax
call fcn.140035e14
mov rbx, rax
mov qword [rbp - 0x59], rax
mov edx, esi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x14003af60
mov rcx, rbx
call fcn.140035a38
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14003afe9
mov rax, qword [rbp - 0x69]
test rax, rax
je 0x14003affb
mov dword [rax], r14d
mov byte [rax + 4], 0
lea rcx, [0x140041130]
mov qword [rax + 8], rcx
jmp 0x14003affb
mov rdx, qword [rbp - 9]
cmp rdx, 8
jb 0x14003af4c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003af46
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003af46
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140035a38
nop
jmp 0x14003ae85
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
nop dword [rax + rax]
inc rdi
cmp word [rbx + rdi*2], 0
jne 0x14003af60
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp - 0x41]
call fcn.140002c80
lea rdx, str.Temp
lea rcx, [rbp - 0x41]
call fcn.140037e60
nop
mov rcx, rbx
call fcn.140035a38
movups xmm0, xmmword [rbp - 0x41]
movups xmmword [r13], xmm0
movups xmm1, xmmword [rbp - 0x31]
movups xmmword [r13 + 0x10], xmm1
mov qword [rbp - 0x31], r14
mov qword [rbp - 0x29], 7
mov word [rbp - 0x41], r14w
lea rcx, [rbp - 0x41]
call fcn.1400027d0
nop
mov rax, r13
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140035b50
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, qword [rbp - 0x69]
mov ecx, eax
call fcn.14003c700
mov qword [r13 + 0x10], r14
mov qword [r13 + 0x18], 7
mov word [r13], r14w
lea rcx, [rbp - 0x41]
call fcn.1400027d0
nop
jmp 0x14003afbf