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

Disassembly:
sub esp, 0x138
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x14c]
xorps xmm0, xmm0
push ebx
mov ebx, dword [esp + 0x140]
mov dword [esp + 0x24], eax
mov eax, ebx
imul eax, ebx
push ebp
push esi
push edi
push 0x80
mov dword [esp + 0x18], eax
mov eax, ebx
sar eax, 1
mov dword [esp + 0x24], eax
push 0
mov dword [esp + 0x50], ebx
lea ebp, [eax + 1]
lea eax, [esp + 0xcc]
mov dword [esp + 0x18], ebp
push eax
movups xmmword [esp + 0x78], xmm0
movups xmmword [esp + 0x88], xmm0
call fcn.10513d40
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x28], ecx
test ebx, ebx
jle 0x101552ac
mov ebp, dword [esp + 0x158]
lea eax, [ebx - 1]
mov dword [esp + 0x2c], eax
nop dword [eax]
xor esi, esi
lea edx, [esp + 0x6c]
cmp ecx, dword [esp + 0x10]
cmovl eax, ecx
lea edx, [edx + eax*8]
mov eax, dword [edx]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x150]
mov dword [esp + 0x18], edx
mov edi, dword [eax + ecx*4]
nop dword [eax + eax]
push dword [edi + 4]
mov eax, dword [ebp + esi*4]
push dword [edi]
cdq
push edx
push eax
call fcn.10511b50
push 0
push 0x10000
push edx
push eax
call fcn.10511aa0
mov ecx, dword [esp + 0x1c]
lea edi, [edi + 8]
add ecx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], ecx
adc eax, edx
inc esi
mov dword [esp + 0x24], eax
cmp esi, ebx
jl 0x10155020
mov edx, dword [esp + 0x18]
mov dword [edx], ecx
mov ecx, dword [esp + 0x28]
mov dword [edx + 4], eax
inc ecx
mov eax, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
cmp ecx, ebx
jl 0x10154ff0
xor esi, esi
xor ecx, ecx
mov edi, ebp
cmp ebx, 8
jb 0x101550f0
cmp dword [0x10b47804], 2
jl 0x101550f0
mov eax, ebx
xorps xmm1, xmm1
and eax, 0xfffffff8
xorps xmm2, xmm2
nop dword [eax]
movups xmm0, xmmword [edi + ecx*4]
pabsd xmm0, xmm0
pmaxsd xmm1, xmm0
movups xmm0, xmmword [edi + ecx*4 + 0x10]
add ecx, 8
pabsd xmm0, xmm0
pmaxsd xmm2, xmm0
cmp ecx, eax
jl 0x101550a0
pmaxsd xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
pmaxsd xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
pmaxsd xmm1, xmm0
movd esi, xmm1
jmp 0x101550fe
mov eax, dword [edi + ecx*4]
cdq
xor eax, edx
sub eax, edx
cmp eax, esi
cmovg esi, eax
inc ecx
cmp ecx, ebx
jl 0x101550f0
cmp esi, 0x800000
mov eax, 1
mov ecx, 4
mov edx, 0x10000
cmovl ecx, eax
xor ebp, ebp
mov eax, ecx
mov dword [esp + 0x1c], ebp
push ebp
imul edx
push ecx
push ebp
push 0x10000
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], edx
call fcn.10512010
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], edx
lea edx, [ebx - 1]
mov dword [esp + 0x18], edx
lea eax, [ecx*8]
mov dword [esp + 0x68], eax
mov eax, edx
nop dword [eax]
mov ecx, dword [esp + 0x10]
cmp ebp, ecx
mov esi, dword [esp + 0x154]
cmovl eax, ebp
mov dword [esp + 0x44], esi
xor ebp, ebp
mov dword [esp + 0x4c], eax
mov dword [esp + 0x40], ebp
mov eax, edx
mov dword [esp + 0x14], edx
mov esi, dword [esi]
xor edx, edx
cmp ebp, ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x3c], esi
cmovl eax, ebp
imul eax, ecx
lea ecx, [esp + 0xc4]
add eax, dword [esp + 0x4c]
lea eax, [ecx + eax*8]
mov ecx, dword [eax]
mov dword [esp + 0x34], eax
mov eax, dword [eax + 4]
nop
mov dword [esp + 0x28], eax
xor ebp, ebp
mov eax, dword [edi + edx*4]
cdq
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], edx
push dword [esi + 4]
mov eax, dword [edi + ebp*4]
push dword [esi]
cdq
push dword [esp + 0x58]
mov ebx, eax
mov edi, edx
push dword [esp + 0x60]
call fcn.10511b50
push dword [esp + 0x58]
push dword [esp + 0x60]
push edx
push eax
call fcn.10511aa0
push edx
push eax
push edi
push ebx
call fcn.10511b50
push dword [esp + 0x60]
push dword [esp + 0x68]
push edx
push eax
call fcn.10511aa0
mov ecx, dword [esp + 0x2c]
lea esi, [esi + 8]
mov ebx, dword [esp + 0x48]
add ecx, eax
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x158]
adc eax, edx
inc ebp
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
cmp ebp, ebx
jl 0x101551c6
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x3c]
inc edx
add esi, dword [esp + 0x68]
mov dword [esp + 0x24], edx
mov dword [esp + 0x3c], esi
cmp edx, ebx
jl 0x101551b0
mov edx, dword [esp + 0x34]
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
inc ebp
add esi, 4
mov dword [esp + 0x40], ebp
mov dword [edx + 4], eax
mov eax, dword [esp + 0x14]
dec eax
mov dword [edx], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x44], esi
mov dword [esp + 0x14], eax
cmp ebp, ebx
jl 0x10155184
mov ebp, dword [esp + 0x1c]
lea ecx, [ebx*4]
mov eax, dword [esp + 0x18]
lea edx, [ebx - 1]
add dword [esp + 0x154], ecx
inc ebp
dec eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], eax
cmp ebp, ebx
jl 0x10155160
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
xor edx, edx
test eax, eax
jle 0x101553b4
lea eax, [ebp - 1]
lea ecx, [ebp + 1]
imul ecx, eax
mov eax, dword [esp + ecx*8 + 0xc8]
mov ebp, dword [esp + ecx*8 + 0xc4]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], eax
lea edi, [ecx*8]
lea esi, [esp + edi + 0xbc]
nop word [eax + eax]
mov ecx, ebp
sub ecx, dword [esp + edi + 0x64]
sbb eax, dword [esp + edi + 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
mov eax, dword [esp + 0x34]
add esi, edi
cmp edx, dword [esp + 0x20]
jl 0x101552f0
mov ebp, dword [esp + 0x10]
lea ecx, [esp + 0xc4]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ebx
lea edi, [esp + ebp*8 + 0xbc]
nop dword [eax + eax]
mov edx, ecx
imul ebp, ebp
mov ecx, dword [esp + 0x10]
lea esi, [esp + 0xc4]
lea eax, [ecx*8 - 8]
imul eax, ecx
lea ebp, [esp + ebp*8 + 0xbc]
add esi, eax
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
shld ecx, eax, 1
add eax, eax
sub eax, dword [edi]
sbb ecx, dword [edi + 4]
sub eax, dword [esi]
sbb ecx, dword [esi + 4]
lea esi, [esi + 8]
shld ecx, eax, 1
add eax, eax
add dword [edx], eax
adc dword [edx + 4], ecx
lea edx, [edx + 8]
sub ebx, 1
jne 0x10155363
add dword [esp + 0x14], 0xffffffff
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
lea edi, [edi + ebp*8]
lea ecx, [ecx + ebp*8]
mov dword [esp + 0x18], ecx
jne 0x10155340
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x8c]
push ecx
lea ecx, [esp + 0x70]
push ecx
push ebp
lea ecx, [esp + 0xd0]
push ecx
push eax
call fcn.10153a60
add esp, 0x14
test eax, eax
je 0x1015554f
mov dword [esp + ebp*8 + 0x84], 0x10000
lea edx, [esp + ebp*8 + 0x84]
mov dword [edx + 4], 0
cmp ebp, ebx
jge 0x10155430
mov eax, ebx
sub eax, ebp
lea esi, [esp + eax*8 + 0x84]
mov eax, dword [esi]
lea esi, [esi - 8]
mov ecx, dword [esi + 0xc]
mov dword [esp + ebp*8 + 0x8c], eax
neg eax
mov dword [esp + ebp*8 + 0x90], ecx
adc ecx, 0
neg ecx
shld ecx, eax, 1
add eax, eax
add dword [edx], eax
adc dword [edx + 4], ecx
inc ebp
cmp ebp, ebx
jl 0x10155403
xor ecx, ecx
test ebx, ebx
jle 0x1015554f
mov esi, dword [esp + 0x30]
cmp ebx, 4
jb 0x10155502
cmp dword [0x10b47804], 6
jl 0x10155502
lea eax, [esp + ebx*8 + 0x84]
lea edx, [esi - 4]
lea edx, [edx + ebx*4]
cmp esi, eax
ja 0x10155474
lea eax, [esp + 0x8c]
cmp edx, eax
jae 0x10155502
movaps xmm3, xmmword [0x107d3530]
lea edi, [esp + 0x8c]
movaps xmm4, xmmword [0x107d3510]
mov eax, ebx
movups xmm5, xmmword [0x107d3520]
and eax, 0xfffffffc
nop word [eax + eax]
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 [esi + ecx*4], xmm1
movaps xmm1, xmm2
vpminsq xmm0, xmm4, xmm0
andnps xmm1, xmm0
andps xmm2, xmm3
orps xmm1, xmm2
pshufb xmm1, xmm5
movq qword [esi + ecx*4 + 8], xmm1
add ecx, 4
mov edx, ecx
cmp ecx, eax
jl 0x101554a0
cmp edx, ebx
jge 0x1015554f
mov edx, dword [esp + ecx*8 + 0x90]
mov eax, dword [esp + ecx*8 + 0x8c]
cmp edx, 0xffffffff
jg 0x1015552d
jl 0x1015551e
cmp eax, 0xe0000000
jae 0x1015552d
mov eax, 0xe0000000
mov dword [esp + 0x38], 0xffffffff
jmp 0x10155547
test edx, edx
jl 0x10155547
jg 0x1015553a
cmp eax, 0x1fffffff
jbe 0x10155547
mov eax, 0x1fffffff
mov dword [esp + 0x38], 0
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, ebx
jl 0x10155502
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0x138
ret