Function at 0xae5480
Capabilities:
Enumerate pe sections
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9c
mov ebx, dword [0x1a4ddb0]
test ebx, ebx
je 0xae5c94
mov edx, dword [ebp + 8]
test edx, edx
jne 0xae54a7
mov eax, dword [ebx + 0x34]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0xae54b4
mov edx, dword [ebx + 0x38]
mov dword [ebp + 0xc], edx
mov edi, dword [ebp + 0x10]
test edi, edi
je 0xae5698
mov eax, dword [ebp + 0x10]
sub eax, 8
cmp eax, 0x18
ja 0xae56be
mov esi, dword [ebp + 8]
test esi, esi
jle 0xae56d4
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0xae56d4
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], ecx
call fcn.00ae3740
cmp dword [ebp + 0x10], eax
mov esi, eax
je 0xae5c80
mov edi, dword [ebp + 0xc]
test esi, esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], eax
jle 0xae5cb7
mov eax, dword [ebp + 0x14]
and eax, 0xdfffffff
cmp esi, 9
cmovl eax, dword [ebp + 0x14]
mov dword [ebp + 0x14], eax
or eax, 1
test dword [ebp + 0x14], 0x40000000
cmove eax, dword [ebp + 0x14]
xor ecx, ecx
test al, 2
setne cl
mov dword [ebp + 0x14], eax
and eax, 0xbffffffe
test ecx, ecx
cmove eax, dword [ebp + 0x14]
mov dword [ebp - 0x54], ecx
mov dword [ebp + 0x14], eax
call fcn.00af8a10
call fcn.00af9a70
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00af96b0
mov eax, dword [0x10ee7c0]
and eax, 0xffffffef
mov dword [0x10ee7c0], eax
mov eax, dword [0x1a4ddb0]
mov edi, dword [eax + 0x13c]
test edi, edi
je 0xae55a0
mov dword [eax + 0x13c], 0
mov edx, dword [eax + 0x138]
test edx, edx
je 0xae55bc
mov dword [eax + 0x138], 0
mov dword [esp], edx
call fcn.00ae2ea0
mov eax, dword [ebx + 0x140]
test eax, eax
je 0xae55e9
mov eax, dword [eax + 4]
mov dword [esp], eax
call fcn.0108ed00
mov eax, dword [ebx + 0x140]
mov dword [esp], eax
call fcn.0108ed00
mov dword [ebx + 0x140], 0
mov eax, dword [ebx + 0x144]
test eax, eax
je 0xae5605
mov dword [esp], eax
call fcn.0108ed00
mov dword [ebx + 0x144], 0
call fcn.00ae4ff0
mov edx, dword [0x1a4e264]
test edx, edx
mov dword [ebp - 0x58], eax
mov eax, dword [0x1a4ddb0]
mov edi, dword [eax + 0x134]
je 0xae562f
mov dword [esp], edx
call fcn.00af7c20
mov eax, dword [0x1a4ddb0]
mov dword [eax + 0x134], 0
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x10], esi
mov eax, dword [ebp - 0x50]
mov esi, dword [ebp - 0x4c]
mov dword [esp + 4], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov dword [esp], ebx
call dword [ebx + 0xc]
test eax, eax
mov esi, eax
je 0xae5c40
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
mov eax, dword [esi + 8]
mov dword [esp], eax
call fcn.00af9ad0
mov eax, dword [ebp - 0x54]
test eax, eax
je 0xae56f0
test byte [esi], 2
je 0xae5c34
mov eax, dword [0x1a4ddb0]
mov dword [eax + 0x134], esi
jmp 0xae5839
mov eax, dword [ebx + 0x134]
or dword [ebp + 0x14], 0x10000000
mov eax, dword [eax + 4]
movzx eax, byte [eax + 4]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x10]
sub eax, 8
cmp eax, 0x18
jbe 0xae54ce
mov dword [esp], str.Invalid_bits_per_pixel__range_is_8...32_
call fcn.00ae6670
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.Invalid_width_or_height
call fcn.00ae6670
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x1a4ddb0]
mov edx, dword [ebp + 8]
cmp edx, dword [esi + 8]
mov dword [eax + 0x134], esi
jg 0xae570b
mov edx, dword [ebp + 0xc]
cmp edx, dword [esi + 0xc]
jle 0xae5721
mov dword [esp], str.Video_mode_smaller_than_requested
call fcn.00ae6670
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [esi + 4]
mov edx, dword [edi]
test edx, edx
je 0xae575a
movzx eax, byte [edi + 4]
mov dword [esp + 4], eax
mov eax, dword [edx + 4]
mov dword [esp], eax
call fcn.00ae1670
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov dword [esp + 0xc], edx
mov eax, dword [eax]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
call dword [ebx + 0x1c]
mov dword [ebx + 0x150], 0
mov dword [ebx + 0x154], 0
mov dword [esi + 0x18], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.00ae2530
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [esi + 4]
mov dword [esp], eax
call fcn.00ae18a0
mov dword [esp + 4], 0
mov dword [esp], esi
mov edi, eax
mov dword [esp + 8], eax
call fcn.00ae2a00
mov eax, dword [esi]
and eax, 0x40000001
cmp eax, 0x40000001
je 0xae5f75
mov edi, dword [esi]
test edi, edi
js 0xae5f96
mov ecx, dword [esi + 8]
sub ecx, dword [ebp + 8]
mov edx, dword [esi + 0xc]
sub edx, dword [ebp + 0xc]
mov eax, ecx
mov edi, dword [ebp + 0xc]
shr eax, 0x1f
lea ecx, [eax + ecx]
mov eax, edx
shr eax, 0x1f
lea edx, [eax + edx]
movzx eax, word [esi + 0x10]
sar edx, 1
mov dword [ebx + 0x154], edx
sar ecx, 1
mov dword [ebx + 0x150], ecx
imul edx, eax
mov eax, dword [esi + 4]
movzx eax, byte [eax + 5]
mov dword [esi + 0xc], edi
imul eax, ecx
mov ecx, dword [ebp + 8]
lea eax, [edx + eax]
mov dword [esi + 0x18], eax
mov dword [esi + 8], ecx
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.00ae2530
call fcn.00af1f40
mov eax, dword [0x1a4e264]
test eax, eax
je 0xae584f
mov dword [esp], eax
call fcn.00af7c80
xor eax, eax
test esi, esi
je 0xae56e2
test byte [ebx + 0x28], 2
jne 0xae5862
or dword [esi], 0x20
mov dword [esp], 0
call fcn.00af1960
mov eax, dword [ebx + 0x14]
test eax, eax
je 0xae587a
mov dword [esp], ebx
call eax
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call fcn.00ae4f90
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00af9670
mov edi, dword [ebp + 0x14]
and edi, 0xa
jne 0xae5952
mov eax, dword [ebx + 0x134]
test byte [eax], 2
jne 0xae5913
cmp edi, 0xa
je 0xae5fd3
mov esi, dword [0x1a4ddb0]
mov eax, dword [esi + 0x134]
mov edi, dword [eax]
test edi, 2
jne 0xae5930
test dword [ebp + 0x14], 0x10000000
je 0xae5e21
mov edx, dword [eax + 4]
test dword [ebp + 0x14], 0x20000000
je 0xae5c52
test edi, 0x20000000
jne 0xae5c52
movzx ecx, byte [edx + 4]
cmp dword [ebp + 0x10], ecx
jne 0xae5e31
mov edi, dword [edx + 0x10]
mov ecx, dword [edx + 0x14]
mov edx, dword [edx + 0x18]
jmp 0xae5e37
mov eax, dword [ebx + 0x84]
test eax, eax
je 0xae58b0
mov dword [esp], ebx
call eax
mov edx, eax
xor eax, eax
test edx, edx
jns 0xae58b0
jmp 0xae56e2
mov edx, dword [eax + 4]
mov dword [esi + 0x13c], eax
mov ecx, eax
mov dword [ebx + 0x30], edx
mov edx, dword [ecx + 8]
mov dword [ebx + 0x34], edx
mov edx, dword [ecx + 0xc]
mov dword [ebx + 0x38], edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.glBegin
call fcn.00ae42b0
test eax, eax
mov dword [ebx + 0x8c], eax
je 0xae645d
mov dword [esp], str.glBindTexture
call fcn.00ae42b0
test eax, eax
mov dword [ebx + 0x90], eax
je 0xae6439
mov dword [esp], str.glBlendFunc
call fcn.00ae42b0
test eax, eax
mov dword [ebx + 0x94], eax
je 0xae6415
mov dword [esp], str.glColor4f
call fcn.00ae42b0
test eax, eax
mov dword [ebx + 0x98], eax
je 0xae63f1
mov dword [esp], str.glDisable
call fcn.00ae42b0
test eax, eax
mov dword [ebx + 0x9c], eax
je 0xae63cd
mov dword [esp], str.glEnable
call fcn.00ae42b0
test eax, eax
mov dword [ebx + 0xa0], eax
je 0xae63a9
mov dword [esp], str.glEnd
call fcn.00ae42b0
test eax, eax
mov dword [ebx + 0xa4], eax
je 0xae6385
mov dword [esp], str.glFlush
call fcn.00ae42b0
test eax, eax
mov dword [ebx + 0xa8], eax
je 0xae6361
mov dword [esp], str.glGenTextures
call fcn.00ae42b0
test eax, eax
mov dword [ebx + 0xac], eax
je 0xae633d
mov dword [esp], 0x125917d
call fcn.00ae42b0
test eax, eax
mov dword [ebx + 0xb0], eax
je 0xae6319
mov dword [esp], str.glLoadIdentity
call fcn.00ae42b0
test eax, eax
mov dword [ebx + 0xb4], eax
je 0xae62f5
mov dword [esp], str.glMatrixMode
call fcn.00ae42b0
test eax, eax
mov dword [ebx + 0xb8], eax
je 0xae62d1
mov dword [esp], str.glOrtho
call fcn.00ae42b0
test eax, eax
mov dword [ebx + 0xbc], eax
je 0xae62ad
mov dword [esp], str.glPixelStorei
call fcn.00ae42b0
test eax, eax
mov dword [ebx + 0xc0], eax
je 0xae6289
mov dword [esp], str.glPopAttrib
call fcn.00ae42b0
test eax, eax
mov dword [ebx + 0xc4], eax
je 0xae6265
mov dword [esp], str.glPopClientAttrib
call fcn.00ae42b0
test eax, eax
mov dword [ebx + 0xc8], eax
je 0xae6241
mov dword [esp], str.glPopMatrix
call fcn.00ae42b0
test eax, eax
mov dword [ebx + 0xcc], eax
je 0xae621d
mov dword [esp], str.glPushAttrib
call fcn.00ae42b0
test eax, eax
mov dword [ebx + 0xd0], eax
je 0xae61f9
mov dword [esp], str.glPushClientAttrib
call fcn.00ae42b0
test eax, eax
mov dword [ebx + 0xd4], eax
je 0xae61d5
mov dword [esp], str.glPushMatrix
call fcn.00ae42b0
test eax, eax
mov dword [ebx + 0xd8], eax
je 0xae61b1
mov dword [esp], str.glTexCoord2f
call fcn.00ae42b0
test eax, eax
mov dword [ebx + 0xdc], eax
je 0xae618d
mov dword [esp], str.glTexEnvf
call fcn.00ae42b0
test eax, eax
mov dword [ebx + 0xe0], eax
je 0xae6481
mov dword [esp], str.glTexImage2D
call fcn.00ae42b0
test eax, eax
mov dword [ebx + 0xe4], eax
je 0xae5f51
mov dword [esp], str.glTexParameteri
call fcn.00ae42b0
test eax, eax
mov dword [ebx + 0xe8], eax
je 0xae652d
mov dword [esp], str.glTexSubImage2D
call fcn.00ae42b0
test eax, eax
mov dword [ebx + 0xec], eax
je 0xae6509
mov dword [esp], str.glVertex2i
call fcn.00ae42b0
test eax, eax
mov dword [ebx + 0xf0], eax
je 0xae64e5
mov dword [esp], str.glViewport
call fcn.00ae42b0
test eax, eax
mov dword [ebx + 0xf4], eax
jne 0xae58a5
call fcn.00ae6970
mov dword [esp + 4], str.glViewport
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
mov dword [esp + 8], eax
call fcn.00ae6670
xor eax, eax
jmp 0xae56e2
mov dword [esp], str.OpenGL_not_available
call fcn.00ae6670
mov eax, dword [0x1a4ddb0]
xor esi, esi
mov dword [eax + 0x134], edi
jmp 0xae5839
test byte [ebp + 0x14], 1
je 0xae5f43
test dword [ebp + 0x14], 0x40000000
je 0xae5933
mov ecx, dword [eax]
and ecx, 0x40000001
cmp ecx, 1
jne 0xae5933
jmp 0xae58f8
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], edx
jmp 0xae5523
mov dword [esp], 0x100020
call fcn.00ae0f70
mov edx, eax
xor eax, eax
test edx, edx
js 0xae56e2
mov ebx, dword [0x1a4ddb0]
jmp 0xae549a
lea edx, [ebp - 0x40]
xor eax, eax
mov edi, edx
mov ecx, 0xa
rep stosd dword es:[edi], eax
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x60], 0
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x10]
movzx ecx, byte [ebp + 0x10]
mov dword [ebp - 0x68], ebx
add eax, 0xe
add edx, 7
cmovns eax, edx
sar eax, 3
sub eax, 1
mov byte [eax*8 + 0x10ee780], cl
mov dword [ebp - 0x64], eax
mov eax, dword [0x1a4ddb0]
mov esi, dword [ebp - 0x64]
mov eax, dword [eax + 0x134]
lea edi, [esi*8 + 0x10ee780]
mov dword [ebp - 0x5c], edi
mov eax, dword [eax + 4]
movzx eax, byte [eax + 4]
mov byte [esi*8 + 0x10ee787], al
mov edx, dword [ebp - 0x5c]
movzx eax, byte [edx]
test al, al
je 0xae5fa5
mov byte [ebp - 0x3c], al
mov eax, dword [ebp + 0x14]
lea edx, [ebp - 0x40]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00ae3700
test eax, eax
je 0xae5e14
mov esi, dword [eax]
test esi, esi
je 0xae5e14
mov dword [ebp - 0x58], 0
xor edx, edx
mov dword [ebp - 0x4c], 0
jmp 0xae5d9a
mov edi, dword [ebp - 0x50]
movzx ecx, word [edi + 6]
imul ebx, esi
movzx esi, word [ebp - 0x54]
movzx ecx, cx
mov edi, 1
imul ecx, esi
mov esi, dword [ebp - 0x4c]
cmp ebx, ecx
cmovg edi, dword [ebp - 0x58]
cmovle esi, edx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x58], edi
lea esi, [esi]
add edx, 1
mov esi, dword [eax + edx*4]
test esi, esi
je 0xae5de3
movzx ecx, word [esi + 4]
movzx ebx, cx
cmp dword [ebp + 8], ebx
jg 0xae5d90
movzx esi, word [esi + 6]
mov word [ebp - 0x6e], si
movzx esi, si
cmp dword [ebp + 0xc], esi
jg 0xae5d90
mov edi, dword [ebp - 0x4c]
mov edi, dword [eax + edi*4]
mov dword [ebp - 0x50], edi
movzx edi, word [edi + 4]
cmp cx, di
mov word [ebp - 0x54], di
jbe 0xae5d62
mov edi, dword [ebp - 0x50]
movzx ecx, word [edi + 6]
cmp word [ebp - 0x6e], cx
jbe 0xae5d69
add edx, 1
mov esi, dword [eax + edx*4]
test esi, esi
jne 0xae5d9a
mov edx, dword [ebp - 0x58]
test edx, edx
je 0xae5e14
mov edx, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x64]
mov ebx, dword [ebp - 0x68]
mov eax, dword [eax + edx*4]
movzx ecx, word [eax + 4]
movzx eax, word [eax + 6]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x60]
movzx esi, byte [eax + edi*8 + 0x10ee780]
jmp 0xae5523
add dword [ebp - 0x60], 1
add dword [ebp - 0x5c], 1
jmp 0xae5d1b
mov edx, dword [eax + 4]
movzx ecx, byte [edx + 4]
cmp ecx, dword [ebp + 0x10]
je 0xae58df
xor edx, edx
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x18], edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 8], edx
mov eax, dword [eax + 8]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00ae2f80
mov edx, dword [0x1a4ddb0]
mov dword [esi + 0x138], eax
mov eax, dword [edx + 0x138]
test eax, eax
je 0xae64d2
mov ecx, dword [eax + 4]
mov esi, dword [ecx]
test esi, esi
je 0xae5ec5
or dword [eax], 0x20000000
mov eax, dword [edx + 0x134]
mov eax, dword [eax + 4]
movzx edx, byte [eax + 4]
cmp dword [ebp + 0x10], edx
je 0xae5f15
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], ecx
mov eax, dword [esi + 4]
mov dword [esp], eax
call fcn.00ae1670
mov edx, dword [0x1a4ddb0]
mov eax, dword [edx + 0x138]
mov ecx, dword [edx + 0x134]
mov esi, dword [ecx]
test esi, 0x10
je 0xae5eda
or dword [eax], 0x10
mov esi, dword [ecx]
test esi, 0x20
jne 0xae5f0e
test esi, esi
js 0xae5fc6
and esi, 0x40000000
je 0xae5ef8
or dword [eax], 0x40000000
test eax, eax
je 0xae64d2
mov dword [edx + 0x13c], eax
mov edx, dword [ecx + 4]
jmp 0xae593b
or dword [eax], 0x20
mov esi, dword [ecx]
jmp 0xae5ee2
mov edx, dword [eax]
mov edi, dword [esi + 4]
mov eax, dword [edx]
mov esi, dword [edx + 4]
shl eax, 2
mov ecx, eax
shr ecx, 2
cld
rep movsd dword es:[edi], dword [esi]
test al, 2
je 0xae5f30
movsw word es:[edi], word [esi]
test al, 1
je 0xae5f35
movsb byte es:[edi], byte [esi]
mov edx, dword [0x1a4ddb0]
mov eax, dword [edx + 0x138]
jmp 0xae5ec5
and edi, 1
jne 0xae58f8
jmp 0xae5c5c
call fcn.00ae6970
mov dword [esp + 4], str.glTexImage2D
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
mov dword [esp + 8], eax
call fcn.00ae6670
xor eax, eax
jmp 0xae56e2
mov dword [esp], esi
call fcn.00ae3eb0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.00ae2a00
jmp 0xae57d0
mov dword [esp], esi
call fcn.00ae3eb0
nop
jmp 0xae57da
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [esp], str.No_video_mode_large_enough_for__dx_d
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call fcn.00ae6670
xor eax, eax
jmp 0xae56e2
or dword [eax], 0x80000000
mov esi, dword [ecx]
jmp 0xae5eea
cmp dword [ebp + 0x10], 0x10
je 0xae612a
mov edi, dword [0x1a4ddb0]
mov dword [ebx + 0xfc], 1
mov dword [esp + 0x1c], 0xff000000
mov dword [esp + 0x18], 0xff0000
mov dword [esp + 0x14], 0xff00
mov dword [esp + 0x10], 0xff
mov dword [esp + 0xc], 0x20
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00ae2f80
mov dword [edi + 0x134], eax
mov eax, dword [0x1a4ddb0]
mov edx, dword [eax + 0x134]
xor eax, eax
test edx, edx
je 0xae56e2
mov eax, dword [esi]
or eax, 0xa
mov dword [edx], eax
mov dword [esp], esi
call fcn.00ae2ea0
mov eax, dword [0x1a4ddb0]
mov edx, dword [eax + 0x134]
movzx eax, word [edx + 0x10]
imul eax, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov dword [esp + 4], 0xff
mov dword [esp + 8], eax
mov dword [esp], edx
call sub.msvcrt.dll_memset
lea eax, [ebx + 0xf8]
mov dword [esp + 4], eax
mov dword [esp], 1
call dword [ebx + 0xac]
mov eax, dword [ebx + 0xf8]
sub esp, 8
mov dword [esp + 4], eax
mov dword [esp], 0xde1
call dword [ebx + 0x90]
mov esi, dword [ebx + 0xe4]
sub esp, 8
cmp dword [ebx + 0xfc], 1
sbb ecx, ecx
add ecx, 0x1908
cmp dword [ebx + 0xfc], 1
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], ecx
sbb eax, eax
and eax, 0x6f62
add eax, 0x1401
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x100
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov dword [esp], 0xde1
call esi
mov dword [ebx + 0x20], 0xae4a50
sub esp, 0x24
jmp 0xae58b9
mov dword [esp], 0x1f03
call dword [ebx + 0xb0]
push ecx
mov dword [esp + 4], str.GL_EXT_packed_pixels
mov dword [esp], eax
call sub.msvcrt.dll_strstr
test eax, eax
je 0xae64a5
mov dword [ebx + 0xfc], 0
mov edi, dword [0x1a4ddb0]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x1f
mov dword [esp + 0x14], 0x7e0
mov dword [esp + 0x10], 0xf800
mov dword [esp + 0xc], 0x10
jmp 0xae6015
call fcn.00ae6970
mov dword [esp + 4], str.glTexCoord2f
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
mov dword [esp + 8], eax
call fcn.00ae6670
xor eax, eax
jmp 0xae56e2
call fcn.00ae6970
mov dword [esp + 4], str.glPushMatrix
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
mov dword [esp + 8], eax
call fcn.00ae6670
xor eax, eax
jmp 0xae56e2
call fcn.00ae6970
mov dword [esp + 4], str.glPushClientAttrib
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
mov dword [esp + 8], eax
call fcn.00ae6670
xor eax, eax
jmp 0xae56e2
call fcn.00ae6970
mov dword [esp + 4], str.glPushAttrib
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
mov dword [esp + 8], eax
call fcn.00ae6670
xor eax, eax
jmp 0xae56e2
call fcn.00ae6970
mov dword [esp + 4], str.glPopMatrix
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
mov dword [esp + 8], eax
call fcn.00ae6670
xor eax, eax
jmp 0xae56e2
call fcn.00ae6970
mov dword [esp + 4], str.glPopClientAttrib
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
mov dword [esp + 8], eax
call fcn.00ae6670
xor eax, eax
jmp 0xae56e2
call fcn.00ae6970
mov dword [esp + 4], str.glPopAttrib
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
mov dword [esp + 8], eax
call fcn.00ae6670
xor eax, eax
jmp 0xae56e2
call fcn.00ae6970
mov dword [esp + 4], str.glPixelStorei
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
mov dword [esp + 8], eax
call fcn.00ae6670
xor eax, eax
jmp 0xae56e2
call fcn.00ae6970
mov dword [esp + 4], str.glOrtho
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
mov dword [esp + 8], eax
call fcn.00ae6670
xor eax, eax
jmp 0xae56e2
call fcn.00ae6970
mov dword [esp + 4], str.glMatrixMode
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
mov dword [esp + 8], eax
call fcn.00ae6670
xor eax, eax
jmp 0xae56e2
call fcn.00ae6970
mov dword [esp + 4], str.glLoadIdentity
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
mov dword [esp + 8], eax
call fcn.00ae6670
xor eax, eax
jmp 0xae56e2
call fcn.00ae6970
mov dword [esp + 4], 0x125917d
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
mov dword [esp + 8], eax
call fcn.00ae6670
xor eax, eax
jmp 0xae56e2
call fcn.00ae6970
mov dword [esp + 4], str.glGenTextures
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
mov dword [esp + 8], eax
call fcn.00ae6670
xor eax, eax
jmp 0xae56e2
call fcn.00ae6970
mov dword [esp + 4], str.glFlush
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
mov dword [esp + 8], eax
call fcn.00ae6670
xor eax, eax
jmp 0xae56e2
call fcn.00ae6970
mov dword [esp + 4], str.glEnd
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
mov dword [esp + 8], eax
call fcn.00ae6670
xor eax, eax
jmp 0xae56e2
call fcn.00ae6970
mov dword [esp + 4], str.glEnable
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
mov dword [esp + 8], eax
call fcn.00ae6670
xor eax, eax
jmp 0xae56e2
call fcn.00ae6970
mov dword [esp + 4], str.glDisable
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
mov dword [esp + 8], eax
call fcn.00ae6670
xor eax, eax
jmp 0xae56e2
call fcn.00ae6970
mov dword [esp + 4], str.glColor4f
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
mov dword [esp + 8], eax
call fcn.00ae6670
xor eax, eax
jmp 0xae56e2
call fcn.00ae6970
mov dword [esp + 4], str.glBlendFunc
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
mov dword [esp + 8], eax
call fcn.00ae6670
xor eax, eax
jmp 0xae56e2
call fcn.00ae6970
mov dword [esp + 4], str.glBindTexture
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
mov dword [esp + 8], eax
call fcn.00ae6670
xor eax, eax
jmp 0xae56e2
call fcn.00ae6970
mov dword [esp + 4], str.glBegin
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
mov dword [esp + 8], eax
call fcn.00ae6670
xor eax, eax
jmp 0xae56e2
call fcn.00ae6970
mov dword [esp + 4], str.glTexEnvf
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
mov dword [esp + 8], eax
call fcn.00ae6670
xor eax, eax
jmp 0xae56e2
mov dword [esp], 0x1f02
call dword [ebx + 0xb0]
push edx
mov dword [esp], eax
call sub.msvcrt.dll_atof
fld dword [0x12592e0]
fxch st(1)
fucompi st(1)
fstp st(0)
jb 0xae5fdd
jmp 0xae6150
mov dword [esp], str.Couldnt_create_shadow_surface
call fcn.00ae6670
xor eax, eax
jmp 0xae56e2
call fcn.00ae6970
mov dword [esp + 4], str.glVertex2i
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
mov dword [esp + 8], eax
call fcn.00ae6670
xor eax, eax
jmp 0xae56e2
call fcn.00ae6970
mov dword [esp + 4], str.glTexSubImage2D
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
mov dword [esp + 8], eax
call fcn.00ae6670
xor eax, eax
jmp 0xae56e2
call fcn.00ae6970
mov dword [esp + 4], str.glTexParameteri
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
mov dword [esp + 8], eax
call fcn.00ae6670
xor eax, eax
jmp 0xae56e2