Function at 0x18001ec00
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x120
mov rax, qword [0x180153c80]
xor rax, rsp
mov qword [rsp + 0x118], rax
mov r15, rcx
xor r12d, r12d
mov esi, r12d
lea rbx, [rcx + 8]
mov rdx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x18001ec4b
mov rdx, qword [rbx]
mov r8d, dword [rcx + 0x18]
lea rcx, str.SKSE_RUNTIME
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov r8d, eax
mov rcx, qword [rbx + 0x10]
cmp r8, rcx
ja 0x18001ec7c
mov qword [rbx + 0x10], r8
cmp qword [rbx + 0x18], 7
jbe 0x18001ec75
mov rbx, qword [rbx]
mov word [rbx + r8*2], r12w
jmp 0x18001eccf
mov rdx, r8
sub rdx, rcx
mov rdi, qword [rbx + 0x18]
mov rax, rdi
sub rax, rcx
cmp rdx, rax
ja 0x18001ecb8
mov qword [rbx + 0x10], r8
cmp rdi, 7
jbe 0x18001ec9e
mov rbx, qword [rbx]
lea rdi, [rbx + rcx*2]
test rdx, rdx
je 0x18001ecb1
movzx eax, r12w
mov rcx, rdx
rep stosw word [rdi], ax
mov word [rbx + r8*2], r12w
jmp 0x18001eccf
mov word [rsp + 0x20], r12w
mov r9, rdx
movzx r8d, byte [rsp + 0x30]
mov rcx, rbx
call fcn.180009360
lea rdx, [r15 + 8]
cmp qword [rdx + 0x18], 7
jbe 0x18001ecdd
mov rdx, qword [rdx]
mov r8d, dword [r15 + 0x18]
lea rcx, str.SKSE_RUNTIME
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov edx, eax
mov rcx, qword [r15 + 0x18]
dec rcx
cmp rdx, rcx
jne 0x18001ed03
test eax, eax
jne 0x18001ed95
lea rbp, str.SkyrimVR.exe
lea r13, str.SkyrimVR.exe
movzx edi, byte [rsp + 0x30]
nop word [rax + rax]
movups xmm1, xmmword [rbp]
mov rax, qword [r15 + 0x20]
mov rdx, qword [rbp + 8]
cmp rdx, rax
ja 0x18001ed5e
lea r14, [r15 + 8]
cmp rax, 7
jbe 0x18001ed3f
mov r14, qword [r15 + 8]
mov qword [r15 + 0x18], rdx
lea rsi, [rdx + rdx]
mov r8, rsi
movq rdx, xmm1
mov rcx, r14
call fcn.1800e5580
mov word [rsi + r14], r12w
jmp 0x18001ed70
movq r9, xmm1
movzx r8d, dil
lea rcx, [r15 + 8]
call fcn.180008d20
lea rcx, [r15 + 8]
cmp qword [r15 + 0x20], 7
jbe 0x18001ed7f
mov rcx, qword [r15 + 8]
call sub.KERNEL32.dll_GetModuleHandleW
mov rsi, rax
test rax, rax
jne 0x18001ed95
add rbp, 0x10
cmp rbp, r13
jne 0x18001ed20
lea r9, [r15 + 8]
lea rcx, [r15 + 0x28]
cmp rcx, r9
je 0x18001eded
mov rdx, qword [r9 + 0x10]
cmp qword [r9 + 0x18], 7
jbe 0x18001edb0
mov r9, qword [r9]
mov rax, qword [rcx + 0x18]
cmp rdx, rax
ja 0x18001ede2
mov rbx, rcx
cmp rax, 7
jbe 0x18001edc5
mov rbx, qword [rcx]
mov qword [rcx + 0x10], rdx
lea rdi, [rdx + rdx]
mov r8, rdi
mov rdx, r9
mov rcx, rbx
call fcn.1800e5580
mov word [rbx + rdi], r12w
jmp 0x18001eded
movzx r8d, byte [rsp + 0x30]
call fcn.180008d20
test rsi, rsi
je 0x18001ee42
mov qword [r15 + 0x110], rsi
mov dl, 1
mov rcx, r15
call fcn.18001ff50
test al, al
je 0x18001ee11
mov rcx, r15
call fcn.180084350
mov al, 1
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.1800b5f90
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rcx, [r15 + 8]
lea rdx, [rsp + 0x70]
call fcn.180011ae0
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x90]
call fcn.1800211f0
mov rdi, rax
mov r8d, 0x1a
lea rdx, str._unicode_conversion_error_
lea rcx, [rsp + 0xb8]
call fcn.180014270
nop
mov r8, rax
lea rdx, [rsp + 0xd8]
mov rcx, rdi
call fcn.180010200
nop
lea rcx, str.Failed_to_obtain_module_handle_for:__0_._nYou_have_likely_renamed_the_executable_to_something_unexpected._Renaming_the_executable_back_to__0__may_resolve_the_issue.
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], 0xa7
mov r8, rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xf8]
call fcn.18000f270
nop
mov dword [rsp + 0x50], 0x12c
mov dword [rsp + 0x54], 0xa
lea rcx, str.C:dev_skse64PapyrusExtenderlibcommonlibsse_ngincludeREL_Module.h
mov qword [rsp + 0x58], rcx
lea rcx, str.bool___cdecl_REL::Module::init_void_
mov qword [rsp + 0x60], rcx
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.180011ac0
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.180020c00
int3