Function at 0x448590
Capabilities:
Check os version
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
mov ebx, 1
push ebx
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4485ce
push str.Couldnt_get_OS_info
call fcn.004475a0
add esp, 4
cmp dword [ebp - 0x90], 4
jae 0x4485e4
push str.Quake2_requires_windows_version_4_or_greater
call fcn.004475a0
add esp, 4
mov eax, dword [ebp - 0x84]
test eax, eax
jne 0x4485fd
push str.Quake2_doesnt_run_on_Win32s
call fcn.004475a0
add esp, 4
jmp 0x448607
cmp eax, ebx
jne 0x448607
mov dword [0x8cc5d8], ebx
cmp dword [ebp - 0x90], 5
jb 0x448616
mov dword [0x8971d0], ebx
mov ecx, dword [0x47b1f4]
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x448804
mov eax, dword [0x8c72c0]
push esi
push edi
xor edi, edi
cmp eax, ebx
mov esi, ebx
jle 0x4486d9
lea ebx, [ebx]
mov edx, dword [esi*4 + 0x8cc360]
push str._hideconsole
push edx
call fcn.004524a0
add esp, 8
test eax, eax
jne 0x44865d
mov edi, ebx
jmp 0x4486cb
mov eax, dword [esi*4 + 0x8cc360]
push str._oldconsole
push eax
call fcn.004524a0
add esp, 8
test eax, eax
je 0x44872a
mov ecx, dword [esi*4 + 0x8cc360]
push str._HCHILD
push ecx
call fcn.00455a93
add esp, 8
test eax, eax
je 0x4486c5
mov edx, dword [esi*4 + 0x8cc360]
push str._HPARENT
push edx
call fcn.00455a93
add esp, 8
test eax, eax
je 0x4486c5
mov eax, dword [esi*4 + 0x8cc360]
push str._HFILE
push eax
call fcn.00455a93
add esp, 8
test eax, eax
jne 0x4486cb
mov dword [0x8c66e0], ebx
mov eax, dword [0x8c72c0]
inc esi
cmp esi, eax
jl 0x448640
mov eax, dword [0x8c66e0]
test eax, eax
je 0x448732
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
jne 0x4486f9
push str.Couldnt_create_dedicated_server_console
call fcn.004475a0
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff6
call esi
push 0xfffffffffffffff5
mov dword [0x8c62cc], eax
call esi
mov ecx, dword [0x8c72c0]
push 0x8cc360
push ecx
mov dword [0x8c62d0], eax
call fcn.0041e930
add esp, 8
jmp 0x448802
mov dword [0x8c66e0], ebx
jmp 0x4486e2
mov edx, dword [0x8cc560]
push 0
push 0x448400
push 0
push 0x67
push edx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
test eax, eax
mov dword [0x8c72b8], eax
jne 0x44876c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Couldnt_create_dedicated_server_window._GetLastError_____d
call fcn.004475a0
mov eax, dword [0x8c72b8]
add esp, 8
test edi, edi
je 0x44877e
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x8c72b8]
push 0
push ebx
push 0xcf
push 0x3f1
push eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0x2000
push 0x8cc5e0
push 0x8c8300
call fcn.0041b9f0
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
add esp, 0xc
push 0
push 0x32
mov dword [0x8c8300], ebx
call esi
push eax
push 0x31
call esi
push eax
mov eax, dword [0x8cc560]
push ebx
push 0x68
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
test eax, eax
je 0x4487e9
mov ecx, dword [0x8c72b8]
push eax
push 0
push 0x80
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [0x8c72b8]
push 0x3e9
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
push 0
push 0x461fa8
push str.win_priority
call fcn.0041fed0
mov dword [0x8cc5dc], eax
mov dword [eax + 0x1c], 0x447930
mov eax, dword [0x8cc5dc]
mov ecx, dword [eax + 4]
push ecx
push 0x461fa8
push eax
call dword [eax + 0x1c]
add esp, 0x18
pop ebx
mov esp, ebp
pop ebp
ret