Function at 0x4f9e70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
sub esp, 0x2c
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x30]
test eax, eax
mov ebx, eax
je 0x4f9f04
mov eax, dword [eax]
mov ecx, ebx
call dword [eax + 0x70]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x20]
test eax, eax
jne 0x4f9f10
mov ecx, dword [esi + 0x1c]
test ecx, ecx
jne 0x4fa120
mov edx, 0x6c5660
mov eax, dword [esi]
mov ecx, ebx
mov dword [ebp - 0x24], edx
mov eax, dword [eax + 0x70]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx]
call dword [eax + 0xac]
mov ecx, dword [eax + 4]
mov eax, dword [ebx]
mov dword [ebp - 0x20], ecx
mov ecx, ebx
call dword [eax]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov dword [esp + 8], 0x6c9423
mov dword [esp], esi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
call eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xac]
mov eax, dword [eax + 4]
mov edx, dword [eax - 0xc]
test edx, edx
jne 0x4f9f60
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x7c]
movzx eax, byte [eax + 4]
and eax, 0x3f
cmp eax, 0x13
jne 0x4f9f04
mov eax, dword [esi]
mov ecx, ebx
mov edi, dword [eax + 0x14]
mov eax, dword [ebx]
call dword [eax]
mov ecx, esi
mov dword [esp + 0x10], 0x6c9439
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x78
mov dword [esp + 4], 1
mov dword [esp], eax
call edi
sub esp, 0x14
jmp 0x4f9f04
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xac]
mov dword [ebp - 0x1c], eax
call fcn.004cb890
mov dword [esp], 0x98
mov ecx, eax
call fcn.004cba30
mov edx, eax
mov eax, dword [ebp - 0x1c]
sub esp, 4
and byte [edx + 0x28], 0xc0
and byte [edx + 0x1e], 0xf0
and byte [edx + 0x20], 0xfe
and byte [edx + 0x78], 0x80
or byte [edx + 0x80], 0xf
and word [edx + 0x2a], 0xfe3f
and word [edx + 0x28], 0xc03f
and byte [edx + 0x2d], 0x80
mov dword [edx + 4], eax
movzx eax, byte [edx + 0x7c]
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], 0
mov byte [edx + 0x14], 1
and eax, 0xfffffff8
or eax, 4
mov byte [edx + 0x7c], al
mov dword [edx], 0x6f25c8
mov dword [edx + 0x18], 0x6f2308
mov byte [edx + 0x1d], 1
mov dword [edx + 0x64], 0
mov dword [edx + 0x68], 0
mov dword [edx + 0x6c], 0
mov dword [edx + 0x70], 0
mov byte [edx + 0x74], 0
mov byte [edx + 0x75], 0
mov dword [edx + 0x24], 0
mov byte [edx + 0x2c], 0
and byte [edx + 0x30], 0x80
movzx eax, word [edx + 0x42]
movzx ecx, word [edx + 0x56]
or byte [edx + 0x4c], 0x7f
or dword [edx + 0x44], 0x7fff8000
and ax, 0xf80f
or ax, 0x3f0
or cx, 0x1fe0
mov word [edx + 0x42], ax
movzx eax, byte [edx + 0x40]
mov word [edx + 0x56], cx
shr cx, 8
or ecx, 0xffffffe0
or word [edx + 0x3c], 0xfff
and eax, 0xfffffff8
or eax, 4
mov byte [edx + 0x40], al
mov eax, dword [edx + 0x48]
or word [edx + 0x4c], 0x780
or dword [edx + 0x50], 0x1ff80
or word [edx + 0x54], 0x1ff8
or eax, 0x7f8000
mov dword [edx + 0x48], eax
shr eax, 0x18
or eax, 0xffffff80
mov byte [edx + 0x57], cl
and byte [edx + 0x5b], 0x1f
and byte [edx + 0x5c], 0xe0
and dword [edx + 0x28], 0xffc03fff
mov dword [edx + 0x34], 0xffffffff
mov dword [edx + 0x38], 0xffffffff
mov dword [edx + 0x60], 0xfffff800
mov byte [edx + 0x4b], al
mov byte [edx + 0x58], 0xff
mov byte [edx + 0x84], 0
mov byte [edx + 0x5d], 0
mov byte [edx + 0x5e], 0
mov byte [edx + 0x5f], 0
mov ecx, dword [esi + 0x58]
mov dword [edx + 0x88], 0x6f1b88
mov dword [edx + 0x8c], 0
mov dword [edx + 0x90], 0
mov dword [edx + 0x94], 0xffffffff
mov byte [edx + 0x1c], 1
mov dword [esp], edx
mov dword [ebp - 0x1c], edx
call fcn.005a7250
mov eax, dword [ebx]
mov ecx, ebx
sub esp, 4
call dword [eax]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x28]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.0051b2b0
mov dword [edi], eax
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xac]
mov dword [esp], 0x6c9409
mov ecx, eax
call fcn.005d3a20
mov edx, str._Did_you_mean_gl_VertexIndex__
sub esp, 4
test eax, eax
je 0x4f9ead
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4f9ea8
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xac]
mov dword [esp], 0x6c9415
mov ecx, eax
call fcn.005d3a20
sub esp, 4
test eax, eax
jne 0x4f9ea8
mov edx, str._Did_you_mean_gl_InstanceIndex__
jmp 0x4f9ead