Function at 0x140056048
Capabilities:
Query environment variable
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x1408]
mov eax, 0x14f0
call fcn.14005e1f0
sub rsp, rax
mov rax, qword [0x1401f7030]
xor rax, rsp
mov qword [rbp + 0x13e0], rax
mov rdi, qword [0x1401fac68]
lea rax, [rbp + 0x7a0]
mov esi, pe_nt_image_headers64
lea r9, [rbp + 0x5a0]
mov qword [rsp + 0x40], rsi
lea rdx, [rbp - 0x78]
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov rcx, qword [0x1401fa9c0]
lea rax, [rbp + 0xfd0]
mov qword [rsp + 0x30], rsi
mov r14d, 3
mov qword [rsp + 0x28], rax
mov r8d, r14d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
xor r15d, r15d
test rdi, rdi
jne 0x1400ab476
mov word [rbp + 0x190], r15w
mov word [rbp - 0x70], r15w
lea r8, [rbp + 0xfd0]
mov rdx, rsi
lea rcx, [rbp + 0x190]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, str..pdb
mov rdx, rsi
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rax, [rbp - 0x70]
mov r14d, 0x104
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x5a0]
lea rax, [rbp + 0x190]
mov edx, r14d
lea r8, [rbp - 0x78]
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0x390]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmakepath_s]
mov r8d, r14d
lea rdx, [rbp + 0x390]
lea rcx, [rbp + 0xdc0]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wfullpath]
test rax, rax
je 0x1400ab4cf
lea rcx, [rbp + 0xdc0]
call fcn.1400492f0
mov rsi, rax
call fcn.14000fa58
test al, al
jne 0x1400ab4e3
test dword [rbx + 0x158], 0x1000
jne 0x1400ab519
mov ecx, dword [rbx + 0x1b4]
mov rdi, rsi
sub ecx, 1
je 0x1400ab61b
cmp ecx, 1
je 0x1400ab5cc
mov rcx, rdi
call fcn.14002ad20
mov rcx, rax
mov rdi, rax
call fcn.140045bf8
mov qword [rbx + 0x1128], rax
test rdi, rdi
je 0x1400561e1
mov rcx, rdi
call qword [sym.imp.tbbmalloc.dll_scalable_free]
mov rax, rsi
mov rcx, qword [rbp + 0x13e0]
xor rcx, rsp
call fcn.14005a600
lea r11, [rsp + 0x14f0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov qword [rsp + 0x40], rsi
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x5a0]
lea rax, [rbp + 0x190]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x78]
mov r8, r14
mov qword [rsp + 0x20], rsi
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
cmp word [rbp + 0x190], r15w
jne 0x14005611c
cmp word [rbp - 0x70], r15w
jne 0x14005611c
jmp 0x1400560f1
lea r8, [rbp + 0x390]
mov edx, 0x450
xor ecx, ecx
call fcn.14005e3e8
int3
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wstat64]
test eax, eax
jne 0x14005618e
mov byte [rsp + 0x28], r15b
xor r9d, r9d
xor r8d, r8d
mov byte [rsp + 0x20], r15b
xor edx, edx
mov rcx, rsi
call fcn.1401115b0
nop
jmp 0x14005618e
cmp qword [rbx + 0x210], r15
jne 0x14005619e
lea r8, str..stripped
mov rdx, r14
lea rcx, [rbp + 0x9a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, [rbp - 0x70]
mov rdx, r14
lea rcx, [rbp + 0x9a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rax, [rbp + 0x9a0]
mov rdx, r14
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x5a0]
lea rax, [rbp + 0x190]
lea r8, [rbp - 0x78]
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0xbb0]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmakepath_s]
mov r8, r14
lea rdx, [rbp + 0xbb0]
lea rcx, [rbp + 0x11d0]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wfullpath]
test rax, rax
jne 0x1400ab5b4
lea r8, [rbp + 0xbb0]
mov edx, 0x450
xor ecx, ecx
call fcn.14005e3e8
int3
lea rcx, [rbp + 0x11d0]
call fcn.1400492f0
mov qword [rbx + 0x210], rax
jmp 0x14005619e
cmp qword [rbx + 0x208], r15
jne 0x1400ab5f0
lea r9, str._SOURCEMAP
mov edx, 0x4c4
lea r8, str._PDBPATH:SOURCEMAP
xor ecx, ecx
call fcn.14005e3e8
int3
mov rcx, rbx
call fcn.14005649c
lea rdx, [rbp + 0x390]
lea rcx, [rbp + 0xdc0]
call fcn.14010961c
mov rcx, rax
call fcn.1400492f0
mov rdi, rax
jmp 0x1400561b9
cmp word [rbp + 0x7a0], 0x2e
lea rax, [rbp + 0x7a2]
lea rdx, [rbp + 0x7a0]
cmove rdx, rax
lea rcx, str._EXT
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rax, [rbp - 0x70]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rcx, [rbp + 0x390]
lea rax, [rbp + 0x190]
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmakepath_s]
lea rdx, [rbp + 0x390]
lea rcx, str._PDB
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [0x1401fcfd0]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r14d, eax
test eax, eax
je 0x1400561b9
mov rcx, 0xffffffffffffffff
mov eax, 2
mul r14
cmovo rax, rcx
mov rcx, rax
call qword [sym.imp.tbbmalloc.dll_scalable_malloc]
mov rdi, rax
test rax, rax
jne 0x1400ab6cf
mov edx, 0x44e
xor ecx, ecx
call fcn.14005e3e8
int3
mov rcx, qword [0x1401fcfd0]
mov r8d, r14d
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1400561b9
mov rcx, rdi
call qword [sym.imp.tbbmalloc.dll_scalable_free]
mov rdi, rsi
jmp 0x1400561b9