Function at 0x1400074a0
Capabilities:
Create directory
Get common file path
Query environment variable
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x4028
call fcn.14000e200
sub rsp, rax
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
je 0x140007536
lea rcx, [0x140032606]
call fcn.140007370
mov rsi, rax
xor r14d, r14d
xor ecx, ecx
mov rdx, rdi
xor r8d, r8d
call fcn.140008600
test rax, rax
je 0x1400076df
mov r15, rax
lea rdx, [rsp + 0x20]
mov rcx, rax
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebp, eax
mov rcx, r15
call fcn.140012d18
test ebp, ebp
je 0x1400076f0
lea rcx, [rsp + 0x20]
call fcn.1400089f0
test eax, eax
je 0x140007714
lea rcx, [rsp + 0x20]
call fcn.14001b788
jmp 0x140007726
xor esi, esi
lea r14, [rsp + 0x20]
mov ecx, 0x1000
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
call sub.KERNEL32.dll_GetCurrentProcessId
lea r8, str._MEI_d
lea r15, [rsp + 0x2020]
mov edx, 0x10
mov rcx, r15
mov r9d, eax
call fcn.140002530
mov rcx, r14
mov rdx, r15
call fcn.14001bbe0
mov r14, rax
mov rcx, rax
call fcn.140008930
test eax, eax
je 0x14000766e
mov rcx, r14
call fcn.140012d18
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x2020]
call fcn.14001bbe0
mov r14, rax
mov rcx, rax
call fcn.140008930
test eax, eax
je 0x14000766e
mov rcx, r14
call fcn.140012d18
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x2020]
call fcn.14001bbe0
mov r14, rax
mov rcx, rax
call fcn.140008930
test eax, eax
je 0x14000766e
mov rcx, r14
call fcn.140012d18
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x2020]
call fcn.14001bbe0
mov r14, rax
mov rcx, rax
call fcn.140008930
test eax, eax
je 0x14000766e
mov rcx, r14
call fcn.140012d18
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x2020]
call fcn.14001bbe0
mov r14, rax
mov rcx, rax
call fcn.140008930
test eax, eax
je 0x14000766e
mov rcx, r14
call fcn.140012d18
test rdi, rdi
je 0x1400077e8
lea rdx, [0x140032606]
xor r14d, r14d
xor ecx, ecx
xor r8d, r8d
call fcn.140008600
mov rdi, rax
test rsi, rsi
jne 0x1400076af
xor r14d, r14d
jmp 0x1400076fc
mov r8d, 0x1000
mov rcx, rbx
mov rdx, r14
call fcn.1400083b0
mov rcx, r14
call fcn.140012d18
mov r14d, 1
test rdi, rdi
je 0x1400077eb
lea rdx, [0x140032606]
xor ecx, ecx
xor r8d, r8d
call fcn.140008600
mov rdi, rax
test rsi, rsi
je 0x1400076fc
xor ecx, ecx
mov rdx, rsi
xor r8d, r8d
call fcn.140008600
mov rbx, rax
mov rcx, rdi
mov rdx, rax
call fcn.14001b750
mov rcx, rdi
call fcn.140012d18
mov rcx, rbx
call fcn.140012d18
mov rcx, rsi
jmp 0x14000770a
lea rcx, str.LOADER:_Failed_to_convert_runtime_tmpdir_to_a_wide_string._n
call fcn.140002630
jmp 0x1400077eb
lea rcx, str.LOADER:_Failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
jmp 0x1400077e3
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rdi
call fcn.140012d18
jmp 0x1400077eb
lea rdx, [rsp + 0x20]
mov r8d, 0x1000
xor ecx, ecx
call fcn.140019da8
mov r14, rax
test rax, rax
je 0x1400077dc
lea rcx, [rsp + 0x2020]
mov r8d, 0x2000
xor edx, edx
call fcn.14002ec40
mov rcx, r14
mov dx, 0x5c
call fcn.14000ee58
test rax, rax
je 0x1400077a7
mov r15, rax
lea r12, [rsp + 0x2020]
mov r13, qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop word [rax + rax]
mov r8, r15
sub r8, r14
sar r8, 1
inc r8
mov rcx, r12
mov rdx, r14
call fcn.14001bbfc
mov rcx, r12
xor edx, edx
call r13
add r15, 2
mov rcx, r15
mov dx, 0x5c
call fcn.14000ee58
mov r15, rax
test rax, rax
jne 0x140007770
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [0x14003260a]
mov rdx, r14
call fcn.14001b750
mov ebp, eax
mov rcx, r14
call fcn.140012d18
test ebp, ebp
je 0x140007538
lea rcx, str.LOADER:_Failed_to_set_the_TMP_environment_variable._n
jmp 0x1400077e3
lea rcx, str.LOADER:_Failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
call fcn.140002630
xor r14d, r14d
mov eax, r14d
add rsp, 0x4028
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret