Function at 0x1400083f0
Capabilities:
Create directory
Get common file path
Get disk information
Query environment variable

Disassembly:
push r15
mov eax, 0x4038
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000f530
sub rsp, rax
mov r14, qword [rcx + 0x3068]
mov rdi, rcx
lea r12, [rsp + 0x30]
test r14, r14
je 0x1400084db
lea rcx, [0x140013f1a]
call fcn.1400082d0
mov rcx, qword [rdi + 0x3068]
xor r8d, r8d
xor edx, edx
mov r14, rax
call fcn.1400090e0
mov rbx, rax
test rax, rax
je 0x140008728
lea r12, [rsp + 0x30]
mov rcx, rax
mov r8d, 0x1000
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rbx
mov esi, eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
test esi, esi
je 0x1400086e8
mov rcx, r12
call fcn.1400092b0
test eax, eax
je 0x1400085f0
cmp word [rsp + 0x34], 0x5c
jne 0x1400086d0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jle 0x140008710
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup_1]
mov rsi, rax
test rax, rax
je 0x1400086f4
lea rcx, [0x1400141d8]
mov rdx, rsi
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wputenv_s]
mov rcx, rsi
mov ebx, eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
test ebx, ebx
jne 0x14000874c
lea rbp, [rsp + 0x2030]
mov ecx, 0x1000
mov esi, 5
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__getpid]
lea r8, str._MEI_d
mov edx, 0x10
mov rcx, r12
mov r9d, eax
call fcn.140008280
mov r13, qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov r15, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wtempnam]
mov rdx, r12
mov rcx, rbp
call r15
mov rdx, qword [rdi + 0x3038]
mov rbx, rax
mov rcx, rax
call r13
test eax, eax
jne 0x1400085c0
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
sub esi, 1
jne 0x140008521
mov esi, 0xffffffff
cmp qword [rdi + 0x3068], 0
je 0x14000857a
test r14, r14
je 0x140008590
lea rcx, [0x140013f1a]
mov rdx, r14
call fcn.140008360
mov rcx, r14
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov eax, esi
add rsp, 0x4038
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor r8d, r8d
xor edx, edx
lea rcx, [0x140013f1a]
call fcn.1400090e0
lea rdx, [0x140013f18]
mov rbx, rax
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wputenv_s]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x14000857a
lea rdx, [rdi + 0x2022]
mov r8d, 0x1000
mov rcx, rbx
xor esi, esi
call fcn.140008fe0
test rax, rax
je 0x140008736
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x140008554
mov r8d, 0x1000
mov rdx, r12
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wfullpath]
mov rsi, rax
test rax, rax
je 0x14000875a
mov edx, 0x5c
mov rcx, rax
call sub.api_ms_win_crt_private_l1_1_0.dll_wcschr
mov r13, qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rbx, rax
test rax, rax
je 0x140008680
mov r13, qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rbp, [rsp + 0x2030]
nop dword [rax + rax]
mov r9, rbx
mov qword [rsp + 0x20], rsi
mov edx, 0x1000
mov rcx, rbp
sub r9, rsi
lea r8, str._.s
sar r9, 1
call fcn.14000fe90
xor edx, edx
mov rcx, rbp
call r13
lea rcx, [rbx + 2]
mov edx, 0x5c
call sub.api_ms_win_crt_private_l1_1_0.dll_wcschr
mov rbx, rax
test rax, rax
jne 0x140008640
xor edx, edx
mov rcx, rsi
call r13
test eax, eax
jne 0x1400084b9
mov rbx, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbx
cmp eax, 0xb7
je 0x1400084b9
call rbx
mov r9, rsi
lea r8, str.LOADER:_failed_to_create_runtime_tmpdir_path__ls__n
lea rcx, str.CreateDirectory
mov edx, eax
call fcn.140003150
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x1400086f4
lea rdx, [0x140014026]
mov rcx, r12
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscat
jmp 0x140008492
lea rcx, str.LOADER:_failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
call fcn.140002f90
mov rcx, r14
mov esi, 0xffffffff
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x14000857a
mov r8d, eax
mov rdx, r12
lea rcx, str.LOADER:_runtime_tmpdir_points_to_non_existent_drive__ls__type:__d___n
call fcn.140002f90
jmp 0x1400086f4
lea rcx, [0x140013f20]
call fcn.140002f90
jmp 0x1400086f4
lea rcx, str.LOADER:_length_of_teporary_directory_path_exceeds_maximum_path_length__n
mov esi, 0xffffffff
call fcn.140002f90
jmp 0x1400085e0
lea rcx, str.LOADER:_failed_to_set_the_TMP_environment_variable._n
call fcn.140002f90
jmp 0x1400086f4
lea rcx, str.LOADER:_failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
call fcn.140002f90
jmp 0x1400086f4