Function at 0x1800d1140
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 [0x18034ea20]
cmp eax, 0xffffffff
jne 0x1800d11e1
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 0x1800d11ad
test ebx, ebx
je 0x1800d11ad
cmp ebx, 0x65
cmovne edi, ebx
inc ebx
cmp ebx, 0xff
jl 0x1800d1196
mov dword [0x18034ea20], 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 [0x18034ea20]
cmp eax, 0xffffffff
je 0x1800d1190
mov dword [0x180347ec0], 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 0x1800d120e
mov r8, r14
jmp 0x1800d121b
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r14b
jne 0x1800d1212
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 0x1800d126f
test al, 0x10
jne 0x1800d1285
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, 9
lea rdx, str.MaxHealth
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 [0x18034ea20]
mov rcx, rbx
call fcn.1800cf8c0
lea rcx, str.g_Max_Health_Key_Changed_and_saved_successfully
call fcn.1800b2e90
test rbx, rbx
je 0x1800d135e
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 0x1800d13b8
inc rax
mov rcx, qword [rbp + 0x2f]
cmp rax, 0x1000
jb 0x1800d13b3
test cl, 0x1f
je 0x1800d1383
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 0x1800d1393
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 0x1800d13a3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x1800d13b0
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 0x1800d1422
inc rax
mov rcx, qword [rbp - 0x11]
cmp rax, 0x1000
jb 0x1800d141d
test cl, 0x1f
je 0x1800d13ed
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 0x1800d13fd
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 0x1800d140d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x1800d141a
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 0x1800d148c
inc rax
mov rcx, qword [rbp + 0xf]
cmp rax, 0x1000
jb 0x1800d1487
test cl, 0x1f
je 0x1800d1457
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 0x1800d1467
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 0x1800d1477
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x1800d1484
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