Function at 0x18002f560
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 [0x180375980]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov r12, rcx
xor r13d, r13d
mov rbx, qword [0x180378cd8]
call qword [0x180378cd0]
mov rcx, rax
call rbx
xor edx, edx
lea rcx, [rbp + 0x18]
call fcn.1800300fc
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], 7
jbe 0x18002f5db
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.180001ed8
nop
lea rcx, [rbp + 0x18]
call fcn.1800133a0
or r15, 0xffffffffffffffff
cmp qword [0x180378d40], r13
je 0x18002f946
lea rbx, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x18002f6dd
mov esi, 0x100
mov r8d, esi
xor edx, edx
lea rcx, [rbp + 0x40]
call fcn.1800e44e0
lea rcx, [0x1800edf34]
cmp word [rcx], si
jae 0x18002f687
movzx eax, byte [rcx]
mov byte [rbp + rax + 0x40], 1
add rcx, 2
lea rax, [0x1800edf38]
cmp rcx, rax
jne 0x18002f63c
lea rcx, [rdi - 1]
mov rax, r15
cmp rcx, r15
cmovb rax, rcx
lea r8, [rbx + rax*2]
cmp word [r8], si
jae 0x18002f67c
movzx eax, word [r8]
cmp byte [rbp + rax + 0x40], r13b
jne 0x18002f6d5
cmp r8, rbx
je 0x18002f6dd
sub r8, 2
jmp 0x18002f66b
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, [0x1800edf34]
lea r9d, [rcx + 0x2d]
cmp r9w, dx
je 0x18002f6d5
cmp rcx, 1
je 0x18002f6ca
dec rcx
add rax, 2
cmp word [rax], dx
jne 0x18002f6b3
test rax, rax
jne 0x18002f6d5
cmp r8, rbx
je 0x18002f6dd
sub r8, 2
jmp 0x18002f699
sub r8, rbx
sar r8, 1
jmp 0x18002f6e0
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], 7
cmova rdx, qword [rsp + 0x58]
lea rcx, [rbp - 0x28]
call fcn.180001d08
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.1800e3e40
movdqa xmm0, xmmword [0x1800ea3c0]
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], 7
cmova rdx, qword [rbp - 0x68]
mov r8, qword [rbp - 0x58]
lea rcx, [rbp - 0x48]
call fcn.180001ed8
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 7
jbe 0x18002f7af
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002f7aa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002fc3c
call fcn.1800af2ac
movdqa xmm0, xmmword [0x1800ea3c0]
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 0x18002fc42
lea r9, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
cmova 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.18002125c
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.18002f218
nop
mov edx, 2
mov rcx, rax
call fcn.18002a548
nop
lea rcx, [rbp - 0x28]
call fcn.1800133a0
lea rdi, [rbp - 0x48]
cmp qword [rbp - 0x30], 7
cmova 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.1800b6bd0
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], 7
cmova 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.1800b6bd0
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 [0x180378d40]
nop
lea rcx, [rbp - 8]
call fcn.1800133a0
nop
lea rcx, [rbp - 0x48]
call fcn.1800133a0
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 [0x180378d58]
mov rbx, rax
mov rcx, rax
call fcn.18002ee3c
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x48]
lea rdx, str.Assembly_dir:_
lea rcx, [rbp - 8]
call fcn.1800063ac
nop
mov edx, 2
mov rcx, rax
call fcn.18002a548
nop
lea rcx, [rbp - 8]
call fcn.1800133a0
mov rcx, rbx
call fcn.18002ee3c
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 0x18002f9b5
mov r8, r15
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.180001d08
nop
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 7
cmova 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], 7
cmova 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], 7
cmova 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], 7
cmova rdx, qword [rsp + 0x58]
lea rcx, str.KSL_PROCESS_PATH
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, r12
call fcn.18002fc50
test rax, rax
je 0x18002fb74
mov rdx, qword [0x180378cf8]
mov rcx, rax
call rdx
mov rbx, rax
test rax, rax
jne 0x18002fa74
lea rcx, str.Failed_to_get_image
jmp 0x18002faa8
mov rax, qword [0x180378d10]
xor edx, edx
lea rcx, str.KSL.Core.Entrypoint:Main
call rax
mov r14, rax
mov r8, qword [0x180378d18]
mov rdx, rbx
mov rcx, rax
call r8
mov rsi, rax
test rax, rax
jne 0x18002fab7
lea rcx, str.Failed_to_get_method_desc
mov edx, 4
call fcn.18002a580
jmp 0x18002fb74
mov rax, qword [0x180378d30]
mov rcx, rsi
call rax
mov rdx, qword [0x180378d38]
mov rcx, rax
call rdx
mov rdi, r13
cmp eax, 1
jne 0x18002fb02
mov rbx, qword [0x180378d48]
call qword [0x180378d50]
mov rdx, rax
xor r8d, r8d
mov rcx, r12
call rbx
mov rbx, rax
mov ecx, 8
call fcn.1800b6bd0
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.18002f104
nop
mov edx, 2
mov rcx, rax
call fcn.18002a548
nop
lea rcx, [rbp + 0x18]
call fcn.1800133a0
mov qword [rsp + 0x50], r13
lea r9, [rsp + 0x50]
mov r8, rdi
xor edx, edx
mov rcx, rsi
call qword [0x180378d08]
mov edx, 2
lea rcx, str.Done_
call fcn.18002a580
mov rcx, r14
call qword [0x180378d28]
test rdi, rdi
je 0x18002fb74
mov rcx, rdi
call fcn.1800b6bbc
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 7
jbe 0x18002fbb5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002fbb0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002fc48
call fcn.1800af2ac
movdqa xmm0, xmmword [0x1800ea3c0]
movdqu xmmword [rbp - 0x78], xmm0
mov word [rsp + 0x78], r13w
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x18002fc06
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002fc01
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002fc36
call fcn.1800af2ac
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1800af730
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.1800b698c
nop
call fcn.1800b698c
nop
call fcn.180013420
nop
call fcn.1800b698c
int3