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

Disassembly:
sub esp, 0x60
push esi
mov esi, dword [esp + 0x68]
test esi, esi
mov dword [esp + 0x24], 0x3f800000
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0x3f800000
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0x3f800000
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0x3f800000
je 0x452bac
mov eax, dword [0x499454]
push ebx
push ebp
push edi
mov edi, dword [esi + 0x70]
cmp edi, eax
jbe 0x452590
mov eax, dword [0x499444]
mov ebx, edi
shl ebx, 4
push ebx
push eax
call fcn.0043ed70
mov ecx, dword [0x499448]
push ebx
push ecx
mov dword [0x499444], eax
call fcn.0043ed70
lea edx, [edi + edi*2]
mov dword [0x499448], eax
mov eax, dword [0x49944c]
shl edx, 2
push edx
push eax
call fcn.0043ed70
mov edx, dword [0x499450]
lea ecx, [edi*8]
push ecx
push edx
mov dword [0x49944c], eax
call fcn.0043ed70
add esp, 0x20
mov dword [0x499450], eax
mov dword [0x499454], edi
call fcn.00439fc0
fmul dword [esp + 0x88]
mov edi, dword [esp + 0x84]
fadd dword [edi]
fld qword [0x46c378]
call fcn.00460dea
fstp dword [edi]
mov dword [edi + 4], 0
mov ecx, dword [esi + 0x70]
xor eax, eax
test ecx, ecx
jbe 0x4525ed
mov ecx, dword [esi + 0x60]
mov edx, dword [0x499450]
fld dword [ecx + eax*8 + 4]
fadd dword [edi + 4]
fld dword [edi]
lea ecx, [ecx + eax*8]
inc eax
fadd dword [ecx]
fstp dword [edx + eax*8 - 8]
mov ecx, dword [0x499450]
fstp dword [ecx + eax*8 - 4]
cmp eax, dword [esi + 0x70]
jb 0x4525c2
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x7c]
push eax
push ecx
push edx
call fcn.0043e070
mov eax, dword [esi + 0x70]
add esp, 0x10
xor edx, edx
test eax, eax
jbe 0x4526e0
xor eax, eax
xor edi, edi
mov ecx, dword [esi + 0x58]
add eax, 0x10
add ecx, edi
inc edx
add edi, 0xc
fld dword [ecx]
fld dword [ecx + 4]
fld dword [ecx + 8]
fld dword [esp + 0x50]
fmul st(1)
fld st(2)
fmul dword [esp + 0x40]
mov ecx, dword [0x499448]
faddp st(1)
fld st(3)
fmul dword [esp + 0x30]
faddp st(1)
fadd dword [esp + 0x60]
fstp dword [esp + 0x10]
fld dword [esp + 0x54]
fmul st(1)
fld st(2)
fmul dword [esp + 0x44]
faddp st(1)
fld st(3)
fmul dword [esp + 0x34]
faddp st(1)
fadd dword [esp + 0x64]
fstp dword [esp + 0x14]
fld dword [esp + 0x58]
fmul st(1)
fld st(2)
fmul dword [esp + 0x48]
faddp st(1)
fld st(3)
fmul dword [esp + 0x38]
faddp st(1)
fadd dword [esp + 0x68]
fstp dword [esp + 0x18]
fmul dword [esp + 0x5c]
fxch st(1)
fmul dword [esp + 0x4c]
faddp st(1)
fxch st(1)
fmul dword [esp + 0x3c]
faddp st(1)
fadd dword [esp + 0x6c]
fld dword [esp + 0x10]
fstp dword [eax + ecx - 0x10]
fld dword [esp + 0x14]
mov ecx, dword [0x499448]
fstp dword [eax + ecx - 0xc]
fld dword [esp + 0x18]
mov ecx, dword [0x499448]
fstp dword [eax + ecx - 8]
mov ecx, dword [0x499448]
fstp dword [eax + ecx - 4]
cmp edx, dword [esi + 0x70]
jb 0x45261d
mov eax, dword [esi + 0x70]
xor edx, edx
test eax, eax
jbe 0x452809
xor eax, eax
mov ecx, dword [0x499448]
inc edx
fld dword [eax + ecx]
add eax, 0x10
fstp dword [esp + 0x10]
fld dword [eax + ecx - 0xc]
fstp dword [esp + 0x14]
fld dword [eax + ecx - 8]
fstp dword [esp + 0x18]
fld dword [eax + ecx - 4]
fst dword [esp + 0x1c]
fmul dword [0x499588]
fld dword [esp + 0x18]
fmul dword [0x499578]
faddp st(1)
fld dword [esp + 0x14]
fmul dword [0x499568]
faddp st(1)
fld dword [esp + 0x10]
fmul dword [0x499558]
faddp st(1)
fld dword [esp + 0x1c]
fmul dword [0x49958c]
fld dword [esp + 0x18]
fmul dword [0x49957c]
faddp st(1)
fld dword [esp + 0x14]
fmul dword [0x49956c]
faddp st(1)
fld dword [esp + 0x10]
fmul dword [0x49955c]
faddp st(1)
fld dword [esp + 0x1c]
fmul dword [0x499590]
fld dword [esp + 0x18]
fmul dword [0x499580]
faddp st(1)
fld dword [esp + 0x14]
fmul dword [0x499570]
faddp st(1)
fld dword [esp + 0x10]
fmul dword [0x499560]
faddp st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x1c]
fmul dword [0x499594]
fld dword [esp + 0x18]
fmul dword [0x499584]
faddp st(1)
fld dword [esp + 0x14]
fmul dword [0x499574]
faddp st(1)
fld dword [esp + 0x10]
fmul dword [0x499564]
faddp st(1)
fstp dword [esp + 0x2c]
fxch st(1)
fstp dword [eax + ecx - 0x10]
mov ecx, dword [0x499448]
fstp dword [eax + ecx - 0xc]
fld dword [esp + 0x28]
mov ecx, dword [0x499448]
fstp dword [eax + ecx - 8]
fld dword [esp + 0x2c]
mov ecx, dword [0x499448]
fstp dword [eax + ecx - 4]
cmp edx, dword [esi + 0x70]
jb 0x4526ef
fld dword [esi + 0x18]
fdivr dword [0x46c38c]
mov eax, dword [esp + 0xa4]
xor ebx, ebx
test eax, eax
mov eax, dword [esi + 0x70]
fstp dword [esp + 0x74]
je 0x4529bd
test eax, eax
jbe 0x452b3f
fld dword [esp + 0x98]
fsub dword [esp + 0x8c]
fld dword [esp + 0x9c]
fsub dword [esp + 0x90]
fld dword [esp + 0xa0]
fsub dword [esp + 0x94]
xor edi, edi
xor edx, edx
mov ebp, 0x3f000000
mov eax, dword [esi + 0x58]
mov ecx, dword [0x499444]
fld dword [esp + 0x74]
fmul dword [eax + edx + 4]
add eax, edx
add ecx, edi
fcom dword [0x46c334]
fnstsw ax
test ah, 5
jnp 0x452896
fcom dword [0x46c38c]
fnstsw ax
and eax, 0x4100
jne 0x4528b7
fcomp dword [0x46c334]
fnstsw ax
test ah, 5
jp 0x4528ad
fld dword [0x46c334]
fld st(0)
jmp 0x4528f2
fld dword [0x46c38c]
fld st(0)
jmp 0x4528f2
fcom dword [0x46c334]
fnstsw ax
test ah, 5
jnp 0x4528d7
fcom dword [0x46c38c]
fnstsw ax
and eax, 0x4100
je 0x4528d7
fld st(0)
jmp 0x4528f2
fcom dword [0x46c334]
fnstsw ax
test ah, 5
jp 0x4528ec
fld dword [0x46c334]
jmp 0x4528f2
fld dword [0x46c38c]
fld st(4)
fmul st(1)
fadd dword [esp + 0x8c]
fmul dword [0x46c330]
fstp dword [ecx]
fstp st(0)
fcom dword [0x46c334]
fnstsw ax
test ah, 5
jnp 0x452927
fcom dword [0x46c38c]
fnstsw ax
and eax, 0x4100
je 0x452927
fld st(0)
jmp 0x452942
fcom dword [0x46c334]
fnstsw ax
test ah, 5
jp 0x45293c
fld dword [0x46c334]
jmp 0x452942
fld dword [0x46c38c]
fld st(3)
fmul st(1)
fadd dword [esp + 0x90]
fmul dword [0x46c330]
fstp dword [ecx + 4]
fstp st(0)
fcom dword [0x46c334]
fnstsw ax
test ah, 5
jnp 0x452974
fcom dword [0x46c38c]
fnstsw ax
and eax, 0x4100
jne 0x45298f
fcomp dword [0x46c334]
fnstsw ax
test ah, 5
jp 0x452989
fld dword [0x46c334]
jmp 0x45298f
fld dword [0x46c38c]
fld st(1)
fmul st(1)
mov dword [ecx + 0xc], ebp
inc ebx
add edx, 0xc
add edi, 0x10
fadd dword [esp + 0x94]
fmul dword [0x46c330]
fstp dword [ecx + 8]
cmp ebx, dword [esi + 0x70]
fstp st(0)
jb 0x452865
jmp 0x452b39
test eax, eax
jbe 0x452b3f
fld dword [esp + 0x98]
fsub dword [esp + 0x8c]
fld dword [esp + 0x9c]
fsub dword [esp + 0x90]
fld dword [esp + 0xa0]
fsub dword [esp + 0x94]
xor edi, edi
xor edx, edx
mov ebp, 0x3f800000
mov eax, dword [esi + 0x58]
mov ecx, dword [0x499444]
fld dword [esp + 0x74]
fmul dword [eax + edx + 4]
add eax, edx
add ecx, edi
fcom dword [0x46c334]
fnstsw ax
test ah, 5
jnp 0x452a29
fcom dword [0x46c38c]
fnstsw ax
and eax, 0x4100
jne 0x452a4a
fcomp dword [0x46c334]
fnstsw ax
test ah, 5
jp 0x452a40
fld dword [0x46c334]
fld st(0)
jmp 0x452a85
fld dword [0x46c38c]
fld st(0)
jmp 0x452a85
fcom dword [0x46c334]
fnstsw ax
test ah, 5
jnp 0x452a6a
fcom dword [0x46c38c]
fnstsw ax
and eax, 0x4100
je 0x452a6a
fld st(0)
jmp 0x452a85
fcom dword [0x46c334]
fnstsw ax
test ah, 5
jp 0x452a7f
fld dword [0x46c334]
jmp 0x452a85
fld dword [0x46c38c]
fld st(4)
fmul st(1)
fadd dword [esp + 0x8c]
fstp dword [ecx]
fstp st(0)
fcom dword [0x46c334]
fnstsw ax
test ah, 5
jnp 0x452ab4
fcom dword [0x46c38c]
fnstsw ax
and eax, 0x4100
je 0x452ab4
fld st(0)
jmp 0x452acf
fcom dword [0x46c334]
fnstsw ax
test ah, 5
jp 0x452ac9
fld dword [0x46c334]
jmp 0x452acf
fld dword [0x46c38c]
fld st(3)
fmul st(1)
fadd dword [esp + 0x90]
fstp dword [ecx + 4]
fstp st(0)
fcom dword [0x46c334]
fnstsw ax
test ah, 5
jnp 0x452afb
fcom dword [0x46c38c]
fnstsw ax
and eax, 0x4100
jne 0x452b16
fcomp dword [0x46c334]
fnstsw ax
test ah, 5
jp 0x452b10
fld dword [0x46c334]
jmp 0x452b16
fld dword [0x46c38c]
fld st(1)
fmul st(1)
mov dword [ecx + 0xc], ebp
inc ebx
add edx, 0xc
add edi, 0x10
fadd dword [esp + 0x94]
fstp dword [ecx + 8]
cmp ebx, dword [esi + 0x70]
fstp st(0)
jb 0x4529f8
fstp st(0)
fstp st(0)
fstp st(0)
mov eax, dword [esi + 0x78]
push 4
lea ebx, [eax + eax*2]
call dword [sym.imp.OPENGL32.dll_glBegin]
xor edi, edi
test ebx, ebx
jbe 0x452b9f
mov ebp, dword [sym.imp.OPENGL32.dll_glColor4fv]
mov edx, dword [esi + 0x74]
mov eax, dword [edx + edi*4]
mov edx, dword [0x499444]
shl eax, 4
add eax, edx
push eax
call ebp
mov ecx, dword [esi + 0x74]
mov eax, dword [0x499450]
mov edx, dword [ecx + edi*4]
lea ecx, [eax + edx*8]
push ecx
call dword [sym.imp.OPENGL32.dll_glTexCoord2fv]
mov edx, dword [esi + 0x74]
mov ecx, dword [0x499448]
mov eax, dword [edx + edi*4]
shl eax, 4
add eax, ecx
push eax
call dword [sym.imp.OPENGL32.dll_glVertex4fv]
inc edi
cmp edi, ebx
jb 0x452b59
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x60
jmp dword [sym.imp.OPENGL32.dll_glEnd]
pop esi
add esp, 0x60
ret