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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x4929d0
mov eax, dword fs:[0]
push eax
sub esp, 0x128
push ebx
push esi
push edi
mov eax, dword [0x4c1cfc]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov ebx, ecx
fldz
push 0
sub esp, 0x20
fstp qword [esp + 0x18]
fld1
lea ecx, [esp + 0x68]
fst qword [esp + 0x10]
fst qword [esp + 8]
fstp qword [esp]
call fcn.00429d50
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + esi + 8]
mov edx, dword [edx + 4]
lea ecx, [ecx + esi + 8]
lea eax, [esp + 0x2c]
push eax
call edx
push 0xfffff
call dword [sym.imp.OPENGL32.dll_glPushAttrib]
cmp dword [esi + 0x10], 3
jne 0x4087a7
lea edi, [ebx - 0x484]
test edi, edi
jne 0x408675
mov dword [esp + 0x14], edi
jmp 0x408689
mov eax, dword [ebx - 0x47c]
mov ecx, dword [eax + 4]
lea edx, [ecx + ebx - 0x47c]
mov dword [esp + 0x14], edx
mov ecx, dword [esi + 0x38]
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0x20]
add ecx, 0x14
push edx
call fcn.004258a0
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
call fcn.00408dc0
add esp, 0x18
cmp dword [esp + 0x14], 0
setne al
mov byte [esp + 0x1b], al
test al, al
jne 0x4086ff
test edi, edi
jne 0x4086e4
xor eax, eax
jmp 0x4086f4
mov eax, dword [ebx - 0x47c]
mov ecx, dword [eax + 4]
lea eax, [ecx + ebx - 0x47c]
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 8]
call eax
push 0xbe2
call dword [sym.imp.OPENGL32.dll_glEnable]
push 0x300
push 0
call dword [sym.imp.OPENGL32.dll_glBlendFunc]
mov ecx, dword [ebx - 0x47c]
mov edx, dword [ecx + 4]
mov eax, dword [ebx - 0x47c]
lea ecx, [edx + ebx - 0x47c]
mov edx, dword [eax + 4]
mov eax, dword [ecx]
lea edi, [edx + ebx - 0x47c]
mov edx, dword [eax + 8]
push 1
call edx
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
mov eax, dword [edi]
mov edx, dword [eax + 4]
sub esp, 8
mov ecx, edi
fstp qword [esp]
call edx
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
sub esp, 8
lea ecx, [esp + 0x78]
fstp qword [esp]
call fcn.0041f980
mov eax, dword [0x4c37d8]
push eax
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0xac]
mov dword [esp + 0x148], 0
call fcn.0041efe0
lea ecx, [esp + 0x98]
mov dword [esp + 0x140], 0xffffffff
call fcn.00408fa0
call dword [sym.imp.OPENGL32.dll_glPushMatrix]
cmp dword [esi + 0x10], 1
jne 0x4087f0
push 0xc11
call dword [sym.imp.OPENGL32.dll_glEnable]
fld qword [esi + 0x30]
call fcn.0046e090
fld qword [esi + 0x28]
push eax
call fcn.0046e090
fld qword [esi + 0x18]
fadd qword [esp + 0x38]
push eax
call fcn.0046e090
fld qword [esi + 0x20]
fadd qword [esp + 0x34]
push eax
call fcn.0046e090
push eax
call dword [sym.imp.OPENGL32.dll_glScissor]
fld qword [esp + 0x3c]
sub esp, 0x18
fstp qword [esp + 0x10]
fld qword [esp + 0x4c]
fstp qword [esp + 8]
fld qword [esp + 0x44]
fstp qword [esp]
call dword [sym.imp.OPENGL32.dll_glTranslated]
fldz
fcom qword [esi + 0x78]
fnstsw ax
test ah, 0x44
jp 0x408836
fcom qword [esi + 0x80]
fnstsw ax
test ah, 0x44
jp 0x408836
fcom qword [esi + 0x88]
fnstsw ax
test ah, 0x44
jnp 0x40885d
fstp st(0)
sub esp, 0x18
fld qword [esi + 0x88]
fstp qword [esp + 0x10]
fld qword [esi + 0x80]
fstp qword [esp + 8]
fld qword [esi + 0x78]
fstp qword [esp]
call dword [sym.imp.OPENGL32.dll_glScaled]
fldz
fcomp qword [esi + 0x58]
fnstsw ax
test ah, 0x44
jnp 0x40888b
fld qword [esi + 0x70]
sub esp, 0x20
fstp qword [esp + 0x18]
fld qword [esi + 0x68]
fstp qword [esp + 0x10]
fld qword [esi + 0x60]
fstp qword [esp + 8]
fld qword [esi + 0x58]
fstp qword [esp]
call dword [sym.imp.OPENGL32.dll_glRotated]
cmp dword [esi + 0x10], 3
jne 0x4088f1
mov edi, dword [sym.imp.OPENGL32.dll_glBlendFunc]
push 1
push 1
call edi
mov eax, dword [esi + 0x38]
mov edx, dword [eax + 8]
mov ecx, dword [edx + 4]
mov edx, dword [ecx + eax + 8]
mov edx, dword [edx + 0x14]
lea ecx, [ecx + eax + 8]
mov eax, dword [0x4c37d8]
push eax
call edx
push 0x305
push 0x304
call edi
cmp byte [esp + 0x1b], 0
jne 0x4088f1
lea eax, [ebx - 0x484]
test eax, eax
je 0x4088e6
mov ecx, dword [ebx - 0x47c]
mov edx, dword [ecx + 4]
lea eax, [edx + ebx - 0x47c]
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [esi + 0x4c]
sub ecx, dword [esi + 0x48]
test ecx, 0xfffffffc
je 0x408966
mov edx, dword [esi + 0x4c]
sub edx, dword [esi + 0x48]
xor edi, edi
sar edx, 2
test edx, edx
jbe 0x408966
mov edi, edi
lea eax, [ebx - 0x484]
test eax, eax
jne 0x408920
mov dword [esp + 0x14], eax
jmp 0x408934
mov eax, dword [ebx - 0x47c]
mov ecx, dword [eax + 4]
lea edx, [ecx + ebx - 0x47c]
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x4c]
sub eax, dword [esi + 0x48]
sar eax, 2
cmp edi, eax
jb 0x408946
call fcn.0046da61
mov ecx, dword [esi + 0x48]
mov ecx, dword [ecx + edi*4]
mov edx, dword [ecx]
mov eax, dword [esp + 0x14]
mov edx, dword [edx + 0x10]
push eax
call edx
mov eax, dword [esi + 0x4c]
sub eax, dword [esi + 0x48]
inc edi
sar eax, 2
cmp edi, eax
jb 0x408910
cmp dword [esi + 0x10], 1
jne 0x408977
push 0xc11
call dword [sym.imp.OPENGL32.dll_glDisable]
cmp dword [esi + 0x10], 3
jne 0x40898d
push 0x303
push 0x302
call dword [sym.imp.OPENGL32.dll_glBlendFunc]
call dword [sym.imp.OPENGL32.dll_glPopMatrix]
call dword [sym.imp.OPENGL32.dll_glPopAttrib]
lea eax, [ebx - 0x484]
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4