Function at 0x539740
Capabilities:
Terminate process

Disassembly:
sub esp, 0xc
mov eax, dword [0x7dff58]
test eax, eax
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], 1
jne 0x539832
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 0x539770
sub eax, edx
push str.wglGetExtensionsStringARB
mov ebp, eax
mov edi, 0x5ba7cb
xor ebx, ebx
call dword [sym.imp.OPENGL32.dll_wglGetProcAddress]
mov esi, eax
test esi, esi
je 0x5397ac
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 0x5397a1
sub eax, edx
mov ebx, eax
lea eax, [ebx + ebp + 3]
push eax
call fcn.0055f41c
add esp, 4
test eax, eax
mov dword [0x7dff58], eax
jne 0x5397e0
push 0xad
push str.Externglh_glh_extensions.h
push str.Error_allocating_memory_in_file__s__line__d_n
call fcn.005621e7
add esp, 0xc
push 0xffffffffffffffff
call fcn.005613f0
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 0x5397e8
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 0x539800
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 0x539810
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 0x539847
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
push eax
call fcn.00562e8c
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 0x539860
sub eax, edx
mov esi, eax
mov eax, dword [0x7dff54]
test eax, eax
jne 0x539882
add esi, 2
push esi
call fcn.0055f41c
add esp, 4
jmp 0x5398a1
mov ecx, eax
lea ebx, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x539887
sub ecx, ebx
cmp esi, ecx
jbe 0x5398a6
add esi, 2
push esi
push eax
call fcn.00562035
add esp, 8
mov dword [0x7dff54], eax
test eax, eax
jne 0x5398c8
push 0xbf
push str.Externglh_glh_extensions.h
push str.Error_allocating_memory_in_file__s__line__d_n
call fcn.005621e7
add esp, 0xc
push 0xffffffffffffffff
call fcn.005613f0
mov byte [eax], 0
mov ecx, edi
lea ecx, [ecx]
mov al, byte [ecx]
test al, al
mov ebx, ecx
je 0x5398ec
cmp al, 0x20
je 0x5398e4
cmp al, 9
je 0x5398e4
cmp al, 0xa
jne 0x5398ec
mov al, byte [ebx + 1]
inc ebx
test al, al
jne 0x5398d8
mov al, byte [ebx]
test al, al
je 0x5399d5
test al, al
mov ebp, ebx
je 0x539917
lea esp, [esp]
mov al, byte [ebp]
cmp al, 0x20
je 0x539917
cmp al, 9
je 0x539917
cmp al, 0xa
je 0x539917
mov al, byte [ebp + 1]
inc ebp
test al, al
jne 0x539900
mov cl, byte [ebp]
mov edx, dword [0x7dff58]
push edx
mov byte [esp + 0x17], cl
mov byte [ebp], 0
call fcn.00539520
add esp, 4
test eax, eax
je 0x539942
push ebx
call fcn.00534bd0
add esp, 4
test eax, eax
jne 0x53999d
mov eax, ebx
mov edx, ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x539946
sub eax, edx
mov esi, edx
mov edx, dword [0x7dff54]
mov edi, edx
dec edi
lea ebx, [ebx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x539960
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 0x539980
mov ax, word [0x5bb63c]
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 0x5398d0
cmp al, 0x20
je 0x5398d0
cmp al, 9
je 0x5398d0
cmp al, 0xa
je 0x5398d0
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x5399b0
jmp 0x5398d0
push edi
call fcn.0055f42e
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret