Function at 0x1800d2d40
Capabilities:
Check if file exists
Create directory
Get file attributes
Log keystrokes via polling
Query environment variable

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rax, qword [0x1802a8008]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xor r14d, r14d
mov eax, dword [0x18034ea3c]
cmp eax, 0xffffffff
jne 0x1800d2de1
mov esi, 0x8000
nop dword [rax + rax]
or edi, 0xffffffff
mov ebx, r14d
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
je 0x1800d2dad
test ebx, ebx
je 0x1800d2dad
cmp ebx, 0x65
cmovne edi, ebx
inc ebx
cmp ebx, 0xff
jl 0x1800d2d96
mov dword [0x18034ea3c], edi
call qword [sym.imp.WINMM.dll_timeGetTime]
mov dword [0x180341784], eax
mov rcx, qword [0x180341880]
call qword [sym.imp.KERNEL32.dll_SwitchToFiber]
mov eax, dword [0x18034ea3c]
cmp eax, 0xffffffff
je 0x1800d2d90
mov dword [0x180347e94], eax
lea rcx, str.APPDATA
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [rbp + 0x27], 0xf
mov qword [rbp + 0x1f], r14
mov byte [rbp + 0xf], r14b
cmp byte [rax], r14b
jne 0x1800d2e0e
mov r8, r14
jmp 0x1800d2e1b
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r14b
jne 0x1800d2e12
mov rdx, rax
lea rcx, [rbp + 0xf]
call fcn.18003d620
nop
lea r8, str.._bool_
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x11]
call fcn.1800a9640
nop
lea r8, str.._bool.ini
lea rdx, [rbp + 0xf]
lea rcx, [rbp + 0x2f]
call fcn.1800a9640
nop
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 0x10
cmovae rcx, qword [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1800d2e6f
test al, 0x10
jne 0x1800d2e85
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 0x10
cmovae rcx, qword [rbp - 0x11]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, 0x20
call fcn.1801e6074
mov rbx, rax
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x61], 0xf
mov qword [rbp - 0x69], r14
mov byte [rbp - 0x79], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0x2f]
lea rcx, [rbp - 0x79]
call fcn.18003d1d0
lea rdx, [rbp - 0x79]
mov rcx, rbx
call fcn.1800cf720
mov rbx, rax
lea rax, [rbp - 0x59]
mov qword [rsp + 0x28], rax
mov qword [rbp - 0x41], 0xf
mov qword [rbp - 0x49], r14
mov byte [rbp - 0x59], 0
mov r8d, 0xb
lea rdx, str.LcsTeleport
lea rcx, [rbp - 0x59]
call fcn.18003d620
nop
mov qword [rbp - 0x21], 0xf
mov qword [rbp - 0x29], r14
mov byte [rbp - 0x39], 0
mov r8d, 7
lea rdx, str.Hotkeys
lea rcx, [rbp - 0x39]
call fcn.18003d620
nop
lea r9, [rbp - 0x59]
lea r8, [rbp - 0x39]
mov edx, dword [0x18034ea3c]
mov rcx, rbx
call fcn.1800cf8c0
lea rcx, str.g_Teleport_to_lsc_Key_Changed_and_saved_successfully
call fcn.1800b2e90
test rbx, rbx
je 0x1800d2f5e
mov rcx, rbx
call fcn.18003d070
mov edx, 0x20
mov rcx, rbx
call fcn.1801e60b0
nop
mov rax, qword [rbp + 0x47]
cmp rax, 0x10
jb 0x1800d2fb8
inc rax
mov rcx, qword [rbp + 0x2f]
cmp rax, 0x1000
jb 0x1800d2fb3
test cl, 0x1f
je 0x1800d2f83
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1800d2f93
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x1800d2fa3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x1800d2fb0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.1801e6034
mov qword [rbp + 0x47], 0xf
mov qword [rbp + 0x3f], r14
mov byte [rbp + 0x2f], 0
mov rax, qword [rbp + 7]
cmp rax, 0x10
jb 0x1800d3022
inc rax
mov rcx, qword [rbp - 0x11]
cmp rax, 0x1000
jb 0x1800d301d
test cl, 0x1f
je 0x1800d2fed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1800d2ffd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x1800d300d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x1800d301a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.1801e6034
mov qword [rbp + 7], 0xf
mov qword [rbp - 1], r14
mov byte [rbp - 0x11], 0
mov rax, qword [rbp + 0x27]
cmp rax, 0x10
jb 0x1800d308c
inc rax
mov rcx, qword [rbp + 0xf]
cmp rax, 0x1000
jb 0x1800d3087
test cl, 0x1f
je 0x1800d3057
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1800d3067
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x1800d3077
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x1800d3084
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.1801e6034
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1801e6050
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret