Function at 0x521100
Capabilities:
Terminate process

Disassembly:
sub esp, 0xc
mov eax, dword [0x768420]
test eax, eax
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], 1
jne 0x5211f2
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 0x521130
sub eax, edx
push str.wglGetExtensionsStringARB
mov ebp, eax
mov edi, 0x5955cf
xor ebx, ebx
call dword [sym.imp.OPENGL32.dll_wglGetProcAddress]
mov esi, eax
test esi, esi
je 0x52116c
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 0x521161
sub eax, edx
mov ebx, eax
lea eax, [ebx + ebp + 3]
push eax
call fcn.00540bd8
add esp, 4
test eax, eax
mov dword [0x768420], eax
jne 0x5211a0
push 0xad
push str.Externglh_glh_extensions.h
push str.Error_allocating_memory_in_file__s__line__d_n
call fcn.00541bc7
add esp, 0xc
push 0xffffffffffffffff
call fcn.00540e59
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 0x5211a8
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 0x5211c0
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 0x5211d0
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 0x521207
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
push eax
call fcn.005428dc
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 0x521220
sub eax, edx
mov esi, eax
mov eax, dword [0x76841c]
test eax, eax
jne 0x521242
add esi, 2
push esi
call fcn.00540bd8
add esp, 4
jmp 0x521261
mov ecx, eax
lea ebx, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x521247
sub ecx, ebx
cmp esi, ecx
jbe 0x521266
add esi, 2
push esi
push eax
call fcn.00541a15
add esp, 8
mov dword [0x76841c], eax
test eax, eax
jne 0x521288
push 0xbf
push str.Externglh_glh_extensions.h
push str.Error_allocating_memory_in_file__s__line__d_n
call fcn.00541bc7
add esp, 0xc
push 0xffffffffffffffff
call fcn.00540e59
mov byte [eax], 0
mov ecx, edi
lea ecx, [ecx]
mov al, byte [ecx]
test al, al
mov ebx, ecx
je 0x5212ac
cmp al, 0x20
je 0x5212a4
cmp al, 9
je 0x5212a4
cmp al, 0xa
jne 0x5212ac
mov al, byte [ebx + 1]
inc ebx
test al, al
jne 0x521298
mov al, byte [ebx]
test al, al
je 0x521395
test al, al
mov ebp, ebx
je 0x5212d7
lea esp, [esp]
mov al, byte [ebp]
cmp al, 0x20
je 0x5212d7
cmp al, 9
je 0x5212d7
cmp al, 0xa
je 0x5212d7
mov al, byte [ebp + 1]
inc ebp
test al, al
jne 0x5212c0
mov cl, byte [ebp]
mov edx, dword [0x768420]
push edx
mov byte [esp + 0x17], cl
mov byte [ebp], 0
call fcn.00520ee0
add esp, 4
test eax, eax
je 0x521302
push ebx
call fcn.0051c590
add esp, 4
test eax, eax
jne 0x52135d
mov eax, ebx
mov edx, ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x521306
sub eax, edx
mov esi, edx
mov edx, dword [0x76841c]
mov edi, edx
dec edi
lea ebx, [ebx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x521320
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 0x521340
mov ax, word [0x5a9608]
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 0x521290
cmp al, 0x20
je 0x521290
cmp al, 9
je 0x521290
cmp al, 0xa
je 0x521290
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x521370
jmp 0x521290
push edi
call fcn.0053f8fd
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret