Function at 0x140052fd0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1400cc418]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rcx, str.winmm.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1400d06c0], rax
cmp qword [0x1400d06c0], 0
jne 0x140053019
lea rdx, str.Win32:_Failed_to_load_winmm.dll
mov ecx, 0x10008
call fcn.14004aa00
xor eax, eax
jmp 0x140053307
lea rdx, str.timeGetTime
mov rcx, qword [0x1400d06c0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d06c8], rax
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1400d0700], rax
cmp qword [0x1400d0700], 0
jne 0x14005306a
lea rdx, str.Win32:_Failed_to_load_user32.dll
mov ecx, 0x10008
call fcn.14004aa00
xor eax, eax
jmp 0x140053307
lea rdx, str.SetProcessDPIAware
mov rcx, qword [0x1400d0700]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d0708], rax
lea rdx, str.ChangeWindowMessageFilterEx
mov rcx, qword [0x1400d0700]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d0710], rax
lea rdx, str.EnableNonClientDpiScaling
mov rcx, qword [0x1400d0700]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d0718], rax
lea rdx, str.SetProcessDpiAwarenessContext
mov rcx, qword [0x1400d0700]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d0720], rax
lea rdx, str.GetDpiForWindow
mov rcx, qword [0x1400d0700]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d0728], rax
lea rdx, str.AdjustWindowRectExForDpi
mov rcx, qword [0x1400d0700]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d0730], rax
lea rcx, str.dinput8.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1400d06d0], rax
cmp qword [0x1400d06d0], 0
je 0x140053145
lea rdx, str.DirectInput8Create
mov rcx, qword [0x1400d06d0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d06d8], rax
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x28], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x20], 0
jmp 0x14005319e
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
cmp qword [rsp + rax*8 + 0x28], 0
je 0x140053206
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + rax*8 + 0x28]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1400d06e8], rax
cmp qword [0x1400d06e8], 0
je 0x140053204
lea rdx, str.XInputGetCapabilities
mov rcx, qword [0x1400d06e8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d06f0], rax
lea rdx, str.XInputGetState
mov rcx, qword [0x1400d06e8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d06f8], rax
jmp 0x140053206
jmp 0x140053194
lea rcx, str.dwmapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1400d0738], rax
cmp qword [0x1400d0738], 0
je 0x140053275
lea rdx, str.DwmIsCompositionEnabled
mov rcx, qword [0x1400d0738]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d0740], rax
lea rdx, str.DwmFlush
mov rcx, qword [0x1400d0738]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d0748], rax
lea rdx, str.DwmEnableBlurBehindWindow
mov rcx, qword [0x1400d0738]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d0750], rax
lea rcx, str.shcore.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1400d0758], rax
cmp qword [0x1400d0758], 0
je 0x1400532c9
lea rdx, str.SetProcessDpiAwareness
mov rcx, qword [0x1400d0758]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d0760], rax
lea rdx, str.GetDpiForMonitor
mov rcx, qword [0x1400d0758]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d0768], rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1400d0770], rax
cmp qword [0x1400d0770], 0
je 0x140053302
lea rdx, str.RtlVerifyVersionInfo
mov rcx, qword [0x1400d0770]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d0778], rax
mov eax, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140059c60
add rsp, 0x68
ret