Function at 0x4c6b50
Capabilities:
Terminate process

Disassembly:
sub esp, 0xc
mov eax, dword [0x6c3c10]
test eax, eax
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], 1
jne 0x4c6c42
push 0x1f03
call dword [sym.imp.OPENGL32.dll_glGetString]
mov dword [esp + 0x18], eax
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c6b80
sub eax, edx
push str.wglGetExtensionsStringARB
mov ebp, eax
mov edi, 0x5183ad
xor ebx, ebx
call dword [sym.imp.OPENGL32.dll_wglGetProcAddress]
mov esi, eax
test esi, esi
je 0x4c6bbc
call dword [sym.imp.OPENGL32.dll_wglGetCurrentDC]
push eax
call esi
mov edi, eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c6bb1
sub eax, edx
mov ebx, eax
lea eax, [ebx + ebp + 3]
push eax
call fcn.004dd758
add esp, 4
test eax, eax
mov dword [0x6c3c10], eax
jne 0x4c6bf0
push 0xad
push str.Externglh_glh_extensions.h
push str.Error_allocating_memory_in_file__s__line__d_n
call fcn.004dcb02
add esp, 0xc
push 0xffffffffffffffff
call fcn.004dd418
mov ecx, dword [esp + 0x18]
mov esi, eax
sub esi, ecx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x4c6bf8
mov ecx, edi
mov byte [eax + ebp], 0x20
mov byte [eax + ebp + 1], dl
mov esi, ecx
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4c6c10
sub ecx, esi
mov edi, eax
mov edx, ecx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4c6c20
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add eax, ebx
add eax, ebp
rep movsb byte es:[edi], byte [esi]
mov byte [eax + 1], 0x20
mov byte [eax + 2], 0
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4c6c57
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
push eax
call fcn.004df18c
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c6c70
sub eax, edx
mov esi, eax
mov eax, dword [0x6c3c0c]
test eax, eax
jne 0x4c6c92
add esi, 2
push esi
call fcn.004dd758
add esp, 4
jmp 0x4c6cb1
mov ecx, eax
lea ebx, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4c6c97
sub ecx, ebx
cmp esi, ecx
jbe 0x4c6cb6
add esi, 2
push esi
push eax
call fcn.004de313
add esp, 8
mov dword [0x6c3c0c], eax
test eax, eax
jne 0x4c6cd8
push 0xbf
push str.Externglh_glh_extensions.h
push str.Error_allocating_memory_in_file__s__line__d_n
call fcn.004dcb02
add esp, 0xc
push 0xffffffffffffffff
call fcn.004dd418
mov byte [eax], 0
mov ecx, edi
lea ecx, [ecx]
mov al, byte [ecx]
test al, al
mov ebx, ecx
je 0x4c6cfc
cmp al, 0x20
je 0x4c6cf4
cmp al, 9
je 0x4c6cf4
cmp al, 0xa
jne 0x4c6cfc
mov al, byte [ebx + 1]
inc ebx
test al, al
jne 0x4c6ce8
mov al, byte [ebx]
test al, al
je 0x4c6de5
test al, al
mov ebp, ebx
je 0x4c6d27
lea esp, [esp]
mov al, byte [ebp]
cmp al, 0x20
je 0x4c6d27
cmp al, 9
je 0x4c6d27
cmp al, 0xa
je 0x4c6d27
mov al, byte [ebp + 1]
inc ebp
test al, al
jne 0x4c6d10
mov cl, byte [ebp]
mov edx, dword [0x6c3c10]
push edx
mov byte [esp + 0x17], cl
mov byte [ebp], 0
call fcn.004c6930
add esp, 4
test eax, eax
je 0x4c6d52
push ebx
call fcn.004c1fe0
add esp, 4
test eax, eax
jne 0x4c6dad
mov eax, ebx
mov edx, ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c6d56
sub eax, edx
mov esi, edx
mov edx, dword [0x6c3c0c]
mov edi, edx
dec edi
lea ebx, [ebx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4c6d70
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
dec edx
rep movsb byte es:[edi], byte [esi]
mov edi, edx
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4c6d90
mov ax, word [0x528e84]
mov word [edi], ax
mov edi, dword [esp + 0x18]
mov dword [esp + 0x14], 0
mov cl, byte [esp + 0x13]
mov byte [ebp], cl
mov al, byte [ebx]
test al, al
mov ecx, ebx
je 0x4c6ce0
cmp al, 0x20
je 0x4c6ce0
cmp al, 9
je 0x4c6ce0
cmp al, 0xa
je 0x4c6ce0
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4c6dc0
jmp 0x4c6ce0
push edi
call fcn.004dbecd
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret