Function at 0x408b5c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
call sub.kernel32.dll_GetModuleHandleA_2
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x44]
mov edx, 0x28
call fcn.00404758
mov dword [ebp - 0x44], 0x23
mov dword [ebp - 0x40], 0x408774
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x2c], eax
mov eax, 0x408f0c
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x44]
push eax
call sub.user32.dll_RegisterClassA
test ax, ax
jne 0x408bda
push 0x10
push 0x408f14
push 0x408f1c
push 0
call sub.user32.dll_MessageBoxA_1
mov byte [ebp - 0xa], 0
jmp 0x408f01
cmp byte [ebp - 9], 0
je 0x408c3d
lea eax, [ebp - 0xe0]
mov edx, 0x9c
call fcn.00404758
mov word [ebp - 0xbc], 0x9c
mov eax, dword [ebp - 4]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0xb8], 0x1c0000
push 4
lea eax, [ebp - 0xe0]
push eax
call sub.user32.dll_ChangeDisplaySettingsA
inc eax
jne 0x408c3d
push 0x10
push 0x408f14
push 0x408f44
push 0
call sub.user32.dll_MessageBoxA_1
mov byte [ebp - 9], 0
cmp byte [ebp - 9], 0
je 0x408c5a
mov dword [ebp - 0x10], 0x86000000
mov dword [ebp - 0x14], 0x40000
push 0
call sub.user32.dll_ShowCursor
jmp 0x408c68
mov dword [ebp - 0x10], 0x6cf0000
mov dword [ebp - 0x14], 0x40100
push 0
mov eax, dword [ebp - 0x1c]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
push 0x408f64
push 0x408f0c
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_CreateWindowExA
mov dword [0x40b858], eax
cmp dword [0x40b858], 0
jne 0x408cc7
mov al, byte [ebp - 9]
call fcn.00408998
push 0x10
push 0x408f14
push 0x408f94
push 0
call sub.user32.dll_MessageBoxA_1
mov byte [ebp - 0xa], 0
jmp 0x408f01
mov eax, dword [0x40b858]
push eax
call sub.user32.dll_GetDC
mov dword [0x40b85c], eax
cmp dword [0x40b85c], 0
jne 0x408d04
mov al, byte [ebp - 9]
call fcn.00408998
push 0x10
push 0x408f14
push 0x408fb0
push 0
call sub.user32.dll_MessageBoxA_1
mov byte [ebp - 0xa], 0
jmp 0x408f01
mov word [ebp - 0x108], 0x28
mov word [ebp - 0x106], 1
mov dword [ebp - 0x104], 0x25
mov byte [ebp - 0x100], 0
mov al, byte [ebp + 8]
mov byte [ebp - 0xff], al
mov byte [ebp - 0xfe], 0
mov byte [ebp - 0xfd], 0
mov byte [ebp - 0xfc], 0
mov byte [ebp - 0xfb], 0
mov byte [ebp - 0xfa], 0
mov byte [ebp - 0xf9], 0
mov byte [ebp - 0xf8], 0
mov byte [ebp - 0xf7], 0
mov byte [ebp - 0xf6], 0
mov byte [ebp - 0xf5], 0
mov byte [ebp - 0xf4], 0
mov byte [ebp - 0xf3], 0
mov byte [ebp - 0xf2], 0
mov byte [ebp - 0xf1], 0x10
mov byte [ebp - 0xf0], 0
mov byte [ebp - 0xef], 0
mov byte [ebp - 0xee], 0
mov byte [ebp - 0xed], 0
xor eax, eax
mov dword [ebp - 0xec], eax
xor eax, eax
mov dword [ebp - 0xe8], eax
xor eax, eax
mov dword [ebp - 0xe4], eax
lea eax, [ebp - 0x108]
push eax
mov eax, dword [0x40b85c]
push eax
call sub.gdi32.dll_ChoosePixelFormat
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x408e05
mov al, byte [ebp - 9]
call fcn.00408998
push 0x10
push 0x408f14
push 0x408fd0
push 0
call sub.user32.dll_MessageBoxA_1
mov byte [ebp - 0xa], 0
jmp 0x408f01
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [0x40b85c]
push eax
call sub.gdi32.dll_SetPixelFormat
test eax, eax
jne 0x408e43
mov al, byte [ebp - 9]
call fcn.00408998
push 0x10
push 0x408f14
push 0x408ff8
push 0
call sub.user32.dll_MessageBoxA_1
mov byte [ebp - 0xa], 0
jmp 0x408f01
mov eax, dword [0x40b85c]
push eax
call sub.opengl32.dll_wglCreateContext
mov dword [0x40b860], eax
cmp dword [0x40b860], 0
jne 0x408e80
mov al, byte [ebp - 9]
call fcn.00408998
push 0x10
push 0x408f14
push 0x409018
push 0
call sub.user32.dll_MessageBoxA_1
mov byte [ebp - 0xa], 0
jmp 0x408f01
mov eax, dword [0x40b860]
push eax
mov eax, dword [0x40b85c]
push eax
call sub.opengl32.dll_wglMakeCurrent
test eax, eax
jne 0x408eb6
mov al, byte [ebp - 9]
call fcn.00408998
push 0x10
push 0x408f14
push 0x409048
push 0
call sub.user32.dll_MessageBoxA_1
mov byte [ebp - 0xa], 0
jmp 0x408f01
push 0
push 0x3e8
push 1
mov eax, dword [0x40b858]
push eax
call sub.user32.dll_SetTimer
push 5
mov eax, dword [0x40b858]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x40b858]
push eax
call sub.user32.dll_SetForegroundWindow
mov eax, dword [0x40b858]
push eax
call sub.user32.dll_SetFocus
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004086d0
call fcn.00408580
mov byte [ebp - 0xa], 1
mov al, byte [ebp - 0xa]
mov esp, ebp
pop ebp
ret 4