Function at 0x18002b8f4
Capabilities:
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 r12
push r13
push r14
push r15
lea rbp, [rax - 0x178]
sub rsp, 0x250
mov rax, qword [0x180364978]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov r12, rcx
xor r13d, r13d
mov rbx, qword [0x180367928]
call qword [0x180367920]
mov rcx, rax
call rbx
xor edx, edx
lea rcx, [rbp + 0x18]
call fcn.18002c490
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r13
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x18002b96f
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.180001f4c
nop
lea rcx, [rbp + 0x18]
call fcn.180013c54
or r15, 0xffffffffffffffff
cmp qword [0x180367990], r13
je 0x18002bcda
lea rbx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x18002ba71
mov esi, 0x100
mov r8d, esi
xor edx, edx
lea rcx, [rbp + 0x40]
call fcn.1800ade70
lea rcx, [0x1800eb404]
cmp word [rcx], si
jae 0x18002ba1b
movzx eax, byte [rcx]
mov byte [rbp + rax + 0x40], 1
add rcx, 2
lea rax, [0x1800eb408]
cmp rcx, rax
jne 0x18002b9d0
lea rcx, [rdi - 1]
mov rax, r15
cmp rcx, r15
cmovb rax, rcx
lea r8, [rbx + rax*2]
cmp word [r8], si
jae 0x18002ba10
movzx eax, word [r8]
cmp byte [rbp + rax + 0x40], r13b
jne 0x18002ba69
cmp r8, rbx
je 0x18002ba71
sub r8, 2
jmp 0x18002b9ff
lea rcx, [rdi - 1]
mov rax, r15
cmp rcx, r15
cmovb rax, rcx
lea r8, [rbx + rax*2]
mov ecx, 2
movzx edx, word [r8]
lea rax, [0x1800eb404]
lea r9d, [rcx + 0x2d]
cmp r9w, dx
je 0x18002ba69
cmp rcx, 1
je 0x18002ba5e
dec rcx
add rax, 2
cmp word [rax], dx
jne 0x18002ba47
test rax, rax
jne 0x18002ba69
cmp r8, rbx
je 0x18002ba71
sub r8, 2
jmp 0x18002ba2d
sub r8, rbx
sar r8, 1
jmp 0x18002ba74
mov r8, r15
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x18], xmm1
cmp rdi, r8
cmovb r8, rdi
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
lea rcx, [rbp - 0x28]
call fcn.180001d80
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x58], xmm1
mov r8d, 0x20
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x68]
call fcn.1800ad7c0
movdqa xmm0, xmmword [0x1800e83f0]
movdqu xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x28], r13w
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x38], xmm1
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rdx, qword [rbp - 0x68]
mov r8, qword [rbp - 0x58]
lea rcx, [rbp - 0x48]
call fcn.180001f4c
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x18002bb43
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002bb3e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002bfd0
call fcn.1800ac2c0
movdqa xmm0, xmmword [0x1800e83f0]
movdqu xmmword [rbp - 0x58], xmm0
mov word [rbp - 0x68], r13w
movabs rax, 0x7ffffffffffffffe
mov rcx, qword [rsp + 0x68]
sub rax, rcx
cmp rax, 7
jb 0x18002bfd6
lea r9, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae r9, qword [rsp + 0x58]
mov qword [rsp + 0x30], 7
lea rax, str..config
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x58]
mov dl, byte [rsp + 0x40]
lea rcx, [rbp - 8]
call fcn.18001fde8
nop
lea r9, [rbp - 8]
lea r8, [rbp - 0x48]
lea rdx, str.Setting_config_paths:_base_dir:___config_path:_
lea rcx, [rbp - 0x28]
call fcn.18002b5ac
nop
mov edx, 2
mov rcx, rax
call fcn.180026d60
nop
lea rcx, [rbp - 0x28]
call fcn.180013c54
lea rdi, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdi, qword [rbp - 0x48]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
mov r9d, r15d
mov r8, rdi
xor edx, edx
mov r13d, 0xfde9
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
mov rcx, rbx
call fcn.1800b5f74
mov r14, rax
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, r15d
mov r8, rdi
xor edx, edx
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rsi, [rbp - 8]
cmp qword [rbp + 0x10], 8
cmovae rsi, qword [rbp - 8]
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
mov r9d, r15d
mov r8, rsi
xor edx, edx
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
mov rcx, rbx
call fcn.1800b5f74
mov rdi, rax
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, r15d
mov r8, rsi
xor edx, edx
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r8, rdi
mov rdx, r14
mov rcx, r12
call qword [0x180367990]
nop
lea rcx, [rbp - 8]
call fcn.180013c54
nop
lea rcx, [rbp - 0x48]
call fcn.180013c54
xor r13d, r13d
lea rdx, str.BepInExcoreBepInEx.Preloader.dll
lea rcx, str.DOORSTOP_INVOKE_DLL_PATH
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [0x1803679a8]
mov rbx, rax
mov rcx, rax
call fcn.18002b1d0
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x48]
lea rdx, str.Assembly_dir:_
lea rcx, [rbp - 8]
call fcn.180004550
nop
mov edx, 2
mov rcx, rax
call fcn.180026d60
nop
lea rcx, [rbp - 8]
call fcn.180013c54
mov rcx, rbx
call fcn.18002b1d0
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x78], xmm1
inc r15
cmp word [rax + r15*2], r13w
jne 0x18002bd49
mov r8, r15
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.180001d80
nop
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rdx, qword [rsp + 0x78]
lea rcx, str.KSL_MANAGED_FOLDER_DIR
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rdx, qword [rsp + 0x78]
lea rcx, str.DOORSTOP_MANAGED_FOLDER_DIR
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
lea rcx, str.DOORSTOP_PROCESS_PATH
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
lea rcx, str.KSL_PROCESS_PATH
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, r12
call fcn.18002bfe4
test rax, rax
je 0x18002bf08
mov rdx, qword [0x180367948]
mov rcx, rax
call rdx
mov rbx, rax
test rax, rax
jne 0x18002be08
lea rcx, str.Failed_to_get_image
jmp 0x18002be3c
mov rax, qword [0x180367960]
xor edx, edx
lea rcx, str.KSL.Preloader.Entrypoint:Main
call rax
mov r14, rax
mov r8, qword [0x180367968]
mov rdx, rbx
mov rcx, rax
call r8
mov rsi, rax
test rax, rax
jne 0x18002be4b
lea rcx, str.Failed_to_get_method_desc
mov edx, 4
call fcn.180026d98
jmp 0x18002bf08
mov rax, qword [0x180367980]
mov rcx, rsi
call rax
mov rdx, qword [0x180367988]
mov rcx, rax
call rdx
mov rdi, r13
cmp eax, 1
jne 0x18002be96
mov rbx, qword [0x180367998]
call qword [0x1803679a0]
mov rdx, rax
xor r8d, r8d
mov rcx, r12
call rbx
mov rbx, rax
mov ecx, 8
call fcn.1800b5f74
mov rdi, rax
mov qword [rax], rbx
mov qword [rsp + 0x48], rsi
lea r8, [rsp + 0x48]
lea rdx, str.Invoking_method_
lea rcx, [rbp + 0x18]
call fcn.18002b498
nop
mov edx, 2
mov rcx, rax
call fcn.180026d60
nop
lea rcx, [rbp + 0x18]
call fcn.180013c54
mov qword [rsp + 0x50], r13
lea r9, [rsp + 0x50]
mov r8, rdi
xor edx, edx
mov rcx, rsi
call qword [0x180367958]
mov edx, 2
lea rcx, str.Done_
call fcn.180026d98
mov rcx, r14
call qword [0x180367978]
test rdi, rdi
je 0x18002bf08
mov rcx, rdi
call fcn.1800b5f60
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x18002bf49
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002bf44
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002bfdc
call fcn.1800ac2c0
movdqa xmm0, xmmword [0x1800e83f0]
movdqu xmmword [rbp - 0x78], xmm0
mov word [rsp + 0x78], r13w
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x18002bf9a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002bf95
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002bfca
call fcn.1800ac2c0
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1800ac760
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1800b36a4
nop
call fcn.1800b36a4
nop
call fcn.180013cd4
nop
call fcn.1800b36a4
int3