Function at 0x1800d0ea0
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 [0x18034ea10]
cmp eax, 0xffffffff
jne 0x1800d0f41
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 0x1800d0f0d
test ebx, ebx
je 0x1800d0f0d
cmp ebx, 0x65
cmovne edi, ebx
inc ebx
cmp ebx, 0xff
jl 0x1800d0ef6
mov dword [0x18034ea10], 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 [0x18034ea10]
cmp eax, 0xffffffff
je 0x1800d0ef0
mov dword [0x180347ec4], 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 0x1800d0f6e
mov r8, r14
jmp 0x1800d0f7b
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r14b
jne 0x1800d0f72
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 0x1800d0fcf
test al, 0x10
jne 0x1800d0fe5
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, 8
lea rdx, str.MaxArmor
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 [0x18034ea10]
mov rcx, rbx
call fcn.1800cf9a0
lea rcx, str.g_Max_Armor_Key_Changed_and_saved_successfully
call fcn.1800b2f70
test rbx, rbx
je 0x1800d10be
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 0x1800d1118
inc rax
mov rcx, qword [rbp + 0x2f]
cmp rax, 0x1000
jb 0x1800d1113
test cl, 0x1f
je 0x1800d10e3
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 0x1800d10f3
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 0x1800d1103
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x1800d1110
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 0x1800d1182
inc rax
mov rcx, qword [rbp - 0x11]
cmp rax, 0x1000
jb 0x1800d117d
test cl, 0x1f
je 0x1800d114d
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 0x1800d115d
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 0x1800d116d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x1800d117a
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 0x1800d11ec
inc rax
mov rcx, qword [rbp + 0xf]
cmp rax, 0x1000
jb 0x1800d11e7
test cl, 0x1f
je 0x1800d11b7
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 0x1800d11c7
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 0x1800d11d7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x1800d11e4
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