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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x3c]
cmp eax, dword [ecx + 8]
jbe 0x421c67
sub esp, 0xbc
mov ebx, dword [esp + 0xc0]
movsd xmm0, qword [ebx + 0x60]
movsd qword [esp + 0x1c], xmm0
cvtsi2sd xmm0, dword [0x8f7d68]
movsd qword [esp + 0x7c], xmm0
movsd xmm0, qword [esp + 0x7c]
movsd qword [esp + 0x7c], xmm0
movsd xmm0, qword [esp + 0x7c]
divsd xmm0, qword [0x7b6eb8]
movsd qword [esp + 0x34], xmm0
mov eax, dword [0x8fb5d4]
mov dword [esp + 0x74], eax
mov eax, dword [0x8fb5d8]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x70], eax
cmp dword [esp + 0x70], 0
jl 0x421c39
fild qword [esp + 0x6c]
fstp qword [esp + 0x7c]
movsd xmm0, qword [esp + 0x7c]
movsd qword [esp + 0x7c], xmm0
mov eax, dword [0x8fb5e4]
mov dword [esp + 0x74], eax
mov eax, dword [0x8fb5e8]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x60], eax
cmp dword [esp + 0x60], 0
jl 0x421c0b
fild qword [esp + 0x5c]
fstp qword [esp + 0x64]
movsd xmm0, qword [esp + 0x64]
movsd qword [esp + 0x64], xmm0
movsd xmm0, qword [esp + 0x64]
movsd xmm1, qword [esp + 0x7c]
divsd xmm1, xmm0
movsd qword [esp + 0x7c], xmm1
movsd xmm0, qword [esp + 0x7c]
subsd xmm0, qword [0x7b6e80]
movsd qword [esp + 0x8c], xmm0
call fcn.00435050
movsd xmm6, qword [esp + 0x1c]
movsd xmm5, qword [esp + 0x8c]
movsd xmm4, qword [esp + 0x34]
mov edi, dword [esp + 0xc0]
mov eax, dword [esp]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x88], eax
mov eax, dword [edi + 0x30]
mov dword [esp + 0x54], eax
mov eax, dword [edi + 0x34]
mov dword [esp + 0x58], eax
mov ebp, dword [esp + 0x84]
mov edx, dword [esp + 0x88]
sub ebp, dword [esp + 0x54]
sbb edx, dword [esp + 0x58]
mov ecx, edx
movsd xmm3, qword [0x7b6e60]
cmp edx, 0
jl 0x4216f4
jg 0x42164b
cmp ebp, 0
jbe 0x4216f4
movsd qword [esp + 0x7c], xmm3
mov eax, dword [edi + 0x10]
mov dword [esp + 0x54], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x58], eax
fild qword [esp + 0x54]
fstp qword [esp + 0x64]
movsd xmm0, qword [esp + 0x64]
movsd qword [esp + 0x64], xmm0
mov eax, dword [0x8f7d78]
cdq
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], edx
mov eax, dword [esp + 0x84]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x48], eax
mov eax, ebp
mov edx, ecx
mov esi, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
mov ebp, ecx
or ebp, ebx
jne 0x421bf6
mul esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
fild qword [esp + 0x44]
fstp qword [esp + 0x4c]
movsd xmm0, qword [esp + 0x4c]
movsd qword [esp + 0x4c], xmm0
movsd xmm0, qword [esp + 0x4c]
movsd xmm1, qword [esp + 0x64]
divsd xmm1, xmm0
movsd qword [esp + 0x64], xmm1
movsd xmm3, qword [esp + 0x64]
addsd xmm3, qword [esp + 0x7c]
movsd qword [esp + 0x7c], xmm3
movsd xmm1, qword [esp + 0x7c]
divsd xmm1, qword [0x7b6e60]
movsd qword [esp + 0x7c], xmm1
movsd xmm1, qword [edi + 0x60]
movapd xmm2, xmm5
subsd xmm2, xmm1
movsd qword [esp + 0x64], xmm2
movsd xmm1, qword [esp + 0x64]
movsd xmm0, qword [esp + 0x7c]
mulsd xmm0, xmm1
movsd xmm1, qword [edi + 0x60]
movapd xmm2, xmm4
subsd xmm2, xmm1
movapd xmm1, xmm2
subsd xmm1, xmm0
movsd xmm0, qword [edi + 0x60]
movsd qword [esp + 0x7c], xmm0
movsd qword [esp + 0x64], xmm1
movsd xmm0, qword [esp + 0x64]
mulsd xmm0, qword [0x7b6e70]
movsd qword [esp + 0x64], xmm0
movsd xmm0, qword [esp + 0x64]
addsd xmm0, qword [esp + 0x7c]
movsd qword [esp + 0x64], xmm0
movsd xmm0, qword [esp + 0x64]
movsd qword [edi + 0x60], xmm0
movsd xmm0, qword [edi + 0x60]
movsd qword [esp + 0x7c], xmm0
xorps xmm0, xmm0
movsd xmm1, qword [esp + 0x7c]
ucomisd xmm0, xmm1
ja 0x421bdd
movsd xmm0, qword [edi + 0x60]
movsd qword [esp + 0x7c], xmm0
movsd qword [esp + 0x64], xmm4
movsd xmm0, qword [esp + 0x64]
mulsd xmm0, qword [0x7b6e78]
movsd qword [esp + 0x64], xmm0
movsd xmm0, qword [esp + 0x64]
movsd xmm1, qword [esp + 0x7c]
ucomisd xmm1, xmm0
ja 0x421bb3
mov ebx, dword [0x8f8050]
cmp ebx, 0
jle 0x421b7e
mov edx, dword [0x8fb5e4]
mov ecx, dword [0x8fb5e8]
mov eax, dword [0x8fa068]
mov dword [esp + 0xb4], eax
mov eax, dword [0x8fa06c]
mov dword [esp + 0xb8], eax
mov eax, dword [0x8fb5d4]
mov dword [esp + 0xac], eax
mov eax, dword [0x8fb5d8]
mov dword [esp + 0xb0], eax
movapd xmm1, xmm4
mov dword [esp + 0x9c], edx
mov dword [esp + 0x74], edx
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x78], ecx
cmp dword [esp + 0x78], 0
jl 0x421b85
fild qword [esp + 0x74]
fstp qword [esp + 0x7c]
movsd xmm0, qword [esp + 0x7c]
movsd qword [esp + 0x7c], xmm0
movsd qword [esp + 0x24], xmm1
movsd qword [esp + 0x64], xmm1
movsd xmm0, qword [esp + 0x64]
addsd xmm0, qword [0x7b6e80]
movsd qword [esp + 0x64], xmm0
movsd xmm0, qword [esp + 0x64]
movsd xmm1, qword [esp + 0x7c]
mulsd xmm1, xmm0
movsd qword [esp + 0x7c], xmm1
movsd xmm0, qword [esp + 0x7c]
movsd qword [esp + 0x7c], xmm0
fld qword [esp + 0x7c]
fnstcw word [esp + 0xa]
mov word [esp + 8], 0xf7f
fldcw word [esp + 8]
fistp qword [esp + 0x84]
fldcw word [esp + 0xa]
mov eax, dword [esp + 0x84]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0xa8], eax
movsd xmm2, qword [0x7b6e60]
mov eax, dword [edi]
mov dword [esp + 0x94], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x98], eax
movsd qword [esp + 0x4c], xmm4
movsd xmm0, qword [esp + 0x4c]
subsd xmm0, xmm6
movsd qword [esp + 0x4c], xmm0
movsd qword [esp + 0x2c], xmm5
movsd qword [esp + 0x64], xmm5
movsd xmm0, qword [esp + 0x64]
subsd xmm0, xmm6
movsd qword [esp + 0x64], xmm0
movsd qword [esp + 0x14], xmm3
movapd xmm0, xmm3
divsd xmm0, xmm2
movsd qword [esp + 0xc], xmm2
movsd qword [esp + 0x3c], xmm0
call fcn.00437de0
mov ebx, 0x7602cd
mov dword [esp], ebx
mov dword [esp + 4], 0x10
call fcn.004387f0
mov eax, dword [esp + 0x9c]
mov dword [esp], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 4], eax
call fcn.00438460
mov ebx, 0x75882e
mov dword [esp], ebx
mov dword [esp + 4], 5
call fcn.004387f0
movsd xmm0, qword [esp + 0x1c]
movsd qword [esp], xmm0
call fcn.004380e0
mov ebx, 0x758801
mov dword [esp], ebx
mov dword [esp + 4], 5
call fcn.004387f0
mov eax, dword [esp + 0xb4]
mov dword [esp], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 4], eax
call fcn.00438460
mov ebx, 0x758824
mov dword [esp], ebx
mov dword [esp + 4], 5
call fcn.004387f0
movsd xmm0, qword [esp + 0x2c]
movsd qword [esp], xmm0
call fcn.004380e0
mov ebx, 0x758806
mov dword [esp], ebx
mov dword [esp + 4], 5
call fcn.004387f0
mov eax, dword [esp + 0xac]
mov dword [esp], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 4], eax
call fcn.00438460
mov ebx, 0x758829
mov dword [esp], ebx
mov dword [esp + 4], 5
call fcn.004387f0
movsd xmm0, qword [esp + 0x24]
movsd qword [esp], xmm0
call fcn.004380e0
mov ebx, 0x75880b
mov dword [esp], ebx
mov dword [esp + 4], 5
call fcn.004387f0
mov eax, dword [esp + 0xa4]
mov dword [esp], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 4], eax
call fcn.00438600
mov ebx, 0x75884c
mov dword [esp], ebx
mov dword [esp + 4], 5
call fcn.004387f0
movsd xmm0, qword [esp + 0x14]
movsd qword [esp], xmm0
call fcn.004380e0
mov ebx, 0x758851
mov dword [esp], ebx
mov dword [esp + 4], 5
call fcn.004387f0
movsd xmm0, qword [esp + 0xc]
movsd qword [esp], xmm0
call fcn.004380e0
mov ebx, 0x758815
mov dword [esp], ebx
mov dword [esp + 4], 5
call fcn.004387f0
mov eax, dword [esp + 0x94]
mov dword [esp], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 4], eax
call fcn.00438600
mov ebx, 0x75b550
mov dword [esp], ebx
mov dword [esp + 4], 8
call fcn.004387f0
movsd xmm0, qword [esp + 0x4c]
movsd qword [esp], xmm0
call fcn.004380e0
mov ebx, 0x75c951
mov dword [esp], ebx
mov dword [esp + 4], 0xa
call fcn.004387f0
movsd xmm0, qword [esp + 0x64]
movsd qword [esp], xmm0
call fcn.004380e0
mov ebx, 0x75c0d7
mov dword [esp], ebx
mov dword [esp + 4], 9
call fcn.004387f0
movsd xmm0, qword [esp + 0x3c]
movsd qword [esp], xmm0
call fcn.004380e0
mov ebx, 0x7577aa
mov dword [esp], ebx
mov dword [esp + 4], 1
call fcn.004387f0
call fcn.00437e60
add esp, 0xbc
ret
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
shrd eax, edx, 1
xor ecx, ecx
setae cl
or eax, ecx
shr edx, 1
mov dword [esp + 0x78], edx
mov dword [esp + 0x74], eax
fild qword [esp + 0x74]
fld st(0)
faddp st(1)
fstp qword [esp + 0x7c]
jmp 0x42185d
movsd qword [esp + 0x7c], xmm4
movsd xmm0, qword [esp + 0x7c]
mulsd xmm0, qword [0x7b6e78]
movsd qword [esp + 0x7c], xmm0
movsd xmm0, qword [esp + 0x7c]
movsd qword [edi + 0x60], xmm0
jmp 0x4217e1
xorps xmm0, xmm0
movsd qword [esp + 0x7c], xmm0
movsd xmm0, qword [esp + 0x7c]
movsd qword [edi + 0x60], xmm0
jmp 0x4217e1
imul edx, esi
mov ebp, eax
imul ebp, ebx
add ebp, edx
mov edx, esi
mul edx
add edx, ebp
jmp 0x4216b6
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
shrd eax, edx, 1
xor ecx, ecx
setae cl
or eax, ecx
shr edx, 1
mov dword [esp + 0x60], edx
mov dword [esp + 0x5c], eax
fild qword [esp + 0x5c]
fld st(0)
faddp st(1)
fstp qword [esp + 0x64]
jmp 0x42159a
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
shrd eax, edx, 1
xor ecx, ecx
setae cl
or eax, ecx
shr edx, 1
mov dword [esp + 0x70], edx
mov dword [esp + 0x6c], eax
fild qword [esp + 0x6c]
fld st(0)
faddp st(1)
fstp qword [esp + 0x7c]
jmp 0x421557
call fcn.004616d0
jmp fcn.004214c0