Function at 0x419ef0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x488
mov eax, dword [0x422a54]
xor eax, esp
mov dword [esp + 0x484], eax
mov eax, dword [esp + 0x48c]
xorps xmm0, xmm0
mov dword [esp], eax
lea eax, [esp + 0x84]
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [esp + 0xc], eax
lea eax, [esp + 4]
push 0
mov dword [esp + 0xc], str.OpenGL
movlpd qword [esp + 0x14], xmm0
mov dword [esp + 0x1c], 0
movlpd qword [esp + 0x38], xmm0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], str.Hyper_War
call esi
push 1
mov dword [esp + 0x28], eax
call esi
push 0x400
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x8c]
push 0
push eax
mov dword [esp + 0x38], 0x10
mov dword [esp + 0x3c], 1
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x10]
add esp, 0xc
xorps xmm0, xmm0
mov dword [esp + 0x54], 0
movlpd qword [esp + 0x48], xmm0
mov dword [esp + 0x60], 0
push 0x7f00
push 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x44], 0x30
mov dword [esp + 0x48], 0x23
mov dword [esp + 0x4c], 0x419c10
mov dword [esp + 0x58], eax
mov dword [esp + 0x64], 0xc
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
jne 0x41a039
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x30
push str.Error
push str.RegisterClassEx_Failed_
push 0
call esi
push 0x30
push str.Error
push str.Error_Registering_Window_Class_
push 0
call esi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x484]
xor ecx, esp
call fcn.0041c3e9
add esp, 0x488
ret 0x10
mov eax, dword [esp + 0x30]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
push ebp
mov ebp, dword [sym.imp.USER32.dll_PeekMessageA]
push edi
mov edi, dword [sym.imp.USER32.dll_WaitMessage]
mov dword [0x422dcc], 1
mov dword [0x4245d0], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x18]
push eax
call fcn.00419930
add esp, 4
cmp eax, 1
jne 0x41a1f2
push 0x1f03
call dword [sym.imp.OPENGL32.dll_glGetString]
push str.WGL_EXT_swap_control
push eax
call sub.VCRUNTIME140.dll_strstr
add esp, 8
test eax, eax
je 0x41a0b0
push str.wglSwapIntervalEXT
call dword [sym.imp.OPENGL32.dll_wglGetProcAddress]
mov dword [0x422dc8], eax
test eax, eax
je 0x41a0b0
push 0
call eax
lea eax, [esp + 0x94]
mov ecx, 0x422dd0
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004073e0
test eax, eax
jne 0x41a180
push eax
push eax
push 0x12
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [0x422dcc], 0
mov ecx, 0x422dd0
call fcn.00404d90
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41a14a
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x41a13b
push 0
push ecx
call dword [sym.imp.OPENGL32.dll_wglMakeCurrent]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x41a121
push eax
call dword [sym.imp.OPENGL32.dll_wglDeleteContext]
mov dword [esp + 0x24], 0
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], 0
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esp + 0x1c], 0
cmp dword [esp + 0x3c], 0
je 0x41a163
push 0
push 0
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
push 1
call dword [sym.imp.USER32.dll_ShowCursor]
cmp dword [0x422dcc], 0
je 0x41a210
mov eax, dword [0x4245d0]
jmp 0x41a061
push 1
push 0
push 0
push dword [esp + 0x28]
lea eax, [esp + 0x88]
push eax
call ebp
test eax, eax
je 0x41a1ac
cmp dword [esp + 0x7c], 0x12
je 0x41a0e7
lea eax, [esp + 0x78]
push eax
call ebx
jmp 0x41a180
cmp dword [esp + 0x40], 0
jne 0x41a1b7
call edi
jmp 0x41a180
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov ecx, esi
sub ecx, dword [esp + 0x44]
cmp ecx, 0xf
jb 0x41a1ec
push 0xf
mov ecx, 0x422dd0
call fcn.0040c540
push 0xf
mov ecx, 0x422dd0
call fcn.00409ff0
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_SwapBuffers]
mov dword [esp + 0x44], esi
jmp 0x41a180
push 0x30
push str.Error
push str.Error_Creating_OpenGL_Window
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [0x422dcc], 0
push dword [esp + 0x10]
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_UnregisterClassA]
mov ecx, dword [esp + 0x494]
xor eax, eax
pop edi
pop ebp
pop ebx
pop esi
xor ecx, esp
call fcn.0041c3e9
add esp, 0x488
ret 0x10