Function at 0x401db4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
sub esp, 0xb0
mov dword [ebp - 0xc], 0xcf0000
mov dword [ebp - 0x10], 0x40000
lea edi, [ebp - 0x78]
cld
mov edx, 0
mov eax, 0xa
mov ecx, eax
mov eax, edx
rep stosd dword es:[edi], eax
mov word [ebp - 0x78], 0x28
mov word [ebp - 0x76], 1
mov dword [ebp - 0x74], 0x25
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov byte [ebp - 0x6f], al
mov byte [ebp - 0x61], 0x10
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x24], 1
jne 0x401ef5
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sym.ChangeScreenResolution_int__int__int_
test eax, eax
jne 0x401ed7
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], 0x440060
mov dword [esp + 4], str.Mode_Switch_Failed._nRunning_In_Windowed_Mode.
mov dword [esp], 0
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [eax + 0x24], 0
jmp 0x401f19
mov dword [esp], 0
call sub.USER32.dll_ShowCursor
sub esp, 4
mov dword [ebp - 0xc], 0x80000000
lea eax, [ebp - 0x10]
or dword [eax], 8
jmp 0x401f19
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x78]
mov dword [esp], eax
call sub.USER32.dll_AdjustWindowRectEx
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x6c]
sub eax, edx
mov dword [esp + 0x1c], eax
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x70]
sub eax, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.USER32.dll_CreateWindowExA
sub esp, 0x30
mov dword [ebx + 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
jne 0x401fab
mov dword [ebp - 0x80], 0
jmp 0x402227
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.USER32.dll_GetDC
sub esp, 4
mov dword [ebx + 8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
jne 0x401ff2
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.USER32.dll_DestroyWindow
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov dword [ebp - 0x80], 0
jmp 0x402227
lea eax, [ebp - 0x48]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.GDI32.dll_ChoosePixelFormat
sub esp, 8
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
jne 0x40205f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.USER32.dll_ReleaseDC
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.USER32.dll_DestroyWindow
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov dword [ebp - 0x80], 0
jmp 0x402227
lea eax, [ebp - 0x48]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x7c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.GDI32.dll_SetPixelFormat
sub esp, 0xc
test eax, eax
jne 0x4020ce
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.USER32.dll_ReleaseDC
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.USER32.dll_DestroyWindow
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov dword [ebp - 0x80], 0
jmp 0x402227
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.OPENGL32.DLL_wglCreateContext
sub esp, 4
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
jne 0x40213a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.USER32.dll_ReleaseDC
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.USER32.dll_DestroyWindow
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov dword [ebp - 0x80], 0
jmp 0x402227
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.OPENGL32.DLL_wglMakeCurrent
sub esp, 8
test eax, eax
jne 0x4021bd
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.OPENGL32.DLL_wglDeleteContext
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.USER32.dll_ReleaseDC
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.USER32.dll_DestroyWindow
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov dword [ebp - 0x80], 0
jmp 0x402227
mov dword [esp + 4], 1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [eax + 0x28], 1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sym.ReshapeGL_int__int_
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp], eax
call sym._memset
mov ebx, dword [ebp + 8]
call sub.KERNEL32.dll_GetTickCount
mov dword [ebx + 0x2c], eax
mov dword [ebp - 0x80], 1
mov eax, dword [ebp - 0x80]
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret