Function at 0x458360
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 0x458a8f
mov eax, dword [0x499620]
push ebx
push edi
mov edi, dword [esi + 0x70]
cmp edi, eax
jbe 0x45845f
mov eax, dword [0x499610]
mov ebx, edi
shl ebx, 4
push ebx
push eax
call fcn.0043ed70
mov ecx, dword [0x499614]
push ebx
push ecx
mov dword [0x499610], eax
call fcn.0043ed70
lea edx, [edi + edi*2]
mov dword [0x499614], eax
mov eax, dword [0x499618]
shl edx, 2
push edx
push eax
call fcn.0043ed70
mov edx, dword [0x49961c]
lea ecx, [edi*8]
push ecx
push edx
mov dword [0x499618], eax
call fcn.0043ed70
add esp, 0x20
mov dword [0x49961c], eax
mov dword [0x499620], edi
call fcn.00439fc0
fmul dword [esp + 0x84]
mov edi, dword [esp + 0x80]
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 0x4584bc
mov ecx, dword [esi + 0x60]
mov edx, dword [0x49961c]
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 [0x49961c]
fstp dword [ecx + eax*8 - 4]
cmp eax, dword [esi + 0x70]
jb 0x458491
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x78]
push eax
push ecx
push edx
call fcn.0043e070
mov eax, dword [esi + 0x70]
add esp, 0x10
xor edx, edx
test eax, eax
jbe 0x4585ac
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 + 0x4c]
fmul st(1)
fld st(2)
fmul dword [esp + 0x3c]
mov ecx, dword [0x499614]
faddp st(1)
fld st(3)
fmul dword [esp + 0x2c]
faddp st(1)
fadd dword [esp + 0x5c]
fstp dword [esp + 0xc]
fld dword [esp + 0x50]
fmul st(1)
fld st(2)
fmul dword [esp + 0x40]
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]
fmul dword [esp + 0x58]
fxch st(1)
fmul dword [esp + 0x48]
faddp st(1)
fxch st(1)
fmul dword [esp + 0x38]
faddp st(1)
fadd dword [esp + 0x68]
fld dword [esp + 0xc]
fstp dword [eax + ecx - 0x10]
fld dword [esp + 0x10]
mov ecx, dword [0x499614]
fstp dword [eax + ecx - 0xc]
fld dword [esp + 0x14]
mov ecx, dword [0x499614]
fstp dword [eax + ecx - 8]
mov ecx, dword [0x499614]
fstp dword [eax + ecx - 4]
cmp edx, dword [esi + 0x70]
jb 0x4584e9
mov eax, dword [esi + 0x70]
xor edx, edx
test eax, eax
jbe 0x4586d5
xor eax, eax
mov ecx, dword [0x499614]
inc edx
fld dword [eax + ecx]
add eax, 0x10
fstp dword [esp + 0xc]
fld dword [eax + ecx - 0xc]
fstp dword [esp + 0x10]
fld dword [eax + ecx - 8]
fstp dword [esp + 0x14]
fld dword [eax + ecx - 4]
fst dword [esp + 0x18]
fmul dword [0x499750]
fld dword [esp + 0x14]
fmul dword [0x499740]
faddp st(1)
fld dword [esp + 0x10]
fmul dword [0x499730]
faddp st(1)
fld dword [esp + 0xc]
fmul dword [0x499720]
faddp st(1)
fld dword [esp + 0x18]
fmul dword [0x499754]
fld dword [esp + 0x14]
fmul dword [0x499744]
faddp st(1)
fld dword [esp + 0x10]
fmul dword [0x499734]
faddp st(1)
fld dword [esp + 0xc]
fmul dword [0x499724]
faddp st(1)
fld dword [esp + 0x18]
fmul dword [0x499758]
fld dword [esp + 0x14]
fmul dword [0x499748]
faddp st(1)
fld dword [esp + 0x10]
fmul dword [0x499738]
faddp st(1)
fld dword [esp + 0xc]
fmul dword [0x499728]
faddp st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x18]
fmul dword [0x49975c]
fld dword [esp + 0x14]
fmul dword [0x49974c]
faddp st(1)
fld dword [esp + 0x10]
fmul dword [0x49973c]
faddp st(1)
fld dword [esp + 0xc]
fmul dword [0x49972c]
faddp st(1)
fstp dword [esp + 0x28]
fxch st(1)
fstp dword [eax + ecx - 0x10]
mov ecx, dword [0x499614]
fstp dword [eax + ecx - 0xc]
fld dword [esp + 0x24]
mov ecx, dword [0x499614]
fstp dword [eax + ecx - 8]
fld dword [esp + 0x28]
mov ecx, dword [0x499614]
fstp dword [eax + ecx - 4]
cmp edx, dword [esi + 0x70]
jb 0x4585bb
fld dword [esi + 0x18]
fdivr dword [0x46c38c]
mov eax, dword [esp + 0xa0]
xor ebx, ebx
test eax, eax
mov eax, dword [esi + 0x70]
fstp dword [esp + 0x70]
je 0x458888
test eax, eax
jbe 0x458a09
fld dword [esp + 0x94]
fsub dword [esp + 0x88]
fld dword [esp + 0x98]
fsub dword [esp + 0x8c]
fld dword [esp + 0x9c]
fsub dword [esp + 0x90]
xor edi, edi
xor edx, edx
mov eax, dword [esi + 0x58]
mov ecx, dword [0x499610]
fld dword [esp + 0x70]
fmul dword [eax + edx + 4]
add eax, edx
add ecx, edi
fcom dword [0x46c334]
fnstsw ax
test ah, 5
jnp 0x45875d
fcom dword [0x46c38c]
fnstsw ax
and eax, 0x4100
jne 0x45877e
fcomp dword [0x46c334]
fnstsw ax
test ah, 5
jp 0x458774
fld dword [0x46c334]
fld st(0)
jmp 0x4587b9
fld dword [0x46c38c]
fld st(0)
jmp 0x4587b9
fcom dword [0x46c334]
fnstsw ax
test ah, 5
jnp 0x45879e
fcom dword [0x46c38c]
fnstsw ax
and eax, 0x4100
je 0x45879e
fld st(0)
jmp 0x4587b9
fcom dword [0x46c334]
fnstsw ax
test ah, 5
jp 0x4587b3
fld dword [0x46c334]
jmp 0x4587b9
fld dword [0x46c38c]
fld st(4)
fmul st(1)
fadd dword [esp + 0x88]
fmul dword [0x46c330]
fstp dword [ecx]
fstp st(0)
fcom dword [0x46c334]
fnstsw ax
test ah, 5
jnp 0x4587ee
fcom dword [0x46c38c]
fnstsw ax
and eax, 0x4100
je 0x4587ee
fld st(0)
jmp 0x458809
fcom dword [0x46c334]
fnstsw ax
test ah, 5
jp 0x458803
fld dword [0x46c334]
jmp 0x458809
fld dword [0x46c38c]
fld st(3)
fmul st(1)
fadd dword [esp + 0x8c]
fmul dword [0x46c330]
fstp dword [ecx + 4]
fstp st(0)
fcom dword [0x46c334]
fnstsw ax
test ah, 5
jnp 0x45883b
fcom dword [0x46c38c]
fnstsw ax
and eax, 0x4100
jne 0x458856
fcomp dword [0x46c334]
fnstsw ax
test ah, 5
jp 0x458850
fld dword [0x46c334]
jmp 0x458856
fld dword [0x46c38c]
fld st(1)
fmul st(1)
mov dword [ecx + 0xc], 0x3f000000
inc ebx
add edx, 0xc
add edi, 0x10
fadd dword [esp + 0x90]
fmul dword [0x46c330]
fstp dword [ecx + 8]
cmp ebx, dword [esi + 0x70]
fstp st(0)
jb 0x45872c
jmp 0x458a03
test eax, eax
jbe 0x458a09
fld dword [esp + 0x94]
fsub dword [esp + 0x88]
fld dword [esp + 0x98]
fsub dword [esp + 0x8c]
fld dword [esp + 0x9c]
fsub dword [esp + 0x90]
xor edi, edi
xor edx, edx
mov eax, dword [esi + 0x58]
mov ecx, dword [0x499610]
fld dword [esp + 0x70]
fmul dword [eax + edx + 4]
add eax, edx
add ecx, edi
fcom dword [0x46c334]
fnstsw ax
test ah, 5
jnp 0x4588ef
fcom dword [0x46c38c]
fnstsw ax
and eax, 0x4100
jne 0x458910
fcomp dword [0x46c334]
fnstsw ax
test ah, 5
jp 0x458906
fld dword [0x46c334]
fld st(0)
jmp 0x45894b
fld dword [0x46c38c]
fld st(0)
jmp 0x45894b
fcom dword [0x46c334]
fnstsw ax
test ah, 5
jnp 0x458930
fcom dword [0x46c38c]
fnstsw ax
and eax, 0x4100
je 0x458930
fld st(0)
jmp 0x45894b
fcom dword [0x46c334]
fnstsw ax
test ah, 5
jp 0x458945
fld dword [0x46c334]
jmp 0x45894b
fld dword [0x46c38c]
fld st(4)
fmul st(1)
fadd dword [esp + 0x88]
fstp dword [ecx]
fstp st(0)
fcom dword [0x46c334]
fnstsw ax
test ah, 5
jnp 0x45897a
fcom dword [0x46c38c]
fnstsw ax
and eax, 0x4100
je 0x45897a
fld st(0)
jmp 0x458995
fcom dword [0x46c334]
fnstsw ax
test ah, 5
jp 0x45898f
fld dword [0x46c334]
jmp 0x458995
fld dword [0x46c38c]
fld st(3)
fmul st(1)
fadd dword [esp + 0x8c]
fstp dword [ecx + 4]
fstp st(0)
fcom dword [0x46c334]
fnstsw ax
test ah, 5
jnp 0x4589c1
fcom dword [0x46c38c]
fnstsw ax
and eax, 0x4100
jne 0x4589dc
fcomp dword [0x46c334]
fnstsw ax
test ah, 5
jp 0x4589d6
fld dword [0x46c334]
jmp 0x4589dc
fld dword [0x46c38c]
fld st(1)
fmul st(1)
mov dword [ecx + 0xc], 0x3f800000
inc ebx
add edx, 0xc
add edi, 0x10
fadd dword [esp + 0x90]
fstp dword [ecx + 8]
cmp ebx, dword [esi + 0x70]
fstp st(0)
jb 0x4588be
fstp st(0)
fstp st(0)
fstp st(0)
mov eax, dword [0x499614]
mov ecx, dword [0x499600]
mov edi, dword [0x499610]
mov ebx, dword [0x49961c]
cmp eax, ecx
je 0x458a39
push eax
push 0
push 0x1406
push 4
mov dword [0x499600], eax
call dword [sym.imp.OPENGL32.dll_glVertexPointer]
cmp ebx, dword [0x499604]
je 0x458a57
push ebx
push 0
push 0x1406
push 2
mov dword [0x499604], ebx
call dword [sym.imp.OPENGL32.dll_glTexCoordPointer]
cmp edi, dword [0x499608]
je 0x458a75
push edi
push 0
push 0x1406
push 4
mov dword [0x499608], edi
call dword [sym.imp.OPENGL32.dll_glColorPointer]
mov edx, dword [esi + 0x74]
mov esi, dword [esi + 0x78]
push edx
push 0x1405
lea eax, [esi + esi*2]
push eax
push 4
call dword [sym.imp.OPENGL32.dll_glDrawElements]
pop edi
pop ebx
pop esi
add esp, 0x60
ret