Function at 0x140315980
Capabilities:
Hide graphical window
Link many functions at runtime

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa0
mov rbx, qword [0x14068b040]
xor r9d, r9d
xor edx, edx
mov rsi, qword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ecx, 0x2000
lea r8, [rbx + 0x16c8]
call rsi
xor r8d, r8d
xor edx, edx
mov ecx, 0x2001
mov r9d, 2
call rsi
lea r8, [rbx + 0x16b0]
mov rdx, rbx
mov ecx, 6
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x1403160db
lea rcx, str.user32.dll
mov rbp, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rbp
mov qword [rbx + 0x24c0], rax
mov rcx, rax
test rax, rax
je 0x140316128
mov r12, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SetProcessDPIAware
call r12
mov rcx, qword [rbx + 0x24c0]
lea rdx, str.ChangeWindowMessageFilterEx
mov qword [rbx + 0x24c8], rax
call r12
mov rcx, qword [rbx + 0x24c0]
lea rdx, str.EnableNonClientDpiScaling
mov qword [rbx + 0x24d0], rax
call r12
mov rcx, qword [rbx + 0x24c0]
lea rdx, str.SetProcessDpiAwarenessContext
mov qword [rbx + 0x24d8], rax
call r12
mov rcx, qword [rbx + 0x24c0]
lea rdx, str.GetDpiForWindow
mov qword [rbx + 0x24e0], rax
call r12
mov rcx, qword [rbx + 0x24c0]
lea rdx, str.AdjustWindowRectExForDpi
mov qword [rbx + 0x24e8], rax
call r12
mov rcx, qword [rbx + 0x24c0]
lea rdx, str.GetSystemMetricsForDpi
mov qword [rbx + 0x24f0], rax
call r12
lea rcx, str.dinput8.dll
mov qword [rbx + 0x24f8], rax
call rbp
mov qword [rbx + 0x2490], rax
mov rcx, rax
test rax, rax
je 0x140315ad1
lea rdx, str.DirectInput8Create
call r12
mov qword [rbx + 0x2498], rax
lea rax, str.xinput1_3.dll
lea rsi, [rsp + 0x70]
mov qword [rsp + 0x98], 0
mov qword [rsp + 0x78], rax
lea rax, str.xinput9_1_0.dll
mov rdi, rsi
lea rcx, str.xinput1_4.dll
mov qword [rsp + 0x80], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x88], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x90], rax
jmp 0x140315b3d
mov rcx, qword [rdi + 8]
add rdi, 8
test rcx, rcx
je 0x140315b77
call rbp
mov qword [rbx + 0x24a8], rax
test rax, rax
je 0x140315b30
lea rdx, str.XInputGetCapabilities
mov rcx, rax
call r12
mov rcx, qword [rbx + 0x24a8]
lea rdx, str.XInputGetState
mov qword [rbx + 0x24b0], rax
call r12
mov qword [rbx + 0x24b8], rax
lea rcx, str.dwmapi.dll
call rbp
mov qword [rbx + 0x2500], rax
mov rcx, rax
test rax, rax
je 0x140315be8
lea rdx, str.DwmIsCompositionEnabled
call r12
mov rcx, qword [rbx + 0x2500]
lea rdx, str.DwmFlush
mov qword [rbx + 0x2508], rax
call r12
mov rcx, qword [rbx + 0x2500]
lea rdx, str.DwmEnableBlurBehindWindow
mov qword [rbx + 0x2510], rax
call r12
mov rcx, qword [rbx + 0x2500]
lea rdx, str.DwmGetColorizationColor
mov qword [rbx + 0x2518], rax
call r12
mov qword [rbx + 0x2520], rax
lea rcx, str.shcore.dll
call rbp
mov qword [rbx + 0x2528], rax
mov rcx, rax
test rax, rax
je 0x140315c29
lea rdx, str.SetProcessDpiAwareness
call r12
mov rcx, qword [rbx + 0x2528]
lea rdx, str.GetDpiForMonitor
mov qword [rbx + 0x2530], rax
call r12
mov qword [rbx + 0x2538], rax
lea rcx, str.ntdll.dll
call rbp
mov qword [rbx + 0x2540], rax
mov rcx, rax
test rax, rax
je 0x140315c52
lea rdx, str.RtlVerifyVersionInfo
call r12
mov qword [rbx + 0x2548], rax
mov ecx, pe_nt_image_headers64
mov edx, 0x5c
mov ebp, 0x11a
mov rax, 0xffffffffffffffff
lea rdi, [rbx + 0x16d8]
mov r8d, 0x10d
mov r9d, 0x10c
mov r10d, 0x15c
rep stosq qword [rdi], rax
lea rdi, [rbx + 0x1ad8]
mov ecx, 0x57
mov r11d, 0x10b
rep stosq qword [rdi], rax
mov eax, 0xffffffff
mov ecx, 0xa2
mov r12d, 0x138
mov word [rbx + 0x172e], dx
mov edx, 0x106
mov word [rbx + 0x1784], cx
mov ecx, 0x109
mov word [rbx + 0x1976], r8w
mov r8d, 0x14b
mov word [rbx + 0x1966], r9w
mov r9d, 0x12c
mov word [rbx + 0x1992], r10w
mov r10d, 0x156
mov word [rdi], ax
mov edi, 0x10a
movabs rax, 0x46004400530041
mov qword [rbx + 0x1714], rax
movabs rax, 0x4b004a00480047
mov qword [rbx + 0x171c], rax
movabs rax, 0x600027003b004c
mov qword [rbx + 0x1724], rax
movabs rax, 0x5600430058005a
mov qword [rbx + 0x1730], rax
movabs rax, 0x2c004d004e0042
mov qword [rbx + 0x1738], rax
movabs rax, 0x33003200310100
mov qword [rbx + 0x16da], rax
movabs rax, 0x37003600350034
mov qword [rbx + 0x16e2], rax
movabs rax, 0x2d003000390038
mov qword [rbx + 0x16ea], rax
movabs rax, 0x5101020103003d
mov qword [rbx + 0x16f2], rax
movabs rax, 0x54005200450057
mov qword [rbx + 0x16fa], rax
movabs rax, 0x4f004900550059
mov qword [rbx + 0x1702], rax
movabs rax, 0x101005d005b0050
mov qword [rbx + 0x170a], rax
movabs rax, 0x1310130012f012e
mov qword [rbx + 0x17a0], rax
movabs rax, 0x135013401330132
mov qword [rbx + 0x17a8], rax
mov eax, 0x139
mov word [rbx + 0x17c4], ax
mov eax, 0x155
mov word [rbx + 0x1712], ax
mov eax, 0x154
mov word [rbx + 0x197a], r11w
mov r11d, 0x122
mov dword [rbx + 0x1740], 0x2f002e
mov dword [rbx + 0x197c], 0x1050104
mov word [rbx + 0x196a], di
mov dword [rbx + 0x174a], 0x1180020
mov word [rbx + 0x1962], bp
mov dword [rbx + 0x17b0], 0x1370136
mov word [rbx + 0x17b4], r12w
mov word [rbx + 0x172c], ax
mov eax, 0x108
mov word [rbx + 0x1978], ax
mov eax, 0x107
mov word [rbx + 0x196e], ax
movabs rax, 0x126012501240123
mov qword [rbx + 0x1750], rax
movabs rax, 0x12a012901280127
mov qword [rbx + 0x1758], rax
movabs rax, 0x1470119011c012b
mov qword [rbx + 0x1760], rax
movabs rax, 0x144014d01490148
mov qword [rbx + 0x1768], rax
movabs rax, 0x141014e01460145
mov dword [rbx + 0x1946], 0x15a011b
mov dword [rbx + 0x198e], 0x15b0157
mov word [rbx + 0x1972], dx
mov word [rbx + 0x1968], cx
mov word [rbx + 0x1942], r8w
mov dword [rbx + 0x1910], 0x159014f
mov word [rbx + 0x1786], r9w
mov dword [rbx + 0x1788], 0x150012d
mov dword [rbx + 0x1744], 0x14c0158
mov word [rbx + 0x1748], r10w
mov word [rbx + 0x174e], r11w
mov qword [rbx + 0x1770], rax
movabs rax, 0x14a014001430142
mov qword [rbx + 0x1778], rax
xor eax, eax
nop dword [rax]
movsx rdx, word [rbx + rax*2 + 0x16d8]
test dx, dx
jle 0x140315f4e
mov word [rbx + rdx*2 + 0x1ad8], ax
add rax, 1
cmp rax, 0x200
jne 0x140315f38
call fcn.140311f50
mov ecx, 0x3ad7
call fcn.140312960
test eax, eax
je 0x140316102
mov rcx, 0xfffffffffffffffc
call qword [rbx + 0x24e0]
call fcn.140315840
test eax, eax
je 0x1403160cd
mov qword [rsp + 0x58], 0
mov rax, qword [rbx + 0x16b0]
mov ecx, 0x300
mov r9d, 0x6000000
mov qword [rsp + 0x48], 0
lea r8, str.GLFW_message_window
lea rdx, str.GLFW30
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [rbx + 0x16b8], rax
mov rcx, rax
test rax, rax
je 0x14031616b
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx + 0x16b8]
xor r8d, r8d
mov rdx, rsi
movabs rax, 0x500000020
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x70], rax
movabs rax, 0x11cff16f4d1e55b2
mov qword [rsp + 0x7c], rax
movabs rax, 0x300000111100cb88
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x84], rax
call qword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
mov rdi, qword [sym.imp.USER32.dll_PeekMessageW]
mov r12, qword [sym.imp.USER32.dll_TranslateMessage]
mov qword [rbx + 0x16c0], rax
mov rbp, qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x140316093
mov rcx, rsi
call r12
mov rcx, rsi
call rbp
mov rdx, qword [rbx + 0x16b8]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x20], 1
call rdi
test eax, eax
jne 0x140316088
lea rcx, [rbx + 0x1660]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
call fcn.140313180
call fcn.140313760
mov eax, 1
add rsp, 0xa0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rdx, str.Win32:_Failed_to_retrieve_own_module_handle
mov ecx, 0x10008
mov dword [rsp + 0x6c], eax
call fcn.140311370
mov eax, dword [rsp + 0x6c]
add rsp, 0xa0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor r8d, r8d
mov edx, 3
mov ecx, 6
call fcn.1403122b0
test eax, eax
je 0x140316149
mov ecx, 2
call qword [rbx + 0x2530]
jmp 0x140315f7e
lea rdx, str.Win32:_Failed_to_load_user32.dll
mov ecx, 0x10008
call fcn.140311370
xor eax, eax
add rsp, 0xa0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.1403122b0
test eax, eax
je 0x140315f7e
call qword [rbx + 0x24c8]
jmp 0x140315f7e
lea rdx, str.Win32:_Failed_to_create_helper_window
mov ecx, 0x10008
call fcn.140311370
xor eax, eax
jmp 0x1403160cd