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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
mov eax, dword [0x851070]
xor eax, esp
mov dword [esp + 0xa4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x24], ecx
call fcn.0065ec10
mov ecx, dword [esi]
mov dword [esi], eax
test ecx, ecx
je 0x684637
lea eax, [ecx + 4]
or edx, 0xffffffff
lock xadd dword [eax], edx
cmp edx, 1
jne 0x684637
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esi + 4], 0xffffffff
lea eax, [esi + 0xa]
mov word [esi + 8], 0
mov cl, 2
xchg byte [eax], cl
mov edx, dword [esp + 0x24]
xorps xmm6, xmm6
movss xmm1, dword [edx]
mulss xmm1, dword [0x7f1688]
comiss xmm6, xmm1
movss dword [esp + 0x14], xmm1
jae 0x6849f8
movss xmm0, dword [edi + 0xc]
xor ecx, ecx
subss xmm0, dword [edi + 4]
comiss xmm6, xmm0
movss xmm0, dword [edi + 8]
subss xmm0, dword [edi]
seta cl
xor eax, eax
comiss xmm6, xmm0
seta al
cmp ecx, eax
je 0x6846a0
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax*4 + 0x7ec714]
jmp 0x6846a3
mov ecx, dword [ebp + 0x10]
movups xmm4, xmmword [edi]
mov dword [esp + 8], ecx
movaps xmm2, xmm4
shufps xmm2, xmm4, 0xaa
comiss xmm4, xmm2
movups xmmword [esp + 0x40], xmm4
movups xmmword [esp + 0x30], xmm4
movaps xmmword [esp + 0x50], xmm2
jbe 0x6846d8
movaps xmm0, xmm4
movaps xmm4, xmm2
movaps xmm2, xmm0
movups xmmword [esp + 0x40], xmm4
movaps xmmword [esp + 0x50], xmm2
movss xmm5, dword [esp + 0x34]
movss xmm3, dword [esp + 0x3c]
comiss xmm5, xmm3
movss dword [esp + 0xc], xmm5
movss dword [esp + 0x10], xmm3
jbe 0x68470a
movaps xmm0, xmm5
movaps xmm5, xmm3
movaps xmm3, xmm0
movss dword [esp + 0xc], xmm5
movss dword [esp + 0x10], xmm3
movaps xmm0, xmm2
movzx eax, byte [edx + 0xd]
subss xmm0, xmm4
movaps xmm6, xmm5
movss dword [esp + 0x28], xmm0
movaps xmm0, xmm3
subss xmm0, xmm5
movss dword [esp + 0x2c], xmm0
movaps xmm0, xmm1
xorps xmm0, xmmword [0x7f2030]
addss xmm6, xmm0
movaps xmm7, xmm0
addss xmm7, xmm4
movss dword [esp + 0x20], xmm6
movss dword [esp + 0x34], xmm6
movaps xmm6, xmm2
movss dword [esp + 0x30], xmm7
subss xmm6, xmm0
movss dword [esp + 0x1c], xmm6
movss dword [esp + 0x38], xmm6
movaps xmm6, xmm3
subss xmm6, xmm0
movss dword [esp + 0x18], xmm6
movss dword [esp + 0x3c], xmm6
xorps xmm6, xmm6
test eax, eax
jne 0x684793
movss xmm0, dword [0x7f16e0]
mov edi, 2
comiss xmm0, dword [edx + 4]
cmova eax, edi
sub eax, 0
je 0x68496d
sub eax, 1
je 0x684906
sub eax, 1
jne 0x6849ac
movss xmm0, dword [esp + 0x20]
test ecx, ecx
jne 0x68485e
movss dword [esp + 0x6c], xmm0
lea eax, [esp + 0x68]
movss dword [esp + 0x74], xmm0
mov ecx, esi
movss xmm0, dword [esp + 0x1c]
push 1
movss dword [esp + 0x7c], xmm0
movss dword [esp + 0x84], xmm0
movss xmm0, dword [esp + 0x1c]
push 8
push eax
movss dword [esp + 0x74], xmm4
movss dword [esp + 0x7c], xmm2
movss dword [esp + 0x88], xmm5
movss dword [esp + 0x90], xmm3
movss dword [esp + 0x94], xmm2
movss dword [esp + 0x98], xmm0
movss dword [esp + 0x9c], xmm4
movss dword [esp + 0xa0], xmm0
movss dword [esp + 0xa4], xmm7
movss dword [esp + 0xa8], xmm3
movss dword [esp + 0xac], xmm7
movss dword [esp + 0xb0], xmm5
call fcn.00631a10
jmp 0x684990
movss dword [esp + 0xa4], xmm0
lea eax, [esp + 0x68]
movss dword [esp + 0x9c], xmm0
mov ecx, esi
movss xmm0, dword [esp + 0x1c]
push 1
movss dword [esp + 0x94], xmm0
movss dword [esp + 0x8c], xmm0
movss xmm0, dword [esp + 0x1c]
push 8
push eax
movss dword [esp + 0xac], xmm4
movss dword [esp + 0xa4], xmm2
movss dword [esp + 0xa0], xmm5
movss dword [esp + 0x98], xmm3
movss dword [esp + 0x8c], xmm2
movss dword [esp + 0x90], xmm0
movss dword [esp + 0x84], xmm4
movss dword [esp + 0x88], xmm0
movss dword [esp + 0x7c], xmm7
movss dword [esp + 0x80], xmm3
movss dword [esp + 0x74], xmm7
movss dword [esp + 0x78], xmm5
call fcn.00631a10
jmp 0x684990
comiss xmm6, xmm1
ja 0x68494e
lea eax, [esp + 0x30]
movaps xmm3, xmm1
push eax
movaps xmm2, xmm1
lea ecx, [esp + 0x6c]
call fcn.0065dc70
mov edi, dword [esp + 8]
lea eax, [esp + 0x68]
push edi
push eax
mov ecx, esi
call fcn.00631db0
movss xmm1, dword [esp + 0x14]
movups xmm4, xmmword [esp + 0x40]
movaps xmm2, xmmword [esp + 0x50]
movss xmm5, dword [esp + 0xc]
movss xmm3, dword [esp + 0x10]
jmp 0x6849b0
cvtps2pd xmm0, xmm1
sub esp, 0x10
unpcklpd xmm0, xmm0
movups xmmword [esp], xmm0
push 0x7ea348
push 1
call fcn.0065d630
add esp, 0x18
jmp 0x684990
movss xmm0, dword [esp + 0x18]
movaps xmm1, xmm7
movss xmm3, dword [esp + 0x1c]
movss xmm2, dword [esp + 0x20]
push ecx
push ecx
mov ecx, esi
movss dword [esp], xmm0
call fcn.00631860
movss xmm3, dword [esp + 0x10]
movss xmm5, dword [esp + 0xc]
movaps xmm2, xmmword [esp + 0x50]
movups xmm4, xmmword [esp + 0x40]
movss xmm1, dword [esp + 0x14]
mov edi, dword [esp + 8]
movss xmm0, dword [esp + 0x28]
minss xmm0, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
comiss xmm0, dword [eax]
jbe 0x6849f8
cmp byte [eax + 0xe], 0
jne 0x6849f8
push dword [edi*4 + 0x7ec714]
subss xmm3, xmm1
subss xmm2, xmm1
addss xmm5, xmm1
addss xmm4, xmm1
push ecx
movss dword [esp], xmm3
mov ecx, esi
movaps xmm3, xmm2
movaps xmm2, xmm5
movaps xmm1, xmm4
call fcn.00631860
mov ecx, dword [esp + 0xac]
pop edi
pop esi
xor ecx, esp
call fcn.00735c28
mov esp, ebp
pop ebp
ret 0xc