Function at 0x1400516e0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x58
lea r8, [0x140095f38]
mov ecx, 6
lea rdx, [0x1400943c0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x140051719
lea rdx, [0x140075408]
mov ecx, 0x10008
call fcn.140050da0
xor eax, eax
add rsp, 0x58
ret
lea rcx, str.user32.dll
call sub.KERNEL32.dll_LoadLibraryA
mov qword [0x140096d60], rax
test rax, rax
jne 0x140051749
lea rdx, str.Win32:_Failed_to_load_user32.dll
mov ecx, 0x10008
call fcn.140050da0
xor eax, eax
add rsp, 0x58
ret
lea rdx, str.SetProcessDPIAware
mov qword [rsp + 0x50], rbx
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140096d60]
lea rdx, str.ChangeWindowMessageFilterEx
mov qword [0x140096d68], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140096d60]
lea rdx, str.EnableNonClientDpiScaling
mov qword [0x140096d70], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140096d60]
lea rdx, str.SetProcessDpiAwarenessContext
mov qword [0x140096d78], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140096d60]
lea rdx, str.GetDpiForWindow
mov qword [0x140096d80], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140096d60]
lea rdx, str.AdjustWindowRectExForDpi
mov qword [0x140096d88], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140096d60]
lea rdx, str.GetSystemMetricsForDpi
mov qword [0x140096d90], rax
call sub.KERNEL32.dll_GetProcAddress
lea rcx, str.dinput8.dll
mov qword [0x140096d98], rax
call sub.KERNEL32.dll_LoadLibraryA
mov qword [0x140096d30], rax
test rax, rax
je 0x14005182e
lea rdx, str.DirectInput8Create
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x140096d38], rax
lea rcx, str.xinput1_3.dll
xor ebx, ebx
mov qword [rsp + 0x28], rcx
lea rax, str.xinput1_4.dll
lea rcx, str.xinput9_1_0.dll
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rcx
lea rcx, str.xinput1_2.dll
mov qword [rsp + 0x38], rcx
lea rcx, str.xinput1_1.dll
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rbx
mov rcx, rax
call sub.KERNEL32.dll_LoadLibraryA
mov qword [0x140096d48], rax
test rax, rax
jne 0x140051894
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x140051871
jmp 0x1400518c4
lea rdx, str.XInputGetCapabilities
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140096d48]
lea rdx, str.XInputGetState
mov qword [0x140096d50], rax
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x140096d58], rax
lea rcx, str.dwmapi.dll
call sub.KERNEL32.dll_LoadLibraryA
mov rbx, qword [rsp + 0x50]
mov qword [0x140096da0], rax
test rax, rax
je 0x140051945
lea rdx, str.DwmIsCompositionEnabled
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140096da0]
lea rdx, str.DwmFlush
mov qword [0x140096da8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140096da0]
lea rdx, str.DwmEnableBlurBehindWindow
mov qword [0x140096db0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140096da0]
lea rdx, str.DwmGetColorizationColor
mov qword [0x140096db8], rax
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x140096dc0], rax
lea rcx, str.shcore.dll
call sub.KERNEL32.dll_LoadLibraryA
mov qword [0x140096dc8], rax
test rax, rax
je 0x14005198d
lea rdx, str.SetProcessDpiAwareness
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140096dc8]
lea rdx, str.GetDpiForMonitor
mov qword [0x140096dd0], rax
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x140096dd8], rax
lea rcx, str.ntdll.dll
call sub.KERNEL32.dll_LoadLibraryA
mov qword [0x140096de0], rax
test rax, rax
je 0x1400519bb
lea rdx, str.RtlVerifyVersionInfo
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x140096de8], rax
mov eax, 1
add rsp, 0x58
ret