Function at 0x1800d3520
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 [0x18034ea38]
cmp eax, 0xffffffff
jne 0x1800d35c1
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 0x1800d358d
test ebx, ebx
je 0x1800d358d
cmp ebx, 0x65
cmovne edi, ebx
inc ebx
cmp ebx, 0xff
jl 0x1800d3576
mov dword [0x18034ea38], 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 [0x18034ea38]
cmp eax, 0xffffffff
je 0x1800d3570
mov dword [0x180347e8c], 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 0x1800d35ee
mov r8, r14
jmp 0x1800d35fb
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r14b
jne 0x1800d35f2
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.1800a97a0
nop
lea r8, str.._bool.ini
lea rdx, [rbp + 0xf]
lea rcx, [rbp + 0x2f]
call fcn.1800a97a0
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 0x1800d364f
test al, 0x10
jne 0x1800d3665
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.1801e61b4
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.1800cf800
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, 0xe
lea rdx, str.TeleportHotKey
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 [0x18034ea38]
mov rcx, rbx
call fcn.1800cf9a0
lea rcx, str.g_Teleport_to_Waypoint_Key_Changed_and_saved_successfully
call fcn.1800b2f70
test rbx, rbx
je 0x1800d373e
mov rcx, rbx
call fcn.18003d070
mov edx, 0x20
mov rcx, rbx
call fcn.1801e6550
nop
mov rax, qword [rbp + 0x47]
cmp rax, 0x10
jb 0x1800d3798
inc rax
mov rcx, qword [rbp + 0x2f]
cmp rax, 0x1000
jb 0x1800d3793
test cl, 0x1f
je 0x1800d3763
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 0x1800d3773
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 0x1800d3783
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x1800d3790
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.1801e6174
mov qword [rbp + 0x47], 0xf
mov qword [rbp + 0x3f], r14
mov byte [rbp + 0x2f], 0
mov rax, qword [rbp + 7]
cmp rax, 0x10
jb 0x1800d3802
inc rax
mov rcx, qword [rbp - 0x11]
cmp rax, 0x1000
jb 0x1800d37fd
test cl, 0x1f
je 0x1800d37cd
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 0x1800d37dd
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 0x1800d37ed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x1800d37fa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.1801e6174
mov qword [rbp + 7], 0xf
mov qword [rbp - 1], r14
mov byte [rbp - 0x11], 0
mov rax, qword [rbp + 0x27]
cmp rax, 0x10
jb 0x1800d386c
inc rax
mov rcx, qword [rbp + 0xf]
cmp rax, 0x1000
jb 0x1800d3867
test cl, 0x1f
je 0x1800d3837
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 0x1800d3847
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 0x1800d3857
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x1800d3864
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.1801e6174
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1801e6190
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