Function at 0x40ea40
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x576e04
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x5daf20]
xor eax, esp
mov dword [esp + 0x444], eax
push esi
push edi
mov eax, dword [0x5daf20]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
mov eax, dword [0x5b0a9c]
movq xmm0, qword [str.GetGLInfo]
mov dword [esp + 0x3c8], eax
mov eax, dword [0x5e3908]
movq qword [esp + 0x3b8], xmm0
movq xmm0, qword [0x5b0a94]
mov ecx, 0x20
mov esi, str._OpenGLInfo_Vendor___N_A__Renderer___N_A__Version___N_A_____n
lea edi, [esp + 0x3cc]
movq qword [esp + 0x3c0], xmm0
rep movsd dword es:[edi], dword [esi]
test eax, eax
jne 0x40eb87
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x7f05
push 0
mov dword [0x5e3908], eax
mov dword [esp + 0x44], 0x20
mov dword [esp + 0x48], 0x40e9d0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], eax
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push 0
mov dword [esp + 0x58], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], str.OpenGL
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x40eb82
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x3cc]
lea ecx, [ecx + 0x10]
lea esi, [edx + 2]
lea esp, [esp]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40eb60
sub edx, esi
sar edx, 1
push edx
lea eax, [esp + 0x3d0]
push eax
call fcn.00401610
jmp 0x40efba
mov eax, dword [0x5e3908]
push 0
push eax
push 0
push 0
push 0x64
push 0x64
push 0
push 0
push 0x6cf0000
lea eax, [esp + 0x3dc]
push eax
push str.OpenGL
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
mov dword [esp + 0x2c], esi
test esi, esi
jne 0x40ebf5
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x3cc]
lea esi, [eax + 2]
jmp 0x40ebd0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ebd0
sub eax, esi
sar eax, 1
push eax
lea eax, [esp + 0x3d0]
push eax
lea ecx, [edx + 0x10]
call fcn.00401610
jmp 0x40efba
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
mov dword [esp + 0x34], edi
test edi, edi
jne 0x40ec42
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x3cc]
lea ecx, [ecx + 0x10]
lea esi, [edx + 2]
mov edi, edi
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40ec20
sub edx, esi
sar edx, 1
push edx
lea eax, [esp + 0x3d0]
push eax
call fcn.00401610
jmp 0x40efba
xorps xmm0, xmm0
lea eax, [esp + 0x64]
push eax
movdqa xmmword [esp + 0x68], xmm0
push edi
movdqa xmmword [esp + 0x7c], xmm0
movq qword [esp + 0x8c], xmm0
mov dword [esp + 0x6c], 0x10028
mov dword [esp + 0x70], 0x25
call dword [sym.imp.GDI32.dll_ChoosePixelFormat]
test eax, eax
mov ecx, 1
cmove eax, ecx
lea ecx, [esp + 0x64]
push ecx
push eax
push edi
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_SetPixelFormat]
test eax, eax
je 0x40ef97
lea eax, [esp + 0x64]
push eax
push 0x28
push dword [esp + 0x24]
push edi
call dword [sym.imp.GDI32.dll_DescribePixelFormat]
cmp byte [esp + 0x6d], 0
push edi
je 0x40ef98
call dword [sym.imp.OPENGL32.dll_wglCreateContext]
mov dword [esp + 0x38], eax
test eax, eax
je 0x40ef97
push eax
push edi
call dword [sym.imp.OPENGL32.dll_wglMakeCurrent]
test eax, eax
je 0x40ef97
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.OPENGL32.dll_glGetString]
push 0x1f00
call esi
push 0x1f01
mov edi, eax
call esi
push 0x1f02
mov dword [esp + 0x20], eax
call esi
mov esi, eax
push 3
lea eax, [esp + 0xa4]
push edi
lea ecx, [esp + 0xa4]
mov dword [esp + 0xa4], eax
call fcn.00414860
mov dword [esp + 0x460], 0
push dword [esp + 0x9c]
lea ecx, [esp + 0x28]
call fcn.004050a0
mov byte [esp + 0x460], 1
push 3
push dword [esp + 0x20]
lea eax, [esp + 0x1b0]
lea ecx, [esp + 0x1ac]
mov dword [esp + 0x1ac], eax
call fcn.00414860
mov byte [esp + 0x460], 2
push dword [esp + 0x1a4]
lea ecx, [esp + 0x24]
call fcn.004050a0
push 3
lea eax, [esp + 0x2b4]
mov byte [esp + 0x464], 3
push esi
lea ecx, [esp + 0x2b4]
mov dword [esp + 0x2b4], eax
call fcn.00414860
mov byte [esp + 0x460], 4
push dword [esp + 0x2ac]
lea ecx, [esp + 0x2c]
call fcn.004050a0
mov byte [esp + 0x460], 5
mov esi, dword [esp + 0x18]
add esi, 0x10
push str._OpenGLInfo_Vendor___
mov ecx, esi
call fcn.00405050
lea edx, [esp + 0x24]
lea ecx, [esp + 0x18]
call fcn.0041fba0
mov edx, eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x460], 6
call fcn.0041fc70
mov byte [esp + 0x460], 7
mov eax, dword [eax]
mov ecx, esi
push dword [eax - 0xc]
push eax
call fcn.00404c80
lea ecx, [esp + 0x1c]
call fcn.004017c0
lea ecx, [esp + 0x18]
mov byte [esp + 0x460], 5
call fcn.004017c0
push str.__Renderer___
mov ecx, esi
call fcn.00404d90
lea edx, [esp + 0x20]
lea ecx, [esp + 0x18]
call fcn.0041fba0
mov edx, eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x460], 8
call fcn.0041fc70
mov byte [esp + 0x460], 9
mov eax, dword [eax]
mov ecx, esi
push dword [eax - 0xc]
push eax
call fcn.00404c80
lea ecx, [esp + 0x1c]
call fcn.004017c0
lea ecx, [esp + 0x18]
mov byte [esp + 0x460], 5
call fcn.004017c0
push str.__Version___
mov ecx, esi
call fcn.00404d90
lea edx, [esp + 0x28]
lea ecx, [esp + 0x30]
call fcn.0041fba0
mov edx, eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x460], 0xa
call fcn.0041fc70
mov byte [esp + 0x460], 0xb
mov eax, dword [eax]
mov ecx, esi
push dword [eax - 0xc]
push eax
call fcn.00404c80
lea ecx, [esp + 0x18]
call fcn.004017c0
lea ecx, [esp + 0x30]
mov byte [esp + 0x460], 5
call fcn.004017c0
push str._____n
mov ecx, esi
call fcn.00404d90
call dword [sym.imp.OPENGL32.dll_glGetError]
test eax, eax
je 0x40eeff
lea eax, [esp + 0x3cc]
push eax
mov ecx, esi
call fcn.00405050
push 0
push 0
call dword [sym.imp.OPENGL32.dll_wglMakeCurrent]
push dword [esp + 0x34]
mov esi, dword [esp + 0x30]
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [esp + 0x38]
call dword [sym.imp.OPENGL32.dll_wglDeleteContext]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
lea ecx, [esp + 0x28]
call fcn.004017c0
mov eax, dword [esp + 0x2ac]
lea ecx, [esp + 0x2b0]
cmp eax, ecx
je 0x40ef4d
push eax
call fcn.00548bb7
add esp, 4
lea ecx, [esp + 0x20]
call fcn.004017c0
mov eax, dword [esp + 0x1a4]
lea ecx, [esp + 0x1a8]
cmp eax, ecx
je 0x40ef71
push eax
call fcn.00548bb7
add esp, 4
lea ecx, [esp + 0x24]
call fcn.004017c0
mov eax, dword [esp + 0x9c]
lea ecx, [esp + 0xa0]
cmp eax, ecx
je 0x40efba
push eax
call fcn.00548bb7
add esp, 4
jmp 0x40efba
push edi
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x3cc]
push eax
lea ecx, [ecx + 0x10]
call fcn.00405050
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x444]
xor ecx, esp
call fcn.00547a0a
mov esp, ebp
pop ebp
ret