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

Disassembly:
sub esp, 0x5c
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov edx, dword [esp + 0x84]
xorps xmm0, xmm0
movaps xmm1, xmmword [0x107eae20]
movups xmmword [esp + 0x28], xmm0
movups xmmword [esp + 0x38], xmm0
mov eax, dword [esp + 0x78]
mov ebp, dword [esp + 0x80]
movd xmm0, edx
pshufd xmm0, xmm0, 0
paddd xmm1, xmm0
mov ebx, dword [esp + 0x88]
movd xmm0, dword [esp + 0x90]
pshufd xmm2, xmm0, 0
pcmpgtd xmm2, xmm1
mov ecx, dword [esp + 0x74]
movaps xmm1, xmmword [0x107eae10]
andps xmm2, xmmword [0x106245d0]
movd xmm0, ebp
pshufd xmm0, xmm0, 0
paddd xmm1, xmm0
mov dword [esp + 0x10], eax
movd xmm0, dword [esp + 0x8c]
pshufd xmm0, xmm0, 0
pcmpgtd xmm0, xmm1
mov dword [esp + 0x20], ebx
andps xmm2, xmm0
mov dword [esp + 0x1c], ecx
movaps xmm0, xmm2
psrldq xmm0, 8
andps xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
andps xmm2, xmm0
mov esi, dword [esp + 0x7c]
movd eax, xmm2
mov edi, dword [esp + 0x70]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], esi
test eax, 1
je 0x10157d1d
lea eax, [esp + 0x48]
push eax
push edx
push ebp
push ecx
push edi
call dword [0x10b49720]
lea eax, [esp + 0x6c]
push eax
push dword [esp + 0x9c]
push ebp
push esi
push dword [esp + 0x34]
call dword [0x10b49720]
add esp, 0x28
cmp dword [0x10b47804], 2
jl 0x10157cf4
movups xmm1, xmmword [esp + 0x48]
movups xmm0, xmmword [esp + 0x58]
psubd xmm1, xmm0
movups xmmword [esp + 0x38], xmm1
pmulld xmm1, xmm1
movups xmmword [esp + 0x28], xmm1
jmp 0x10157d99
xor eax, eax
nop word [eax + eax]
mov ecx, dword [esp + eax + 0x48]
sub ecx, dword [esp + eax + 0x58]
mov dword [esp + eax + 0x38], ecx
imul ecx, ecx
mov dword [esp + eax + 0x28], ecx
add eax, 4
cmp eax, 0x10
jl 0x10157d00
jmp 0x10157d99
xor edi, edi
nop
mov eax, edi
and eax, 1
lea ebp, [ebp + eax*8]
mov eax, edi
and eax, 0xfffffffe
lea ebx, [edx + eax*4]
cmp ebp, dword [esp + 0x8c]
jge 0x10157d88
cmp ebx, dword [esp + 0x90]
jge 0x10157d88
mov eax, ecx
imul eax, ebx
push ecx
add eax, dword [esp + 0x18]
add eax, ebp
push eax
call dword [0x10b4972c]
mov esi, eax
mov eax, dword [esp + 0x20]
push eax
imul eax, ebx
add eax, dword [esp + 0x1c]
add eax, ebp
push eax
call dword [0x10b4972c]
mov ecx, dword [esp + 0x2c]
sub esi, eax
mov edx, dword [esp + 0x94]
add esp, 0x10
mov dword [esp + edi*4 + 0x38], esi
imul esi, esi
mov dword [esp + edi*4 + 0x28], esi
mov ebp, dword [esp + 0x80]
inc edi
cmp edi, 4
jl 0x10157d20
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x50], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x68]
mov dword [ebx + 0x54], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x2e0], eax
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x2e4], eax
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x2e8], 0
mov dword [ebx + 0x570], eax
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x574], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x578], 0
pop edi
mov dword [ebx + 0x800], eax
mov eax, dword [esp + 0x40]
pop esi
mov dword [ebx + 0x804], eax
pop ebp
mov dword [ebx + 0x808], 0
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0x5c
ret