Function at 0x14016d220
Capabilities:
Link many functions at runtime
Log keystrokes

Disassembly:
push rbp
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov rax, qword [0x1403d66b0]
xor rax, rsp
mov qword [rbp + 0xc0], rax
xor r9d, r9d
lea r8, [0x14040f070]
xor edx, edx
mov ecx, 0x2000
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 0x2001
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
lea rcx, [0x1402da5f0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x14040fe38], rax
test rax, rax
jne 0x14016d2a0
lea rdx, str.Win32:_Failed_to_load_winmm.dll
mov ecx, 0x10008
call fcn.14016d120
xor eax, eax
jmp 0x14016d5fe
lea rdx, str.timeGetTime
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.user32.dll
mov qword [0x14040fe40], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x14040fe48], rax
test rax, rax
jne 0x14016d2e8
lea rdx, str.Win32:_Failed_to_load_user32.dll
mov ecx, 0x10008
call fcn.14016d120
xor eax, eax
jmp 0x14016d5fe
mov qword [rsp + 0x200], rbx
lea rdx, str.SetProcessDPIAware
mov qword [rsp + 0x210], rdi
mov rcx, rax
mov qword [rsp + 0x1e8], r12
mov qword [rsp + 0x1e0], r13
mov qword [rsp + 0x1d8], r14
mov qword [rsp + 0x1d0], r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14040fe48]
lea rdx, str.ChangeWindowMessageFilterEx
mov qword [0x14040fe50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x1402da6a0]
mov qword [0x14040fe58], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x14040fe60], rax
test rax, rax
je 0x14016d3b0
lea rdx, str.DwmIsCompositionEnabled
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14040fe60]
lea rdx, str.DwmFlush
mov qword [0x14040fe68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14040fe60]
lea rdx, [0x1402da6d8]
mov qword [0x14040fe70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14040fe78], rax
call fcn.14016d990
xor edx, edx
lea rcx, [rbp - 0x40]
mov r8d, 0x100
call fcn.140282700
xor edx, edx
lea rcx, [0x14040f73a]
mov r8d, 0x6d1
call fcn.140282700
lea r14, [rsp + 0x60]
mov qword [rsp + 0x208], rsi
sub r14, 0x480
lea r15, [0x14040f4c0]
xor r13d, r13d
lea r12, [0x14040f7da]
mov ebx, 0x20
nop dword [rax]
nop dword [rax + rax]
movsx edi, word [r15]
cmp edi, 0xffffffff
je 0x14016d52c
cmp ebx, 0x140
jl 0x14016d4a7
cmp ebx, 0x14e
jg 0x14016d4a7
mov dword [rsp + 0x60], 0x60
mov dword [rsp + 0x64], 0x61
mov dword [rsp + 0x68], 0x62
mov dword [rsp + 0x6c], 0x63
mov dword [rsp + 0x70], 0x64
mov dword [rsp + 0x74], 0x65
mov dword [rsp + 0x78], 0x66
mov dword [rsp + 0x7c], 0x67
mov dword [rbp - 0x80], 0x68
mov dword [rbp - 0x7c], WSAGetLastError
mov dword [rbp - 0x78], WSACleanup
mov dword [rbp - 0x74], reloc.WS2_32.dll_WSAGetLastError
mov dword [rbp - 0x70], WSASetLastError
mov dword [rbp - 0x6c], WSASetLastError
mov dword [rbp - 0x68], WSASetLastError
mov esi, dword [r14]
jmp 0x14016d4b6
mov edx, 1
mov ecx, edi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov esi, eax
mov dword [rsp + 0x28], r13d
lea r9, [rbp - 0x60]
lea r8, [rbp - 0x40]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov edx, edi
mov ecx, esi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x14016d4f9
mov dword [rsp + 0x28], r13d
lea r9, [rbp - 0x60]
lea r8, [rbp - 0x40]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov edx, edi
mov ecx, esi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x14016d52c
mov qword [rsp + 0x38], r13
lea r8, [rbp - 0x60]
mov qword [rsp + 0x30], r13
mov r9d, 1
mov dword [rsp + 0x28], 5
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc ebx
add r12, 5
add r14, 4
add r15, 2
cmp ebx, 0x15c
jle 0x14016d410
call fcn.14016f290
mov r15, qword [rsp + 0x1d0]
mov r14, qword [rsp + 0x1d8]
mov r12, qword [rsp + 0x1e8]
mov rdi, qword [rsp + 0x210]
mov rsi, qword [rsp + 0x208]
test eax, eax
je 0x14016d5ec
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x58], r13
lea r8, str.GLFW_message_window
mov qword [rsp + 0x50], rax
lea rdx, [0x14040e9b0]
mov qword [rsp + 0x48], r13
mov r9d, 0x6000000
mov qword [rsp + 0x40], r13
mov ecx, 0x300
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rbx, rax
test rax, rax
jne 0x14016d616
lea rdx, str.Win32:_Failed_to_create_helper_window
mov ecx, 0x10008
call fcn.14016d120
mov qword [0x14040f060], r13
xor eax, eax
mov rbx, qword [rsp + 0x200]
mov r13, qword [rsp + 0x1e0]
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.14027f960
add rsp, 0x1f0
pop rbp
ret
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_ShowWindow]
movups xmm0, xmmword [0x1402da5e0]
xor r8d, r8d
mov qword [rbp - 0x5c], 5
lea rdx, [rbp - 0x60]
mov dword [rbp - 0x44], r13d
mov rcx, rbx
mov dword [rbp - 0x60], 0x20
movups xmmword [rbp - 0x54], xmm0
call qword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
mov rdx, qword [0x14040f060]
lea rcx, [rsp + 0x60]
xor r9d, r9d
mov qword [0x14040f068], rax
xor r8d, r8d
mov dword [rsp + 0x20], 1
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14016d6ba
nop word [rax + rax]
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov rdx, qword [0x14040f060]
lea rcx, [rsp + 0x60]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x14016d680
mov qword [0x14040f060], rbx
call fcn.140173830
call fcn.140173e20
mov eax, 1
jmp 0x14016d5ee