Function at 0x401318
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov dword [ebp - 0x10], 0
mov eax, 0
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x44], 0x30
mov dword [ebp - 0x40], 0x20
mov dword [ebp - 0x3c], dbg.WindowProc@16
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
call sym._LoadIconA_8
sub esp, 8
mov dword [ebp - 0x2c], eax
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
call sym._LoadCursorA_8
sub esp, 8
mov dword [ebp - 0x28], eax
mov dword [esp], 4
call sym._GetStockObject_4
sub esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], str.GLSample
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
call sym._LoadIconA_8
sub esp, 8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x44]
mov dword [esp], eax
call sym._RegisterClassExA_4
sub esp, 4
test ax, ax
jne 0x4013e4
mov eax, 0
jmp 0x401674
mov dword [esp + 0x2c], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x100
mov dword [esp + 0x18], 0x100
mov dword [esp + 0x14], 0x80000000
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0xcf0000
mov dword [esp + 8], str.OpenGL_Sample
mov dword [esp + 4], str.GLSample
mov dword [esp], 0
call sym._CreateWindowExA_48
sub esp, 0x30
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._ShowWindow_8
sub esp, 8
lea eax, [ebp - 0x4c]
mov dword [esp + 8], eax
lea eax, [ebp - 0x48]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dbg.EnableOpenGL
jmp 0x401640
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea eax, [ebp - 0x68]
mov dword [esp], eax
call sym._PeekMessageA_20
sub esp, 0x14
test eax, eax
je 0x4014e7
mov eax, dword [ebp - 0x64]
cmp eax, 0x12
jne 0x4014c6
mov dword [ebp - 0x10], 1
jmp 0x401640
lea eax, [ebp - 0x68]
mov dword [esp], eax
call sym._TranslateMessage_4
sub esp, 4
lea eax, [ebp - 0x68]
mov dword [esp], eax
call sym._DispatchMessageA_4
sub esp, 4
jmp 0x401640
mov eax, 0
mov dword [esp + 0xc], eax
mov eax, 0
mov dword [esp + 8], eax
mov eax, 0
mov dword [esp + 4], eax
mov eax, 0
mov dword [esp], eax
call sym._glClearColor_16
sub esp, 0x10
mov dword [esp], 0x4000
call sym._glClear_4
sub esp, 4
call sym._glPushMatrix_0
mov eax, 0x3f800000
mov dword [esp + 0xc], eax
mov eax, 0
mov dword [esp + 8], eax
mov eax, 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._glRotatef_16
sub esp, 0x10
mov dword [esp], 4
call sym._glBegin_4
sub esp, 4
mov eax, 0
mov dword [esp + 8], eax
mov eax, 0
mov dword [esp + 4], eax
mov eax, 0x3f800000
mov dword [esp], eax
call sym._glColor3f_12
sub esp, 0xc
mov eax, 0x3f800000
mov dword [esp + 4], eax
mov eax, 0
mov dword [esp], eax
call sym._glVertex2f_8
sub esp, 8
mov eax, 0
mov dword [esp + 8], eax
mov eax, 0x3f800000
mov dword [esp + 4], eax
mov eax, 0
mov dword [esp], eax
call sym._glColor3f_12
sub esp, 0xc
mov eax, 0xbf000000
mov dword [esp + 4], eax
mov eax, 0x3f5eb852
mov dword [esp], eax
call sym._glVertex2f_8
sub esp, 8
mov eax, 0x3f800000
mov dword [esp + 8], eax
mov eax, 0
mov dword [esp + 4], eax
mov eax, 0
mov dword [esp], eax
call sym._glColor3f_12
sub esp, 0xc
mov eax, 0xbf000000
mov dword [esp + 4], eax
mov eax, 0xbf5eb852
mov dword [esp], eax
call sym._glVertex2f_8
sub esp, 8
call sym._glEnd_0
call sym._glPopMatrix_0
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
call sym._SwapBuffers_4
sub esp, 4
fld dword [ebp - 0xc]
fld1
faddp st(1)
fstp dword [ebp - 0xc]
mov dword [esp], 1
call sym._Sleep_4
sub esp, 4
cmp dword [ebp - 0x10], 0
je 0x401480
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dbg.DisableOpenGL
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._DestroyWindow_4
sub esp, 4
mov eax, dword [ebp - 0x60]
leave
ret 0x10