Function at 0x469080
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x91a418]
sub esp, 0x38
push ebx
push ebp
push esi
xor esi, esi
cmp eax, esi
push edi
jne 0x46912a
xor eax, eax
mov ecx, 0xa
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov eax, dword [0xc36fa0]
mov dword [esp + 0x24], eax
mov eax, dword [0x9670ac]
push 1
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push esi
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 0x11
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], str.Quake_3:_Arena
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x469111
push str.GLW_CreateWindow:_could_not_register_window_class
push esi
call dword [0xc37ae4]
add esp, 8
push str....registered_window_class_n
push esi
mov dword [0x91a418], 1
call dword [0xc37ae0]
add esp, 8
cmp dword [0x9670a8], esi
jne 0x4692ad
mov edi, dword [esp + 0x5c]
cmp edi, esi
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jne 0x46919b
mov edx, dword [esp + 0x4c]
push edx
push str.3dfxvgl
call fcn.0042d0d0
add esp, 8
test eax, eax
je 0x469193
push esi
push 0x10c80000
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], 0x10c80000
call dword [sym.imp.USER32.dll_AdjustWindowRect]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
jmp 0x4691ab
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x54], 8
mov dword [esp + 0x50], 0x90080000
sub ecx, dword [esp + 0x10]
mov ebx, ecx
sub eax, dword [esp + 0x14]
cmp edi, esi
mov ebp, eax
jne 0x469235
mov ecx, dword [esp + 0x4c]
push ecx
push str.3dfxvgl
call fcn.0042d0d0
add esp, 8
test eax, eax
je 0x469235
push esi
push 0x4dd190
push str.vid_xpos
call dword [0xc37b00]
push esi
push 0x4dd190
push str.vid_ypos
mov edi, eax
call dword [0xc37b00]
mov esi, dword [edi + 0x20]
mov edi, dword [eax + 0x20]
add esp, 0x18
test esi, esi
jge 0x469204
xor esi, esi
test edi, edi
jge 0x46920a
xor edi, edi
mov eax, dword [0xc36fbc]
cmp ebx, eax
jge 0x469237
mov ecx, dword [0xc36fc0]
cmp ebp, ecx
jge 0x469237
lea edx, [esi + ebx]
cmp edx, eax
jle 0x469228
sub eax, ebx
mov esi, eax
lea eax, [edi + ebp]
cmp eax, ecx
jle 0x469237
sub ecx, ebp
mov edi, ecx
jmp 0x469237
xor edi, edi
mov ecx, dword [0x9670ac]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
push 0
push ecx
push 0
push 0
push ebp
push ebx
push edi
push esi
push edx
push str.Quake_3:_Arena
push str.Quake_3:_Arena
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [0x9670a8], eax
jne 0x46927f
push str.GLW_CreateWindow_____Couldnt_create_window
push eax
call dword [0xc37ae4]
mov eax, dword [0x9670a8]
add esp, 8
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x9670a8]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push ebp
push ebx
push edi
push esi
push str....created_window__d__d___dx_d__n
push 0
call dword [0xc37ae0]
add esp, 0x18
xor esi, esi
jmp 0x4692bc
push str....window_already_present__CreateWindowEx_skipped_n
push esi
call dword [0xc37ae0]
add esp, 8
mov edi, dword [esp + 0x58]
push str.Initializing_OpenGL_driver_n
push esi
call dword [0xc37ae0]
mov eax, dword [0xc36fa4]
add esp, 8
cmp eax, esi
jne 0x469316
push str....getting_DC:
push esi
call dword [0xc37ae0]
mov edx, dword [0x9670a8]
add esp, 8
push edx
call dword [sym.imp.USER32.dll_GetDC]
cmp eax, esi
mov dword [0xc36fa4], eax
jne 0x469307
push str.failed_n
jmp 0x4693fc
push str.succeeded_n
push esi
call dword [0xc37ae0]
add esp, 8
cmp edi, esi
jne 0x469320
mov edi, dword [0xc36fb8]
mov eax, dword [0xc64664]
mov ebx, dword [eax + 0x20]
cmp ebx, esi
jne 0x46933b
xor ebx, ebx
cmp edi, 0x10
setle bl
dec ebx
and ebx, 8
add ebx, 0x10
cmp ebx, 0x18
mov ecx, dword [0xc646d4]
mov ebp, dword [ecx + 0x20]
jge 0x46934b
xor ebp, ebp
cmp dword [0xc36fb4], esi
jne 0x469459
mov edx, dword [0xc646a0]
mov eax, dword [edx + 0x20]
push eax
push ebp
push ebx
push edi
push 0x91a3e8
call fcn.004694b0
push 0x91a3e8
call fcn.00469580
add esp, 0x18
cmp eax, esi
je 0x469430
cmp eax, 2
jne 0x469390
push str....failed_hard_n
push eax
jmp 0x4693fd
mov ecx, dword [0xc619f4]
mov eax, dword [0xc36fb8]
cmp dword [ecx + 0x20], eax
jne 0x4693ad
cmp ebp, esi
jne 0x4693ad
mov edx, dword [0xc36fa4]
push edx
jmp 0x4693e5
cmp edi, eax
jle 0x4693b3
mov edi, eax
mov ecx, dword [0xc646a0]
mov edx, dword [ecx + 0x20]
push edx
push esi
push ebx
push edi
push 0x91a3e8
call fcn.004694b0
push 0x91a3e8
call fcn.00469580
add esp, 0x18
test eax, eax
je 0x469430
mov eax, dword [0xc36fa4]
cmp eax, esi
je 0x4693f7
push eax
mov eax, dword [0x9670a8]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov dword [0xc36fa4], esi
push str....failed_to_find_an_appropriate_PIXELFORMAT_n
push esi
call dword [0xc37ae0]
mov edx, dword [0x9670a8]
add esp, 8
push esi
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x9670a8]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
mov dword [0x9670a8], esi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x38
ret
test byte [0x91a3ec], 2
jne 0x469459
mov ecx, dword [0xc646a0]
cmp dword [ecx + 0x20], esi
je 0x469459
push str....failed_to_select_stereo_pixel_format_n
push esi
call dword [0xc37ae0]
add esp, 8
mov dword [0xc6465c], esi
mov ecx, dword [0x91a400]
xor edx, edx
mov dl, byte [0x91a3f1]
xor eax, eax
mov al, byte [0x91a3ff]
and ecx, 0xff
mov dword [0xc64630], ecx
mov ecx, dword [0x9670a8]
push ecx
mov dword [0xc64628], edx
mov dword [0xc6462c], eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [0x9670a8]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x38
ret