Function at 0x4ce494
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 [0x5e5078]
test ebx, ebx
je 0x4ced9c
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x4ce4bb
mov eax, dword [ebx + 0x34]
mov dword [ebp + 8], eax
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4ce4c8
mov edx, dword [ebx + 0x38]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4ce6a0
mov eax, dword [ebp + 0x10]
sub eax, 8
cmp eax, 0x18
ja 0x4ce6c6
mov edi, dword [ebp + 8]
test edi, edi
jle 0x4ce6dc
mov esi, dword [ebp + 0xc]
test esi, esi
jle 0x4ce6dc
mov esi, dword [ebp + 0x14]
mov dword [esp + 0xc], esi
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov esi, dword [ebp + 8]
mov dword [esp], esi
call sym.OpenBOR.elf_SDL_VideoModeOK
mov esi, eax
cmp dword [ebp + 0x10], eax
je 0x4ced88
test eax, eax
jle 0x4cedb8
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x4c], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
cmp esi, 8
jle 0x4ce543
and dword [ebp + 0x14], 0xdfffffff
test dword [ebp + 0x14], 0x40000000
je 0x4ce550
or dword [ebp + 0x14], 1
mov eax, dword [ebp + 0x14]
shr eax, 1
and eax, 1
mov dword [ebp - 0x54], eax
je 0x4ce564
and dword [ebp + 0x14], 0xbffffffe
call fcn.004c9f34
call fcn.004d315c
mov edi, dword [ebp + 0xc]
mov dword [esp + 4], edi
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004d2f8c
mov eax, dword [0x5499a0]
and eax, 0xffffffef
mov dword [0x5499a0], eax
mov eax, dword [0x5e5078]
mov edx, dword [eax + 0x13c]
test edx, edx
je 0x4ce5a6
mov dword [eax + 0x13c], 0
mov edx, dword [eax + 0x138]
test edx, edx
je 0x4ce5c2
mov dword [eax + 0x138], 0
mov dword [esp], edx
call sym.OpenBOR.elf_SDL_FreeSurface
mov eax, dword [ebx + 0x140]
test eax, eax
je 0x4ce5ef
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebx + 0x140]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [ebx + 0x140], 0
mov eax, dword [ebx + 0x144]
test eax, eax
je 0x4ce60b
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [ebx + 0x144], 0
call fcn.004cd048
mov dword [ebp - 0x58], eax
mov eax, dword [0x5e5078]
mov edi, dword [eax + 0x134]
mov edx, dword [0x5e5494]
test edx, edx
je 0x4ce635
mov dword [esp], edx
call sym.OpenBOR.elf_SDL_mutexP
mov eax, dword [0x5e5078]
mov dword [eax + 0x134], 0
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], esi
mov esi, dword [ebp - 0x4c]
mov dword [esp + 0xc], esi
mov eax, dword [ebp - 0x50]
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [ebx + 0xc]
mov esi, eax
test eax, eax
je 0x4ced1c
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
mov eax, dword [esi + 8]
mov dword [esp], eax
call fcn.004de83c
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x4ce6f4
test byte [esi], 2
je 0x4ced10
mov eax, dword [0x5e5078]
mov dword [eax + 0x134], esi
jmp 0x4ce840
or dword [ebp + 0x14], 0x10000000
mov eax, dword [ebx + 0x134]
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 0x4ce4e2
mov dword [esp], str.Invalid_bits_per_pixel__range_is_8...32_
call sym.OpenBOR.elf_SDL_SetError
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp], str.Invalid_width_or_height
call sym.OpenBOR.elf_SDL_SetError
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov eax, dword [0x5e5078]
mov dword [eax + 0x134], esi
mov edx, dword [ebp + 8]
cmp edx, dword [esi + 8]
jg 0x4ce70f
mov edx, dword [ebp + 0xc]
cmp edx, dword [esi + 0xc]
jle 0x4ce728
mov dword [esp], str.Video_mode_smaller_than_requested
call sym.OpenBOR.elf_SDL_SetError
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov edi, dword [esi + 4]
mov edx, dword [edi]
test edx, edx
je 0x4ce761
movzx eax, byte [edi + 4]
mov dword [esp + 4], eax
mov eax, dword [edx + 4]
mov dword [esp], eax
call fcn.004dd76c
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov dword [esp + 0xc], edx
mov eax, dword [eax]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], ebx
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 sym.OpenBOR.elf_SDL_SetClipRect
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 sym.OpenBOR.elf_SDL_MapRGB
mov edi, eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], esi
call sym.OpenBOR.elf_SDL_FillRect
mov eax, dword [esi]
and eax, 0x40000001
cmp eax, 0x40000001
je 0x4cef8c
mov ecx, dword [esi]
test ecx, ecx
js 0x4cefce
mov ecx, dword [esi + 8]
sub ecx, dword [ebp + 8]
mov eax, ecx
shr eax, 0x1f
lea ecx, [eax + ecx]
sar ecx, 1
mov dword [ebx + 0x150], ecx
mov edx, dword [esi + 0xc]
sub edx, dword [ebp + 0xc]
mov eax, edx
shr eax, 0x1f
lea edx, [eax + edx]
sar edx, 1
mov dword [ebx + 0x154], edx
movzx eax, word [esi + 0x10]
imul edx, eax
mov eax, dword [esi + 4]
movzx eax, byte [eax + 5]
imul eax, ecx
lea eax, [edx + eax]
mov dword [esi + 0x18], eax
mov edi, dword [ebp + 8]
mov dword [esi + 8], edi
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], esi
call sym.OpenBOR.elf_SDL_SetClipRect
call fcn.004d10e4
mov eax, dword [0x5e5494]
test eax, eax
je 0x4ce856
mov dword [esp], eax
call sym.OpenBOR.elf_SDL_mutexV
test esi, esi
je 0x4cedb0
test byte [ebx + 0x28], 2
jne 0x4ce867
or dword [esi], 0x20
mov dword [esp], 0
call sym.OpenBOR.elf_SDL_SetCursor
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4ce87f
mov dword [esp], ebx
call eax
mov edx, dword [ebp - 0x58]
mov dword [esp], edx
call sym.OpenBOR.elf_SDL_WM_GrabInput
mov dword [esp + 4], 0
mov dword [esp], 0
call sym.OpenBOR.elf_SDL_GetRelativeMouseState
mov edi, dword [ebp + 0x14]
and edi, 0xa
jne 0x4cea2c
mov eax, dword [ebx + 0x134]
test byte [eax], 2
jne 0x4cea0c
cmp edi, 0xa
je 0x4cf00a
mov esi, dword [0x5e5078]
mov eax, dword [esi + 0x134]
mov edx, dword [eax]
test dl, 2
jne 0x4ce9de
test dword [ebp + 0x14], 0x10000000
jne 0x4ced30
mov ecx, dword [eax + 4]
movzx ecx, byte [ecx + 4]
cmp ecx, dword [ebp + 0x10]
je 0x4ced30
xor ecx, ecx
xor edx, edx
xor edi, edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edi
mov edx, dword [ebp + 0x10]
mov dword [esp + 0xc], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 8], edx
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym.OpenBOR.elf_SDL_CreateRGBSurface
mov dword [esi + 0x138], eax
mov esi, dword [0x5e5078]
mov eax, dword [esi + 0x138]
test eax, eax
je 0x4cf533
mov edx, dword [eax + 4]
mov ecx, dword [edx]
test ecx, ecx
je 0x4ce999
or dword [eax], 0x20000000
mov eax, dword [esi + 0x134]
mov eax, dword [eax + 4]
movzx ecx, byte [eax + 4]
cmp dword [ebp + 0x10], ecx
je 0x4cef25
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x138]
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp], eax
call fcn.004dd76c
mov esi, dword [0x5e5078]
mov eax, dword [esi + 0x138]
mov ecx, dword [esi + 0x134]
mov edx, dword [ecx]
test dl, 0x10
je 0x4ce9b1
or dword [eax], 0x10
mov edx, dword [ecx]
mov eax, dword [esi + 0x138]
test dl, 0x20
jne 0x4cef0f
test edx, edx
js 0x4cefdb
and edx, 0x40000000
je 0x4ce9d6
or dword [eax], 0x40000000
mov eax, dword [esi + 0x138]
test eax, eax
je 0x4cf533
mov dword [esi + 0x13c], eax
mov eax, dword [esi + 0x134]
mov edx, dword [eax + 4]
mov dword [ebx + 0x30], edx
mov edx, dword [eax + 8]
mov dword [ebx + 0x34], edx
mov eax, dword [eax + 0xc]
mov dword [ebx + 0x38], eax
mov eax, dword [esi + 0x13c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov eax, dword [ebx + 0x84]
test eax, eax
je 0x4ce8b9
mov dword [esp], ebx
call eax
test eax, eax
jns 0x4ce8b9
jmp 0x4cedb0
mov dword [esp], str.glBegin
call sym.OpenBOR.elf_SDL_GL_GetProcAddress
mov dword [ebx + 0x8c], eax
test eax, eax
je 0x4cf317
mov dword [esp], str.glBindTexture
call sym.OpenBOR.elf_SDL_GL_GetProcAddress
mov dword [ebx + 0x90], eax
test eax, eax
je 0x4cf35f
mov dword [esp], str.glBlendFunc
call sym.OpenBOR.elf_SDL_GL_GetProcAddress
mov dword [ebx + 0x94], eax
test eax, eax
je 0x4cf33b
mov dword [esp], str.glColor4f
call sym.OpenBOR.elf_SDL_GL_GetProcAddress
mov dword [ebx + 0x98], eax
test eax, eax
je 0x4cf3ef
mov dword [esp], str.glDisable
call sym.OpenBOR.elf_SDL_GL_GetProcAddress
mov dword [ebx + 0x9c], eax
test eax, eax
je 0x4cf3cb
mov dword [esp], str.glEnable
call sym.OpenBOR.elf_SDL_GL_GetProcAddress
mov dword [ebx + 0xa0], eax
test eax, eax
je 0x4cf3a7
mov dword [esp], str.glEnd
call sym.OpenBOR.elf_SDL_GL_GetProcAddress
mov dword [ebx + 0xa4], eax
test eax, eax
je 0x4cf383
mov dword [esp], str.glFlush
call sym.OpenBOR.elf_SDL_GL_GetProcAddress
mov dword [ebx + 0xa8], eax
test eax, eax
je 0x4cf50f
mov dword [esp], str.glGenTextures
call sym.OpenBOR.elf_SDL_GL_GetProcAddress
mov dword [ebx + 0xac], eax
test eax, eax
je 0x4cf4eb
mov dword [esp], 0x596a01
call sym.OpenBOR.elf_SDL_GL_GetProcAddress
mov dword [ebx + 0xb0], eax
test eax, eax
je 0x4cf4c7
mov dword [esp], str.glLoadIdentity
call sym.OpenBOR.elf_SDL_GL_GetProcAddress
mov dword [ebx + 0xb4], eax
test eax, eax
je 0x4cf4a3
mov dword [esp], str.glMatrixMode
call sym.OpenBOR.elf_SDL_GL_GetProcAddress
mov dword [ebx + 0xb8], eax
test eax, eax
je 0x4cf47f
mov dword [esp], str.glOrtho
call sym.OpenBOR.elf_SDL_GL_GetProcAddress
mov dword [ebx + 0xbc], eax
test eax, eax
je 0x4cf45b
mov dword [esp], str.glPixelStorei
call sym.OpenBOR.elf_SDL_GL_GetProcAddress
mov dword [ebx + 0xc0], eax
test eax, eax
je 0x4cf437
mov dword [esp], str.glPopAttrib
call sym.OpenBOR.elf_SDL_GL_GetProcAddress
mov dword [ebx + 0xc4], eax
test eax, eax
je 0x4cf413
mov dword [esp], str.glPopClientAttrib
call sym.OpenBOR.elf_SDL_GL_GetProcAddress
mov dword [ebx + 0xc8], eax
test eax, eax
je 0x4cf2f3
mov dword [esp], str.glPopMatrix
call sym.OpenBOR.elf_SDL_GL_GetProcAddress
mov dword [ebx + 0xcc], eax
test eax, eax
je 0x4cf2cf
mov dword [esp], str.glPushAttrib
call sym.OpenBOR.elf_SDL_GL_GetProcAddress
mov dword [ebx + 0xd0], eax
test eax, eax
je 0x4cf2ab
mov dword [esp], str.glPushClientAttrib
call sym.OpenBOR.elf_SDL_GL_GetProcAddress
mov dword [ebx + 0xd4], eax
test eax, eax
je 0x4cf287
mov dword [esp], str.glPushMatrix
call sym.OpenBOR.elf_SDL_GL_GetProcAddress
mov dword [ebx + 0xd8], eax
test eax, eax
je 0x4cf263
mov dword [esp], str.glTexCoord2f
call sym.OpenBOR.elf_SDL_GL_GetProcAddress
mov dword [ebx + 0xdc], eax
test eax, eax
je 0x4cf23f
mov dword [esp], str.glTexEnvf
call sym.OpenBOR.elf_SDL_GL_GetProcAddress
mov dword [ebx + 0xe0], eax
test eax, eax
je 0x4cf21b
mov dword [esp], str.glTexImage2D
call sym.OpenBOR.elf_SDL_GL_GetProcAddress
mov dword [ebx + 0xe4], eax
test eax, eax
je 0x4cf1f7
mov dword [esp], str.glTexParameteri
call sym.OpenBOR.elf_SDL_GL_GetProcAddress
mov dword [ebx + 0xe8], eax
test eax, eax
je 0x4cf1d3
mov dword [esp], str.glTexSubImage2D
call sym.OpenBOR.elf_SDL_GL_GetProcAddress
mov dword [ebx + 0xec], eax
test eax, eax
je 0x4cf546
mov dword [esp], str.glVertex2i
call sym.OpenBOR.elf_SDL_GL_GetProcAddress
mov dword [ebx + 0xf0], eax
test eax, eax
je 0x4cef66
mov dword [esp], str.glViewport
call sym.OpenBOR.elf_SDL_GL_GetProcAddress
mov dword [ebx + 0xf4], eax
test eax, eax
jne 0x4ce8aa
call sym.OpenBOR.elf_SDL_GetError
mov dword [esp + 8], eax
mov dword [esp + 4], str.glViewport
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
call sym.OpenBOR.elf_SDL_SetError
xor eax, eax
jmp 0x4ce6ea
mov dword [esp], str.OpenGL_not_available
call sym.OpenBOR.elf_SDL_SetError
mov eax, dword [0x5e5078]
mov dword [eax + 0x134], edi
xor esi, esi
jmp 0x4ce840
test dword [ebp + 0x14], 0x20000000
je 0x4ced5f
test edx, 0x20000000
jne 0x4ced5f
mov ecx, dword [eax + 4]
movzx edx, byte [ecx + 4]
cmp dword [ebp + 0x10], edx
jne 0x4ce8f6
mov edi, dword [ecx + 0x10]
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x18]
jmp 0x4ce8fc
test byte [ebp + 0x14], 1
je 0x4cef58
test dword [ebp + 0x14], 0x40000000
je 0x4ce9de
mov edx, dword [eax]
and edx, 0x40000001
dec edx
jne 0x4ce9de
jmp 0x4ced41
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x4c], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
jmp 0x4ce537
mov dword [esp], 0x100020
call sym.OpenBOR.elf_SDL_Init
test eax, eax
jns 0x4ceff4
xor eax, eax
jmp 0x4ce6ea
lea edx, [ebp - 0x40]
mov dword [ebp - 0x6c], edx
mov ecx, 0x28
xor eax, eax
mov edi, edx
rep stosb byte es:[edi], al
mov eax, dword [ebp + 0x10]
add eax, 7
js 0x4cefff
sar eax, 3
dec eax
mov dword [ebp - 0x60], eax
mov dl, byte [ebp + 0x10]
mov byte [eax*8 + 0x549980], dl
mov eax, dword [0x5e5078]
mov eax, dword [eax + 0x134]
mov eax, dword [eax + 4]
mov al, byte [eax + 4]
mov esi, dword [ebp - 0x60]
mov byte [esi*8 + 0x549987], al
lea edi, [esi*8 + 0x549980]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x68], ebx
mov edx, dword [ebp - 0x5c]
mov al, byte [edx]
test al, al
je 0x4cefad
mov byte [ebp - 0x3c], al
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
lea edx, [ebp - 0x40]
mov dword [esp], edx
call sym.OpenBOR.elf_SDL_ListModes
test eax, eax
je 0x4cef04
mov esi, dword [eax]
test esi, esi
je 0x4cef04
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
xor edx, edx
jmp 0x4cee88
mov esi, dword [ebp - 0x50]
mov cx, word [esi + 6]
imul ebx, dword [ebp - 0x4c]
movzx ecx, cx
movzx edi, word [ebp - 0x6e]
imul ecx, edi
cmp ebx, ecx
jg 0x4cee80
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x58], 1
nop
inc edx
mov esi, dword [eax + edx*4]
test esi, esi
je 0x4ceed0
mov cx, word [esi + 4]
movzx ebx, cx
cmp dword [ebp + 8], ebx
jg 0x4cee80
mov si, word [esi + 6]
movzx edi, si
mov dword [ebp - 0x4c], edi
cmp dword [ebp + 0xc], edi
jg 0x4cee80
mov edi, dword [ebp - 0x54]
mov edi, dword [eax + edi*4]
mov dword [ebp - 0x50], edi
mov di, word [edi + 4]
mov word [ebp - 0x6e], di
cmp cx, di
jbe 0x4cee5c
mov edi, dword [ebp - 0x50]
mov cx, word [edi + 6]
cmp si, cx
jbe 0x4cee63
inc edx
mov esi, dword [eax + edx*4]
test esi, esi
jne 0x4cee88
lea esi, [esi]
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x4cef04
mov ebx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x54]
mov eax, dword [eax + edx*4]
movzx esi, word [eax + 4]
mov dword [ebp - 0x50], esi
movzx eax, word [eax + 6]
mov dword [ebp - 0x4c], eax
mov edi, dword [ebp - 0x60]
mov eax, dword [ebp - 0x64]
movzx esi, byte [eax + edi*8 + 0x549980]
jmp 0x4ce537
inc dword [ebp - 0x64]
inc dword [ebp - 0x5c]
jmp 0x4cee15
or dword [eax], 0x20
mov eax, dword [esi + 0x134]
mov edx, dword [eax]
mov eax, dword [esi + 0x138]
jmp 0x4ce9ba
mov esi, dword [eax]
mov eax, dword [esi]
shl eax, 2
mov ecx, eax
shr ecx, 2
mov edx, dword [edx]
mov edi, dword [edx + 4]
mov esi, dword [esi + 4]
cld
rep movsd dword es:[edi], dword [esi]
test al, 2
je 0x4cef42
movsw word es:[edi], word [esi]
test al, 1
je 0x4cef47
movsb byte es:[edi], byte [esi]
mov esi, dword [0x5e5078]
mov eax, dword [esi + 0x138]
jmp 0x4ce999
and edx, 1
jne 0x4ced41
jmp 0x4ced69
call sym.OpenBOR.elf_SDL_GetError
mov dword [esp + 8], eax
mov dword [esp + 4], str.glVertex2i
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
call sym.OpenBOR.elf_SDL_SetError
xor eax, eax
jmp 0x4ce6ea
mov dword [esp], esi
call sym.OpenBOR.elf_SDL_Flip
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], esi
call sym.OpenBOR.elf_SDL_FillRect
jmp 0x4ce7d7
mov edx, dword [ebp + 0xc]
mov dword [esp + 8], edx
mov esi, dword [ebp + 8]
mov dword [esp + 4], esi
mov dword [esp], str.No_video_mode_large_enough_for__dx_d
call sym.OpenBOR.elf_SDL_SetError
xor eax, eax
jmp 0x4ce6ea
mov dword [esp], esi
call sym.OpenBOR.elf_SDL_Flip
jmp 0x4ce7e1
or dword [eax], 0x80000000
mov eax, dword [esi + 0x134]
mov edx, dword [eax]
mov eax, dword [esi + 0x138]
jmp 0x4ce9c2
mov ebx, dword [0x5e5078]
jmp 0x4ce4ae
mov eax, dword [ebp + 0x10]
add eax, 0xe
jmp 0x4cedd5
cmp dword [ebp + 0x10], 0x10
je 0x4cf151
mov dword [ebx + 0xfc], 1
mov edi, dword [0x5e5078]
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 eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call sym.OpenBOR.elf_SDL_CreateRGBSurface
mov dword [edi + 0x134], eax
mov eax, dword [0x5e5078]
mov edx, dword [eax + 0x134]
test edx, edx
je 0x4cedb0
mov eax, dword [esi]
or eax, 0xa
mov dword [edx], eax
mov dword [esp], esi
call sym.OpenBOR.elf_SDL_FreeSurface
mov eax, dword [0x5e5078]
mov eax, dword [eax + 0x134]
movzx ecx, word [eax + 0x10]
imul ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x14]
mov al, 0xff
mov edi, edx
rep stosb byte es:[edi], al
lea eax, [ebx + 0xf8]
mov dword [esp + 4], eax
mov dword [esp], 1
call dword [ebx + 0xac]
sub esp, 8
mov eax, dword [ebx + 0xf8]
mov dword [esp + 4], eax
mov dword [esp], 0xde1
call dword [ebx + 0x90]
sub esp, 8
mov esi, dword [ebx + 0xe4]
cmp dword [ebx + 0xfc], 1
sbb ecx, ecx
add ecx, 0x1908
cmp dword [ebx + 0xfc], 1
sbb eax, eax
and eax, 0x6f62
add eax, 0x1401
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
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
sub esp, 0x24
mov dword [ebx + 0x20], 0x4ccf04
jmp 0x4ce8c2
mov dword [esp], 0x1f03
call dword [ebx + 0xb0]
push edx
mov dword [esp + 4], str.GL_EXT_packed_pixels
mov dword [esp], eax
call sub.msvcrt.dll_strstr
test eax, eax
je 0x4cf56a
mov dword [ebx + 0xfc], 0
mov edi, dword [0x5e5078]
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
mov edx, dword [ebp + 0xc]
mov dword [esp + 8], edx
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov edx, dword [ebp + 0x14]
mov dword [esp], edx
call sym.OpenBOR.elf_SDL_CreateRGBSurface
mov dword [edi + 0x134], eax
jmp 0x4cf06b
call sym.OpenBOR.elf_SDL_GetError
mov dword [esp + 8], eax
mov dword [esp + 4], str.glTexParameteri
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
call sym.OpenBOR.elf_SDL_SetError
xor eax, eax
jmp 0x4ce6ea
call sym.OpenBOR.elf_SDL_GetError
mov dword [esp + 8], eax
mov dword [esp + 4], str.glTexImage2D
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
call sym.OpenBOR.elf_SDL_SetError
xor eax, eax
jmp 0x4ce6ea
call sym.OpenBOR.elf_SDL_GetError
mov dword [esp + 8], eax
mov dword [esp + 4], str.glTexEnvf
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
call sym.OpenBOR.elf_SDL_SetError
xor eax, eax
jmp 0x4ce6ea
call sym.OpenBOR.elf_SDL_GetError
mov dword [esp + 8], eax
mov dword [esp + 4], str.glTexCoord2f
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
call sym.OpenBOR.elf_SDL_SetError
xor eax, eax
jmp 0x4ce6ea
call sym.OpenBOR.elf_SDL_GetError
mov dword [esp + 8], eax
mov dword [esp + 4], str.glPushMatrix
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
call sym.OpenBOR.elf_SDL_SetError
xor eax, eax
jmp 0x4ce6ea
call sym.OpenBOR.elf_SDL_GetError
mov dword [esp + 8], eax
mov dword [esp + 4], str.glPushClientAttrib
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
call sym.OpenBOR.elf_SDL_SetError
xor eax, eax
jmp 0x4ce6ea
call sym.OpenBOR.elf_SDL_GetError
mov dword [esp + 8], eax
mov dword [esp + 4], str.glPushAttrib
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
call sym.OpenBOR.elf_SDL_SetError
xor eax, eax
jmp 0x4ce6ea
call sym.OpenBOR.elf_SDL_GetError
mov dword [esp + 8], eax
mov dword [esp + 4], str.glPopMatrix
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
call sym.OpenBOR.elf_SDL_SetError
xor eax, eax
jmp 0x4ce6ea
call sym.OpenBOR.elf_SDL_GetError
mov dword [esp + 8], eax
mov dword [esp + 4], str.glPopClientAttrib
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
call sym.OpenBOR.elf_SDL_SetError
xor eax, eax
jmp 0x4ce6ea
call sym.OpenBOR.elf_SDL_GetError
mov dword [esp + 8], eax
mov dword [esp + 4], str.glBegin
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
call sym.OpenBOR.elf_SDL_SetError
xor eax, eax
jmp 0x4ce6ea
call sym.OpenBOR.elf_SDL_GetError
mov dword [esp + 8], eax
mov dword [esp + 4], str.glBlendFunc
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
call sym.OpenBOR.elf_SDL_SetError
xor eax, eax
jmp 0x4ce6ea
call sym.OpenBOR.elf_SDL_GetError
mov dword [esp + 8], eax
mov dword [esp + 4], str.glBindTexture
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
call sym.OpenBOR.elf_SDL_SetError
xor eax, eax
jmp 0x4ce6ea
call sym.OpenBOR.elf_SDL_GetError
mov dword [esp + 8], eax
mov dword [esp + 4], str.glEnd
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
call sym.OpenBOR.elf_SDL_SetError
xor eax, eax
jmp 0x4ce6ea
call sym.OpenBOR.elf_SDL_GetError
mov dword [esp + 8], eax
mov dword [esp + 4], str.glEnable
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
call sym.OpenBOR.elf_SDL_SetError
xor eax, eax
jmp 0x4ce6ea
call sym.OpenBOR.elf_SDL_GetError
mov dword [esp + 8], eax
mov dword [esp + 4], str.glDisable
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
call sym.OpenBOR.elf_SDL_SetError
xor eax, eax
jmp 0x4ce6ea
call sym.OpenBOR.elf_SDL_GetError
mov dword [esp + 8], eax
mov dword [esp + 4], str.glColor4f
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
call sym.OpenBOR.elf_SDL_SetError
xor eax, eax
jmp 0x4ce6ea
call sym.OpenBOR.elf_SDL_GetError
mov dword [esp + 8], eax
mov dword [esp + 4], str.glPopAttrib
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
call sym.OpenBOR.elf_SDL_SetError
xor eax, eax
jmp 0x4ce6ea
call sym.OpenBOR.elf_SDL_GetError
mov dword [esp + 8], eax
mov dword [esp + 4], str.glPixelStorei
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
call sym.OpenBOR.elf_SDL_SetError
xor eax, eax
jmp 0x4ce6ea
call sym.OpenBOR.elf_SDL_GetError
mov dword [esp + 8], eax
mov dword [esp + 4], str.glOrtho
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
call sym.OpenBOR.elf_SDL_SetError
xor eax, eax
jmp 0x4ce6ea
call sym.OpenBOR.elf_SDL_GetError
mov dword [esp + 8], eax
mov dword [esp + 4], str.glMatrixMode
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
call sym.OpenBOR.elf_SDL_SetError
xor eax, eax
jmp 0x4ce6ea
call sym.OpenBOR.elf_SDL_GetError
mov dword [esp + 8], eax
mov dword [esp + 4], str.glLoadIdentity
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
call sym.OpenBOR.elf_SDL_SetError
xor eax, eax
jmp 0x4ce6ea
call sym.OpenBOR.elf_SDL_GetError
mov dword [esp + 8], eax
mov dword [esp + 4], 0x596a01
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
call sym.OpenBOR.elf_SDL_SetError
xor eax, eax
jmp 0x4ce6ea
call sym.OpenBOR.elf_SDL_GetError
mov dword [esp + 8], eax
mov dword [esp + 4], str.glGenTextures
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
call sym.OpenBOR.elf_SDL_SetError
xor eax, eax
jmp 0x4ce6ea
call sym.OpenBOR.elf_SDL_GetError
mov dword [esp + 8], eax
mov dword [esp + 4], str.glFlush
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
call sym.OpenBOR.elf_SDL_SetError
xor eax, eax
jmp 0x4ce6ea
mov dword [esp], str.Couldnt_create_shadow_surface
call sym.OpenBOR.elf_SDL_SetError
xor eax, eax
jmp 0x4ce6ea
call sym.OpenBOR.elf_SDL_GetError
mov dword [esp + 8], eax
mov dword [esp + 4], str.glTexSubImage2D
mov dword [esp], str.Couldnt_load_GL_function__s:__s_n
call sym.OpenBOR.elf_SDL_SetError
xor eax, eax
jmp 0x4ce6ea
mov dword [esp], 0x1f02
call dword [ebx + 0xb0]
push edi
mov dword [esp], eax
call sub.msvcrt.dll_atof
fld dword [0x596ba4]
fxch st(1)
fucompp
fnstsw ax
sahf
jb 0x4cf014
jmp 0x4cf177