Function at 0x140004500
Capabilities:
Set environment variable

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x14000f040]
xor rax, rsp
mov qword [rsp + 0x160], rax
lea rdx, str.LunaTranslator_runtime
lea rcx, [rsp + 0x40]
call fcn.140002030
lea rcx, [rsp + 0x40]
call fcn.140003070
test eax, eax
je 0x140004544
mov ebx, 3
jmp 0x14000469d
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_AttachConsole]
test eax, eax
je 0x14000468a
mov ecx, 1
call fcn.140008f50
mov r8, rax
lea rdx, [0x14000c058]
lea rcx, str.CONOUT_
call sub.msvcrt.dll_freopen
mov ecx, 2
call fcn.140008f50
mov r8, rax
lea rdx, [0x14000c058]
lea rcx, str.CONOUT_
call sub.msvcrt.dll_freopen
mov ecx, 1
call fcn.140008f50
mov rcx, rax
call sub.msvcrt.dll__fileno
test eax, eax
js 0x140004614
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.1400016a0
cmp qword [rsp + 0x38], 0xf
lea rdx, [rsp + 0x20]
lea rcx, str.PYSTAND_STDOUT
cmova rdx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140004614
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000460f
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400046c8
call fcn.140004b60
xor ecx, ecx
call fcn.140008f50
mov rcx, rax
call sub.msvcrt.dll__fileno
test eax, eax
js 0x14000468a
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.1400016a0
cmp qword [rsp + 0x38], 0xf
lea rdx, [rsp + 0x20]
lea rcx, str.PYSTAND_STDIN
cmova rdx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14000468a
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004685
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400046c2
call fcn.140004b60
lea rdx, str.import_sys_nimport_os_nPYSTAND__os.environ_PYSTAND__nPYSTAND_HOME__os.environ_PYSTAND_HOME__nPYSTAND_RUNTIME__os.environ_PYSTAND_RUNTIME__nPYSTAND_SCRIPT__os.environ_PYSTAND_SCRIPT__nsys.path_origin___n_for_n_in_sys.path__nsys.PYSTAND__PYSTAND_nsys.PYSTAND_HOME__PYSTAND_HOME_nsys.PYSTAND_SCRIPT__PYSTAND_SCRIPT_ndef_MessageBox_msg__info__Message_:_n____import_ctypes_n____ctypes.windll.user32.MessageBoxW_None__str_msg___str_info___0__n____return_0_nos.MessageBox__MessageBox_ntry:_n____fd__os.open_CONOUT___os.O_RDWR__os.O_BINARY__n____fp__os.fdopen_fd__w__n____sys.stdout__fp_n____sys.stderr__fp_n____attached__True_nexcept_Exception_as_e:_n____fp__open_os.devnull__w__errorsignore__n____sys.stdout__fp_n____sys.stderr__fp_n____attached__False_nsys.argv___os.environ_LUNA_EXE_NAME___sys.argv_0___PYSTAND_SCRIPT___sys.argv_1:__ntext__open_PYSTAND_SCRIPT__rb_.read___nenviron____file__:_PYSTAND_SCRIPT____name__:___main___nenviron___package_____None_ntry:_n____code__compile_text__PYSTAND_SCRIPT__exec__n____exec_code__environ__nexcept_Exception:_n____if_attached:_n________raise_n____import_traceback__io_n____sio__io.StringIO___n____traceback.print_exc_file__sio__n____os.MessageBox_sio.getvalue____Error__n
lea rcx, [rsp + 0x40]
call fcn.140003b90
mov ebx, eax
lea rcx, [rsp + 0x40]
call fcn.140002350
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140004f20
add rsp, 0x170
pop rbx
ret
call fcn.140008910
int3
call fcn.140008910
int3