Function at 0x495050
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 0x49507a
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 0x495a70
mov edi, dword [0x691090]
test edi, edi
je 0x495cce
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 [0x69106c]
sub esp, 0x18
test eax, eax
je 0x4955ef
mov esi, dword [0x691084]
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 0x495a93
mov ecx, dword [esp + 0x1c4]
mov dword [esp + 0xb8], 0x2042
mov eax, 0x18
mov edi, 0x17
cmp dword [ecx], 0x30001
je 0x495ab0
mov edx, dword [0x691080]
test edx, edx
jne 0x495b06
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 0x495315
imul esi, dword [esp + 0x24], 0x44
mov ebx, dword [0x691090]
mov eax, dword [esp + 0x1c0]
add edi, 1
add esi, dword [esp + 0x28]
test ebx, ebx
mov eax, dword [eax + 0x234]
je 0x495991
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 [0x69106c]
sub esp, 0x18
test eax, eax
je 0x495ad7
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4952f7
cmp dword [esp + 0x60], 0x2010
je 0x495a61
mov eax, 4
jmp 0x4952f3
lea edx, [eax + 4]
cmp dword [esp + edx + 0x5c], 0x2010
je 0x495612
mov eax, edx
cmp eax, ebp
jne 0x4952e0
mov dword [esp + 4], str.WGL:_Unknown_pixel_format_attribute_requested
mov dword [esp], 0x10008
call fcn.0048b5b0
cmp edi, dword [esp + 0x34]
jl 0x495257
mov eax, dword [esp + 0x24]
test eax, eax
je 0x495b15
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.00482700
test eax, eax
je 0x495d21
mov ebx, dword [eax + 0x40]
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sub.msvcrt.dll_free
test ebx, ebx
je 0x495b35
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 0x495c2f
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 0x495cfd
mov eax, dword [esp + 0x1c4]
cmp dword [eax], 0x30001
je 0x495d62
mov ebp, dword [0x691094]
test ebp, ebp
je 0x495b44
mov edi, dword [0x691098]
test edi, edi
je 0x495b44
mov esi, dword [0x69109c]
test esi, esi
je 0x495b44
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 0x49541f
or ecx, 1
mov edx, dword [eax + 0x20]
test edx, edx
je 0x495e72
mov eax, dword [0x6910a0]
test eax, eax
je 0x495e72
cmp edx, 0x31001
je 0x495f77
xor eax, eax
cmp edx, 0x31002
jne 0x495468
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 0x4954b6
mov ebp, dword [0x6910a8]
test ebp, ebp
je 0x4954b6
cmp edi, 0x35002
je 0x495ef2
cmp edi, 0x35001
jne 0x4954b6
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 0x4954ea
mov ebp, dword [0x6910a4]
test ebp, ebp
je 0x4954ea
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 0x495ec4
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 0x49553f
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 0x49555b
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 [0x691078]
sub esp, 0xc
test eax, eax
mov ecx, dword [esp + 0x1c0]
mov dword [ecx + 0x238], eax
je 0x495f2a
mov eax, dword [esp + 0x1c0]
mov edx, 1
mov dword [eax + 0x21c], 0x494840
mov dword [eax + 0x220], 0x494730
mov dword [eax + 0x224], 0x494680
mov dword [eax + 0x228], 0x494630
mov dword [eax + 0x22c], 0x494800
mov dword [eax + 0x230], 0x494600
jmp 0x495605
mov dword [esp + 4], str.WGL:_Failed_to_retrieve_pixel_format_attribute
mov dword [esp], 0x10008
call fcn.0048b5b0
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 0x49524d
xor eax, eax
cmp dword [ebx + eax], 0x2001
je 0x495644
add eax, 4
cmp ebp, eax
je 0x4952f7
cmp dword [ebx + eax], 0x2001
jne 0x495630
mov eax, dword [esp + eax + 0x100]
test eax, eax
je 0x49524d
xor eax, eax
cmp dword [ebx + eax], 0x2013
je 0x495674
nop
add eax, 4
cmp eax, ebp
je 0x4952f7
cmp dword [ebx + eax], 0x2013
jne 0x495660
cmp dword [esp + eax + 0x100], 0x202b
jne 0x49524d
xor eax, eax
mov esi, esi
lea edi, [edi]
cmp dword [ebx + eax], 0x2003
je 0x495b5f
add eax, 4
cmp eax, ebp
jne 0x495690
mov dword [esp + 4], str.WGL:_Unknown_pixel_format_attribute_requested
mov dword [esp], 0x10008
call fcn.0048b5b0
xor eax, eax
lea esi, [esi]
cmp dword [ebx + eax], 0x2015
je 0x495b75
add eax, 4
cmp eax, ebp
jne 0x4956c0
mov dword [esp + 4], str.WGL:_Unknown_pixel_format_attribute_requested
mov dword [esp], 0x10008
call fcn.0048b5b0
xor eax, eax
mov dword [esi], eax
xor eax, eax
nop
cmp dword [ebx + eax], 0x2017
je 0x495c23
add eax, 4
cmp ebp, eax
jne 0x4956f0
mov dword [esp + 4], str.WGL:_Unknown_pixel_format_attribute_requested
mov dword [esp], 0x10008
call fcn.0048b5b0
xor eax, eax
mov dword [esi + 4], eax
xor eax, eax
nop
cmp dword [ebx + eax], 0x2019
je 0x495c17
add eax, 4
cmp ebp, eax
jne 0x495720
mov dword [esp + 4], str.WGL:_Unknown_pixel_format_attribute_requested
mov dword [esp], 0x10008
call fcn.0048b5b0
xor eax, eax
mov dword [esi + 8], eax
xor eax, eax
nop
cmp dword [ebx + eax], 0x201b
je 0x495c0b
add eax, 4
cmp eax, ebp
jne 0x495750
mov dword [esp + 4], str.WGL:_Unknown_pixel_format_attribute_requested
mov dword [esp], 0x10008
call fcn.0048b5b0
xor eax, eax
mov dword [esi + 0xc], eax
xor eax, eax
nop
cmp dword [ebx + eax], 0x2022
je 0x495bff
add eax, 4
cmp eax, ebp
jne 0x495780
mov dword [esp + 4], str.WGL:_Unknown_pixel_format_attribute_requested
mov dword [esp], 0x10008
call fcn.0048b5b0
xor eax, eax
mov dword [esi + 0x10], eax
xor eax, eax
nop
cmp dword [ebx + eax], 0x2023
je 0x495bf3
add eax, 4
cmp eax, ebp
jne 0x4957b0
mov dword [esp + 4], str.WGL:_Unknown_pixel_format_attribute_requested
mov dword [esp], 0x10008
call fcn.0048b5b0
xor eax, eax
mov dword [esi + 0x14], eax
xor eax, eax
nop
cmp dword [ebx + eax], 0x201e
je 0x495be7
add eax, 4
cmp ebp, eax
jne 0x4957e0
mov dword [esp + 4], str.WGL:_Unknown_pixel_format_attribute_requested
mov dword [esp], 0x10008
call fcn.0048b5b0
xor eax, eax
mov dword [esi + 0x18], eax
xor eax, eax
nop
cmp dword [ebx + eax], 0x201f
je 0x495bdb
add eax, 4
cmp ebp, eax
jne 0x495810
mov dword [esp + 4], str.WGL:_Unknown_pixel_format_attribute_requested
mov dword [esp], 0x10008
call fcn.0048b5b0
xor eax, eax
mov dword [esi + 0x1c], eax
xor eax, eax
nop
cmp dword [ebx + eax], 0x2020
je 0x495bb4
add eax, 4
cmp eax, ebp
jne 0x495840
mov dword [esp + 4], str.WGL:_Unknown_pixel_format_attribute_requested
mov dword [esp], 0x10008
call fcn.0048b5b0
xor eax, eax
mov dword [esi + 0x20], eax
xor eax, eax
nop
cmp dword [ebx + eax], 0x2021
je 0x495ba8
add eax, 4
cmp eax, ebp
jne 0x495870
mov dword [esp + 4], str.WGL:_Unknown_pixel_format_attribute_requested
mov dword [esp], 0x10008
call fcn.0048b5b0
xor eax, eax
mov dword [esi + 0x24], eax
xor eax, eax
nop
cmp dword [ebx + eax], 0x2024
je 0x495b9c
add eax, 4
cmp eax, ebp
jne 0x4958a0
mov dword [esp + 4], str.WGL:_Unknown_pixel_format_attribute_requested
mov dword [esp], 0x10008
call fcn.0048b5b0
xor eax, eax
mov dword [esi + 0x28], eax
xor eax, eax
nop
cmp dword [ebx + eax], 0x2012
je 0x495b81
add eax, 4
cmp eax, ebp
jne 0x4958d0
mov dword [esp + 4], str.WGL:_Unknown_pixel_format_attribute_requested
mov dword [esp], 0x10008
call fcn.0048b5b0
xor eax, eax
lea esi, [esi]
cmp dword [ebx + eax], 0x2011
je 0x495bc0
add eax, 4
cmp eax, ebp
jne 0x495900
mov dword [esp + 4], str.WGL:_Unknown_pixel_format_attribute_requested
mov dword [esp], 0x10008
call fcn.0048b5b0
mov eax, dword [0x691084]
test eax, eax
jne 0x495c9d
mov eax, dword [esp + 0x1c4]
cmp dword [eax], 0x30001
je 0x495c52
mov eax, dword [0x691080]
test eax, eax
je 0x495a54
xor eax, eax
jmp 0x49596b
add eax, 4
cmp eax, ebp
je 0x495c84
cmp dword [ebx + eax], 0x309d
jne 0x495960
cmp dword [esp + eax + 0x100], 0x3089
jne 0x495a54
mov dword [esi + 0x34], 1
jmp 0x495a54
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 0x495d35
mov eax, dword [esp + 0x3c]
mov edx, eax
and edx, 0x24
cmp edx, 0x24
jne 0x49524d
mov edx, eax
and edx, 0x1040
cmp edx, 0x40
je 0x49524d
cmp byte [esp + 0x40], 0
jne 0x49524d
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 0x495a49
mov dword [esi + 0x2c], 1
test al, 1
je 0x495a54
mov dword [esi + 0x38], 1
mov dword [esi + 0x40], edi
add dword [esp + 0x24], 1
jmp 0x49524d
lea eax, [esp + 0x100]
jmp 0x49561b
mov dword [esp + 4], str.WGL:_Failed_to_retrieve_DC_for_window
mov dword [esp], 0x10008
call fcn.004836a0
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 0x495210
mov ebx, dword [0x691088]
test ebx, ebx
jne 0x495ac8
mov ecx, dword [0x69108c]
test ecx, ecx
je 0x49521e
mov dword [esp + edi*4 + 0x60], 0x20a9
mov edi, eax
jmp 0x49521e
mov dword [esp + 4], str.WGL:_Failed_to_retrieve_pixel_format_attributes
mov dword [esp], 0x10008
call fcn.0048b5b0
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 0x49521e
mov dword [esp + 4], str.WGL:_The_driver_does_not_appear_to_support_OpenGL
mov dword [esp], 0x10006
call fcn.004836a0
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.004836a0
xor edx, edx
jmp 0x495605
cmp dword [esp + eax + 0x100], 0x2025
je 0x49524d
jmp 0x4956b8
mov eax, dword [esp + eax + 0x100]
jmp 0x4956ea
mov ecx, dword [esp + eax + 0x100]
test ecx, ecx
je 0x4958f8
mov dword [esi + 0x2c], 1
jmp 0x4958f8
mov eax, dword [esp + eax + 0x100]
jmp 0x4958ca
mov eax, dword [esp + eax + 0x100]
jmp 0x49589a
mov eax, dword [esp + eax + 0x100]
jmp 0x49586a
mov edx, dword [esp + eax + 0x100]
test edx, edx
je 0x495928
mov dword [esi + 0x38], 1
jmp 0x495928
mov eax, dword [esp + eax + 0x100]
jmp 0x49583a
mov eax, dword [esp + eax + 0x100]
jmp 0x49580a
mov eax, dword [esp + eax + 0x100]
jmp 0x4957da
mov eax, dword [esp + eax + 0x100]
jmp 0x4957aa
mov eax, dword [esp + eax + 0x100]
jmp 0x49577a
mov eax, dword [esp + eax + 0x100]
jmp 0x49574a
mov eax, dword [esp + eax + 0x100]
jmp 0x49571a
mov dword [esp + 4], str.WGL:_Failed_to_retrieve_PFD_for_selected_pixel_format
mov dword [esp], 0x10008
call fcn.0048b5b0
add esp, 0x1ac
xor edx, edx
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x691088]
test eax, eax
jne 0x495c68
mov eax, dword [0x69108c]
test eax, eax
je 0x495a54
xor eax, eax
lea esi, [esi]
cmp dword [ebx + eax], 0x20a9
je 0x495e0f
add eax, 4
cmp ebp, eax
jne 0x495c70
mov dword [esp + 4], str.WGL:_Unknown_pixel_format_attribute_requested
mov dword [esp], 0x10008
call fcn.0048b5b0
jmp 0x495a54
xor eax, eax
nop
cmp dword [ebx + eax], 0x2042
je 0x495d18
add eax, 4
cmp eax, ebp
jne 0x495ca0
mov dword [esp + 4], str.WGL:_Unknown_pixel_format_attribute_requested
mov dword [esp], 0x10008
call fcn.0048b5b0
xor eax, eax
mov dword [esi + 0x30], eax
jmp 0x495935
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 0x495222
mov dword [esp + 4], str.WGL:_Failed_to_set_selected_pixel_format
mov dword [esp], 0x10008
call fcn.0048b5b0
xor edx, edx
jmp 0x495605
mov eax, dword [esp + eax + 0x100]
jmp 0x495cc6
mov dword [esp + 4], str.WGL:_Failed_to_find_a_suitable_pixel_format
mov dword [esp], 0x10009
jmp 0x495b24
mov dword [esp + 4], str.WGL:_Failed_to_describe_pixel_format
mov dword [esp], 0x10008
mov dword [esp + 0x20], ebx
call fcn.0048b5b0
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov edx, dword [esp + 0x20]
jmp 0x495605
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x495e23
mov edx, dword [0x691094]
test edx, edx
je 0x495e51
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x495f13
mov edx, dword [0x691098]
test edx, edx
je 0x495ed1
mov ebx, dword [0x691094]
mov esi, dword [esp + 0x1c0]
test ebx, ebx
mov esi, dword [esi + 0x234]
jne 0x495e99
mov dword [esp], esi
call dword [0x69104c]
sub esp, 4
test eax, eax
mov ecx, dword [esp + 0x1c0]
mov dword [ecx + 0x238], eax
je 0x495e7e
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x4955a5
mov dword [esp + 4], eax
mov dword [esp], ecx
call dword [0x691064]
sub esp, 8
test eax, eax
jne 0x4955a5
mov dword [esp + 4], str.WGL:_Failed_to_enable_sharing_with_specified_OpenGL_context
mov dword [esp], 0x10008
call fcn.0048b5b0
xor edx, edx
jmp 0x495605
mov eax, dword [esp + eax + 0x100]
test eax, eax
jne 0x495985
jmp 0x495a54
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x495d86
mov eax, dword [esp + 0x1c0]
mov esi, dword [eax + 0x234]
mov eax, dword [0x691094]
test eax, eax
je 0x495daf
xor ecx, ecx
xor ebx, ebx
jmp 0x49540e
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.004836a0
mov edx, dword [esp + 0x20]
jmp 0x495605
mov edx, 1
xor eax, eax
jmp 0x49546e
mov dword [esp + 4], str.WGL:_Failed_to_create_OpenGL_context
mov dword [esp], 0x10007
call fcn.0048b5b0
xor edx, edx
jmp 0x495605
cmp ecx, 1
mov ebx, 1
sbb ecx, ecx
not ecx
and ecx, 2
cmp eax, 0x32001
je 0x49540e
cmp eax, 0x32002
jne 0x495e4a
mov ebx, 2
jmp 0x49540e
test edi, edi
je 0x495523
jmp 0x4954f9
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.004836a0
mov edx, dword [esp + 0x20]
jmp 0x495605
mov dword [esp + eax*4 + 0x100], 0x2097
mov dword [esp + edx*4 + 0x100], 0
lea edx, [eax + 3]
add eax, 2
jmp 0x4954b6
mov eax, dword [esp + 0x1c0]
mov ecx, 2
mov esi, dword [eax + 0x234]
jmp 0x495e4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xc0072095
je 0x495fe8
cmp eax, 0xc0072096
je 0x495fcd
cmp eax, 0xc0072054
je 0x495fb2
mov eax, dword [esp + 0x1c4]
cmp dword [eax], 0x30001
je 0x495f97
mov dword [esp + 4], str.WGL:_Failed_to_create_OpenGL_ES_context
mov dword [esp], 0x10007
call fcn.004836a0
xor edx, edx
jmp 0x495605
mov dword [esp + 0x100], 0x8256
mov dword [esp + 0x104], 0x8261
mov eax, 2
jmp 0x495468
mov dword [esp + 4], str.WGL:_Failed_to_create_OpenGL_context
mov dword [esp], 0x10007
call fcn.004836a0
xor edx, edx
jmp 0x495605
mov dword [esp + 4], str.WGL:_The_share_context_is_not_compatible_with_the_requested_context
mov dword [esp], 0x10004
call fcn.004836a0
xor edx, edx
jmp 0x495605
mov dword [esp + 4], str.WGL:_Driver_does_not_support_the_requested_OpenGL_profile
mov dword [esp], 0x10007
call fcn.004836a0
xor edx, edx
jmp 0x495605
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 0x496027
mov dword [esp + 4], str.WGL:_Driver_does_not_support_OpenGL_ES_version__i._i
mov dword [esp], 0x10007
call fcn.004836a0
xor edx, edx
jmp 0x495605
mov dword [esp + 4], str.WGL:_Driver_does_not_support_OpenGL_version__i._i
mov dword [esp], 0x10007
call fcn.004836a0
xor edx, edx
jmp 0x495605