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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa8
mov eax, dword [0x1025f074]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x34], ecx
mov edx, dword [eax]
mov eax, dword [edx + 0x1c]
mov dword [esp + 0x38], eax
mov eax, dword [edx + 0x20]
mov dword [esp + 0x3c], eax
mov eax, dword [edx + 0x20]
sub eax, dword [edx + 0x24]
mov dword [esp + 0x40], eax
mov eax, dword [edx + 0x30]
sub eax, 4
mov dword [esp + 0x54], 0
cmp dword [ebp + 0xc], 0
mov dword [esp + 0x44], eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov word [esp + 0x58], 1
mov byte [esp + 0x5b], 0
mov eax, dword [edx + 0x28]
je 0x1011565f
lea eax, [eax + eax*2]
lea esi, [eax*8]
sub esi, eax
shl esi, 2
push 1
lea eax, [esi + eax*4]
push eax
call fcn.10103ab0
mov edi, eax
lea ecx, [esp + 0x38]
mov eax, dword [esp + 0x34]
add esi, edi
push 0
mov dword [esp + 0x18], esi
push 0
mov dword [eax + 0x20], esi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10115862
movups xmm0, xmmword [eax]
lea eax, [esp + 0x74]
movd xmm1, dword [ebp + 0x10]
psrad xmm0, xmm1
push eax
cvtdq2ps xmm0, xmm0
movups xmmword [esp + 0x68], xmm0
call fcn.100a3d60
cmp eax, 6
je 0x101159c7
mov ecx, dword [ebp + 0x10]
add ecx, 6
mov dword [esp + 0x28], ecx
nop dword [eax]
sub eax, 1
jne 0x10115842
push dword [ebp + 0x14]
lea eax, [esp + 0x90]
push eax
lea edx, [esp + 0x64]
lea ecx, [esp + 0x74]
call fcn.1013eee0
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
jle 0x10115842
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x98]
mov edx, 1
mov dword [esp + 0x10], eax
rol edx, cl
movd xmm1, edx
cvtdq2ps xmm1, xmm1
nop dword [eax]
movss xmm0, dword [eax - 0xc]
mulss xmm0, xmm1
cvttss2si ecx, xmm0
movss xmm0, dword [eax - 8]
mulss xmm0, xmm1
cvttss2si esi, xmm0
movss xmm0, dword [eax - 4]
mulss xmm0, xmm1
mov dword [esp + 0xc], esi
cvttss2si edx, xmm0
movss xmm0, dword [eax]
mulss xmm0, xmm1
mov dword [esp + 0x18], edx
cvttss2si edx, xmm0
cmp esi, edx
mov eax, edx
cmovle eax, dword [esp + 0xc]
cmovle esi, edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
cmovle eax, ecx
mov dword [esp + 0x1c], eax
lea edx, [esi + 0x20]
mov eax, dword [esp + 0x24]
add eax, 0x20
sar edx, 6
sar eax, 6
cmp eax, edx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], edx
cvttss2si edx, xmm0
je 0x1011582c
sub esi, dword [esp + 0x24]
cmp dword [esp + 0xc], edx
cmovle ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x1c]
movsx eax, cx
cmp ecx, eax
jne 0x101157c0
shl ecx, 0x10
mov eax, ecx
cdq
idiv esi
jmp 0x101157cb
push ecx
mov edx, esi
call fcn.100d55c0
add esp, 4
mov esi, dword [esp + 0x2c]
mov ecx, eax
mov eax, esi
mov dword [edi + 0x10], esi
shl eax, 6
sub eax, dword [esp + 0x24]
add eax, 0x20
mov esi, dword [esp + 0x14]
imul ecx
mov dword [edi + 0xc], ecx
shrd eax, edx, 0x10
mov word [edi + 0x18], 0
add eax, dword [esp + 0x1c]
shl eax, 0xa
mov dword [edi + 8], eax
mov eax, dword [esp + 0x30]
dec eax
mov dword [edi + 0x14], eax
cvttss2si eax, xmm0
cmp dword [esp + 0xc], eax
setle al
lea eax, [eax*2 - 1]
mov byte [edi + 0x1b], al
mov eax, dword [esp + 0x10]
mov dword [esi], edi
add esi, 4
mov dword [esp + 0x14], esi
add edi, 0x1c
jmp 0x10115830
mov esi, dword [esp + 0x14]
add eax, 8
sub dword [esp + 0x20], 1
mov dword [esp + 0x10], eax
jne 0x10115720
push 0
push 0
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x44]
call fcn.100a3d60
cmp eax, 6
jne 0x101156d0
jmp 0x101159c7
lea eax, [esp + 0x74]
push eax
call fcn.100a3d60
cmp eax, 6
je 0x101159c7
mov ecx, dword [ebp + 0x10]
add ecx, 6
add edi, 0xc
mov dword [esp + 0x28], ecx
sub eax, 1
jne 0x101159a8
movss xmm0, dword [esp + 0x6c]
mov eax, 1
shl eax, cl
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mulss xmm0, xmm1
cvttss2si ecx, xmm0
movss xmm0, dword [esp + 0x70]
mulss xmm0, xmm1
cvttss2si edx, xmm0
movss xmm0, dword [esp + 0x74]
mulss xmm0, xmm1
mov dword [esp + 0xc], edx
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x78]
mulss xmm0, xmm1
mov dword [esp + 0x20], eax
cvttss2si eax, xmm0
cmp edx, eax
mov esi, eax
cmovle esi, dword [esp + 0xc]
cmovle edx, eax
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x20]
cmovle esi, ecx
mov dword [esp + 0x1c], esi
lea eax, [edx + 0x20]
mov esi, dword [esp + 0x10]
add esi, 0x20
sar eax, 6
sar esi, 6
cmp esi, eax
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
cvttss2si eax, xmm0
je 0x101159a8
sub edx, dword [esp + 0x10]
cmp dword [esp + 0xc], eax
mov dword [esp + 0x30], edx
cmovle ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x1c]
movsx eax, cx
cmp ecx, eax
jne 0x10115944
shl ecx, 0x10
mov eax, ecx
cdq
idiv dword [esp + 0x30]
jmp 0x1011594d
push ecx
call fcn.100d55c0
add esp, 4
mov ecx, eax
mov word [edi + 0xc], 0
mov eax, dword [esp + 0x18]
shl eax, 6
sub eax, dword [esp + 0x10]
add eax, 0x20
mov dword [edi], ecx
imul ecx
shrd eax, edx, 0x10
add eax, dword [esp + 0x1c]
shl eax, 0xa
mov dword [edi - 4], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x2c]
dec eax
mov dword [edi + 8], eax
cvttss2si eax, xmm0
cmp dword [esp + 0xc], eax
setle al
lea eax, [eax*2 - 1]
mov byte [edi + 0xf], al
lea eax, [edi - 0xc]
mov dword [esi], eax
add esi, 4
mov dword [esp + 0x14], esi
add edi, 0x1c
push 0
push 0
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x44]
call fcn.100a3d60
mov ecx, dword [esp + 0x28]
cmp eax, 6
jne 0x10115882
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0xac]
pop edi
sub esi, dword [eax + 0x20]
sar esi, 2
mov eax, esi
pop esi
xor ecx, esp
call fcn.101b3122
mov esp, ebp
pop ebp
ret 0x10