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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50858a
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x546190]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x546190]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x7c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x6c]
call edx
mov esi, 1
test eax, eax
je 0x4bc1c1
cmp dword [edi + 0xc4], 3
jne 0x4bc1c1
mov ecx, dword [edi + 0x58]
mov eax, 0x55555556
test ecx, ecx
jle 0x4bc0f0
imul ecx
jmp 0x4bc0f3
imul dword [edi + 0x54]
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x4bc1c1
add dword [edi + 4], esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x88], 0
mov eax, dword [edi]
mov edx, dword [eax + 4]
push 3
mov ecx, edi
call edx
mov dword [esp + 0x88], esi
mov ecx, dword [edi + 0x7c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x6c]
call edx
dec eax
cmp eax, 3
ja case.default.0x4bc136
jmp dword [eax*4 + 0x4bc638]
mov eax, dword [edi + 0x78]
add eax, 0x54
push eax
mov ebx, edi
call fcn.004e72c0
jmp case.default.0x4bc136
mov ecx, dword [edi + 0x78]
add ecx, 0x54
push ecx
mov ebx, edi
call fcn.004e71f0
jmp case.default.0x4bc136
mov ecx, dword [edi + 0x78]
mov edx, dword [ecx + 0x38]
push edx
lea edx, [ecx + 0x164]
lea eax, [ecx + 0x54]
push edx
add ecx, 0x44
push ecx
push edi
call fcn.004e7110
jmp case.default.0x4bc136
mov ecx, dword [edi + 0x78]
mov edx, dword [ecx + 0x38]
push edx
lea edx, [ecx + 0x164]
lea eax, [ecx + 0x54]
push edx
add ecx, 0x44
push ecx
push edi
call fcn.004e7180
mov dword [esp + 0x88], 2
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
or eax, 0xffffffff
mov dword [esp + 0x88], eax
add dword [edi + 4], eax
jne 0x4bc1c1
mov eax, dword [edi]
mov edx, dword [eax]
push esi
mov ecx, edi
call edx
cmp byte [0x5609e1], 0
je 0x4bc20f
cmp dword [edi + 0xcc], 4
jne 0x4bc1ea
cmp dword [0x5611c4], 0
je 0x4bc20f
mov dword [0x5611c4], 0
push 0
jmp 0x4bc204
cmp byte [edi + 0xc], 0
je 0x4bc20f
mov eax, dword [edi + 0x84]
cmp dword [0x5611c4], eax
je 0x4bc20f
mov dword [0x5611c4], eax
push eax
push 0x8892
call dword [0x55ecf8]
mov eax, dword [edi]
mov edx, dword [eax + 0xa8]
xor esi, esi
mov ecx, edi
mov dword [esp + 0x20], esi
call edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov al, byte [eax + 8]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov byte [esp + 0x30], al
mov dword [esp + 0x14], esi
lea esp, [esp]
mov eax, dword [esp + 0x14]
mov ecx, eax
and ecx, 1
lea ebx, [ecx*4]
mov ecx, ebx
sar eax, 1
movzx esi, byte [esp + eax + 0x28]
mov edx, 0xf
shl edx, cl
and edx, esi
sar edx, cl
test edx, edx
je case.0x4bc33e.1
mov eax, dword [esp + 0x14]
call fcn.004bbfc0
test al, al
je case.0x4bc33e.1
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [eax + 0x64]
push ecx
mov ecx, edi
mov dword [esp + 0x24], 0
call edx
cmp dword [edi + 0xcc], 4
je 0x4bc2ee
cmp byte [edi + 0xc], 0
je 0x4bc2c2
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4bc2bc
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
sub dword [esp + 0x18], eax
jmp 0x4bc2ee
mov eax, dword [esp + 0x14]
mov eax, dword [edi + eax*4 + 0x84]
cmp dword [0x5611c4], eax
je 0x4bc2e6
push eax
push 0x8892
mov dword [0x5611c4], eax
call dword [0x55ecf8]
mov dword [esp + 0x18], 0
mov ecx, ebx
mov eax, 0xf
shl eax, cl
and eax, esi
sar eax, cl
cmp eax, 0x11
ja case.0x4bc300.0
jmp dword [eax*4 + 0x4bc648]
mov ebx, 1
jmp 0x4bc325
mov ebx, 2
jmp 0x4bc325
mov ebx, 3
jmp 0x4bc325
mov ebx, 4
jmp 0x4bc325
xor ebx, ebx
mov esi, dword [esp + 0x14]
mov edx, edi
call fcn.004a6440
cmp esi, 0xa
ja case.0x4bc33e.1
mov ecx, esi
movzx edx, byte [ecx + 0x4bc6a4]
jmp dword [edx*4 + 0x4bc690]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.OPENGL32.dll_glVertexPointer]
jmp case.0x4bc33e.1
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push eax
call dword [sym.imp.OPENGL32.dll_glNormalPointer]
jmp case.0x4bc33e.1
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.OPENGL32.dll_glColorPointer]
jmp case.0x4bc33e.1
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.OPENGL32.dll_glTexCoordPointer]
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 0xc
jl 0x4bc240
fld1
mov esi, 7
fldz
mov ecx, esi
and ecx, 1
mov eax, esi
sar eax, 1
movzx edx, byte [esp + eax + 0x28]
add ecx, ecx
add ecx, ecx
mov eax, 0xf
shl eax, cl
and edx, eax
sar edx, cl
test dl, dl
je 0x4bc483
mov edx, dword [edi]
fxch st(1)
mov eax, dword [edx + 0xd4]
fst dword [esp + 0x34]
fst dword [esp + 0x48]
mov ecx, edi
fst dword [esp + 0x5c]
fstp dword [esp + 0x70]
fst dword [esp + 0x38]
fst dword [esp + 0x3c]
fst dword [esp + 0x40]
fst dword [esp + 0x44]
fst dword [esp + 0x4c]
fst dword [esp + 0x50]
fst dword [esp + 0x54]
fst dword [esp + 0x58]
fst dword [esp + 0x60]
fst dword [esp + 0x64]
fst dword [esp + 0x68]
fstp dword [esp + 0x6c]
call eax
test al, al
jne 0x4bc44a
mov edx, dword [edi]
mov eax, dword [edx + 0xd8]
mov ecx, edi
call eax
fld dword [eax]
fstp dword [esp + 0x34]
fld dword [eax]
fstp dword [esp + 0x48]
fld dword [eax + 4]
fstp dword [esp + 0x40]
fld dword [eax + 8]
fstp dword [esp + 0x50]
lea eax, [esi + 0x84b9]
cmp dword [0x56117c], eax
je 0x4bc464
push eax
mov dword [0x56117c], eax
call dword [0x55eb80]
mov eax, 0x1702
cmp dword [0x5611b4], eax
je 0x4bc476
mov dword [0x5611b4], eax
lea ebx, [esp + 0x34]
call fcn.004b4640
fld1
fldz
inc esi
cmp esi, 0xa
jle 0x4bc3ad
mov eax, dword [edi + 0xc4]
fstp st(0)
or ebx, 0xffffffff
fstp st(0)
cmp eax, 5
ja case.default.0x4bc49f
jmp dword [eax*4 + 0x4bc6b0]
xor ebx, ebx
jmp case.default.0x4bc49f
mov ebx, 3
jmp case.default.0x4bc49f
mov ebx, 1
jmp case.default.0x4bc49f
mov ebx, 5
jmp case.default.0x4bc49f
mov ebx, 6
jmp case.default.0x4bc49f
mov ebx, 4
mov edx, dword [edi]
mov eax, dword [edx + 0xa4]
mov ecx, edi
call eax
test eax, eax
je 0x4bc570
cmp byte [0x5609e1], 0
je 0x4bc507
mov eax, dword [edi + 0x80]
cmp dword [0x5611c8], eax
je 0x4bc507
push eax
push 0x8893
mov dword [0x5611c8], eax
call dword [0x55ecf8]
cmp dword [edi + 0xcc], 4
mov dword [esp + 0x14], 0
jne 0x4bc52b
mov edx, dword [edi]
mov edx, dword [edx + 0x68]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call edx
mov eax, dword [edi + 0x64]
mov ecx, dword [esp + 0x14]
lea edx, [ecx + eax*2]
mov ecx, dword [edi + 0x68]
push edx
push 0x1403
sub ecx, eax
push ecx
push ebx
call dword [sym.imp.OPENGL32.dll_glDrawElements]
mov edx, dword [edi + 0x60]
sub edx, dword [edi + 0x5c]
mov eax, dword [edi + 0x78]
add dword [eax + 0x10], edx
mov ecx, dword [edi + 0x68]
sub ecx, dword [edi + 0x64]
mov esi, dword [edi + 0x78]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
add dword [esi + 0x14], eax
jmp 0x4bc5b9
cmp byte [0x5609e1], 0
je 0x4bc599
cmp dword [0x5611c8], 0
je 0x4bc599
push 0
push 0x8893
mov dword [0x5611c8], 0
call dword [0x55ecf8]
mov eax, dword [edi + 0x5c]
mov esi, dword [edi + 0x60]
sub esi, eax
push esi
push eax
push ebx
call dword [sym.imp.OPENGL32.dll_glDrawArrays]
mov eax, dword [edi + 0x78]
add dword [eax + 0x10], esi
mov eax, dword [edi + 0x78]
add esi, 0xfffffffe
add dword [eax + 0x14], esi
mov edi, dword [edi + 0x78]
inc dword [edi + 0x18]
xor esi, esi
mov ecx, esi
and ecx, 1
mov edx, esi
sar edx, 1
movzx eax, byte [esp + edx + 0x28]
add ecx, ecx
add ecx, ecx
mov edx, 0xf
shl edx, cl
and eax, edx
sar eax, cl
test al, al
je 0x4bc611
cmp esi, 0xb
ja case.0x4bc5e7.1
jmp dword [esi*4 + 0x4bc6c8]
mov eax, 0x8074
jmp 0x4bc60c
mov eax, 0x8075
jmp 0x4bc60c
mov eax, 0x8076
jmp 0x4bc60c
mov eax, 0x8078
jmp 0x4bc60c
xor eax, eax
call fcn.004bbca0
inc esi
cmp esi, 0xc
jl 0x4bc5c1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004ffd1c
mov esp, ebp
pop ebp
ret