Function at 0x490b80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1ac
mov eax, dword [esp + 0x1c4]
mov dword [esp + 0x2c], 0
mov eax, dword [eax + 0x28]
test eax, eax
je 0x490baa
mov eax, dword [eax + 0x238]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c0]
mov eax, dword [eax + 0x2a4]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetDC]
sub esp, 4
test eax, eax
mov ecx, dword [esp + 0x1c0]
mov dword [ecx + 0x234], eax
je 0x4915a0
mov edi, dword [0x6904d0]
test edi, edi
je 0x4917fe
lea edx, [esp + 0x34]
mov dword [esp + 0x100], 0x2000
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp + 0x14], edx
lea edx, [esp + 0x100]
mov dword [esp], eax
mov dword [esp + 0x10], edx
call dword [0x6904ac]
sub esp, 0x18
test eax, eax
je 0x49111f
mov esi, dword [0x6904c4]
mov dword [esp + 0x60], 0x2010
mov dword [esp + 0x64], 0x2001
mov dword [esp + 0x68], 0x2013
mov dword [esp + 0x6c], 0x2003
mov dword [esp + 0x70], 0x2015
test esi, esi
mov dword [esp + 0x74], 0x2016
mov dword [esp + 0x78], 0x2017
mov dword [esp + 0x7c], 0x2018
mov dword [esp + 0x80], 0x2019
mov dword [esp + 0x84], 0x201a
mov dword [esp + 0x88], 0x201b
mov dword [esp + 0x8c], 0x201c
mov dword [esp + 0x90], 0x2022
mov dword [esp + 0x94], 0x2023
mov dword [esp + 0x98], 0x201d
mov dword [esp + 0x9c], 0x201e
mov dword [esp + 0xa0], 0x201f
mov dword [esp + 0xa4], 0x2020
mov dword [esp + 0xa8], 0x2021
mov dword [esp + 0xac], 0x2024
mov dword [esp + 0xb0], 0x2012
mov dword [esp + 0xb4], 0x2011
je 0x4915c3
mov ecx, dword [esp + 0x1c4]
mov dword [esp + 0xb8], 0x2042
mov eax, 0x18
mov edi, 0x17
cmp dword [ecx], 0x30001
je 0x4915e0
mov edx, dword [0x6904c0]
test edx, edx
jne 0x491636
mov eax, dword [esp + 0x34]
mov dword [esp + 4], 0x44
mov dword [esp], eax
xor ebx, ebx
call sub.msvcrt.dll_calloc
lea ebp, [edi*4]
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
mov edi, ebx
cmp edi, dword [esp + 0x34]
jge 0x490e45
imul esi, dword [esp + 0x24], 0x44
mov ebx, dword [0x6904d0]
mov eax, dword [esp + 0x1c0]
add edi, 1
add esi, dword [esp + 0x28]
test ebx, ebx
mov eax, dword [eax + 0x234]
je 0x4914c1
lea ecx, [esp + 0x100]
lea ebx, [esp + 0x60]
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ecx
call dword [0x6904ac]
sub esp, 0x18
test eax, eax
je 0x491607
mov eax, dword [esp + 0x20]
test eax, eax
je 0x490e27
cmp dword [esp + 0x60], 0x2010
je 0x491591
mov eax, 4
jmp 0x490e23
lea edx, [eax + 4]
cmp dword [esp + edx + 0x5c], 0x2010
je 0x491142
mov eax, edx
cmp eax, ebp
jne 0x490e10
mov dword [esp + 4], str.WGL:_Unknown_pixel_format_attribute_requested
mov dword [esp], 0x10008
call fcn.004870e0
cmp edi, dword [esp + 0x34]
jl 0x490d87
mov eax, dword [esp + 0x24]
test eax, eax
je 0x491645
mov eax, dword [esp + 0x24]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c8]
mov dword [esp], eax
call fcn.0047e230
test eax, eax
je 0x491851
mov ebx, dword [eax + 0x40]
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sub.msvcrt.dll_free
test ebx, ebx
je 0x491665
mov eax, dword [esp + 0x1c0]
lea esi, [esp + 0x60]
mov dword [esp + 8], 0x28
mov dword [esp + 4], ebx
mov dword [esp + 0xc], esi
mov eax, dword [eax + 0x234]
mov dword [esp], eax
call dword [sym.imp.GDI32.dll_DescribePixelFormat]
sub esp, 0x10
test eax, eax
je 0x49175f
mov eax, dword [esp + 0x1c0]
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov eax, dword [eax + 0x234]
mov dword [esp], eax
call dword [sym.imp.GDI32.dll_SetPixelFormat]
sub esp, 0xc
test eax, eax
je 0x49182d
mov eax, dword [esp + 0x1c4]
cmp dword [eax], 0x30001
je 0x491892
mov ebp, dword [0x6904d4]
test ebp, ebp
je 0x491674
mov edi, dword [0x6904d8]
test edi, edi
je 0x491674
mov esi, dword [0x6904dc]
test esi, esi
je 0x491674
mov eax, dword [esp + 0x1c0]
xor ecx, ecx
mov ebx, 4
mov esi, dword [eax + 0x234]
mov eax, dword [esp + 0x1c4]
mov edx, dword [eax + 0x14]
test edx, edx
je 0x490f4f
or ecx, 1
mov edx, dword [eax + 0x20]
test edx, edx
je 0x4919a2
mov eax, dword [0x6904e0]
test eax, eax
je 0x4919a2
cmp edx, 0x31001
je 0x491aa7
xor eax, eax
cmp edx, 0x31002
jne 0x490f98
mov dword [esp + 0x100], 0x8256
mov dword [esp + 0x104], 0x8252
mov eax, 2
lea edx, [eax + 1]
or ecx, 4
mov edi, dword [esp + 0x1c4]
mov edi, dword [edi + 0x24]
test edi, edi
je 0x490fe6
mov ebp, dword [0x6904e8]
test ebp, ebp
je 0x490fe6
cmp edi, 0x35002
je 0x491a22
cmp edi, 0x35001
jne 0x490fe6
mov dword [esp + eax*4 + 0x100], 0x2097
mov dword [esp + edx*4 + 0x100], 0x2098
lea edx, [eax + 3]
add eax, 2
mov edi, dword [esp + 0x1c4]
mov ebp, dword [edi + 0x18]
test ebp, ebp
je 0x49101a
mov ebp, dword [0x6904e4]
test ebp, ebp
je 0x49101a
mov dword [esp + eax*4 + 0x100], 0x31b3
mov dword [esp + edx*4 + 0x100], 1
lea edx, [eax + 3]
add eax, 2
mov ebp, dword [edi + 8]
mov edi, dword [edi + 0xc]
cmp ebp, 1
je 0x4919f4
mov dword [esp + eax*4 + 0x100], 0x2091
mov dword [esp + edx*4 + 0x100], ebp
lea edx, [eax + 5]
mov dword [esp + eax*4 + 0x108], 0x2092
mov dword [esp + eax*4 + 0x10c], edi
add eax, 4
test ecx, ecx
je 0x49106f
mov dword [esp + eax*4 + 0x100], 0x2094
mov dword [esp + edx*4 + 0x100], ecx
lea edx, [eax + 3]
add eax, 2
test ebx, ebx
je 0x49108b
mov dword [esp + eax*4 + 0x100], 0x9126
mov dword [esp + edx*4 + 0x100], ebx
lea edx, [eax + 3]
add eax, 2
mov dword [esp + eax*4 + 0x100], 0
lea eax, [esp + 0x100]
mov dword [esp + edx*4 + 0x100], 0
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
call dword [0x6904b8]
sub esp, 0xc
test eax, eax
mov ecx, dword [esp + 0x1c0]
mov dword [ecx + 0x238], eax
je 0x491a5a
mov eax, dword [esp + 0x1c0]
mov edx, 1
mov dword [eax + 0x21c], 0x490370
mov dword [eax + 0x220], 0x490260
mov dword [eax + 0x224], 0x4901b0
mov dword [eax + 0x228], 0x490160
mov dword [eax + 0x22c], 0x490330
mov dword [eax + 0x230], 0x490130
jmp 0x491135
mov dword [esp + 4], str.WGL:_Failed_to_retrieve_pixel_format_attribute
mov dword [esp], 0x10008
call fcn.004870e0
xor edx, edx
add esp, 0x1ac
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
lea ecx, [esp + 0x100]
add eax, ecx
mov eax, dword [eax]
test eax, eax
je 0x490d7d
xor eax, eax
cmp dword [ebx + eax], 0x2001
je 0x491174
add eax, 4
cmp ebp, eax
je 0x490e27
cmp dword [ebx + eax], 0x2001
jne 0x491160
mov eax, dword [esp + eax + 0x100]
test eax, eax
je 0x490d7d
xor eax, eax
cmp dword [ebx + eax], 0x2013
je 0x4911a4
nop
add eax, 4
cmp eax, ebp
je 0x490e27
cmp dword [ebx + eax], 0x2013
jne 0x491190
cmp dword [esp + eax + 0x100], 0x202b
jne 0x490d7d
xor eax, eax
mov esi, esi
lea edi, [edi]
cmp dword [ebx + eax], 0x2003
je 0x49168f
add eax, 4
cmp eax, ebp
jne 0x4911c0
mov dword [esp + 4], str.WGL:_Unknown_pixel_format_attribute_requested
mov dword [esp], 0x10008
call fcn.004870e0
xor eax, eax
lea esi, [esi]
cmp dword [ebx + eax], 0x2015
je 0x4916a5
add eax, 4
cmp eax, ebp
jne 0x4911f0
mov dword [esp + 4], str.WGL:_Unknown_pixel_format_attribute_requested
mov dword [esp], 0x10008
call fcn.004870e0
xor eax, eax
mov dword [esi], eax
xor eax, eax
nop
cmp dword [ebx + eax], 0x2017
je 0x491753
add eax, 4
cmp ebp, eax
jne 0x491220
mov dword [esp + 4], str.WGL:_Unknown_pixel_format_attribute_requested
mov dword [esp], 0x10008
call fcn.004870e0
xor eax, eax
mov dword [esi + 4], eax
xor eax, eax
nop
cmp dword [ebx + eax], 0x2019
je 0x491747
add eax, 4
cmp ebp, eax
jne 0x491250
mov dword [esp + 4], str.WGL:_Unknown_pixel_format_attribute_requested
mov dword [esp], 0x10008
call fcn.004870e0
xor eax, eax
mov dword [esi + 8], eax
xor eax, eax
nop
cmp dword [ebx + eax], 0x201b
je 0x49173b
add eax, 4
cmp eax, ebp
jne 0x491280
mov dword [esp + 4], str.WGL:_Unknown_pixel_format_attribute_requested
mov dword [esp], 0x10008
call fcn.004870e0
xor eax, eax
mov dword [esi + 0xc], eax
xor eax, eax
nop
cmp dword [ebx + eax], 0x2022
je 0x49172f
add eax, 4
cmp eax, ebp
jne 0x4912b0
mov dword [esp + 4], str.WGL:_Unknown_pixel_format_attribute_requested
mov dword [esp], 0x10008
call fcn.004870e0
xor eax, eax
mov dword [esi + 0x10], eax
xor eax, eax
nop
cmp dword [ebx + eax], 0x2023
je 0x491723
add eax, 4
cmp eax, ebp
jne 0x4912e0
mov dword [esp + 4], str.WGL:_Unknown_pixel_format_attribute_requested
mov dword [esp], 0x10008
call fcn.004870e0
xor eax, eax
mov dword [esi + 0x14], eax
xor eax, eax
nop
cmp dword [ebx + eax], 0x201e
je 0x491717
add eax, 4
cmp ebp, eax
jne 0x491310
mov dword [esp + 4], str.WGL:_Unknown_pixel_format_attribute_requested
mov dword [esp], 0x10008
call fcn.004870e0
xor eax, eax
mov dword [esi + 0x18], eax
xor eax, eax
nop
cmp dword [ebx + eax], 0x201f
je 0x49170b
add eax, 4
cmp ebp, eax
jne 0x491340
mov dword [esp + 4], str.WGL:_Unknown_pixel_format_attribute_requested
mov dword [esp], 0x10008
call fcn.004870e0
xor eax, eax
mov dword [esi + 0x1c], eax
xor eax, eax
nop
cmp dword [ebx + eax], 0x2020
je 0x4916e4
add eax, 4
cmp eax, ebp
jne 0x491370
mov dword [esp + 4], str.WGL:_Unknown_pixel_format_attribute_requested
mov dword [esp], 0x10008
call fcn.004870e0
xor eax, eax
mov dword [esi + 0x20], eax
xor eax, eax
nop
cmp dword [ebx + eax], 0x2021
je 0x4916d8
add eax, 4
cmp eax, ebp
jne 0x4913a0
mov dword [esp + 4], str.WGL:_Unknown_pixel_format_attribute_requested
mov dword [esp], 0x10008
call fcn.004870e0
xor eax, eax
mov dword [esi + 0x24], eax
xor eax, eax
nop
cmp dword [ebx + eax], 0x2024
je 0x4916cc
add eax, 4
cmp eax, ebp
jne 0x4913d0
mov dword [esp + 4], str.WGL:_Unknown_pixel_format_attribute_requested
mov dword [esp], 0x10008
call fcn.004870e0
xor eax, eax
mov dword [esi + 0x28], eax
xor eax, eax
nop
cmp dword [ebx + eax], 0x2012
je 0x4916b1
add eax, 4
cmp eax, ebp
jne 0x491400
mov dword [esp + 4], str.WGL:_Unknown_pixel_format_attribute_requested
mov dword [esp], 0x10008
call fcn.004870e0
xor eax, eax
lea esi, [esi]
cmp dword [ebx + eax], 0x2011
je 0x4916f0
add eax, 4
cmp eax, ebp
jne 0x491430
mov dword [esp + 4], str.WGL:_Unknown_pixel_format_attribute_requested
mov dword [esp], 0x10008
call fcn.004870e0
mov eax, dword [0x6904c4]
test eax, eax
jne 0x4917cd
mov eax, dword [esp + 0x1c4]
cmp dword [eax], 0x30001
je 0x491782
mov eax, dword [0x6904c0]
test eax, eax
je 0x491584
xor eax, eax
jmp 0x49149b
add eax, 4
cmp eax, ebp
je 0x4917b4
cmp dword [ebx + eax], 0x309d
jne 0x491490
cmp dword [esp + eax + 0x100], 0x3089
jne 0x491584
mov dword [esi + 0x34], 1
jmp 0x491584
lea edx, [esp + 0x38]
mov dword [esp + 8], 0x28
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [esp + 0xc], edx
call dword [sym.imp.GDI32.dll_DescribePixelFormat]
sub esp, 0x10
test eax, eax
je 0x491865
mov eax, dword [esp + 0x3c]
mov edx, eax
and edx, 0x24
cmp edx, 0x24
jne 0x490d7d
mov edx, eax
and edx, 0x1040
cmp edx, 0x40
je 0x490d7d
cmp byte [esp + 0x40], 0
jne 0x490d7d
movzx edx, byte [esp + 0x42]
test al, 2
mov dword [esi], edx
movzx edx, byte [esp + 0x44]
mov dword [esi + 4], edx
movzx edx, byte [esp + 0x46]
mov dword [esi + 8], edx
movzx edx, byte [esp + 0x48]
mov dword [esi + 0xc], edx
movzx edx, byte [esp + 0x4f]
mov dword [esi + 0x10], edx
movzx edx, byte [esp + 0x50]
mov dword [esi + 0x14], edx
movzx edx, byte [esp + 0x4b]
mov dword [esi + 0x18], edx
movzx edx, byte [esp + 0x4c]
mov dword [esi + 0x1c], edx
movzx edx, byte [esp + 0x4d]
mov dword [esi + 0x20], edx
movzx edx, byte [esp + 0x4e]
mov dword [esi + 0x24], edx
movzx edx, byte [esp + 0x51]
mov dword [esi + 0x28], edx
je 0x491579
mov dword [esi + 0x2c], 1
test al, 1
je 0x491584
mov dword [esi + 0x38], 1
mov dword [esi + 0x40], edi
add dword [esp + 0x24], 1
jmp 0x490d7d
lea eax, [esp + 0x100]
jmp 0x49114b
mov dword [esp + 4], str.WGL:_Failed_to_retrieve_DC_for_window
mov dword [esp], 0x10008
call fcn.0047f1d0
add esp, 0x1ac
xor edx, edx
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x1c4]
mov eax, 0x17
mov edi, 0x16
cmp dword [ecx], 0x30001
jne 0x490d40
mov ebx, dword [0x6904c8]
test ebx, ebx
jne 0x4915f8
mov ecx, dword [0x6904cc]
test ecx, ecx
je 0x490d4e
mov dword [esp + edi*4 + 0x60], 0x20a9
mov edi, eax
jmp 0x490d4e
mov dword [esp + 4], str.WGL:_Failed_to_retrieve_pixel_format_attributes
mov dword [esp], 0x10008
call fcn.004870e0
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sub.msvcrt.dll_free
add esp, 0x1ac
xor edx, edx
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
mov dword [esp + edi*4 + 0x60], 0x309d
mov edi, eax
jmp 0x490d4e
mov dword [esp + 4], str.WGL:_The_driver_does_not_appear_to_support_OpenGL
mov dword [esp], 0x10006
call fcn.0047f1d0
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sub.msvcrt.dll_free
add esp, 0x1ac
xor edx, edx
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.WGL:_OpenGL_ES_requested_but_WGL_ARB_create_context_es2_profile_is_unavailable
mov dword [esp], 0x10006
call fcn.0047f1d0
xor edx, edx
jmp 0x491135
cmp dword [esp + eax + 0x100], 0x2025
je 0x490d7d
jmp 0x4911e8
mov eax, dword [esp + eax + 0x100]
jmp 0x49121a
mov ecx, dword [esp + eax + 0x100]
test ecx, ecx
je 0x491428
mov dword [esi + 0x2c], 1
jmp 0x491428
mov eax, dword [esp + eax + 0x100]
jmp 0x4913fa
mov eax, dword [esp + eax + 0x100]
jmp 0x4913ca
mov eax, dword [esp + eax + 0x100]
jmp 0x49139a
mov edx, dword [esp + eax + 0x100]
test edx, edx
je 0x491458
mov dword [esi + 0x38], 1
jmp 0x491458
mov eax, dword [esp + eax + 0x100]
jmp 0x49136a
mov eax, dword [esp + eax + 0x100]
jmp 0x49133a
mov eax, dword [esp + eax + 0x100]
jmp 0x49130a
mov eax, dword [esp + eax + 0x100]
jmp 0x4912da
mov eax, dword [esp + eax + 0x100]
jmp 0x4912aa
mov eax, dword [esp + eax + 0x100]
jmp 0x49127a
mov eax, dword [esp + eax + 0x100]
jmp 0x49124a
mov dword [esp + 4], str.WGL:_Failed_to_retrieve_PFD_for_selected_pixel_format
mov dword [esp], 0x10008
call fcn.004870e0
add esp, 0x1ac
xor edx, edx
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x6904c8]
test eax, eax
jne 0x491798
mov eax, dword [0x6904cc]
test eax, eax
je 0x491584
xor eax, eax
lea esi, [esi]
cmp dword [ebx + eax], 0x20a9
je 0x49193f
add eax, 4
cmp ebp, eax
jne 0x4917a0
mov dword [esp + 4], str.WGL:_Unknown_pixel_format_attribute_requested
mov dword [esp], 0x10008
call fcn.004870e0
jmp 0x491584
xor eax, eax
nop
cmp dword [ebx + eax], 0x2042
je 0x491848
add eax, 4
cmp eax, ebp
jne 0x4917d0
mov dword [esp + 4], str.WGL:_Unknown_pixel_format_attribute_requested
mov dword [esp], 0x10008
call fcn.004870e0
xor eax, eax
mov dword [esi + 0x30], eax
jmp 0x491465
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x28
xor edi, edi
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.GDI32.dll_DescribePixelFormat]
sub esp, 0x10
mov dword [esp + 0x34], eax
jmp 0x490d52
mov dword [esp + 4], str.WGL:_Failed_to_set_selected_pixel_format
mov dword [esp], 0x10008
call fcn.004870e0
xor edx, edx
jmp 0x491135
mov eax, dword [esp + eax + 0x100]
jmp 0x4917f6
mov dword [esp + 4], str.WGL:_Failed_to_find_a_suitable_pixel_format
mov dword [esp], 0x10009
jmp 0x491654
mov dword [esp + 4], str.WGL:_Failed_to_describe_pixel_format
mov dword [esp], 0x10008
mov dword [esp + 0x20], ebx
call fcn.004870e0
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov edx, dword [esp + 0x20]
jmp 0x491135
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x491953
mov edx, dword [0x6904d4]
test edx, edx
je 0x491981
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x491a43
mov edx, dword [0x6904d8]
test edx, edx
je 0x491a01
mov ebx, dword [0x6904d4]
mov esi, dword [esp + 0x1c0]
test ebx, ebx
mov esi, dword [esi + 0x234]
jne 0x4919c9
mov dword [esp], esi
call dword [0x69048c]
sub esp, 4
test eax, eax
mov ecx, dword [esp + 0x1c0]
mov dword [ecx + 0x238], eax
je 0x4919ae
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x4910d5
mov dword [esp + 4], eax
mov dword [esp], ecx
call dword [0x6904a4]
sub esp, 8
test eax, eax
jne 0x4910d5
mov dword [esp + 4], str.WGL:_Failed_to_enable_sharing_with_specified_OpenGL_context
mov dword [esp], 0x10008
call fcn.004870e0
xor edx, edx
jmp 0x491135
mov eax, dword [esp + eax + 0x100]
test eax, eax
jne 0x4914b5
jmp 0x491584
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x4918b6
mov eax, dword [esp + 0x1c0]
mov esi, dword [eax + 0x234]
mov eax, dword [0x6904d4]
test eax, eax
je 0x4918df
xor ecx, ecx
xor ebx, ebx
jmp 0x490f3e
mov dword [esp + 4], str.WGL:_A_forward_compatible_OpenGL_context_requested_but_WGL_ARB_create_context_is_unavailable
mov dword [esp], 0x10007
mov dword [esp + 0x20], edx
call fcn.0047f1d0
mov edx, dword [esp + 0x20]
jmp 0x491135
mov edx, 1
xor eax, eax
jmp 0x490f9e
mov dword [esp + 4], str.WGL:_Failed_to_create_OpenGL_context
mov dword [esp], 0x10007
call fcn.004870e0
xor edx, edx
jmp 0x491135
cmp ecx, 1
mov ebx, 1
sbb ecx, ecx
not ecx
and ecx, 2
cmp eax, 0x32001
je 0x490f3e
cmp eax, 0x32002
jne 0x49197a
mov ebx, 2
jmp 0x490f3e
test edi, edi
je 0x491053
jmp 0x491029
mov dword [esp + 4], str.WGL:_OpenGL_profile_requested_but_WGL_ARB_create_context_profile_is_unavailable
mov dword [esp], 0x10007
mov dword [esp + 0x20], edx
call fcn.0047f1d0
mov edx, dword [esp + 0x20]
jmp 0x491135
mov dword [esp + eax*4 + 0x100], 0x2097
mov dword [esp + edx*4 + 0x100], 0
lea edx, [eax + 3]
add eax, 2
jmp 0x490fe6
mov eax, dword [esp + 0x1c0]
mov ecx, 2
mov esi, dword [eax + 0x234]
jmp 0x49197a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xc0072095
je 0x491b18
cmp eax, 0xc0072096
je 0x491afd
cmp eax, 0xc0072054
je 0x491ae2
mov eax, dword [esp + 0x1c4]
cmp dword [eax], 0x30001
je 0x491ac7
mov dword [esp + 4], str.WGL:_Failed_to_create_OpenGL_ES_context
mov dword [esp], 0x10007
call fcn.0047f1d0
xor edx, edx
jmp 0x491135
mov dword [esp + 0x100], 0x8256
mov dword [esp + 0x104], 0x8261
mov eax, 2
jmp 0x490f98
mov dword [esp + 4], str.WGL:_Failed_to_create_OpenGL_context
mov dword [esp], 0x10007
call fcn.0047f1d0
xor edx, edx
jmp 0x491135
mov dword [esp + 4], str.WGL:_The_share_context_is_not_compatible_with_the_requested_context
mov dword [esp], 0x10004
call fcn.0047f1d0
xor edx, edx
jmp 0x491135
mov dword [esp + 4], str.WGL:_Driver_does_not_support_the_requested_OpenGL_profile
mov dword [esp], 0x10007
call fcn.0047f1d0
xor edx, edx
jmp 0x491135
mov ecx, dword [esp + 0x1c4]
mov eax, dword [esp + 0x1c4]
cmp dword [ecx], 0x30001
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
je 0x491b57
mov dword [esp + 4], str.WGL:_Driver_does_not_support_OpenGL_ES_version__i._i
mov dword [esp], 0x10007
call fcn.0047f1d0
xor edx, edx
jmp 0x491135
mov dword [esp + 4], str.WGL:_Driver_does_not_support_OpenGL_version__i._i
mov dword [esp], 0x10007
call fcn.0047f1d0
xor edx, edx
jmp 0x491135