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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
movsd qword [esp + 8], xmm0
mov esi, ecx
mov edi, dword [esp + 0xc]
mov eax, edi
and eax, 0x7fffffff
cmp eax, 0x400f6a7b
jae 0x638507
mov ecx, edi
and ecx, 0xfffff
cmp ecx, 0x921fb
jne 0x6385d9
movsd xmm1, qword [0x6f1200]
movsd xmm2, qword [0x6f1218]
shr eax, 0x14
mov edx, eax
mulsd xmm1, xmm0
addsd xmm1, qword [0x6f1208]
addsd xmm1, qword [0x6f1210]
mulsd xmm2, xmm1
addsd xmm2, xmm0
movsd xmm0, qword [0x6f1220]
movapd xmm3, xmm2
mulsd xmm0, xmm1
subsd xmm3, xmm0
movsd qword [esp + 0x38], xmm3
mov ecx, dword [esp + 0x3c]
shr ecx, 0x14
and ecx, 0x7ff
sub edx, ecx
cmp edx, 0x11
jl 0x6386fc
movsd xmm3, qword [0x6f1228]
movsd xmm0, qword [0x6f1230]
movapd xmm4, xmm2
mulsd xmm3, xmm1
mulsd xmm0, xmm1
subsd xmm4, xmm3
subsd xmm2, xmm4
subsd xmm2, xmm3
movapd xmm3, xmm4
subsd xmm0, xmm2
subsd xmm3, xmm0
movsd qword [esp + 0x30], xmm3
mov ecx, dword [esp + 0x34]
jmp 0x6386b4
cmp eax, 0x401c463c
jae 0x638608
cmp eax, 0x4015fdbd
jae 0x638736
cmp eax, 0x4012d97c
jne 0x63882d
movsd xmm1, qword [0x6f1200]
movsd xmm2, qword [0x6f1218]
mov eax, 0x7ff00000
mulsd xmm1, xmm0
addsd xmm1, qword [0x6f1208]
addsd xmm1, qword [0x6f1210]
mulsd xmm2, xmm1
addsd xmm2, xmm0
movsd xmm0, qword [0x6f1220]
movapd xmm3, xmm2
mulsd xmm0, xmm1
subsd xmm3, xmm0
movsd qword [esp + 0x48], xmm3
and eax, dword [esp + 0x4c]
shr eax, 0x14
cmp eax, 0x3f0
ja 0x6386fc
movsd xmm3, qword [0x6f1228]
movsd xmm0, qword [0x6f1230]
movapd xmm4, xmm2
mulsd xmm3, xmm1
mulsd xmm0, xmm1
subsd xmm4, xmm3
subsd xmm2, xmm4
subsd xmm2, xmm3
movapd xmm3, xmm4
subsd xmm0, xmm2
subsd xmm3, xmm0
movsd qword [esp + 0x40], xmm3
movzx eax, byte [esp + 0x47]
and eax, 0x7f
cmp eax, 0x3c
jbe 0x6386c8
movapd xmm2, xmm4
jmp 0x6386fc
cmp eax, 0x4002d97d
jae 0x6387ee
test edi, edi
js 0x638982
addsd xmm0, qword [0x6f1218]
movsd xmm1, qword [0x6f12b0]
mov dword [esi + 8], 1
jmp 0x6389e4
cmp eax, 0x413921fb
jae 0x638812
movsd xmm1, qword [0x6f1200]
movsd xmm2, qword [0x6f1218]
shr eax, 0x14
mov edx, eax
mulsd xmm1, xmm0
addsd xmm1, qword [0x6f1208]
addsd xmm1, qword [0x6f1210]
mulsd xmm2, xmm1
addsd xmm2, xmm0
movsd xmm0, qword [0x6f1220]
movapd xmm3, xmm2
mulsd xmm0, xmm1
subsd xmm3, xmm0
movsd qword [esp + 0x68], xmm3
mov ecx, dword [esp + 0x6c]
shr ecx, 0x14
and ecx, 0x7ff
sub edx, ecx
cmp edx, 0x11
jl 0x6386fc
movsd xmm3, qword [0x6f1228]
movsd xmm0, qword [0x6f1230]
movapd xmm4, xmm2
mulsd xmm3, xmm1
mulsd xmm0, xmm1
subsd xmm4, xmm3
subsd xmm2, xmm4
subsd xmm2, xmm3
movapd xmm3, xmm4
subsd xmm0, xmm2
subsd xmm3, xmm0
movsd qword [esp + 0x60], xmm3
mov ecx, dword [esp + 0x64]
shr ecx, 0x14
and ecx, 0x7ff
sub eax, ecx
cmp eax, 0x32
jl 0x6385d0
movsd xmm3, qword [0x6f1238]
movsd xmm0, qword [0x6f1240]
movapd xmm2, xmm4
mulsd xmm3, xmm1
mulsd xmm0, xmm1
subsd xmm2, xmm3
subsd xmm4, xmm2
subsd xmm4, xmm3
movapd xmm3, xmm2
subsd xmm0, xmm4
subsd xmm3, xmm0
movapd xmm4, xmm1
subsd xmm2, xmm3
xor ecx, ecx
ucomisd xmm1, xmm1
maxsd xmm4, qword [0x6f11d0]
subsd xmm2, xmm0
minsd xmm4, qword [0x6f11d8]
cvttsd2si eax, xmm4
cmovnp ecx, eax
mov dword [esi + 8], ecx
movsd qword [esi], xmm3
movsd qword [esi + 0x10], xmm2
jmp 0x6389fd
cmp eax, 0x401921fb
jne 0x638851
movsd xmm1, qword [0x6f1200]
movsd xmm2, qword [0x6f1218]
mov eax, 0x7ff00000
mulsd xmm1, xmm0
addsd xmm1, qword [0x6f1208]
addsd xmm1, qword [0x6f1210]
mulsd xmm2, xmm1
addsd xmm2, xmm0
movsd xmm0, qword [0x6f1220]
movapd xmm3, xmm2
mulsd xmm0, xmm1
subsd xmm3, xmm0
movsd qword [esp + 0x58], xmm3
and eax, dword [esp + 0x5c]
shr eax, 0x14
cmp eax, 0x3f0
ja 0x6386fc
movsd xmm3, qword [0x6f1228]
movsd xmm0, qword [0x6f1230]
movapd xmm4, xmm2
mulsd xmm3, xmm1
mulsd xmm0, xmm1
subsd xmm4, xmm3
subsd xmm2, xmm4
subsd xmm2, xmm3
movapd xmm3, xmm4
subsd xmm0, xmm2
subsd xmm3, xmm0
movsd qword [esp + 0x50], xmm3
movzx eax, byte [esp + 0x57]
and eax, 0x7f
cmp eax, 0x3c
ja 0x6385d0
jmp 0x6386c8
test edi, edi
js 0x63899b
addsd xmm0, qword [0x6f1298]
movsd xmm1, qword [0x6f12a0]
mov dword [esi + 8], 2
jmp 0x6389e4
cmp eax, 0x7fefffff
jbe 0x638875
subsd xmm0, xmm0
mov dword [esi + 8], 0
movsd qword [esi], xmm0
jmp 0x6389f8
test edi, edi
js 0x6389b4
addsd xmm0, qword [0x6f1278]
movsd xmm1, qword [0x6f1280]
mov dword [esi + 8], 3
jmp 0x6389e4
test edi, edi
js 0x6389cd
addsd xmm0, qword [0x6f1258]
movsd xmm1, qword [0x6f1260]
mov dword [esi + 8], 4
jmp 0x6389e4
mov ecx, edi
movd xmm0, dword [esp + 8]
movsd xmm2, qword [0x6f11d8]
movsd xmm5, qword [0x6f11e0]
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
lea ebx, [esp + 0x10]
and ecx, 0xfffff
or ecx, 0x41600000
movd xmm1, ecx
xor ecx, ecx
punpckldq xmm0, xmm1
movsd xmm1, qword [0x6f11d0]
movdqa xmm3, xmm0
ucomisd xmm0, xmm0
maxsd xmm3, xmm1
minsd xmm3, xmm2
cvttsd2si edx, xmm3
cmovp edx, ecx
xorps xmm3, xmm3
cvtsi2sd xmm3, edx
subsd xmm0, xmm3
movsd qword [esp + 0x70], xmm3
mulsd xmm0, xmm5
movapd xmm4, xmm0
ucomisd xmm0, xmm0
maxsd xmm4, xmm1
minsd xmm4, xmm2
cvttsd2si edx, xmm4
cmovp edx, ecx
mov ecx, 3
xorps xmm1, xmm1
cvtsi2sd xmm1, edx
cmp edx, 1
mov edx, 2
subsd xmm0, xmm1
movsd qword [esp + 0x78], xmm1
xorpd xmm1, xmm1
sbb edx, 0
mulsd xmm0, xmm5
ucomisd xmm0, xmm1
movsd qword [esp + 0x80], xmm0
xorpd xmm0, xmm0
cmovne edx, ecx
movapd xmmword [esp + 0x10], xmm0
cmovp edx, ecx
shr eax, 0x14
lea ecx, [esp + 0x70]
add eax, 0xfffffbea
push 1
push eax
push ebx
call fcn.00638a40
add esp, 0xc
test edi, edi
js 0x638a05
movsd xmm0, qword [esp + 0x10]
movsd xmm1, qword [esp + 0x18]
mov dword [esi + 8], eax
movsd qword [esi], xmm0
movsd qword [esi + 0x10], xmm1
jmp 0x6389fd
addsd xmm0, qword [0x6f12a8]
movsd xmm1, qword [0x6f1220]
mov dword [esi + 8], 0xffffffff
jmp 0x6389e4
addsd xmm0, qword [0x6f1288]
movsd xmm1, qword [0x6f1290]
mov dword [esi + 8], 0xfffffffe
jmp 0x6389e4
addsd xmm0, qword [0x6f1268]
movsd xmm1, qword [0x6f1270]
mov dword [esi + 8], 0xfffffffd
jmp 0x6389e4
addsd xmm0, qword [0x6f1248]
movsd xmm1, qword [0x6f1250]
mov dword [esi + 8], 0xfffffffc
movapd xmm2, xmm0
addsd xmm2, xmm1
subsd xmm0, xmm2
addsd xmm0, xmm1
movsd qword [esi], xmm2
movsd qword [esi + 0x10], xmm0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movapd xmm0, xmmword [0x6f11f0]
movsd xmm1, qword [esp + 0x10]
movsd xmm2, qword [esp + 0x18]
neg eax
mov dword [esi + 8], eax
xorpd xmm1, xmm0
xorpd xmm2, xmm0
movlpd qword [esi], xmm1
movlpd qword [esi + 0x10], xmm2
jmp 0x6389fd