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

Disassembly:
sub esp, 0x18
push ebx
mov ebx, ecx
cmp dword [ebx], 0
je 0x45290f
fld dword [esp + 0x24]
call fcn.004616bc
mov edx, eax
mov dword [esp + 4], edx
fild dword [esp + 4]
fsubr dword [esp + 0x24]
fcomp dword [0x46f430]
fnstsw ax
test ah, 0x41
jne 0x452554
inc edx
mov eax, dword [esp + 0x20]
push ebp
push esi
push edi
test eax, eax
je 0x452760
mov eax, dword [ebx + 0x44]
cmp edx, 0xffffffff
lea ecx, [eax + eax*2]
jne 0x45258a
mov esi, dword [ebx + 0x54]
mov edi, dword [ebx + 0x5c]
shl ecx, 2
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4526f2
mov edi, dword [ebx + 0x5c]
xor eax, eax
shl ecx, 2
mov esi, ecx
xor ebp, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
mov dword [esp + 0x2c], ebp
and ecx, 3
rep stosb byte es:[edi], al
cmp dword [ebx + 0x78], ebp
jle 0x4526f2
shl edx, 6
mov dword [esp + 0x10], edx
mov dword [esp + 0x30], ebp
mov ecx, dword [ebx + 0x7c]
mov esi, dword [esp + 0x10]
add ebp, ecx
xor edi, edi
mov eax, dword [ebp]
lea edx, [eax + eax*8]
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + edx*8 + 0x44]
add eax, esi
lea ecx, [ecx + edx*8]
mov edx, dword [ebp + 4]
test edx, edx
jle 0x4526d3
mov edx, dword [ebp + 8]
mov ebp, dword [ebp + 0xc]
mov esi, dword [edx + edi*4]
mov edx, dword [ebx + 0x54]
lea esi, [esi + esi*2]
shl esi, 2
add edx, esi
fld dword [edx + 8]
fmul dword [ecx + 0x20]
fld dword [ecx + 0x10]
fmul dword [edx + 4]
faddp st(1)
fld dword [ecx]
fmul dword [edx]
faddp st(1)
fadd dword [ecx + 0x30]
fld dword [edx + 8]
fmul dword [ecx + 0x24]
fld dword [edx + 4]
fmul dword [ecx + 0x14]
faddp st(1)
fld dword [ecx + 4]
fmul dword [edx]
faddp st(1)
fadd dword [ecx + 0x34]
fld dword [edx + 8]
fmul dword [ecx + 0x28]
fld dword [ecx + 8]
fmul dword [edx]
faddp st(1)
fld dword [edx + 4]
fmul dword [ecx + 0x18]
mov edx, dword [ebx + 0x5c]
add edx, esi
faddp st(1)
fadd dword [ecx + 0x38]
fld st(2)
fmul dword [eax]
fld st(1)
fmul dword [eax + 0x20]
faddp st(1)
fld st(2)
fmul dword [eax + 0x10]
faddp st(1)
fadd dword [eax + 0x30]
fmul dword [ebp + edi*4]
mov ebp, dword [esp + 0x30]
fadd dword [edx]
fstp dword [edx]
fld st(2)
fmul dword [eax + 4]
fld st(1)
fmul dword [eax + 0x24]
mov edx, dword [ebx + 0x5c]
faddp st(1)
fld st(2)
fmul dword [eax + 0x14]
lea edx, [esi + edx + 4]
mov dword [esp + 0x14], edx
mov edx, dword [ebx + 0x7c]
faddp st(1)
mov edx, dword [edx + ebp + 0xc]
fadd dword [eax + 0x34]
fmul dword [edx + edi*4]
mov edx, dword [esp + 0x14]
fadd dword [edx]
fstp dword [edx]
mov edx, dword [ebx + 0x5c]
fmul dword [eax + 0x28]
fxch st(1)
fmul dword [eax + 0x18]
lea esi, [esi + edx + 8]
faddp st(1)
fxch st(1)
fmul dword [eax + 8]
faddp st(1)
fadd dword [eax + 0x38]
mov edx, dword [ebx + 0x7c]
inc edi
mov edx, dword [edx + ebp + 0xc]
fmul dword [edx + edi*4 - 4]
fadd dword [esi]
fstp dword [esi]
mov edx, dword [ebx + 0x7c]
add ebp, edx
cmp edi, dword [ebp + 4]
jl 0x4525e6
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
mov ecx, dword [ebx + 0x78]
inc eax
add ebp, 0x10
cmp eax, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebp
jl 0x4525ba
mov eax, dword [ebx + 0x44]
xor edx, edx
cmp eax, edx
mov dword [esp + 0x30], edx
jle 0x452760
mov dword [esp + 0x2c], edx
mov eax, dword [ebx + 0x58]
xor ecx, ecx
cmp dword [eax + edx*4], 0
jle 0x45274d
mov eax, dword [esp + 0x30]
lea eax, [eax + eax*2]
shl eax, 2
mov esi, dword [esp + 0x2c]
mov edi, dword [ebx + 0x5c]
mov ebp, dword [ebx + 0x60]
add esi, edi
mov edi, eax
add eax, 0xc
add edi, ebp
mov ebp, dword [esi]
mov dword [edi], ebp
mov ebp, dword [esi + 4]
mov dword [edi + 4], ebp
mov esi, dword [esi + 8]
mov dword [edi + 8], esi
mov edi, dword [esp + 0x30]
mov esi, dword [ebx + 0x58]
inc edi
mov dword [esp + 0x30], edi
inc ecx
cmp ecx, dword [esi + edx*4]
jl 0x452718
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x44]
inc edx
add ecx, 0xc
cmp edx, eax
mov dword [esp + 0x2c], ecx
jl 0x452703
push 0x203
call dword [sym.imp.opengl32.dll_glDepthFunc]
push 0
call dword [sym.imp.opengl32.dll_glDepthMask]
push 0x40
call dword [sym.imp.opengl32.dll_glPushAttrib]
mov ebp, dword [sym.imp.opengl32.dll_glDisable]
push 0xb50
call ebp
push 0xde1
call ebp
mov esi, dword [sym.imp.opengl32.dll_glEnable]
push 0xbe2
call esi
push 0x303
push 0x302
call dword [sym.imp.opengl32.dll_glBlendFunc]
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x18]
mov dword [esp + 0x24], ecx
push edx
mov ecx, 0x732500
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call fcn.00449720
mov eax, dword [0x7325c8]
test eax, eax
je 0x452812
push 0xb90
call esi
push 0xff
push 0
push 0x202
call dword [sym.imp.opengl32.dll_glStencilFunc]
push 0x1e02
push 0x1e00
push 0x1e00
call dword [sym.imp.opengl32.dll_glStencilOp]
mov esi, dword [sym.imp.opengl32.dll_glDisableClientState]
push 0x8075
call esi
push 0x8078
call esi
call dword [sym.imp.opengl32.dll_glPushMatrix]
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.opengl32.dll_glMultMatrixf]
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
call dword [sym.imp.opengl32.dll_glTranslatef]
mov esi, dword [esp + 0x38]
mov edi, dword [sym.imp.opengl32.dll_glRotatef]
push 0
push 0
mov ecx, dword [esi]
push 0x3f800000
push ecx
call edi
mov edx, dword [esi + 4]
push 0
push 0x3f800000
push 0
push edx
call edi
mov eax, dword [esi + 8]
push 0x3f800000
push 0
push 0
push eax
call edi
mov ecx, dword [ebx + 0x60]
push ecx
push 0
push 0x1406
push 3
call dword [sym.imp.opengl32.dll_glVertexPointer]
mov edx, dword [ebx + 0x6c]
mov ebx, dword [ebx + 0x50]
push edx
push 0x1403
lea eax, [ebx + ebx*2]
push eax
push 4
call dword [sym.imp.opengl32.dll_glDrawElements]
call dword [sym.imp.opengl32.dll_glPopMatrix]
mov esi, dword [sym.imp.opengl32.dll_glEnableClientState]
push 0x8078
call esi
push 0x8075
call esi
mov eax, dword [0x7325c8]
test eax, eax
je 0x4528d7
push 0xb90
call ebp
mov ecx, 0x732500
call fcn.00449710
push 0xbe2
call ebp
push 0xde1
call dword [sym.imp.opengl32.dll_glEnable]
call dword [sym.imp.opengl32.dll_glPopAttrib]
push 1
call dword [sym.imp.opengl32.dll_glDepthMask]
push 0x201
call dword [sym.imp.opengl32.dll_glDepthFunc]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x1c