Function at 0x18002dd48
Capabilities:
Set current directory
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 - 0x168]
sub rsp, 0x250
mov rax, qword [0x180364978]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov ebx, edx
mov rdi, rcx
xor r14d, r14d
call fcn.1800209a8
test ebx, ebx
jne 0x18002dda0
xor edx, edx
lea rcx, str.KSL_CONSOLE
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
jmp 0x18002e4ce
cmp ebx, 1
jne 0x18002e4ce
xor edx, edx
mov ecx, ebx
call fcn.180026c1c
mov word [rsp + 0x30], 0x900
mov byte [rsp + 0x32], 4
lea rax, [rsp + 0x32]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x31]
lea r8, [rsp + 0x30]
lea rdx, str.KSL_version:_..
lea rcx, [rbp - 0x40]
call fcn.180023b44
nop
lea r15d, [rbx + 1]
mov edx, r15d
mov rcx, rax
call fcn.180026d60
nop
lea rcx, [rbp - 0x40]
call fcn.180013c54
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.18002c490
nop
lea rcx, [rbp + 0x20]
call fcn.18002dc38
nop
mov rdx, rdi
lea rcx, [rbp]
call fcn.18002c490
nop
mov r8b, bl
lea rdx, [rbp]
lea rcx, [rbp - 0x20]
call fcn.18002d890
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r14
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rdx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x50]
lea rcx, [rsp + 0x60]
call fcn.180001f4c
nop
lea rbx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rbx, qword [rsp + 0x60]
or rdi, 0xffffffffffffffff
mov rsi, qword [rsp + 0x70]
test rsi, rsi
je 0x18002df40
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x40]
call fcn.1800ade70
lea rcx, [0x1800eb404]
mov edx, 0x100
cmp word [rcx], dx
jae 0x18002dee8
movzx eax, byte [rcx]
mov byte [rbp + rax + 0x40], 1
add rcx, r15
lea rax, [0x1800eb408]
cmp rcx, rax
jne 0x18002de9f
lea rcx, [rsi - 1]
mov rax, rdi
cmp rcx, rdi
cmovb rax, rcx
lea r8, [rbx + rax*2]
cmp word [r8], dx
jae 0x18002dede
movzx eax, word [r8]
cmp byte [rbp + rax + 0x40], r14b
jne 0x18002df38
cmp r8, rbx
je 0x18002df40
sub r8, r15
jmp 0x18002decd
lea rcx, [rsi - 1]
or rdi, 0xffffffffffffffff
mov rax, rdi
cmp rcx, rdi
cmovb rax, rcx
lea r8, [rbx + rax*2]
mov rcx, r15
movzx edx, word [r8]
lea rax, [0x1800eb404]
mov r9d, 0x2f
cmp r9w, dx
je 0x18002df38
cmp rcx, 1
je 0x18002df2e
dec rcx
add rax, r15
cmp word [rax], dx
jne 0x18002df18
test rax, rax
jne 0x18002df38
cmp r8, rbx
je 0x18002df40
sub r8, r15
jmp 0x18002defe
sub r8, rbx
sar r8, 1
jmp 0x18002df43
mov r8, rdi
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
cmp rsi, r8
cmovb r8, rsi
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
lea rcx, [rbp - 0x40]
call fcn.180001d80
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov ebx, 0x20
mov r8d, ebx
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x40]
call fcn.1800ad7c0
lea rdi, [0x1803640f8]
mov rcx, rdi
call fcn.180013c54
mov r8d, ebx
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1800ad7c0
movdqa xmm0, xmmword [0x1800e83f0]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], r14w
mov esi, 0x1000
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x18002e010
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, rsi
jb 0x18002e00b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002e505
call fcn.1800ac2c0
mov rcx, rdi
cmp qword [reloc.WS2_32.dll_getsockopt], 8
cmovae rcx, qword [0x1803640f8]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov r8b, r14b
lea rdx, str.kino
lea rcx, [rbp - 0x40]
call fcn.180002114
nop
lea r8, [rbp - 0x40]
mov rdx, rdi
lea rcx, [rbp - 0x80]
call fcn.18001edac
nop
lea rcx, [rbp - 0x40]
call fcn.180013c54
lea rcx, [rbp - 0x80]
call fcn.18001513c
test al, al
jne 0x18002e083
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
call fcn.18008aa1c
shr rax, 0x20
test eax, eax
jne 0x18002e50b
call fcn.18000f38c
mov ebx, dword [rax]
mov dword [rsp + 0x30], ebx
mov eax, ebx
shr eax, 8
test al, al
je 0x18002e109
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str.kino_loader.log
lea rcx, [rsp + 0x40]
call fcn.180001d80
nop
lea rcx, [rsp + 0x40]
call fcn.180026c68
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x18002e109
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, rsi
jb 0x18002e104
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002e51e
call fcn.1800ac2c0
lea rax, [rsp + 0x33]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x32]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x31]
lea r8, [rsp + 0x30]
lea rdx, str.Config:_n____enabled___n____mmLog___n____gameLog___n____console__
lea rcx, [rsp + 0x40]
call fcn.18002d3a0
nop
mov edx, r15d
mov rcx, rax
call fcn.180026d60
nop
lea rcx, [rsp + 0x40]
call fcn.180013c54
mov edx, r15d
lea rcx, str.Proxy_started
call fcn.180026d98
lea rax, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rax, qword [rbp - 0x60]
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x38]
lea rdx, str.Exe_path:_
lea rcx, [rsp + 0x40]
call fcn.180004550
nop
mov edx, r15d
mov rcx, rax
call fcn.180026d60
nop
lea rcx, [rsp + 0x40]
call fcn.180013c54
lea rax, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rax, qword [rbp]
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x38]
lea rdx, str.Proxy_path:_
lea rcx, [rsp + 0x40]
call fcn.180004550
nop
mov edx, r15d
mov rcx, rax
call fcn.180026d60
nop
lea rcx, [rsp + 0x40]
call fcn.180013c54
cmp qword [reloc.WS2_32.dll_getsockopt], 8
cmovae rdi, qword [0x1803640f8]
mov qword [rsp + 0x38], rdi
lea r8, [rsp + 0x38]
lea rdx, str.App_dir:_
lea rcx, [rsp + 0x40]
call fcn.180004550
nop
mov edx, r15d
mov rcx, rax
call fcn.180026d60
nop
lea rcx, [rsp + 0x40]
call fcn.180013c54
lea rax, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae rax, qword [rbp + 0x20]
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x38]
lea rdx, str.Working_dir:_
lea rcx, [rsp + 0x40]
call fcn.180004550
nop
mov edx, r15d
mov rcx, rax
call fcn.180026d60
nop
lea rcx, [rsp + 0x40]
call fcn.180013c54
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rdx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x10]
lea rcx, [rsp + 0x40]
call fcn.180001f4c
nop
lea rcx, [rsp + 0x40]
call fcn.18002ce68
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x18002e2d7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, rsi
jb 0x18002e2d2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002e524
call fcn.1800ac2c0
mov edx, r15d
lea rcx, str.Proxy_loaded
call fcn.180026d98
lea rdi, [0x1800ec830]
cmp byte [rsp + 0x32], r14b
je 0x18002e304
mov rdx, rdi
lea rcx, str.KSL_FILE_LOG
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov edx, r15d
test bl, bl
je 0x18002e43c
lea rcx, str.Proxy_enabled
call fcn.180026d98
lea rcx, str.UnityPlayer
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
jne 0x18002e33c
lea rcx, str.No_UnityPlayer.dll_found__aborting_loader_execution
jmp 0x18002e44f
lea rdx, str.mono_jit_init_version
lea rcx, [rsp + 0x38]
call fcn.18002d46c
lea rcx, [0x180367cb8]
cmp rcx, rax
je 0x18002e37c
mov rdx, qword [rax]
mov qword [rax], r14
mov rcx, qword [0x180367cb8]
mov qword [0x180367cb8], rdx
test rcx, rcx
je 0x18002e37c
mov edx, 1
call fcn.18002d5d4
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x18002e390
mov edx, 1
call fcn.18002d5d4
mov edx, r15d
lea rcx, str.Mono_backend_created
call fcn.180026d98
mov edx, r15d
lea rcx, str.Installing_IAT_hook
call fcn.180026d98
lea r9, [0x18002d670]
mov r8, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1800ec950]
mov rcx, rbx
call fcn.18002d7c0
test eax, eax
je 0x18002e42e
lea r9, [0x18002d650]
mov r8, qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [0x1800ec950]
mov rcx, rbx
call fcn.18002d7c0
test eax, eax
je 0x18002e42e
mov edx, r15d
lea rcx, str.Proxy_hook_installed
call fcn.180026d98
mov rdx, rdi
lea rcx, str.KSL_DISABLE
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rdx, [0x1800ec9e0]
cmp byte [rsp + 0x33], r14b
cmovne rdx, rdi
lea rcx, str.KSL_CONSOLE
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
jmp 0x18002e448
mov edx, 4
lea rcx, str.Failed_to_install_IAT_hook_
jmp 0x18002e443
lea rcx, str.Proxy_disabled
call fcn.180026d98
lea rcx, str.Proxy_setup_completed
mov edx, r15d
call fcn.180026d98
call fcn.1800269e4
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x18002e495
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, rsi
jb 0x18002e490
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002e4ff
call fcn.1800ac2c0
movdqa xmm0, xmmword [0x1800e83f0]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], r14w
lea rcx, [rbp - 0x20]
call fcn.180013c54
nop
lea rcx, [rbp]
call fcn.180013c54
nop
lea rcx, [rbp + 0x20]
call fcn.180013c54
nop
lea rcx, [rbp - 0x60]
call fcn.180013c54
mov eax, 1
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1800ac760
lea r11, [rsp + 0x250]
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
call fcn.1800b36a4
nop
call fcn.1800b36a4
nop
lea r8, [rbp - 0x80]
mov edx, eax
lea rcx, str.create_directory
call fcn.180013918
int3
call fcn.1800b36a4
int3
call fcn.1800b36a4
int3