Function at 0x4a1e30
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x8032f0]
sub esp, 0x38
push ebx
push ebp
push esi
xor esi, esi
cmp eax, esi
push edi
jne 0x4a1eda
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x20]
push 1
rep stosd dword es:[edi], eax
mov eax, dword [0x1313be0]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], eax
mov eax, dword [0xcbb62c]
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.Medal_of_Honor_Allied_Assault
call dword [sym.imp.USER32.DLL_RegisterClassA]
test ax, ax
jne 0x4a1ec1
push str.GLW_CreateWindow:_could_not_register_window_class
push esi
call dword [0x1313c44]
add esp, 8
push str....registered_window_class_n
push esi
mov dword [0x8032f0], 1
call dword [0x1313c40]
add esp, 8
cmp dword [0xcbb628], esi
jne 0x4a205f
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 0x4a1f4b
mov edx, dword [esp + 0x4c]
push edx
push str.3dfxvgl
call fcn.004655b0
add esp, 8
test eax, eax
je 0x4a1f43
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 0x4a1f5b
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 0x4a1fe7
mov ecx, dword [esp + 0x4c]
push ecx
push str.3dfxvgl
call fcn.004655b0
add esp, 8
test eax, eax
je 0x4a1fe7
push esi
push 0x56e6c4
push str.vid_xpos
call dword [0x1313c6c]
push esi
push 0x56e6c4
push str.vid_ypos
mov edi, eax
call dword [0x1313c6c]
mov esi, dword [edi + 0x20]
mov edi, dword [eax + 0x20]
add esp, 0x18
test esi, esi
jge 0x4a1fb6
xor esi, esi
test edi, edi
jge 0x4a1fbc
xor edi, edi
mov eax, dword [0x1313bfc]
cmp ebx, eax
jge 0x4a1fe9
mov ecx, dword [0x1313c00]
cmp ebp, ecx
jge 0x4a1fe9
lea edx, [esi + ebx]
cmp edx, eax
jle 0x4a1fda
sub eax, ebx
mov esi, eax
lea eax, [edi + ebp]
cmp eax, ecx
jle 0x4a1fe9
sub ecx, ebp
mov edi, ecx
jmp 0x4a1fe9
xor edi, edi
mov ecx, dword [0xcbb62c]
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.Medal_of_Honor_Allied_Assault
push str.Medal_of_Honor_Allied_Assault
push eax
call dword [sym.imp.USER32.DLL_CreateWindowExA]
test eax, eax
mov dword [0xcbb628], eax
jne 0x4a2031
push str.GLW_CreateWindow_____Couldnt_create_window
push eax
call dword [0x1313c44]
mov eax, dword [0xcbb628]
add esp, 8
push 5
push eax
call dword [sym.imp.USER32.DLL_ShowWindow]
mov ecx, dword [0xcbb628]
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 [0x1313c40]
add esp, 0x18
xor esi, esi
jmp 0x4a206e
push str....window_already_present__CreateWindowEx_skipped_n
push esi
call dword [0x1313c40]
add esp, 8
mov edi, dword [esp + 0x58]
push str.Initializing_OpenGL_driver_n
push esi
call dword [0x1313c40]
mov eax, dword [0x1313be4]
add esp, 8
cmp eax, esi
jne 0x4a20c8
push str....getting_DC:
push esi
call dword [0x1313c40]
mov edx, dword [0xcbb628]
add esp, 8
push edx
call dword [sym.imp.USER32.DLL_GetDC]
cmp eax, esi
mov dword [0x1313be4], eax
jne 0x4a20b9
push str.failed_n
jmp 0x4a2176
push str.succeeded_n
push esi
call dword [0x1313c40]
add esp, 8
cmp edi, esi
jne 0x4a20d2
mov edi, dword [0x1313bf8]
mov eax, dword [0x13e6b34]
mov ebp, dword [eax + 0x20]
cmp ebp, esi
jne 0x4a20ef
xor ecx, ecx
cmp edi, 0x10
setg cl
lea ecx, [ecx*8 + 0x10]
mov ebp, ecx
mov edx, dword [0x13e6c04]
cmp ebp, 0x18
mov ebx, dword [edx + 0x20]
jge 0x4a20ff
xor ebx, ebx
cmp dword [0x1313bf4], esi
jne 0x4a220f
mov eax, dword [0x13e6bb0]
mov ecx, dword [eax + 0x20]
push ecx
push ebx
push ebp
push edi
push 0x8032c0
call fcn.004a2270
push 0x8032c0
call fcn.004a2340
add esp, 0x18
cmp eax, esi
je 0x4a21e6
cmp eax, 2
jne 0x4a2144
push str....failed_hard_n
push 3
jmp 0x4a2177
mov edx, dword [0x13e42a4]
mov eax, dword [0x1313bf8]
cmp dword [edx + 0x20], eax
jne 0x4a21aa
cmp ebx, esi
jne 0x4a21aa
mov eax, dword [0x1313be4]
mov ecx, dword [0xcbb628]
push eax
push ecx
call dword [sym.imp.USER32.DLL_ReleaseDC]
mov dword [0x1313be4], esi
push str....failed_to_find_an_appropriate_PIXELFORMAT_n
push esi
call dword [0x1313c40]
mov eax, dword [0xcbb628]
add esp, 8
push esi
push eax
call dword [sym.imp.USER32.DLL_ShowWindow]
mov ecx, dword [0xcbb628]
push ecx
call dword [sym.imp.USER32.DLL_DestroyWindow]
mov dword [0xcbb628], esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x38
ret
cmp edi, eax
jle 0x4a21b0
mov edi, eax
mov edx, dword [0x13e6bb0]
mov eax, dword [edx + 0x20]
push eax
push esi
push ebp
push edi
push 0x8032c0
call fcn.004a2270
push 0x8032c0
call fcn.004a2340
add esp, 0x18
test eax, eax
je 0x4a21e6
mov eax, dword [0x1313be4]
cmp eax, esi
je 0x4a2171
jmp 0x4a215d
test byte [0x8032c4], 2
jne 0x4a220f
mov edx, dword [0x13e6bb0]
cmp dword [edx + 0x20], esi
je 0x4a220f
push str....failed_to_select_stereo_pixel_format_n
push esi
call dword [0x1313c40]
add esp, 8
mov dword [0x13e6b1c], esi
mov edx, dword [0x8032d8]
xor eax, eax
mov al, byte [0x8032c9]
and edx, 0xff
xor ecx, ecx
mov dword [0x13e6af0], edx
mov edx, dword [0xcbb628]
mov cl, byte [0x8032d7]
push edx
mov dword [0x13e6ae8], eax
mov dword [0x13e6aec], ecx
call dword [sym.imp.USER32.DLL_SetForegroundWindow]
mov eax, dword [0xcbb628]
push eax
call dword [sym.imp.USER32.DLL_SetFocus]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x38
ret