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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb8
push esi
push edi
mov dword [esp + 0x10], ecx
mov edi, 0xfffffff8
mov esi, 0xfffffff8
nop dword [eax]
test esi, esi
jne 0x49945c
test edi, edi
je 0x499647
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov dword [esp + 0x30], 0x41000000
mov dword [esp + 0x34], 0x41000000
movd xmm1, edi
cvtdq2ps xmm1, xmm1
movss dword [esp + 0x28], xmm0
mov eax, dword [esp + 0x28]
movss dword [esp + 0x2c], xmm1
mov ecx, dword [esp + 0x2c]
movss dword [esp + 0x18], xmm1
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x3c], ecx
mulss xmm1, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
movss dword [esp + 0x14], xmm0
mulss xmm0, dword [esp + 0x38]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x4994d4
sqrtsd xmm0, xmm0
jmp 0x4994d9
call fcn.00649080
movss xmm1, dword [esp + 0x44]
mulss xmm1, dword [0x6806ec]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x1c], xmm0
movss xmm0, dword [esp + 0x40]
mulss xmm0, dword [0x6806ec]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x499515
sqrtsd xmm0, xmm0
jmp 0x49951a
call fcn.00649080
movss xmm1, dword [esp + 0x1c]
cvtsd2ss xmm0, xmm0
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
divss xmm1, xmm0
add eax, 0x510d00
mov dword [esp + 0xc], eax
movss xmm0, dword [0x67b0b4]
subss xmm0, xmm1
movss xmm1, dword [esp + 0x18]
movss dword [esp + 0x4c], xmm1
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x54], ecx
mulss xmm1, dword [esp + 0x54]
movss dword [esp + 0x1c], xmm0
movss xmm0, dword [esp + 0x14]
movss dword [esp + 0x48], xmm0
mov eax, dword [esp + 0x48]
mov dword [esp + 0x50], eax
mulss xmm0, dword [esp + 0x50]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x499594
sqrtsd xmm0, xmm0
jmp 0x499599
call fcn.00649080
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
xorps xmm0, xmm0
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x4995b1
xorps xmm1, xmm1
jmp 0x4995cc
movss xmm0, dword [0x67b0b4]
divss xmm0, xmm1
movaps xmm1, xmm0
mulss xmm0, dword [esp + 0x14]
mulss xmm1, dword [esp + 0x18]
mulss xmm0, dword [0x6b0a38]
push ecx
mulss xmm1, dword [0x6b0a38]
mov ecx, dword [esp + 0x10]
mulss xmm0, dword [esp + 0x20]
mov dword [esp], 0x41200000
mulss xmm1, dword [esp + 0x20]
movss dword [esp + 0x5c], xmm0
movss xmm0, dword [esp + 0x18]
mulss xmm0, dword [0x6806fc]
movss dword [esp + 0x60], xmm1
push dword [esp + 0x60]
addss xmm0, dword [ebp + 8]
push dword [esp + 0x60]
movss dword [esp + 0x2c], xmm0
movss xmm0, dword [esp + 0x24]
mulss xmm0, dword [0x6806fc]
addss xmm0, dword [ebp + 0xc]
movss dword [esp + 0x30], xmm0
push dword [esp + 0x30]
push dword [esp + 0x30]
call fcn.0049bad0
inc esi
cmp esi, 8
jle 0x499450
inc edi
cmp edi, 8
jle 0x499447
xorps xmm0, xmm0
lea ecx, [esp + 0x60]
movups xmmword [esp + 0xa0], xmm0
call fcn.0049a490
mov eax, dword [ebp + 8]
sub esp, 8
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x78], 7
mov dword [esp + 0x68], eax
mov dword [esp + 4], 0x7f7fffff
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x80], 0x3ecccccd
mov dword [esp + 0x84], 0x43160000
mov dword [esp + 0x88], 0
mov dword [esp], 0x46fffe00
call fcn.0064b130
fstp dword [esp + 0x14]
call fcn.00643190
mov esi, dword [esp + 0x18]
add esp, 4
movd xmm0, eax
lea eax, [esp + 0x64]
cvtdq2ps xmm0, xmm0
mov ecx, dword [esi + 4]
mov dword [esp], 0
add ecx, 0x44d6f8
push eax
push 1
divss xmm0, dword [esp + 0x18]
mulss xmm0, dword [0x680058]
movss dword [esp + 0x9c], xmm0
movss xmm0, dword [ebp + 0x10]
movss dword [esp + 0xb8], xmm0
movss dword [esp + 0x94], xmm0
call fcn.00505be0
movaps xmm1, xmmword [0x6807a0]
mov edi, 0x18
movaps xmm0, xmmword [0x6b0a40]
mov eax, dword [ebp + 8]
sub esp, 8
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 4], 0x7f7fffff
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0x42000000
mov dword [esp + 0x88], 0x42000000
mov byte [esp + 0x8c], 0
movups xmmword [esp + 0x90], xmm0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0x7c], 0x3f800000
movups xmmword [esp + 0xa8], xmm1
mov byte [esp + 0xb8], 1
mov dword [esp + 0x78], 5
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
mov dword [esp], 0x46fffe00
call fcn.0064b130
fstp dword [esp + 0x14]
call fcn.00643190
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, dword [esp + 0x14]
mulss xmm0, dword [0x680058]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x28], xmm0
call fcn.00643190
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x6ab7a4]
mulss xmm0, dword [0x6b0a04]
addss xmm0, dword [0x67b0b4]
mulss xmm0, dword [0x67b0c8]
movss dword [esp + 0x18], xmm0
movsd xmm0, qword [esp + 0x28]
call fcn.00643330
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x18]
movss dword [esp + 0x14], xmm0
movsd xmm0, qword [esp + 0x28]
call fcn.006434f0
movss xmm1, dword [esp + 0x14]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x70], xmm1
mulss xmm0, dword [esp + 0x18]
movss dword [esp + 0x74], xmm0
call fcn.00643190
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x6ab7a4]
mulss xmm0, dword [0x6b0a08]
addss xmm0, dword [0x67b0b0]
movss dword [esp + 0x80], xmm0
call fcn.00643190
mov dword [esp + 0x88], 0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x6ab7a4]
mulss xmm0, dword [0x6806ec]
addss xmm0, dword [0x680718]
movss dword [esp + 0x84], xmm0
call fcn.00643190
xorps xmm0, xmm0
mov dword [esp + 0xa4], 0x3ecccccd
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, dword [0x6ab7a4]
mulss xmm1, dword [0x6b0a30]
subss xmm0, xmm1
movss dword [esp + 0xa0], xmm0
call fcn.00643190
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, dword [0x6ab7a4]
shufps xmm1, xmm1, 0
mulps xmm1, xmmword [0x6b0a50]
addps xmm1, xmmword [0x6b09a0]
movss dword [esp + 0xa8], xmm1
mov ecx, dword [esi + 4]
lea eax, [esp + 0x68]
movaps xmm0, xmm1
mov dword [esp + 4], 0
shufps xmm0, xmm1, 0x55
add esp, 4
movss dword [esp + 0xa8], xmm0
add ecx, 0x44d6f8
movaps xmm0, xmm1
shufps xmm0, xmm1, 0xaa
shufps xmm1, xmm1, 0xff
mulss xmm1, dword [ebp + 0x10]
push eax
push 3
movss dword [esp + 0xb4], xmm0
movss dword [esp + 0xb8], xmm1
movss dword [esp + 0x94], xmm1
call fcn.00505be0
movaps xmm1, xmmword [0x6807a0]
movaps xmm0, xmmword [0x6b0a40]
sub edi, 1
jne 0x499731
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc