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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x1070dd84]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x3c], edi
cmp byte [edi + 0x3eab8], 0
mov ebx, dword [edi]
mov eax, dword [ebx + 0x5d64]
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
je 0x1020dcbb
mov ecx, dword [edi + 0x75574]
mov dword [esp + 0xc], ecx
jmp 0x1020dcc5
mov eax, dword [edi + 0x3ad20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x24]
movzx edx, byte [eax + 0x10529f4c]
movzx eax, byte [eax + 0x10529f64]
cmp edx, 2
jbe 0x1020dce8
lea ecx, [eax - 4]
mov eax, dword [esp + 0xc]
add ecx, edx
sar eax, cl
jmp 0x1020dcf7
mov ecx, 4
sub ecx, edx
sub ecx, eax
mov eax, dword [esp + 0xc]
shl eax, cl
movd xmm0, eax
xorps xmm1, xmm1
cvtdq2pd xmm0, xmm0
mov dword [esp + 0x18], eax
ucomisd xmm1, xmm0
ja 0x1020dd12
sqrtsd xmm0, xmm0
jmp 0x1020dd17
call fcn.103a58d0
mulsd xmm0, qword [0x1050dd98]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
shrd ecx, edx, 8
movsd qword [esp + 0x10], xmm0
movsd xmm0, qword [esi + 0x70]
mulsd xmm0, qword [esi + 0x68]
sar edx, 8
movsd qword [esp + 0x90], xmm0
movsd qword [esp + 0xe0], xmm0
movd xmm0, dword [ebp + 0x18]
cvtdq2pd xmm0, xmm0
movsd qword [esp + 0x88], xmm0
movsd qword [esp + 0xd8], xmm0
call fcn.103990f0
addsd xmm0, qword [esp + 0x10]
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
shrd ecx, edx, 8
sar edx, 8
movsd qword [esp + 0x50], xmm0
call fcn.103990f0
addsd xmm0, qword [esp + 0x10]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
shrd ecx, edx, 8
sar edx, 8
movsd qword [esp + 0x58], xmm0
call fcn.103990f0
addsd xmm0, qword [esp + 0x10]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
movsd qword [esp + 0x40], xmm0
call fcn.103990f0
movaps xmm1, xmm0
mov eax, dword [esi + 0x20]
movsd xmm0, qword [0x103bfbf0]
movsd qword [esp + 0x48], xmm1
movd xmm1, dword [esi + 0x24]
movsd qword [esp + 0xc8], xmm0
movsd qword [esp + 0x188], xmm0
movd xmm0, dword [esp + 0x18]
cvtdq2pd xmm1, xmm1
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
movsd qword [esp + 0x98], xmm1
movsd qword [esp + 0x108], xmm1
movd xmm1, dword [esi + 0x28]
cvtdq2pd xmm1, xmm1
divsd xmm1, xmm0
movsd qword [esp + 0xa0], xmm1
movsd qword [esp + 0x118], xmm1
movsd xmm1, qword [esi + 0x30]
divsd xmm1, xmm0
movsd qword [esp + 0xa8], xmm1
movsd qword [esp + 0x120], xmm1
movd xmm1, dword [esi + 0x38]
cvtdq2pd xmm1, xmm1
divsd xmm1, xmm0
movd xmm0, dword [esi + 0x3c]
movsd qword [esp + 0xb0], xmm1
movsd qword [esp + 0x128], xmm1
xorps xmm1, xmm1
movsd qword [esp + 0xc0], xmm1
movsd qword [esp + 0x138], xmm1
cvtdq2pd xmm0, xmm0
movsd qword [esp + 0xb8], xmm0
movsd qword [esp + 0x130], xmm0
movsd xmm0, qword [ebp + 0x10]
movsd qword [esp + 0xd0], xmm0
movsd qword [esp + 0x190], xmm0
xorps xmm0, xmm0
movlpd qword [esp + 0x198], xmm0
movaps xmm0, xmmword [0x103c6060]
movups xmmword [esp + 0x1a0], xmm0
xorps xmm0, xmm0
test eax, eax
jle 0x1020dfdb
cvtsi2sd xmm0, dword [esi + 0x48]
mov edx, dword [esi + 0x5c]
mov ecx, dword [esi + 0x58]
xorps xmm1, xmm1
cvtsi2sd xmm1, eax
divsd xmm0, xmm1
movsd qword [esp + 0x20], xmm1
movsd qword [esp + 0x60], xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, dword [esi + 0x50]
divsd xmm0, xmm1
movsd qword [esp + 0x68], xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, dword [esi + 0x4c]
divsd xmm0, xmm1
movsd qword [esp + 0x28], xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, dword [esi + 0x54]
divsd xmm0, xmm1
movsd qword [esp + 0x30], xmm0
call fcn.103990f0
movaps xmm2, xmm0
mov edx, dword [esi + 0x64]
xorps xmm0, xmm0
mov ecx, dword [esi + 0x60]
cvtsi2sd xmm0, dword [esi + 0x48]
mulsd xmm0, xmm0
divsd xmm0, qword [esp + 0x20]
subsd xmm2, xmm0
divsd xmm2, qword [esp + 0x20]
movsd qword [esp + 0x70], xmm2
call fcn.103990f0
movsd xmm1, qword [esp + 0x20]
movaps xmm2, xmm0
xorps xmm0, xmm0
mov eax, dword [esi + 0x20]
cvtsi2sd xmm0, dword [esi + 0x4c]
add eax, eax
mulsd xmm0, xmm0
divsd xmm0, xmm1
subsd xmm2, xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
mov eax, dword [esp + 0x18]
divsd xmm2, xmm1
movsd qword [esp + 0x78], xmm2
xorps xmm2, xmm2
cvtsi2sd xmm2, dword [esi + 0x44]
divsd xmm2, xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
movsd qword [esp + 0x80], xmm2
movsd qword [esp + 0x170], xmm2
xorps xmm2, xmm2
divsd xmm1, xmm0
cvtsi2sd xmm2, dword [esi + 0x40]
movsd qword [esp + 0x20], xmm1
movsd qword [esp + 0x10], xmm2
jmp 0x1020e073
movups xmmword [esp + 0x150], xmm0
movups xmmword [esp + 0x170], xmm0
movsd xmm2, qword [esp + 0x178]
movups xmmword [esp + 0x140], xmm0
movups xmmword [esp + 0x160], xmm0
movsd xmm0, qword [esp + 0x168]
movsd qword [esp + 0x78], xmm0
movsd xmm0, qword [esp + 0x160]
movsd qword [esp + 0x10], xmm2
movsd xmm2, qword [esp + 0x158]
movsd qword [esp + 0x70], xmm0
movsd xmm0, qword [esp + 0x148]
movsd qword [esp + 0x30], xmm2
movsd xmm2, qword [esp + 0x150]
movsd qword [esp + 0x68], xmm0
movsd xmm0, qword [esp + 0x140]
movsd qword [esp + 0x80], xmm1
movsd qword [esp + 0x20], xmm1
movsd qword [esp + 0x28], xmm2
movsd qword [esp + 0x60], xmm0
mov edx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
movsd qword [esp + 0x110], xmm1
call fcn.103990f0
movd xmm3, dword [esp + 0xc]
movsd xmm4, qword [esp + 0x50]
cvtdq2pd xmm3, xmm3
mov esi, dword [esp + 0x1c]
movd xmm2, dword [edi + 0x3ab70]
divsd xmm4, xmm3
cvtdq2pd xmm2, xmm2
movsd qword [esp + 0xf8], xmm4
movsd qword [esp + 0x50], xmm4
movsd xmm4, qword [esp + 0x58]
divsd xmm4, xmm3
movd xmm1, dword [edi + 0x3ab74]
movsd qword [esp + 0x100], xmm4
movsd qword [esp + 0x58], xmm4
movsd xmm4, qword [esp + 0x40]
divsd xmm4, xmm3
movsd xmm6, qword [esp + 0x60]
movsd qword [esp + 0xe8], xmm4
movsd qword [esp + 0x40], xmm4
movsd xmm4, qword [esp + 0x48]
divsd xmm4, xmm3
movsd xmm7, qword [esp + 0x68]
movsd qword [esp + 0xf0], xmm4
movsd qword [esp + 0x48], xmm4
movsd xmm4, qword [esp + 0x28]
divsd xmm4, xmm2
movsd xmm5, qword [esp + 0x78]
movsd qword [esp + 0x28], xmm4
movsd qword [esp + 0x150], xmm4
movsd xmm4, qword [esp + 0x30]
divsd xmm4, xmm2
cvtdq2pd xmm1, xmm1
movsd qword [esp + 0x30], xmm4
divsd xmm6, xmm1
divsd xmm7, xmm1
mulsd xmm1, xmm1
movsd qword [esp + 0x158], xmm4
movsd xmm4, qword [esp + 0x70]
mulsd xmm2, xmm2
divsd xmm4, xmm1
movsd xmm1, qword [esp + 0x10]
divsd xmm1, xmm3
divsd xmm5, xmm2
movsd qword [esp + 0x10], xmm1
movsd qword [esp + 0x178], xmm1
movsd xmm1, qword [esp + 0x88]
movsd qword [esp + 0x180], xmm0
movsd qword [esp + 0x140], xmm6
movsd qword [esp + 0x148], xmm7
movsd qword [esp + 0x160], xmm4
movsd qword [esp + 0x168], xmm5
movsd qword [esi], xmm1
movsd xmm1, qword [esp + 0x90]
movsd qword [esi + 8], xmm1
movsd xmm1, qword [esp + 0x40]
movsd qword [esi + 0x10], xmm1
movsd xmm1, qword [esp + 0x48]
movsd qword [esi + 0x18], xmm1
movsd xmm1, qword [esp + 0x50]
movsd qword [esi + 0x20], xmm1
movsd xmm1, qword [esp + 0x58]
movsd qword [esi + 0x28], xmm1
movsd xmm1, qword [esp + 0x98]
movsd qword [esi + 0x30], xmm1
movsd xmm1, qword [esp + 0x20]
movsd qword [esi + 0x38], xmm1
movsd xmm1, qword [esp + 0xa0]
movsd qword [esi + 0x40], xmm1
movsd xmm1, qword [esp + 0xa8]
movsd qword [esi + 0x48], xmm1
movsd xmm1, qword [esp + 0xb0]
movsd qword [esi + 0x50], xmm1
movsd xmm1, qword [esp + 0xb8]
movsd qword [esi + 0x58], xmm1
movsd xmm1, qword [esp + 0xc0]
movsd qword [esi + 0x60], xmm1
movsd qword [esi + 0x68], xmm6
movsd qword [esi + 0x70], xmm7
movsd xmm2, qword [esp + 0x28]
movsd qword [esi + 0x78], xmm2
movsd xmm2, qword [esp + 0x30]
movsd qword [esi + 0x80], xmm2
movsd xmm2, qword [esp + 0x80]
movsd qword [esi + 0x88], xmm4
movsd qword [esi + 0x90], xmm5
movsd qword [esi + 0x98], xmm2
movsd xmm2, qword [esp + 0x10]
movsd qword [esi + 0xa0], xmm2
movsd xmm2, qword [esp + 0xd0]
movsd qword [esi + 0xa8], xmm0
movsd xmm0, qword [esp + 0xc8]
movsd qword [esi + 0xb0], xmm0
movsd qword [esi + 0xb8], xmm2
mov dword [esi + 0xc0], 0
mov dword [esi + 0xc4], 0
movsd qword [esi + 0xc8], xmm1
movsd qword [esi + 0xd0], xmm0
mov eax, dword [edi]
cmp dword [eax + 0x5be8], 0
jne 0x1020e341
mov eax, dword [eax + 0xf4]
mov dword [esp + 0x1b0], 1
mov dword [esp + 0x1b8], esi
mov dword [esp + 0x1bc], 0xd8
test eax, eax
je 0x1020e395
lea ecx, [esp + 0x1b0]
push ecx
push eax
call fcn.10065750
jmp 0x1020e392
mov ecx, dword [ebx + 0x86cc]
cmp ecx, dword [ebx + 0x86c4]
jge 0x1020e395
mov eax, dword [ebx + 0x86c8]
add eax, ecx
mov ecx, 0x36
cdq
idiv dword [ebx + 0x86c4]
mov eax, dword [esp + 0x1c]
imul edi, edx, 0xd8
push eax
lea eax, [ebx + 0x86e0]
push eax
add edi, dword [ebx + 0x86c0]
rep movsd dword es:[edi], dword [esi]
inc dword [ebx + 0x86cc]
inc dword [ebx + 0x86d4]
call fcn.1020b8c0
mov edi, dword [esp + 0x44]
add esp, 8
mov eax, dword [edi]
mov eax, dword [eax + 0x5d64]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1020e3b5
lea ecx, [esp + 0xd8]
push ecx
push eax
call fcn.1020b8c0
add esp, 8
mov eax, dword [ebx + 0x5d64]
add dword [eax + 4], 0xd8
cmp dword [edi + 0x996d8], 0
jne 0x1020e3e7
cmp dword [edi + 0x3edf8], 1
jne 0x1020e3e7
mov ecx, dword [ebx + 0x5d64]
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
jb 0x1020e3e7
mov eax, dword [ecx]
mov dword [ecx + 4], eax
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10398bef
mov esp, ebp
pop ebp
ret