Function at 0x4790a0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0xa8f500]
sub esp, 0x38
push ebx
push ebp
push esi
xor esi, esi
cmp eax, esi
push edi
jne 0x47914a
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x20]
push 1
rep stosd dword es:[edi], eax
mov eax, dword [0x113b220]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], eax
mov eax, dword [0xadee2c]
push eax
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]
mov dword [esp + 0x38], eax
push ecx
mov dword [esp + 0x40], 0x11
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], str.Wolfenstein
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x479131
push str.GLW_CreateWindow:_could_not_register_window_class
push esi
call dword [0x1207004]
add esp, 8
push str....registered_window_class_n
push esi
mov dword [0xa8f500], 1
call dword [0x1207000]
add esp, 8
cmp dword [0xadee28], esi
jne 0x4792cf
mov edi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
cmp edi, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jne 0x4791bb
mov edx, dword [esp + 0x4c]
push edx
push str.3dfxvgl
call fcn.0042d1e0
add esp, 8
test eax, eax
je 0x4791b3
push esi
lea eax, [esp + 0x14]
push 0x10c80000
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 0x4791cb
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
mov ecx, dword [esp + 0x14]
sub eax, ecx
cmp edi, esi
mov ebp, eax
jne 0x479257
mov ecx, dword [esp + 0x4c]
push ecx
push str.3dfxvgl
call fcn.0042d1e0
add esp, 8
test eax, eax
je 0x479257
push esi
push 0x507a60
push str.vid_xpos
call dword [0x1207028]
push esi
push 0x507a60
push str.vid_ypos
mov edi, eax
call dword [0x1207028]
mov esi, dword [edi + 0x20]
mov edi, dword [eax + 0x20]
add esp, 0x18
test esi, esi
jge 0x479226
xor esi, esi
test edi, edi
jge 0x47922c
xor edi, edi
mov eax, dword [0x113b23c]
cmp ebx, eax
jge 0x479259
mov ecx, dword [0x113b240]
cmp ebp, ecx
jge 0x479259
lea edx, [esi + ebx]
cmp edx, eax
jle 0x47924a
sub eax, ebx
mov esi, eax
lea eax, [edi + ebp]
cmp eax, ecx
jle 0x479259
sub ecx, ebp
mov edi, ecx
jmp 0x479259
xor edi, edi
mov ecx, dword [0xadee2c]
mov edx, dword [esp + 0x50]
push 0
push ecx
mov eax, dword [esp + 0x5c]
push 0
push 0
push ebp
push ebx
push edi
push esi
push edx
push str.Wolfenstein
push str.Wolfenstein
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [0xadee28], eax
jne 0x4792a1
push str.GLW_CreateWindow_____Couldnt_create_window
push eax
call dword [0x1207004]
mov eax, dword [0xadee28]
add esp, 8
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0xadee28]
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 [0x1207000]
add esp, 0x18
xor esi, esi
jmp 0x4792de
push str....window_already_present__CreateWindowEx_skipped_n
push esi
call dword [0x1207000]
add esp, 8
mov edi, dword [esp + 0x58]
push str.Initializing_OpenGL_driver_n
push esi
call dword [0x1207000]
mov eax, dword [0x113b224]
add esp, 8
cmp eax, esi
jne 0x479338
push str....getting_DC:
push esi
call dword [0x1207000]
mov edx, dword [0xadee28]
add esp, 8
push edx
call dword [sym.imp.USER32.dll_GetDC]
cmp eax, esi
mov dword [0x113b224], eax
jne 0x479329
push str.failed_n
jmp 0x47941e
push str.succeeded_n
push esi
call dword [0x1207000]
add esp, 8
cmp edi, esi
jne 0x479342
mov edi, dword [0x113b238]
mov eax, dword [0x1224248]
mov ebx, dword [eax + 0x20]
cmp ebx, esi
jne 0x47935d
xor ebx, ebx
cmp edi, 0x10
setle bl
dec ebx
and ebx, 8
add ebx, 0x10
mov ecx, dword [0x12242e0]
cmp ebx, 0x18
mov ebp, dword [ecx + 0x20]
jge 0x47936d
xor ebp, ebp
cmp dword [0x113b234], esi
jne 0x47947b
mov edx, dword [0x12242ac]
mov eax, dword [edx + 0x20]
push eax
push ebp
push ebx
push edi
push 0xa8f4d0
call fcn.004794d0
push 0xa8f4d0
call fcn.004795a0
add esp, 0x18
cmp eax, esi
je 0x479452
cmp eax, 2
jne 0x4793b2
push str....failed_hard_n
push eax
jmp 0x47941f
mov ecx, dword [0x12225c0]
mov eax, dword [0x113b238]
cmp dword [ecx + 0x20], eax
jne 0x4793cf
cmp ebp, esi
jne 0x4793cf
mov edx, dword [0x113b224]
push edx
jmp 0x479407
cmp edi, eax
jle 0x4793d5
mov edi, eax
mov ecx, dword [0x12242ac]
mov edx, dword [ecx + 0x20]
push edx
push esi
push ebx
push edi
push 0xa8f4d0
call fcn.004794d0
push 0xa8f4d0
call fcn.004795a0
add esp, 0x18
test eax, eax
je 0x479452
mov eax, dword [0x113b224]
cmp eax, esi
je 0x479419
push eax
mov eax, dword [0xadee28]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov dword [0x113b224], esi
push str....failed_to_find_an_appropriate_PIXELFORMAT_n
push esi
call dword [0x1207000]
mov edx, dword [0xadee28]
add esp, 8
push esi
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0xadee28]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0xadee28], esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x38
ret
test byte [0xa8f4d4], 2
jne 0x47947b
mov ecx, dword [0x12242ac]
cmp dword [ecx + 0x20], esi
je 0x47947b
push str....failed_to_select_stereo_pixel_format_n
push esi
call dword [0x1207000]
add esp, 8
mov dword [0x1224238], esi
mov ecx, dword [0xa8f4e8]
xor edx, edx
mov dl, byte [0xa8f4d9]
and ecx, 0xff
xor eax, eax
mov dword [0x12241f0], ecx
mov ecx, dword [0xadee28]
mov al, byte [0xa8f4e7]
push ecx
mov dword [0x12241e8], edx
mov dword [0x12241ec], eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [0xadee28]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x38
ret