Function at 0x4d0a42
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], 0x402
test edi, edi
jne 0x4d09f0
push str.value
push str.Parameter__s_is_invalid
call fcn.004b58a0
add esp, 8
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x5e9c10]
mov dword [edi], ebx
test ecx, ecx
jne 0x4d0a07
call fcn.004d40e0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
cmp eax, 0x1a
ja case.0x4d0a14.25
jmp dword [eax*4 + 0x4d0cc8]
mov ebx, 0x8212
mov esi, 0xd52
jmp 0x4d0ab1
mov ebx, 0x8214
mov esi, 0xd54
jmp 0x4d0ab1
mov ebx, 0x8213
mov esi, 0xd53
jmp 0x4d0ab1
mov ebx, 0x8215
mov esi, 0xd55
jmp 0x4d0ab1
mov esi, 0xc32
jmp 0x4d0ab1
mov dword [ebp - 4], 0x1801
mov ebx, 0x8216
mov esi, 0xd56
jmp 0x4d0ab1
mov dword [ebp - 4], 0x1802
mov ebx, 0x8217
mov esi, 0xd57
jmp 0x4d0ab1
mov esi, 0xd58
jmp 0x4d0ab1
mov esi, 0xd59
jmp 0x4d0ab1
mov esi, 0xd5a
jmp 0x4d0ab1
mov esi, 0xd5b
jmp 0x4d0ab1
mov esi, 0xc33
jmp 0x4d0ab1
mov esi, 0x80a8
jmp 0x4d0ab1
mov esi, 0x80a9
jmp 0x4d0ab1
mov esi, 0x82fb
push str.glGetString
call fcn.004d0de0
add esp, 4
test eax, eax
je 0x4d0bf4
test ebx, ebx
je 0x4d0b06
push 0x1f02
call eax
test eax, eax
je 0x4d0b06
push eax
call fcn.004b6a40
add esp, 4
cmp eax, 3
jl 0x4d0b06
push str.glGetFramebufferAttachmentParameteriv
call fcn.004d0de0
add esp, 4
test eax, eax
je 0x4d0bf4
push edi
push ebx
push dword [ebp - 4]
push 0x8d40
call eax
jmp 0x4d0b1f
push str.glGetIntegerv
call fcn.004d0de0
add esp, 4
test eax, eax
je 0x4d0bf4
push edi
push esi
call eax
push str.glGetError
call fcn.004d0de0
add esp, 4
test eax, eax
je 0x4d0bf4
call eax
test eax, eax
je 0x4d0caa
cmp eax, 0x500
jne 0x4d0b59
push str.OpenGL_error:_GL_INVALID_ENUM
call fcn.004b58a0
add esp, 4
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x501
jne 0x4d0b74
push str.OpenGL_error:_GL_INVALID_VALUE
call fcn.004b58a0
add esp, 4
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push str.OpenGL_error:__08X
call fcn.004b58a0
add esp, 8
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
push 0
mov dword [ebp - 8], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp - 4], ebx
call fcn.004d09c0
add esp, 8
test eax, eax
js 0x4d0bf4
lea eax, [ebp - 8]
push eax
push 1
call fcn.004d09c0
add esp, 8
test eax, eax
js 0x4d0bf4
lea eax, [ebp + 0xc]
push eax
push 2
call fcn.004d09c0
add esp, 8
test eax, eax
js 0x4d0bf4
lea eax, [ebp - 4]
push eax
push 3
call fcn.004d09c0
add esp, 8
test eax, eax
js 0x4d0bf4
mov eax, dword [ebp - 4]
add eax, dword [ebp + 0xc]
add eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
pop esi
mov dword [edi], eax
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp dword [ecx + 0x18c], eax
pop esi
setne al
mov dword [edi], eax
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 0x1b4]
pop esi
mov dword [edi], eax
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 0x190]
pop esi
mov dword [edi], eax
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 0x194]
pop esi
mov dword [edi], eax
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp dword [ecx + 0x19c], 4
pop esi
sete al
mov dword [edi], eax
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 0x198]
pop esi
mov dword [edi], eax
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 0x19c]
pop esi
mov dword [edi], eax
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 0x1a0]
pop esi
mov dword [edi], eax
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 0x1ac]
pop esi
mov dword [edi], eax
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 0x1b0]
mov dword [edi], eax
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push str.Unknown_OpenGL_attribute
call fcn.004b58a0
add esp, 4
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret