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

Disassembly:
sub esp, 0x8c
mov eax, dword [0x1026a5dc]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
mov ebx, ecx
push ebp
push esi
push edi
movss xmm0, dword [ebx + 0x1c]
mulss xmm0, dword [ebx + 0x24]
mov dword [esp + 0x20], ebx
cvttss2si edi, xmm0
movss xmm0, dword [ebx + 0x28]
mulss xmm0, dword [ebx + 0x20]
mov dword [esp + 0x18], edi
cvttss2si ebp, xmm0
mov dword [esp + 0x1c], ebp
test edi, edi
jle 0x10077ee6
test ebp, ebp
jle 0x10077ee6
mov esi, dword [sym.imp.OPENGL32.dll_glGetIntegerv]
lea eax, [esp + 0x48]
push eax
push 0x84e0
call esi
push 0x84c0
call dword [0x102bcfe0]
lea eax, [esp + 0x40]
push eax
push 0x8b8d
call esi
lea eax, [esp + 0x44]
push eax
push 0x8069
call esi
cmp dword [0x102c2b84], 0x14a
jb 0x10077ac1
lea eax, [esp + 0x3c]
push eax
push 0x8919
call esi
jmp 0x10077ac9
mov dword [esp + 0x3c], 0
lea eax, [esp + 0x50]
push eax
push 0x8894
call esi
lea eax, [esp + 0x4c]
push eax
push 0x85b5
call esi
lea eax, [esp + 0x8c]
push eax
push 0xb40
call esi
lea eax, [esp + 0x6c]
push eax
push 0xba2
call esi
lea eax, [esp + 0x7c]
push eax
push 0xc10
call esi
lea eax, [esp + 0x68]
push eax
push 0x80c9
call esi
lea eax, [esp + 0x64]
push eax
push 0x80c8
call esi
lea eax, [esp + 0x60]
push eax
push 0x80cb
call esi
lea eax, [esp + 0x5c]
push eax
push 0x80ca
call esi
lea eax, [esp + 0x58]
push eax
push 0x8009
call esi
lea eax, [esp + 0x54]
push eax
push 0x883d
call esi
mov esi, dword [sym.imp.OPENGL32.dll_glIsEnabled]
push 0xbe2
call esi
push 0xb44
mov byte [esp + 0x17], al
call esi
push 0xb71
mov byte [esp + 0x18], al
call esi
push 0xb90
mov byte [esp + 0x19], al
call esi
push 0xc11
mov byte [esp + 0x1a], al
call esi
cmp dword [0x102c2b84], 0x136
mov byte [esp + 0x17], al
jb 0x10077ba6
push 0x8f9d
call esi
mov byte [esp + 0x12], al
jmp 0x10077bab
mov byte [esp + 0x12], 0
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0
push eax
push 1
call dword [0x102bdeec]
push dword [esp + 0x38]
mov edx, edi
mov ecx, ebx
push ebp
call fcn.100777a0
movss xmm0, dword [ebx + 0x14]
xor ecx, ecx
movss dword [esp + 0x30], xmm0
add esp, 8
movss xmm0, dword [ebx + 0x18]
movss dword [esp + 0x30], xmm0
movss xmm0, dword [ebx + 0x24]
movss dword [esp + 0x2c], xmm0
movss xmm0, dword [ebx + 0x28]
movss dword [esp + 0x34], xmm0
mov dword [esp + 0x24], ecx
cmp dword [ebx + 4], ecx
jle 0x10077d93
nop dword [eax]
mov eax, dword [ebx + 0x10]
push 0x88e0
mov edi, dword [eax + ecx*4]
mov eax, dword [edi + 0x18]
push dword [edi + 0x20]
lea eax, [eax + eax*4]
shl eax, 2
push eax
push 0x8892
call dword [0x102bd15c]
mov eax, dword [edi + 0xc]
push 0x88e0
push dword [edi + 0x14]
add eax, eax
push eax
push 0x8893
call dword [0x102bd15c]
xor ebp, ebp
cmp dword [edi], ebp
jle 0x10077d81
xor ebx, ebx
mov esi, dword [edi + 8]
add esi, ebx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x10077c92
cmp eax, 0xffffffff
jne 0x10077c86
push dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
push dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
call fcn.100777a0
add esp, 8
jmp 0x10077d71
push esi
push edi
call eax
add esp, 8
jmp 0x10077d71
movss xmm4, dword [esi]
xorps xmm0, xmm0
subss xmm4, dword [esp + 0x28]
cvtsi2ss xmm0, dword [esp + 0x18]
movss xmm3, dword [esi + 4]
movss xmm1, dword [esi + 8]
movss xmm2, dword [esi + 0xc]
mulss xmm4, dword [esp + 0x2c]
subss xmm3, dword [esp + 0x30]
subss xmm1, dword [esp + 0x28]
comiss xmm0, xmm4
subss xmm2, dword [esp + 0x30]
mulss xmm3, dword [esp + 0x34]
mulss xmm1, dword [esp + 0x2c]
mulss xmm2, dword [esp + 0x34]
jbe 0x10077d71
movd xmm5, dword [esp + 0x1c]
cvtdq2ps xmm5, xmm5
comiss xmm5, xmm3
jbe 0x10077d71
xorps xmm0, xmm0
comiss xmm1, xmm0
jb 0x10077d71
comiss xmm2, xmm0
jb 0x10077d71
movaps xmm0, xmm2
subss xmm1, xmm4
subss xmm0, xmm3
subss xmm5, xmm2
cvttss2si eax, xmm0
push eax
cvttss2si eax, xmm1
push eax
cvttss2si eax, xmm5
push eax
cvttss2si eax, xmm4
push eax
call dword [sym.imp.OPENGL32.dll_glScissor]
push dword [esi + 0x10]
push 0xde1
call dword [sym.imp.OPENGL32.dll_glBindTexture]
mov eax, dword [esi + 0x18]
add eax, eax
cmp dword [0x102c2b84], 0x140
jb 0x10077d60
push dword [esi + 0x14]
push eax
push 0x1403
push dword [esi + 0x1c]
push 4
call dword [0x102bd83c]
jmp 0x10077d71
push eax
push 0x1403
push dword [esi + 0x1c]
push 4
call dword [sym.imp.OPENGL32.dll_glDrawElements]
inc ebp
add ebx, 0x28
cmp ebp, dword [edi]
jl 0x10077c58
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
inc ecx
mov dword [esp + 0x24], ecx
cmp ecx, dword [ebx + 4]
jl 0x10077c10
lea eax, [esp + 0x38]
push eax
push 1
call dword [0x102bdee8]
push dword [esp + 0x40]
call dword [0x102bd278]
push dword [esp + 0x44]
push 0xde1
call dword [sym.imp.OPENGL32.dll_glBindTexture]
cmp dword [0x102c2b84], 0x14a
jb 0x10077dd1
push dword [esp + 0x3c]
push 0
call dword [0x102bdbd8]
push dword [esp + 0x48]
call dword [0x102bcfe0]
push dword [esp + 0x4c]
call dword [0x102bdee4]
push dword [esp + 0x50]
push 0x8892
call dword [0x102bd158]
push dword [esp + 0x54]
push dword [esp + 0x5c]
call dword [0x102bd1a8]
push dword [esp + 0x5c]
push dword [esp + 0x64]
push dword [esp + 0x6c]
push dword [esp + 0x74]
call dword [0x102bd0a0]
cmp byte [esp + 0x13], 0
mov esi, dword [sym.imp.OPENGL32.dll_glDisable]
mov edi, dword [sym.imp.OPENGL32.dll_glEnable]
push 0xbe2
je 0x10077e34
call edi
jmp 0x10077e36
call esi
cmp byte [esp + 0x14], 0
push 0xb44
je 0x10077e46
call edi
jmp 0x10077e48
call esi
cmp byte [esp + 0x15], 0
push 0xb71
je 0x10077e58
call edi
jmp 0x10077e5a
call esi
cmp byte [esp + 0x16], 0
push 0xb90
je 0x10077e6a
call edi
jmp 0x10077e6c
call esi
cmp byte [esp + 0x17], 0
push 0xc11
je 0x10077e7c
call edi
jmp 0x10077e7e
call esi
cmp dword [0x102c2b84], 0x136
jb 0x10077e9c
cmp byte [esp + 0x12], 0
push 0x8f9d
je 0x10077e9a
call edi
jmp 0x10077e9c
call esi
push dword [esp + 0x8c]
push 0x408
call dword [sym.imp.OPENGL32.dll_glPolygonMode]
push dword [esp + 0x78]
push dword [esp + 0x78]
push dword [esp + 0x78]
push dword [esp + 0x78]
call dword [sym.imp.OPENGL32.dll_glViewport]
push dword [esp + 0x88]
push dword [esp + 0x88]
push dword [esp + 0x88]
push dword [esp + 0x88]
call dword [sym.imp.OPENGL32.dll_glScissor]
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100e8209
add esp, 0x8c
ret