Function at 0x180087e10
Capabilities:
Link many functions at runtime

Disassembly:
push rdi
sub rsp, 0x90
lea rdi, [rsp + 0x20]
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1800e7f40]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rcx, str.winmm.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x18013ab30], rax
cmp qword [0x18013ab30], 0
jne 0x180087e72
lea rdx, str.Win32:_Failed_to_load_winmm.dll
mov ecx, 0x10008
call fcn.180087890
xor eax, eax
jmp 0x18008817b
lea rdx, str.timeGetTime
mov rcx, qword [0x18013ab30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18013ab38], rax
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x18013ab70], rax
cmp qword [0x18013ab70], 0
jne 0x180087ec3
lea rdx, str.Win32:_Failed_to_load_user32.dll
mov ecx, 0x10008
call fcn.180087890
xor eax, eax
jmp 0x18008817b
lea rdx, str.SetProcessDPIAware
mov rcx, qword [0x18013ab70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18013ab78], rax
lea rdx, str.ChangeWindowMessageFilterEx
mov rcx, qword [0x18013ab70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18013ab80], rax
lea rdx, str.EnableNonClientDpiScaling
mov rcx, qword [0x18013ab70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18013ab88], rax
lea rdx, str.SetProcessDpiAwarenessContext
mov rcx, qword [0x18013ab70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18013ab90], rax
lea rdx, str.GetDpiForWindow
mov rcx, qword [0x18013ab70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18013ab98], rax
lea rdx, str.AdjustWindowRectExForDpi
mov rcx, qword [0x18013ab70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18013aba0], rax
lea rcx, str.dinput8.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x18013ab40], rax
cmp qword [0x18013ab40], 0
je 0x180087f9e
lea rdx, str.DirectInput8Create
mov rcx, qword [0x18013ab40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18013ab48], rax
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x50], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x20], 0
jmp 0x180087ff7
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
cmp qword [rsp + rax*8 + 0x38], 0
je 0x18008805f
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + rax*8 + 0x38]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x18013ab58], rax
cmp qword [0x18013ab58], 0
je 0x18008805d
lea rdx, str.XInputGetCapabilities
mov rcx, qword [0x18013ab58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18013ab60], rax
lea rdx, str.XInputGetState
mov rcx, qword [0x18013ab58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18013ab68], rax
jmp 0x18008805f
jmp 0x180087fed
lea rcx, str.dwmapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x18013aba8], rax
cmp qword [0x18013aba8], 0
je 0x1800880e9
lea rdx, str.DwmIsCompositionEnabled
mov rcx, qword [0x18013aba8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18013abb0], rax
lea rdx, str.DwmFlush
mov rcx, qword [0x18013aba8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18013abb8], rax
lea rdx, str.DwmEnableBlurBehindWindow
mov rcx, qword [0x18013aba8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18013abc0], rax
lea rdx, str.DwmGetColorizationColor
mov rcx, qword [0x18013aba8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18013abc8], rax
lea rcx, str.shcore.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x18013abd0], rax
cmp qword [0x18013abd0], 0
je 0x18008813d
lea rdx, str.SetProcessDpiAwareness
mov rcx, qword [0x18013abd0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18013abd8], rax
lea rdx, str.GetDpiForMonitor
mov rcx, qword [0x18013abd0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18013abe0], rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x18013abe8], rax
cmp qword [0x18013abe8], 0
je 0x180088176
lea rdx, str.RtlVerifyVersionInfo
mov rcx, qword [0x18013abe8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18013abf0], rax
mov eax, 1
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1800aac78]
call fcn.18008cf60
mov rax, rdi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18008c310
add rsp, 0x90
pop rdi
ret