Function at 0x4458f0
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x49d1cc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x49f778], 0
push esi
push edi
jne 0x445bf3
push str.opengl32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x49f778], eax
test eax, eax
jne 0x44595d
push str.WGL:_Failed_to_load_opengl32.dll
push 0x10008
call fcn.004424c0
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b938
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.wglCreateContext
push eax
call esi
push str.wglDeleteContext
push dword [0x49f778]
mov dword [0x49f77c], eax
call esi
push 0x477ea0
push dword [0x49f778]
mov dword [0x49f780], eax
call esi
push 0x477eb4
push dword [0x49f778]
mov dword [0x49f784], eax
call esi
push str.wglGetCurrentContext
push dword [0x49f778]
mov dword [0x49f788], eax
call esi
push str.wglMakeCurrent
push dword [0x49f778]
mov dword [0x49f78c], eax
call esi
push str.wglShareLists
push dword [0x49f778]
mov dword [0x49f790], eax
call esi
push dword [0x49e954]
mov dword [0x49f794], eax
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
xorps xmm0, xmm0
lea eax, [ebp - 0x40]
movaps xmmword [ebp - 0x40], xmm0
push eax
push eax
push edi
movaps xmmword [ebp - 0x30], xmm0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x40], 0x10028
mov dword [ebp - 0x3c], 0x25
mov word [ebp - 0x38], 0x1800
call dword [sym.imp.GDI32.dll_ChoosePixelFormat]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetPixelFormat]
test eax, eax
jne 0x445a4d
push str.WGL:_Failed_to_set_pixel_format_for_dummy_context
push 0x10008
call fcn.004424c0
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b938
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push edi
call dword [0x49f77c]
mov esi, eax
test esi, esi
jne 0x445a81
push str.WGL:_Failed_to_create_dummy_context
push 0x10008
call fcn.004424c0
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b938
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [0x49f788]
mov dword [ebp - 0x48], eax
call dword [0x49f78c]
push esi
push edi
mov dword [ebp - 0x44], eax
call dword [0x49f790]
test eax, eax
jne 0x445ad9
push str.WGL:_Failed_to_make_dummy_context_current
push 0x10008
call fcn.004424c0
add esp, 8
push dword [ebp - 0x44]
push dword [ebp - 0x48]
call dword [0x49f790]
push esi
call dword [0x49f780]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b938
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x477f80
call dword [0x49f784]
push 0x477f9c
mov dword [0x49f7a0], eax
call dword [0x49f784]
push 0x477fb8
mov dword [0x49f7a4], eax
call dword [0x49f784]
push 0x477fd4
mov dword [0x49f7a8], eax
call dword [0x49f784]
push 0x477fe8
mov dword [0x49f798], eax
call dword [0x49f784]
push 0x478008
mov dword [0x49f79c], eax
call fcn.00446550
push 0x47801c
mov dword [0x49f7b4], eax
call fcn.00446550
push 0x478038
mov dword [0x49f7b8], eax
call fcn.00446550
push 0x478054
mov dword [0x49f7bc], eax
call fcn.00446550
push 0x47806c
mov dword [0x49f7c4], eax
call fcn.00446550
push 0x47808c
mov dword [0x49f7c8], eax
call fcn.00446550
push 0x4780b0
mov dword [0x49f7cc], eax
call fcn.00446550
push 0x4780d4
mov dword [0x49f7d0], eax
call fcn.00446550
push 0x4780f4
mov dword [0x49f7d4], eax
call fcn.00446550
push 0x47810c
mov dword [0x49f7ac], eax
call fcn.00446550
push 0x478120
mov dword [0x49f7b0], eax
call fcn.00446550
push 0x478138
mov dword [0x49f7c0], eax
call fcn.00446550
add esp, 0x30
mov dword [0x49f7d8], eax
push dword [ebp - 0x44]
push dword [ebp - 0x48]
call dword [0x49f790]
push esi
call dword [0x49f780]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0045b938
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret