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

Disassembly:
sub esp, 0x138
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x134], eax
mov edx, dword [esp + 0x13c]
xorps xmm0, xmm0
mov eax, dword [esp + 0x148]
mov dword [esp + 0x30], eax
mov eax, edx
imul eax, edx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x2c], eax
mov eax, edx
sar eax, 1
push 0x80
mov dword [esp + 0x24], eax
push 0
lea edi, [eax + 1]
mov dword [esp + 0x2c], edx
lea eax, [esp + 0xcc]
mov dword [esp + 0x18], edi
push eax
movups xmmword [esp + 0x78], xmm0
movups xmmword [esp + 0x88], xmm0
call fcn.10513d40
mov ecx, dword [esp + 0x30]
add esp, 0xc
test ecx, ecx
jle 0x10154ca2
mov esi, dword [esp + 0x150]
lea eax, [ecx - 1]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x15c]
sub eax, esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], eax
mov eax, dword [eax + esi]
xor ebx, ebx
mov ebp, dword [esi]
cdq
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], edx
mov dword [esp + 0x1c], eax
push edx
push dword [esp + 0x18]
mov ecx, eax
lea esi, [esp + 0x74]
push dword [ebp + 4]
cmp ebx, edi
push dword [ebp]
cmovl ecx, ebx
lea esi, [esi + ecx*8]
call fcn.10511b50
push 0
push 0x10000
push edx
push eax
call fcn.10511aa0
add dword [esi], eax
lea ebp, [ebp + 8]
mov eax, dword [esp + 0x1c]
adc dword [esi + 4], edx
inc ebx
mov ecx, dword [esp + 0x24]
dec eax
mov edx, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
cmp ebx, ecx
jl 0x10154a00
mov esi, dword [esp + 0x150]
mov eax, dword [esp + 0x30]
add esi, 4
sub dword [esp + 0x28], 1
mov dword [esp + 0x150], esi
jne 0x101549e8
mov ebp, dword [esp + 0x15c]
xor ebx, ebx
xor esi, esi
cmp ecx, 8
jb 0x10154ae0
cmp dword [0x10b47804], 2
jl 0x10154ae0
mov eax, ecx
xorps xmm1, xmm1
and eax, 0xfffffff8
xorps xmm2, xmm2
nop word [eax + eax]
movups xmm0, xmmword [ebp + esi*4]
pabsd xmm0, xmm0
pmaxsd xmm1, xmm0
movups xmm0, xmmword [ebp + esi*4 + 0x10]
add esi, 8
pabsd xmm0, xmm0
pmaxsd xmm2, xmm0
cmp esi, eax
jl 0x10154a90
pmaxsd xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
pmaxsd xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
pmaxsd xmm1, xmm0
movd ebx, xmm1
jmp 0x10154aef
mov eax, dword [ebp + esi*4]
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
cmovg ebx, eax
inc esi
cmp esi, ecx
jl 0x10154ae0
cmp ebx, 0x800000
mov eax, 1
mov ecx, 4
mov edx, 0x10000
cmovl ecx, eax
mov eax, ecx
push 0
imul edx
push ecx
push 0
push 0x10000
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], edx
call fcn.10512010
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x154]
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x24]
lea eax, [ecx*8]
mov dword [esp + 0x68], eax
mov eax, ebp
sub eax, esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x38], eax
lea ecx, [edx - 1]
mov dword [esp + 0x1c], ecx
nop dword [eax + eax]
mov eax, dword [esi + eax]
xor ebx, ebx
cdq
mov ebp, esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x14], esi
nop dword [eax + eax]
mov eax, dword [esp + 0x15c]
xor esi, esi
mov dword [esp + 0x44], esi
mov eax, dword [eax + ebx*4]
cdq
mov dword [esp + 0x58], edx
mov edx, ecx
mov dword [esp + 0x5c], eax
mov eax, dword [ebp]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edx
jmp 0x10154bb4
mov ecx, dword [esp + 0x1c]
cmp esi, edi
mov dword [esp + 0x28], ecx
mov ebp, edx
cmovl ebp, esi
mov esi, eax
xor ebx, ebx
mov eax, ecx
push dword [esi + 4]
cmp ebx, edi
push dword [esi]
cmovl eax, ebx
push dword [esp + 0x50]
imul eax, edi
lea edi, [esp + 0xd0]
push dword [esp + 0x58]
add eax, ebp
lea edi, [edi + eax*8]
call fcn.10511b50
push dword [esp + 0x50]
push dword [esp + 0x58]
push edx
push eax
call fcn.10511aa0
push dword [esp + 0x58]
push dword [esp + 0x60]
push edx
push eax
call fcn.10511b50
push dword [esp + 0x60]
push dword [esp + 0x68]
push edx
push eax
call fcn.10511aa0
add dword [edi], eax
lea esi, [esi + 8]
mov eax, dword [esp + 0x28]
adc dword [edi + 4], edx
inc ebx
mov ecx, dword [esp + 0x24]
dec eax
mov edi, dword [esp + 0x10]
mov dword [esp + 0x28], eax
cmp ebx, ecx
jl 0x10154bc5
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x2c]
inc esi
mov eax, dword [esp + 0x30]
dec edx
add eax, dword [esp + 0x68]
mov dword [esp + 0x44], esi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
cmp esi, ecx
jl 0x10154bb0
mov ebx, dword [esp + 0x34]
lea eax, [ecx*4]
mov ebp, dword [esp + 0x14]
inc ebx
add ebp, eax
mov dword [esp + 0x34], ebx
cmp ebx, ecx
mov dword [esp + 0x14], ebp
mov ecx, dword [esp + 0x1c]
jl 0x10154b80
mov esi, dword [esp + 0x154]
mov eax, dword [esp + 0x38]
add esi, 4
sub dword [esp + 0x18], 1
mov dword [esp + 0x154], esi
jne 0x10154b60
mov eax, dword [esp + 0x20]
xor edx, edx
test eax, eax
jle 0x10154da0
lea eax, [edi - 1]
lea ecx, [edi + 1]
imul ecx, eax
lea ebx, [edi*8]
lea esi, [esp + ebx + 0xbc]
mov ebp, dword [esp + ecx*8 + 0xc4]
mov edi, dword [esp + ecx*8 + 0xc8]
mov ecx, ebp
mov eax, edi
sub ecx, dword [esp + ebx + 0x64]
sbb eax, dword [esp + ebx + 0x68]
shld eax, ecx, 1
add ecx, ecx
sub ecx, dword [esi]
sbb eax, dword [esi + 4]
add dword [esp + edx*8 + 0x6c], ecx
adc dword [esp + edx*8 + 0x70], eax
inc edx
add esi, ebx
cmp edx, dword [esp + 0x20]
jl 0x10154cd5
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0xc4]
mov dword [esp + 0x18], ecx
lea eax, [edi*8]
mov dword [esp + 0x38], eax
lea ebx, [esp + edi*8 + 0xbc]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
nop word [eax + eax]
mov eax, edi
lea esi, [esp + 0xc4]
imul eax, edi
mov edx, ecx
lea ebp, [esp + eax*8 + 0xbc]
lea eax, [edi*8 - 8]
imul eax, edi
mov edi, dword [esp + 0x20]
add esi, eax
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
shld ecx, eax, 1
add eax, eax
sub eax, dword [esi]
sbb ecx, dword [esi + 4]
lea esi, [esi + 8]
sub eax, dword [ebx]
sbb ecx, dword [ebx + 4]
shld ecx, eax, 1
add eax, eax
add dword [edx], eax
adc dword [edx + 4], ecx
lea edx, [edx + 8]
sub edi, 1
jne 0x10154d55
mov ecx, dword [esp + 0x18]
add ecx, dword [esp + 0x38]
add ebx, dword [esp + 0x38]
add dword [esp + 0x14], 0xffffffff
mov edi, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
jne 0x10154d30
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x8c]
push ecx
lea ecx, [esp + 0x70]
push ecx
push edi
lea ecx, [esp + 0xd0]
push ecx
push eax
call fcn.10153a60
add esp, 0x14
test eax, eax
je 0x10154f3d
mov edx, dword [esp + 0x24]
lea esi, [esp + edi*8 + 0x84]
mov dword [esi], 0x10000
mov dword [esi + 4], 0
cmp edi, edx
jge 0x10154e1d
mov eax, edx
sub eax, edi
lea ebx, [esp + eax*8 + 0x84]
nop
mov eax, dword [ebx]
lea ebx, [ebx - 8]
mov ecx, dword [ebx + 0xc]
mov dword [esp + edi*8 + 0x8c], eax
neg eax
mov dword [esp + edi*8 + 0x90], ecx
adc ecx, 0
neg ecx
shld ecx, eax, 1
add eax, eax
add dword [esi], eax
adc dword [esi + 4], ecx
inc edi
cmp edi, edx
jl 0x10154df0
xor ecx, ecx
test edx, edx
jle 0x10154f3d
mov ebx, dword [esp + 0x40]
cmp edx, 4
jb 0x10154ef0
cmp dword [0x10b47804], 6
jl 0x10154ef0
lea eax, [esp + edx*8 + 0x84]
lea esi, [edx - 1]
lea esi, [ebx + esi*4]
cmp ebx, eax
ja 0x10154e61
lea eax, [esp + 0x8c]
cmp esi, eax
jae 0x10154ef0
movaps xmm3, xmmword [0x107d3530]
lea edi, [esp + 0x8c]
movaps xmm4, xmmword [0x107d3510]
mov eax, edx
movups xmm5, xmmword [0x107d3520]
and eax, 0xfffffffc
movups xmm0, xmmword [edi + ecx*8]
movaps xmm2, xmm3
pcmpgtq xmm2, xmm0
movaps xmm1, xmm2
andps xmm2, xmm3
vpminsq xmm0, xmm4, xmm0
andnps xmm1, xmm0
movups xmm0, xmmword [esp + ecx*8 + 0x9c]
orps xmm1, xmm2
movaps xmm2, xmm3
pshufb xmm1, xmm5
pcmpgtq xmm2, xmm0
movq qword [ebx + ecx*4], xmm1
movaps xmm1, xmm2
vpminsq xmm0, xmm4, xmm0
andnps xmm1, xmm0
andps xmm2, xmm3
orps xmm1, xmm2
pshufb xmm1, xmm5
movq qword [ebx + ecx*4 + 8], xmm1
add ecx, 4
mov esi, ecx
cmp ecx, eax
jl 0x10154e82
cmp esi, edx
jge 0x10154f3d
nop dword [eax]
nop dword [eax + eax]
mov esi, dword [esp + ecx*8 + 0x90]
mov eax, dword [esp + ecx*8 + 0x8c]
cmp esi, 0xffffffff
jg 0x10154f1b
jl 0x10154f0c
cmp eax, 0xe0000000
jae 0x10154f1b
mov eax, 0xe0000000
mov dword [esp + 0x3c], 0xffffffff
jmp 0x10154f35
test esi, esi
jl 0x10154f35
jg 0x10154f28
cmp eax, 0x1fffffff
jbe 0x10154f35
mov eax, 0x1fffffff
mov dword [esp + 0x3c], 0
mov dword [ebx + ecx*4], eax
inc ecx
cmp ecx, edx
jl 0x10154ef0
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0x138
ret