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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x2b4
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x2b0], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x84], edi
cmp byte [edi + 0x3eb68], 0
mov ebx, dword [edi]
mov eax, dword [ebx + 0x5b74]
mov eax, dword [eax + 4]
mov dword [esp + 0x64], eax
je 0x1008473e
mov ecx, dword [edi + 0x6d69c]
mov dword [esp + 0x50], ecx
jmp 0x10084748
mov eax, dword [edi + 0x3add0]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x24]
movzx edx, byte [eax + 0x105e3470]
movzx eax, byte [eax + 0x105e3488]
cmp edx, 2
jbe 0x1008476b
lea ecx, [eax - 4]
mov eax, dword [esp + 0x50]
add ecx, edx
sar eax, cl
jmp 0x1008477a
mov ecx, 4
sub ecx, edx
sub ecx, eax
mov eax, dword [esp + 0x50]
shl eax, cl
movd xmm0, eax
xorps xmm1, xmm1
cvtdq2pd xmm0, xmm0
mov dword [esp + 0x58], eax
ucomisd xmm1, xmm0
ja 0x10084795
sqrtsd xmm0, xmm0
jmp 0x1008479a
call fcn.10521110
mulsd xmm0, qword [0x105e46f0]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
shrd ecx, edx, 8
movsd qword [esp + 0x48], xmm0
movsd xmm0, qword [esi + 0x70]
mulsd xmm0, qword [esi + 0x68]
sar edx, 8
movsd qword [esp + 0xe0], xmm0
movsd qword [esp + 0x130], xmm0
movd xmm0, dword [ebp + 0x18]
cvtdq2pd xmm0, xmm0
movsd qword [esp + 0x128], xmm0
call fcn.10511ed0
addsd xmm0, qword [esp + 0x48]
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
shrd ecx, edx, 8
sar edx, 8
movsd qword [esp + 0x90], xmm0
call fcn.10511ed0
addsd xmm0, qword [esp + 0x48]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
shrd ecx, edx, 8
sar edx, 8
movsd qword [esp + 0x98], xmm0
call fcn.10511ed0
addsd xmm0, qword [esp + 0x48]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
movsd qword [esp + 0x70], xmm0
call fcn.10511ed0
movd xmm1, dword [esi + 0x24]
movsd qword [esp + 0x88], xmm0
movsd xmm0, qword [0x1059ba70]
movsd qword [esp + 0x120], xmm0
movsd qword [esp + 0x1d8], xmm0
movd xmm0, dword [esp + 0x58]
cvtdq2pd xmm1, xmm1
mov eax, dword [esi + 0x20]
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
movsd qword [esp + 0xe8], xmm1
movsd qword [esp + 0x158], xmm1
movd xmm1, dword [esi + 0x28]
cvtdq2pd xmm1, xmm1
divsd xmm1, xmm0
movsd qword [esp + 0xf0], xmm1
movsd qword [esp + 0x168], xmm1
movsd xmm1, qword [esi + 0x30]
divsd xmm1, xmm0
movsd qword [esp + 0xf8], xmm1
movsd qword [esp + 0x170], xmm1
movd xmm1, dword [esi + 0x38]
cvtdq2pd xmm1, xmm1
divsd xmm1, xmm0
movd xmm0, dword [esi + 0x3c]
movsd qword [esp + 0x100], xmm1
movsd qword [esp + 0x178], xmm1
xorps xmm1, xmm1
movsd qword [esp + 0x110], xmm1
movsd qword [esp + 0x188], xmm1
cvtdq2pd xmm0, xmm0
movsd qword [esp + 0x108], xmm0
movsd qword [esp + 0x180], xmm0
movsd xmm0, qword [ebp + 0x10]
movsd qword [esp + 0x1e0], xmm0
xorps xmm0, xmm0
movlpd qword [esp + 0x1e8], xmm0
movaps xmm0, xmmword [0x105e4700]
movups xmmword [esp + 0x1f0], xmm0
xorps xmm0, xmm0
test eax, eax
jle 0x10084a5b
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 + 0x68], xmm1
movsd qword [esp + 0xa0], xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, dword [esi + 0x50]
divsd xmm0, xmm1
movsd qword [esp + 0xa8], xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, dword [esi + 0x4c]
divsd xmm0, xmm1
movsd qword [esp + 0xb0], xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, dword [esi + 0x54]
divsd xmm0, xmm1
movsd qword [esp + 0x78], xmm0
call fcn.10511ed0
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 + 0x68]
subsd xmm2, xmm0
divsd xmm2, qword [esp + 0x68]
movsd qword [esp + 0xb8], xmm2
call fcn.10511ed0
movsd xmm1, qword [esp + 0x68]
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 + 0x58]
divsd xmm2, xmm1
movsd qword [esp + 0xc0], xmm2
xorps xmm2, xmm2
cvtsi2sd xmm2, dword [esi + 0x44]
divsd xmm2, xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, dword [esi + 0x40]
movsd qword [esp + 0xc8], xmm2
movsd qword [esp + 0x48], xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
movsd qword [esp + 0x1c0], xmm2
divsd xmm1, xmm0
jmp 0x10084afc
movups xmmword [esp + 0x190], xmm0
movups xmmword [esp + 0x1a0], xmm0
movups xmmword [esp + 0x1b0], xmm0
movups xmmword [esp + 0x1c0], xmm0
movsd xmm0, qword [esp + 0x1c8]
movsd qword [esp + 0x48], xmm0
movsd xmm0, qword [esp + 0x1b8]
movsd qword [esp + 0xc0], xmm0
movsd xmm0, qword [esp + 0x1b0]
movsd qword [esp + 0xb8], xmm0
movsd xmm0, qword [esp + 0x1a8]
movsd qword [esp + 0x78], xmm0
movsd xmm0, qword [esp + 0x1a0]
movsd qword [esp + 0xb0], xmm0
movsd xmm0, qword [esp + 0x198]
movsd qword [esp + 0xa8], xmm0
movsd xmm0, qword [esp + 0x190]
movsd qword [esp + 0xc8], xmm1
movsd qword [esp + 0xa0], xmm0
mov edx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
movsd qword [esp + 0x68], xmm1
movsd qword [esp + 0x160], xmm1
call fcn.10511ed0
mov esi, dword [esp + 0x50]
sub esp, 8
movsd xmm2, qword [esp + 0xa0]
movsd qword [esp + 0x120], xmm0
movsd qword [esp + 0x1d8], xmm0
movd xmm0, esi
cvtdq2pd xmm0, xmm0
movd xmm1, dword [edi + 0x3ac20]
divsd xmm2, xmm0
cvtdq2pd xmm1, xmm1
movsd qword [esp + 0xa0], xmm2
movsd qword [esp + 0x158], xmm2
movsd xmm2, qword [esp + 0x78]
divsd xmm2, xmm0
movsd qword [esp + 0xe0], xmm1
movd xmm1, dword [edi + 0x3ac24]
cvtdq2pd xmm1, xmm1
movsd qword [esp + 0x78], xmm2
movsd qword [esp + 0xd8], xmm1
movsd xmm1, qword [esp + 0x98]
movsd qword [esp + 0x140], xmm2
movsd xmm2, qword [esp + 0x90]
divsd xmm1, xmm0
divsd xmm2, xmm0
movsd qword [esp + 0x98], xmm1
movsd qword [esp + 0x150], xmm1
movsd qword [esp + 0x90], xmm2
movsd qword [esp + 0x148], xmm2
movsd qword [esp], xmm1
call fcn.10521318
fstp qword [esp + 0x60]
movsd xmm0, qword [esp + 0x60]
movsd qword [esp + 0x210], xmm0
movsd xmm0, qword [esp + 0x78]
movsd qword [esp], xmm0
call fcn.10521318
movsd xmm3, qword [esp + 0x80]
add esp, 8
movsd xmm1, qword [esp + 0xd8]
divsd xmm3, xmm1
movsd xmm0, qword [esp + 0xd0]
movsd xmm5, qword [esp + 0xa0]
movsd xmm6, qword [esp + 0xa8]
movsd xmm7, qword [esp + 0xb0]
movsd xmm4, qword [esp + 0xc0]
divsd xmm5, xmm0
divsd xmm6, xmm0
mulsd xmm0, xmm0
movsd qword [esp + 0x78], xmm3
movsd qword [esp + 0x1a8], xmm3
movsd xmm3, qword [esp + 0xb8]
divsd xmm3, xmm0
divsd xmm7, xmm1
mulsd xmm1, xmm1
movd xmm0, esi
cvtdq2pd xmm0, xmm0
mov esi, dword [esp + 0x64]
divsd xmm4, xmm1
movsd xmm1, qword [esp + 0x48]
divsd xmm1, xmm0
movd xmm0, dword [ebp + 0x18]
cvtdq2pd xmm0, xmm0
fstp qword [esp + 0x50]
movsd xmm2, qword [esp + 0x50]
movsd qword [esp + 0x200], xmm2
movsd qword [esp + 0x190], xmm5
movsd qword [esp + 0x198], xmm6
movsd qword [esp + 0x1a0], xmm7
movsd qword [esp + 0x1b0], xmm3
movsd qword [esp + 0x1b8], xmm4
movsd qword [esp + 0x48], xmm1
movsd qword [esp + 0x1c8], xmm1
movsd qword [esi], xmm0
movsd xmm0, qword [esp + 0xe0]
movsd qword [esi + 8], xmm0
movsd xmm0, qword [esp + 0x70]
movsd qword [esi + 0x10], xmm0
movsd xmm0, qword [esp + 0x88]
movsd qword [esi + 0x18], xmm0
movsd xmm0, qword [esp + 0x90]
movsd qword [esi + 0x20], xmm0
movsd xmm0, qword [esp + 0x98]
movsd qword [esi + 0x28], xmm0
movsd xmm0, qword [esp + 0xe8]
movsd qword [esi + 0x30], xmm0
movsd xmm1, qword [esp + 0x68]
movsd xmm0, qword [esp + 0xf0]
movsd qword [esi + 0x38], xmm1
movsd qword [esi + 0x40], xmm0
movsd xmm0, qword [esp + 0xf8]
movsd qword [esi + 0x48], xmm0
movsd xmm0, qword [esp + 0x100]
movsd xmm1, qword [esp + 0x110]
movsd qword [esi + 0x50], xmm0
movsd xmm0, qword [esp + 0x108]
movsd qword [esi + 0x58], xmm0
movsd qword [esi + 0x60], xmm1
movsd qword [esi + 0x68], xmm5
movsd qword [esi + 0x70], xmm6
movsd qword [esi + 0x78], xmm7
movsd xmm0, qword [esp + 0x78]
movsd qword [esi + 0x80], xmm0
movsd xmm0, qword [esp + 0xc8]
movsd qword [esi + 0x88], xmm3
movsd xmm3, qword [ebp + 0x10]
movsd qword [esi + 0x90], xmm4
movsd qword [esi + 0x98], xmm0
movsd xmm0, qword [esp + 0x48]
movsd qword [esi + 0xa0], xmm0
movsd xmm0, qword [esp + 0x118]
movsd qword [esi + 0xa8], xmm0
movsd xmm0, qword [esp + 0x120]
movsd qword [esi + 0xb0], xmm0
movsd qword [esi + 0xb8], xmm3
mov dword [esi + 0xc0], 0
mov dword [esi + 0xc4], 0
movsd qword [esi + 0xc8], xmm1
movsd qword [esi + 0xd0], xmm0
movsd xmm0, qword [esp + 0x58]
movsd qword [esi + 0xd8], xmm2
movsd qword [esi + 0xe0], xmm0
mov eax, dword [edi]
cmp dword [eax + 0x59f4], 0
jne 0x10084e89
mov eax, dword [eax + 0xf4]
mov dword [esp + 0x210], 1
mov dword [esp + 0x218], esi
mov dword [esp + 0x21c], 0xe8
test eax, eax
je 0x10084ee0
lea ecx, [esp + 0x210]
push ecx
push eax
call fcn.10064250
jmp 0x10084edd
mov ecx, dword [ebx + 0x87ec]
cmp ecx, dword [ebx + 0x87e4]
jge 0x10084ee0
mov eax, dword [ebx + 0x87e8]
add eax, ecx
mov ecx, 0x3a
cdq
idiv dword [ebx + 0x87e4]
mov eax, dword [esp + 0x64]
imul edi, edx, 0xe8
push eax
lea eax, [ebx + 0x8800]
push eax
add edi, dword [ebx + 0x87e0]
rep movsd dword es:[edi], dword [esi]
inc dword [ebx + 0x87ec]
inc dword [ebx + 0x87f4]
call fcn.10081fe0
mov edi, dword [esp + 0x8c]
add esp, 8
mov eax, dword [edi]
mov eax, dword [eax + 0x5b74]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10084f00
lea ecx, [esp + 0x128]
push ecx
push eax
call fcn.10081fe0
add esp, 8
mov eax, dword [ebx + 0x5b74]
add dword [eax + 4], 0xe8
cmp dword [edi + 0x91810], 0
jne 0x10084f32
cmp dword [edi + 0x3eea8], 1
jne 0x10084f32
mov ecx, dword [ebx + 0x5b74]
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
jb 0x10084f32
mov eax, dword [ecx]
mov dword [ecx + 4], eax
mov ecx, dword [esp + 0x2bc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.105116c0
mov esp, ebp
pop ebp
ret