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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xb4
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0xb0], eax
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x40], ecx
mov ecx, dword [ecx + 0xc]
movd xmm0, edi
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x1c]
pshufd xmm0, xmm0, 0
mov dword [esp + 0x38], eax
lea eax, [ecx + ecx*4]
movaps xmmword [esp + 0x60], xmm0
xorps xmm0, xmm0
mov dword [esp + 0x50], edi
mov dword [esp + 0x30], ecx
mov byte [esp + 0x13], 1
mov dword [esp + 0x4c], ebx
movups xmmword [esp + 0x78], xmm0
cmp edi, eax
jl 0x1046cf65
test edi, edi
je 0x1046cf65
movd xmm0, edi
mov esi, edi
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x105fe8f0]
cvttsd2si eax, xmm0
cmp eax, ecx
cmovle eax, ecx
shl esi, 4
push esi
mov dword [esp + 0x5c], eax
call fcn.1006eac0
push esi
mov dword [esp + 0x28], eax
call fcn.1006eac0
push esi
mov dword [esp + 0x38], eax
call fcn.1006eac0
push esi
mov dword [esp + 0x38], eax
call fcn.1006eac0
push esi
mov dword [esp + 0x30], eax
call fcn.1006eac0
mov esi, dword [esp + 0x20]
push 0x18
push esi
mov dword [esp + 0x64], eax
call fcn.1006ea30
mov dword [esp + 0x40], eax
lea eax, [esi + 1]
imul eax, edi
shl eax, 2
push eax
call fcn.1006eac0
add esp, 0x20
mov dword [esp + 0x44], eax
cmp dword [esp + 0x20], 0
movd xmm0, eax
pshufd xmm4, xmm0, 0
je 0x1046cefe
cmp dword [esp + 0x2c], 0
je 0x1046cefe
cmp dword [esp + 0x28], 0
je 0x1046cefe
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x1046cefe
cmp dword [esp + 0x48], 0
je 0x1046cefe
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1046cefe
cmp dword [esp + 0x44], 0
je 0x1046cefe
mov esi, eax
xor edx, edx
mov eax, dword [esp + 0xc]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x14], edx
test eax, eax
jle 0x1046cb86
cmp eax, 8
jb 0x1046cb40
cmp dword [0x10b47804], 2
jl 0x1046cb40
movaps xmm2, xmmword [0x105fe940]
and eax, 0xfffffff8
movaps xmm3, xmmword [esp + 0x60]
mov ecx, esi
add ecx, 0x28
mov ebx, eax
nop dword [eax + eax]
movd xmm0, edx
lea eax, [edx + 4]
pshufd xmm0, xmm0, 0
lea ecx, [ecx + 0xc0]
paddd xmm0, xmm2
movaps xmm1, xmm3
pmulld xmm1, xmm0
pslld xmm1, 2
add edx, 8
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm1, xmm4
movd dword [ecx - 0xd8], xmm1
paddd xmm0, xmm2
psrldq xmm1, 4
movd dword [ecx - 0xc0], xmm1
psrldq xmm1, 4
movd dword [ecx - 0xa8], xmm1
psrldq xmm1, 4
movd dword [ecx - 0x90], xmm1
movaps xmm1, xmm3
pmulld xmm1, xmm0
pslld xmm1, 2
paddd xmm1, xmm4
movd dword [ecx - 0x78], xmm1
psrldq xmm1, 4
movd dword [ecx - 0x60], xmm1
psrldq xmm1, 4
movd dword [ecx - 0x48], xmm1
psrldq xmm1, 4
movd dword [ecx - 0x30], xmm1
cmp edx, ebx
jl 0x1046ca90
mov eax, dword [esp + 0xc]
mov ebx, edi
mov dword [esp + 0x14], edx
cmp edx, eax
jge 0x1046cb82
lea eax, [edi*4]
mov ecx, esi
mov dword [esp + 0x18], eax
lea eax, [edx + edx*2]
lea ecx, [ecx + eax*8]
mov eax, edi
imul eax, edx
add ecx, 0x10
mov edx, dword [esp + 0x44]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0xc]
sub edx, dword [esp + 0x14]
nop word [eax + eax]
mov dword [ecx], eax
lea ecx, [ecx + 0x18]
add eax, dword [esp + 0x18]
sub edx, 1
jne 0x1046cb70
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x44]
imul eax, edi
lea eax, [edx + eax*4]
mov dword [esp + 0x14], eax
test edi, edi
jle 0x1046cbfd
mov ebx, dword [esp + 0x28]
add ecx, 8
mov eax, dword [esp + 0x54]
mov edx, ebx
add eax, 0x10
mov dword [esp + 0x18], edi
sub ebx, dword [esp + 0x1c]
mov dword [esp + 0x38], ebx
mov ebx, edi
mov esi, dword [esp + 0x38]
nop word [eax + eax]
sub dword [esp + 0x18], 1
lea eax, [eax + 0x20]
movsd xmm0, qword [eax - 0x30]
lea edx, [edx + 0x10]
movsd qword [edx - 0x10], xmm0
lea ecx, [ecx + 0x10]
movsd xmm0, qword [eax - 0x28]
movsd qword [ecx + esi - 0x10], xmm0
movsd xmm0, qword [eax - 0x20]
movsd qword [ecx - 0x18], xmm0
movsd xmm0, qword [eax - 0x18]
movsd qword [ecx - 0x10], xmm0
jne 0x1046cbc0
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x18], 0x14
mov eax, dword [esp + 0x30]
xor ecx, ecx
test eax, eax
jle 0x1046cc47
mov esi, eax
imul ebx, ebx, 0x41c64e6d
add ebx, 0x3039
mov eax, ebx
mul edi
xor eax, eax
test ecx, ecx
jle 0x1046cc32
cmp edx, dword [esp + eax*4 + 0x78]
je 0x1046cc11
inc eax
cmp eax, ecx
jl 0x1046cc27
mov dword [esp + ecx*4 + 0x78], edx
inc ecx
cmp ecx, esi
jl 0x1046cc11
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x4c], ebx
push eax
lea eax, [esp + 0x7c]
push eax
push dword [esp + 0x30]
push dword [esp + 0x2c]
call fcn.1046c7d0
push dword [esp + 0x40]
lea eax, [esp + 0x8c]
push eax
push dword [esp + 0x34]
push dword [esp + 0x48]
call fcn.1046c7d0
mov eax, dword [esp + 0x60]
push dword [esp + 0x40]
mov eax, dword [eax]
call eax
add esp, 0x24
test al, al
jne 0x1046cdce
lea eax, [esp + 0x88]
push eax
push dword [esp + 0x30]
mov eax, dword [esp + 0x48]
push dword [esp + 0x28]
push dword [esp + 0x3c]
mov eax, dword [eax + 4]
call eax
add esp, 0x10
test al, al
je 0x1046cdce
push 2
push 2
push edi
push dword [esp + 0x54]
lea eax, [esp + 0x98]
push dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 8]
call eax
add esp, 0x18
xor edx, edx
xor ecx, ecx
xorps xmm2, xmm2
test edi, edi
jle 0x1046cd4d
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x48]
mov edi, ebx
sub ebx, esi
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x4c]
lea eax, [esi + 8]
mov esi, dword [esp + 0x38]
nop dword [eax]
movsd xmm0, qword [edi]
movsd xmm1, qword [esi + eax]
subsd xmm0, qword [eax - 8]
subsd xmm1, qword [eax]
mulsd xmm0, xmm0
mulsd xmm1, xmm1
addsd xmm1, xmm0
movsd xmm0, qword [0x10a0afa0]
comisd xmm0, xmm1
jbe 0x1046cd3c
mov ebx, dword [esp + 0x14]
addsd xmm2, xmm1
mov dword [ebx + edx*4], ecx
inc edx
mov ebx, dword [esp + 0x4c]
inc ecx
add edi, 0x10
add eax, 0x10
cmp ecx, dword [esp + 0x50]
jl 0x1046cd00
mov esi, dword [esp + 0x3c]
cmp edx, dword [esp + 0x58]
jl 0x1046cdce
cmp edx, dword [esi]
jg 0x1046cd64
jl 0x1046cdce
movsd xmm0, qword [esi + 8]
comisd xmm0, xmm2
jbe 0x1046cdce
mov eax, dword [esi + 0x10]
mov dword [esi], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
movsd qword [esi + 8], xmm2
mov dword [esi + 0x10], edx
test eax, eax
jle 0x1046cdd2
mov edx, dword [esp + 0x24]
mov edi, eax
mov eax, dword [esi]
cmp eax, dword [edx]
jle 0x1046cd92
or ecx, 0xffffffff
jmp 0x1046cdb9
jge 0x1046cd9b
mov ecx, 1
jmp 0x1046cdb9
movsd xmm1, qword [esi + 8]
movsd xmm0, qword [edx + 8]
comisd xmm0, xmm1
jbe 0x1046cdb0
or ecx, 0xffffffff
jmp 0x1046cdb9
xor ecx, ecx
comisd xmm1, xmm0
seta cl
test ecx, ecx
mov eax, edx
cmovns eax, esi
add edx, 0x18
mov esi, eax
sub edi, 1
jne 0x1046cd87
mov dword [esp + 0x3c], esi
mov eax, dword [esp + 0xc]
sub dword [esp + 0x18], 1
mov edi, dword [esp + 0x50]
jne 0x1046cc05
mov ebx, dword [esp + 0x24]
push 0x1046c790
push 0x18
push eax
push ebx
call fcn.105265a0
add esp, 0x10
cmp dword [esp + 0xc], 0
jle 0x1046cf0a
mov edi, dword [esp + 0x34]
lea esi, [ebx + 0x10]
mov dword [esp + 0x14], esi
nop dword [eax]
mov ebx, dword [esi - 0x10]
test ebx, ebx
jle 0x1046cebe
push ebx
push dword [esi]
push dword [esp + 0x30]
push dword [esp + 0x2c]
call fcn.1046c7d0
push ebx
push dword [esi]
push dword [esp + 0x34]
push dword [esp + 0x48]
call fcn.1046c7d0
mov eax, dword [esp + 0x60]
push edi
push dword [esp + 0x50]
push dword [esp + 0x48]
mov eax, dword [eax + 4]
push ebx
call eax
add esp, 0x30
test al, al
je 0x1046cebe
xor edi, edi
mov eax, dword [esi]
sub esp, 8
mov esi, dword [eax + edi*4]
shl esi, 5
add esi, dword [esp + 0x5c]
movsd xmm0, qword [esi]
movsd qword [esp], xmm0
call fcn.1052027d
mov eax, dword [esp + 0x3c]
fstp qword [esp + 0x60]
cvttsd2si ecx, qword [esp + 0x60]
mov eax, dword [eax + 0x30]
mov dword [eax + edi*8], ecx
movsd xmm0, qword [esi + 8]
movsd qword [esp], xmm0
call fcn.1052027d
mov eax, dword [esp + 0x3c]
add esp, 8
mov esi, dword [esp + 0x14]
fstp qword [esp + 0x58]
cvttsd2si ecx, qword [esp + 0x58]
mov eax, dword [eax + 0x30]
mov dword [eax + edi*8 + 4], ecx
inc edi
cmp edi, ebx
jl 0x1046ce57
mov edi, dword [esp + 0x34]
jmp 0x1046cee0
movups xmm0, xmmword [0x107eae70]
xor ebx, ebx
movups xmmword [edi], xmm0
movups xmm0, xmmword [0x107eae80]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [0x107eae90]
movups xmmword [edi + 0x20], xmm0
mov dword [edi + 0x34], ebx
add esi, 0x18
add edi, 0x38
mov dword [esp + 0x14], esi
sub dword [esp + 0xc], 1
mov dword [esp + 0x34], edi
jne 0x1046ce10
jmp 0x1046cf0a
mov eax, dword [esp + 0x38]
mov byte [esp + 0x13], 0
mov byte [eax], 1
push dword [esp + 0x44]
call fcn.1006eaa0
push dword [esp + 0x28]
call fcn.1006eaa0
push dword [esp + 0x50]
call fcn.1006eaa0
push dword [esp + 0x28]
call fcn.1006eaa0
push dword [esp + 0x38]
call fcn.1006eaa0
push dword [esp + 0x40]
call fcn.1006eaa0
push dword [esp + 0x38]
call fcn.1006eaa0
mov al, byte [esp + 0x2f]
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.105116c0
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xbc]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.105116c0
mov esp, ebp
pop ebp
ret