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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x4a5110
mov dword [esp + 4], 0
mov dword [esp], 0x2000
call ebx
sub esp, 0x10
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x2001
call ebx
sub esp, 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esp], str.winmm.dll
call ebx
sub esp, 4
test eax, eax
mov dword [0x4a5ec8], eax
je 0x457dae
mov dword [esp + 4], str.timeGetTime
mov dword [esp], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
sub esp, 8
mov dword [0x4a5ecc], eax
mov dword [esp], str.user32.dll
call ebx
sub esp, 4
test eax, eax
mov dword [0x4a5ee8], eax
je 0x457dce
mov dword [esp + 4], str.SetProcessDPIAware
mov dword [esp], eax
call esi
mov dword [0x4a5eec], eax
mov eax, dword [0x4a5ee8]
sub esp, 8
mov dword [esp + 4], str.ChangeWindowMessageFilterEx
mov dword [esp], eax
call esi
mov dword [0x4a5ef0], eax
mov eax, dword [0x4a5ee8]
sub esp, 8
mov dword [esp + 4], str.EnableNonClientDpiScaling
mov dword [esp], eax
call esi
mov dword [0x4a5ef4], eax
mov eax, dword [0x4a5ee8]
sub esp, 8
mov dword [esp + 4], str.SetProcessDpiAwarenessContext
mov dword [esp], eax
call esi
mov dword [0x4a5ef8], eax
mov eax, dword [0x4a5ee8]
sub esp, 8
mov dword [esp + 4], str.GetDpiForWindow
mov dword [esp], eax
call esi
mov dword [0x4a5efc], eax
mov eax, dword [0x4a5ee8]
sub esp, 8
mov dword [esp + 4], str.AdjustWindowRectExForDpi
mov dword [esp], eax
call esi
sub esp, 8
mov dword [0x4a5f00], eax
mov dword [esp], str.dinput8.dll
call ebx
sub esp, 4
test eax, eax
mov dword [0x4a5ed0], eax
je 0x457919
mov dword [esp + 4], str.DirectInput8Create
mov dword [esp], eax
call esi
sub esp, 8
mov dword [0x4a5ed4], eax
mov dword [esp + 0x30], str.xinput1_4.dll
mov dword [esp + 0x34], str.xinput1_3.dll
lea edi, [esp + 0x34]
mov dword [esp + 0x38], str.xinput9_1_0.dll
mov dword [esp + 0x3c], str.xinput1_2.dll
mov eax, str.xinput1_4.dll
mov dword [esp + 0x40], str.xinput1_1.dll
mov dword [esp + 0x44], 0
jmp 0x45795e
add edi, 4
mov eax, dword [edi - 4]
test eax, eax
je 0x45799e
mov dword [esp], eax
call ebx
sub esp, 4
test eax, eax
mov dword [0x4a5edc], eax
je 0x457954
mov dword [esp + 4], str.XInputGetCapabilities
mov dword [esp], eax
call esi
mov dword [0x4a5ee0], eax
mov eax, dword [0x4a5edc]
sub esp, 8
mov dword [esp + 4], str.XInputGetState
mov dword [esp], eax
call esi
sub esp, 8
mov dword [0x4a5ee4], eax
mov dword [esp], str.dwmapi.dll
call ebx
sub esp, 4
test eax, eax
mov dword [0x4a5f04], eax
je 0x4579fc
mov dword [esp + 4], str.DwmIsCompositionEnabled
mov dword [esp], eax
call esi
mov dword [0x4a5f08], eax
mov eax, dword [0x4a5f04]
sub esp, 8
mov dword [esp + 4], str.DwmFlush
mov dword [esp], eax
call esi
mov dword [0x4a5f0c], eax
mov eax, dword [0x4a5f04]
sub esp, 8
mov dword [esp + 4], str.DwmEnableBlurBehindWindow
mov dword [esp], eax
call esi
sub esp, 8
mov dword [0x4a5f10], eax
mov dword [esp], str.shcore.dll
call ebx
sub esp, 4
test eax, eax
mov dword [0x4a5f14], eax
je 0x457a40
mov dword [esp + 4], str.SetProcessDpiAwareness
mov dword [esp], eax
call esi
mov dword [0x4a5f18], eax
mov eax, dword [0x4a5f14]
sub esp, 8
mov dword [esp + 4], str.GetDpiForMonitor
mov dword [esp], eax
call esi
sub esp, 8
mov dword [0x4a5f1c], eax
mov dword [esp], str.ntdll.dll
call ebx
sub esp, 4
test eax, eax
mov dword [0x4a5f20], eax
je 0x457a6a
mov dword [esp + 4], str.RtlVerifyVersionInfo
mov dword [esp], eax
call esi
sub esp, 8
mov dword [0x4a5f24], eax
mov ebx, 0x4a511c
mov eax, 0xffffffff
mov ecx, 0x100
mov edi, ebx
mov esi, 0xa2
mov ebx, 0x2f
rep stosd dword es:[edi], eax
mov ecx, 0xae
mov ebp, 0x15c
mov word [0x4a5186], bx
mov dword [0x4a5158], 0x530041
mov dword [0x4a515c], 0x460044
mov edx, 0x154
mov dword [0x4a5160], 0x480047
mov dword [0x4a5164], 0x4b004a
mov ebx, 0x107
mov dword [0x4a5168], 0x3b004c
mov dword [0x4a516c], 0x600027
mov dword [0x4a5172], 0x5a005c
mov dword [0x4a5176], 0x430058
rep stosd dword es:[edi], eax
mov eax, 0x105
mov ecx, 0xffffffff
mov word [0x4a51c8], si
mov word [0x4a53c2], ax
mov eax, 0x10a
mov dword [0x4a517a], 0x420056
mov word [0x4a53ae], ax
mov eax, 0x11c
mov dword [0x4a517e], 0x4d004e
mov word [0x4a51a6], ax
mov eax, 0x138
mov dword [0x4a5182], 0x2e002c
mov dword [0x4a53be], 0x104010b
mov dword [0x4a511e], 0x310100
mov esi, 0x106
mov word [edi], cx
mov edi, 0x10d
mov word [0x4a53d6], bp
mov word [0x4a53ba], di
mov dword [0x4a5122], 0x330032
mov ecx, 0x108
mov dword [0x4a5126], 0x350034
mov dword [0x4a512a], 0x370036
mov edi, 0x14b
mov dword [0x4a512e], 0x390038
mov dword [0x4a5132], 0x2d0030
mov ebp, 0x150
mov dword [0x4a5136], 0x103003d
mov dword [0x4a513a], 0x510102
mov dword [0x4a513e], 0x450057
mov dword [0x4a5142], 0x540052
mov dword [0x4a5146], 0x550059
mov word [0x4a51f8], ax
mov eax, 0x139
mov word [0x4a5208], ax
mov eax, 0x155
mov dword [0x4a514a], 0x4f0049
mov word [0x4a5156], ax
mov eax, 0x156
mov dword [0x4a514e], 0x5b0050
mov word [0x4a518c], ax
mov dword [0x4a5152], 0x101005d
xor eax, eax
mov dword [0x4a518e], 0x1180020
mov dword [0x4a5192], 0x1230122
mov dword [0x4a5196], 0x1250124
mov dword [0x4a519a], 0x1270126
mov dword [0x4a519e], 0x1290128
mov dword [0x4a51a2], 0x12b012a
mov dword [0x4a51e4], 0x12f012e
mov dword [0x4a51e8], 0x1310130
mov dword [0x4a51ec], 0x1330132
mov dword [0x4a51f0], 0x1350134
mov dword [0x4a51f4], 0x1370136
mov word [0x4a5170], dx
mov dword [0x4a538a], 0x15a011b
mov dword [0x4a53d2], 0x15b0157
mov word [0x4a53bc], cx
mov word [0x4a53b2], bx
mov word [0x4a53b6], si
mov dword [0x4a53a6], 0x11c011a
mov dword [0x4a53aa], 0x109010c
mov word [0x4a5386], di
mov dword [0x4a5354], 0x159014f
mov dword [0x4a51ca], 0x12d012c
mov word [0x4a51ce], bp
mov dword [0x4a5188], 0x14c0158
mov dword [0x4a51a8], 0x1470119
mov dword [0x4a51ac], 0x1490148
mov dword [0x4a51b0], 0x144014d
mov dword [0x4a51b4], 0x1460145
mov dword [0x4a51b8], 0x141014e
mov dword [0x4a51bc], 0x1430142
mov dword [0x4a51c0], 0x14a0140
movsx edx, word [eax + eax + 0x4a511c]
test dx, dx
jle 0x457d66
mov word [edx + edx + 0x4a551c], ax
add eax, 1
cmp eax, 0x200
jne 0x457d51
call fcn.0044d160
mov dword [esp], 0x3ad7
call fcn.0044d740
test eax, eax
je 0x457f84
mov dword [esp], 0xfffffffc
call dword [0x4a5ef8]
sub esp, 4
call fcn.00455bf0
xor ebx, ebx
test eax, eax
jne 0x457dee
add esp, 0x5c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.Win32:_Failed_to_load_winmm.dll
mov dword [esp], 0x10008
xor ebx, ebx
call fcn.004530f0
add esp, 0x5c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.Win32:_Failed_to_load_user32.dll
mov dword [esp], 0x10008
xor ebx, ebx
call fcn.004530f0
add esp, 0x5c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x6000000
mov dword [esp + 8], str.GLFW_message_window
mov dword [esp + 4], str.GLFW30
mov dword [esp], 0x300
call dword [sym.imp.USER32.dll_CreateWindowExW]
sub esp, 0x30
test eax, eax
mov dword [0x4a5108], eax
je 0x457f6b
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor edx, edx
sub esp, 8
xor eax, eax
mov dword [esp + eax + 0x38], edx
add eax, 4
cmp eax, 0x18
jb 0x457e87
mov eax, 0xffffcb88
lea ebx, [esp + 0x30]
mov edx, 0x1111
mov word [esp + 0x44], ax
mov eax, dword [0x4a5108]
mov dword [esp + 0x30], 0x20
mov dword [esp + 0x34], 5
mov dword [esp + 0x3c], 0x4d1e55b2
mov dword [esp + 0x40], 0x11cff16f
mov word [esp + 0x47], dx
mov byte [esp + 0x4b], 0x30
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
sub esp, 0xc
mov dword [0x4a510c], eax
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x457f20
mov dword [esp], ebx
call ebp
sub esp, 4
mov dword [esp], ebx
call edi
sub esp, 4
mov eax, dword [0x4a5108]
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], ebx
mov dword [esp + 4], eax
call esi
sub esp, 0x14
test eax, eax
jne 0x457f10
call fcn.0044ea50
mov ebx, 1
call fcn.004540a0
call fcn.00457540
add esp, 0x5c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.Win32:_Failed_to_create_helper_window
mov dword [esp], 0x10008
call fcn.004530f0
jmp 0x457da4
mov dword [esp + 8], 0
mov dword [esp + 4], 3
mov dword [esp], 6
call fcn.0044d330
test eax, eax
je 0x457fb9
mov dword [esp], 2
call dword [0x4a5f18]
sub esp, 4
jmp 0x457d99
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 6
call fcn.0044d330
test eax, eax
je 0x457d99
call dword [0x4a5eec]
jmp 0x457d99