Function at 0x416370
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45db44
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x479938]
xor eax, esp
mov dword [esp + 0x428], eax
push ebx
push esi
push edi
mov eax, dword [0x479938]
xor eax, esp
push eax
lea eax, [esp + 0x440]
mov dword fs:[0], eax
mov eax, dword [str.GetGLInfo]
mov edx, dword [0x4639f0]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x4639ec]
mov dword [esp + 0x3a4], ecx
mov ecx, dword [0x4639f8]
mov dword [esp + 0x3b0], ecx
mov dword [esp + 0x3a0], eax
mov eax, dword [0x4639f4]
xor ebx, ebx
cmp dword [0x47aea8], ebx
mov ecx, 0x20
mov esi, str._OpenGLInfo_Vendor___N_A__Renderer___N_A__Version___N_A_____n
lea edi, [esp + 0x3b4]
mov dword [esp + 0x3a8], edx
mov dword [esp + 0x3ac], eax
rep movsd dword es:[edi], dword [esi]
jne 0x416482
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x7f05
push ebx
mov dword [0x47aea8], eax
mov dword [esp + 0x64], 0x20
mov dword [esp + 0x68], 0x4113e0
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], eax
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push ebx
mov dword [esp + 0x78], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
lea edx, [esp + 0x5c]
push edx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], str.OpenGL
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x416858
mov ecx, dword [0x47aea8]
push ebx
push ecx
push ebx
push ebx
push 0x64
push 0x64
push ebx
push ebx
push 0x6cf0000
lea edx, [esp + 0x3c4]
push edx
push str.OpenGL
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
cmp edi, ebx
jne 0x4164e9
lea eax, [esp + 0x3b4]
lea edx, [eax + 2]
jmp 0x4164c0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4164c0
mov ecx, dword [esp + 0x14]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x3b8]
push eax
add ecx, 8
call fcn.004011f0
jmp 0x41686c
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x30], esi
je 0x41656a
xor eax, eax
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
push esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov word [esp + 0x3c], 0x28
mov word [esp + 0x3e], 1
mov dword [esp + 0x40], 0x25
call dword [sym.imp.GDI32.dll_ChoosePixelFormat]
mov ebx, eax
test ebx, ebx
jne 0x416551
mov ebx, 1
lea eax, [esp + 0x34]
push eax
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetPixelFormat]
test eax, eax
jne 0x41657e
push esi
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
lea ecx, [esp + 0x3b4]
push ecx
jmp 0x416860
lea edx, [esp + 0x34]
push edx
push 0x28
push ebx
push esi
call dword [sym.imp.GDI32.dll_DescribePixelFormat]
cmp byte [esp + 0x3d], 0
push esi
je 0x41684a
call dword [sym.imp.OPENGL32.dll_wglCreateContext]
test eax, eax
mov dword [esp + 0x28], eax
je 0x416849
push eax
push esi
call dword [sym.imp.OPENGL32.dll_wglMakeCurrent]
test eax, eax
je 0x416849
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.OPENGL32.dll_glGetString]
push 0x1f00
call esi
push 0x1f01
mov ebx, eax
call esi
push 0x1f02
mov dword [esp + 0x1c], eax
call esi
push ebx
lea ecx, [esp + 0x190]
mov esi, eax
call fcn.00411b30
mov ecx, dword [esp + 0x18c]
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x44c], 0
call fcn.00401130
mov edx, dword [esp + 0x18]
push edx
lea ecx, [esp + 0x298]
mov byte [esp + 0x44c], 1
call fcn.00411b30
mov eax, dword [esp + 0x294]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x44c], 2
call fcn.00401130
push esi
lea ecx, [esp + 0x88]
mov byte [esp + 0x44c], 3
call fcn.00411b30
mov ecx, dword [esp + 0x84]
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x44c], 4
call fcn.00401130
mov esi, dword [esp + 0x14]
add esi, 8
mov bl, 5
push str._OpenGLInfo_Vendor___
mov ecx, esi
mov byte [esp + 0x44c], bl
call fcn.0040d210
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.0041e6c0
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x458], 6
call fcn.0041e690
add esp, 0x10
push eax
mov ecx, esi
mov byte [esp + 0x44c], 7
call fcn.00402e90
lea ecx, [esp + 0x18]
call fcn.00403460
lea ecx, [esp + 0x14]
mov byte [esp + 0x448], bl
call fcn.00403460
push str.__Renderer___
mov ecx, esi
call fcn.0040d250
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.0041e6c0
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x458], 8
call fcn.0041e690
add esp, 0x10
push eax
mov ecx, esi
mov byte [esp + 0x44c], 9
call fcn.00402e90
lea ecx, [esp + 0x18]
call fcn.00403460
lea ecx, [esp + 0x14]
mov byte [esp + 0x448], bl
call fcn.00403460
push str.__Version___
mov ecx, esi
call fcn.0040d250
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.0041e6c0
push eax
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x458], 0xa
call fcn.0041e690
add esp, 0x10
push eax
mov ecx, esi
mov byte [esp + 0x44c], 0xb
call fcn.00402e90
lea ecx, [esp + 0x14]
call fcn.00403460
lea ecx, [esp + 0x2c]
mov byte [esp + 0x448], bl
call fcn.00403460
push str._____n
mov ecx, esi
call fcn.0040d250
call dword [sym.imp.OPENGL32.dll_glGetError]
test eax, eax
je 0x4167b3
lea edx, [esp + 0x3b4]
push edx
mov ecx, esi
call fcn.0040d210
push 0
push 0
call dword [sym.imp.OPENGL32.dll_wglMakeCurrent]
mov eax, dword [esp + 0x30]
push eax
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.OPENGL32.dll_wglDeleteContext]
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
lea ecx, [esp + 0x24]
call fcn.00403460
mov eax, dword [esp + 0x84]
lea edx, [esp + 0x88]
cmp eax, edx
je 0x4167ff
push eax
call fcn.00443223
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.00403460
mov eax, dword [esp + 0x294]
lea ecx, [esp + 0x298]
cmp eax, ecx
je 0x416823
push eax
call fcn.00443223
add esp, 4
lea ecx, [esp + 0x20]
call fcn.00403460
mov eax, dword [esp + 0x18c]
lea edx, [esp + 0x190]
cmp eax, edx
je 0x41686c
push eax
call fcn.00443223
add esp, 4
jmp 0x41686c
push esi
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
lea eax, [esp + 0x3b4]
push eax
mov ecx, dword [esp + 0x18]
add ecx, 8
call fcn.0040d210
mov ecx, dword [esp + 0x440]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.00442241
mov esp, ebp
pop ebp
ret