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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x68
push esi
mov esi, dword [ebp + 0x14]
mov eax, ecx
push edi
movss dword [esp + 0x18], xmm2
movss dword [esp + 0x10], xmm1
cmp dword [esi + 0x14], 0x10
mov dword [esp + 0xc], eax
jb 0x1005d9a8
mov esi, dword [esi]
mov ecx, dword [eax + 0x20]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x2c], ecx
lea edi, [ecx + 0x4c]
mov eax, dword [eax + 0x38]
mov ecx, dword [edi]
mov eax, dword [eax + 8]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 4]
cmp ecx, eax
jne 0x1005d9eb
inc ecx
test eax, eax
je 0x1005d9d7
cdq
sub eax, edx
sar eax, 1
add eax, dword [edi + 4]
jmp 0x1005d9dc
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.100199b0
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4], edx
mov ecx, dword [esp + 0x2c]
inc dword [edi]
call fcn.10021660
mov ecx, dword [ebp + 0x10]
call fcn.10013df0
mov ecx, dword [0x1020e2c0]
xorps xmm0, xmm0
movss xmm2, dword [ecx + 0x18c4]
test esi, esi
jne 0x1005da22
xorps xmm3, xmm3
jmp 0x1005da60
push ecx
push 0
push esi
push ecx
mov ecx, dword [ecx + 0x18c0]
lea eax, [esp + 0x68]
mov dword [esp], 0xbf800000
push eax
call fcn.10026ca0
movss xmm0, dword [esp + 0x58]
addss xmm0, dword [0x10155c70]
movss xmm2, dword [esp + 0x5c]
cvttss2si eax, xmm0
xorps xmm0, xmm0
movd xmm3, eax
cvtdq2ps xmm3, xmm3
movzx eax, byte [ebp + 0xb]
mov ecx, dword [ebp + 0xc]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
test cl, 0x30
je 0x1005da7b
mulss xmm1, dword [0x10155c00]
cvttss2si eax, xmm1
mov dword [esp + 0x1c], eax
test cl, 1
jne 0x1005da8b
xorps xmm3, xmm3
test cl, 2
jne 0x1005da93
xorps xmm2, xmm2
movss xmm4, dword [0x10155c1c]
movss xmm7, dword [esp + 0x10]
movss xmm6, dword [esp + 0x18]
movss xmm5, dword [0x10155edc]
mov edi, dword [esp + 0xc]
mulss xmm3, xmm4
mulss xmm2, xmm4
subss xmm7, xmm3
movss xmm3, dword [0x10155b60]
subss xmm6, xmm2
movss xmm2, dword [0x10155c78]
movss dword [esp + 0x10], xmm7
movss dword [esp + 0x58], xmm7
movss dword [esp + 0x18], xmm6
movss dword [esp + 0x5c], xmm6
test cl, 0x18
je 0x1005e192
mov edx, dword [edi + 0x20]
movzx eax, al
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mulss xmm1, xmm3
comiss xmm0, xmm1
movss dword [esp + 0x14], xmm1
ja 0x1005e18e
movaps xmm0, xmm1
mov edi, edx
minss xmm0, xmm2
mulss xmm0, xmm5
addss xmm0, xmm4
cvttss2si eax, xmm0
movaps xmm0, xmm7
addss xmm0, xmm2
shl eax, 0x18
mov dword [esp + 0x24], eax
movss dword [esp + 0x2c], xmm0
movss dword [esp + 0x38], xmm0
movaps xmm0, xmm6
subss xmm0, xmm2
movss dword [esp + 0x28], xmm0
movss dword [esp + 0x3c], xmm0
test eax, eax
je 0x1005dbf4
mov ecx, esi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005db63
sub ecx, edi
mov edi, edx
lea eax, [ecx + esi]
mov dword [esp + 0x30], eax
cmp esi, eax
je 0x1005dbf4
push dword [esp + 0x3c]
mov ecx, dword [esp + 0x10]
push dword [esp + 0x3c]
mov eax, dword [edx + 0x28]
mov edx, dword [edx + 0x40]
mov edi, dword [ecx + 0x20]
add edx, edx
push 0
movss xmm2, dword [eax + 0xc]
mov ecx, dword [edi + 0x48]
push ecx
mov dword [esp], 0
push dword [esp + 0x40]
movups xmm0, xmmword [ecx + edx*8 - 0x10]
push esi
lea ecx, [esp + 0x58]
push ecx
push dword [esp + 0x40]
mov ecx, dword [eax + 8]
push edi
movups xmmword [esp + 0x64], xmm0
call fcn.10026e50
mov eax, dword [esp + 0xc]
movss xmm1, dword [esp + 0x14]
movss xmm2, dword [0x10155c78]
movss xmm4, dword [0x10155c1c]
mov edi, dword [eax + 0x20]
movss xmm5, dword [0x10155edc]
movss xmm6, dword [esp + 0x18]
movss xmm7, dword [esp + 0x10]
movaps xmm0, xmm1
mov dword [esp + 0x20], edi
minss xmm0, xmm2
mulss xmm0, xmm5
addss xmm0, xmm4
cvttss2si eax, xmm0
movaps xmm0, xmm7
subss xmm0, xmm2
shl eax, 0x18
mov dword [esp + 0x38], eax
movss dword [esp + 0x30], xmm0
movss dword [esp + 0x40], xmm0
movaps xmm0, xmm6
addss xmm0, xmm2
movss dword [esp + 0x24], xmm0
movss dword [esp + 0x44], xmm0
test eax, eax
je 0x1005dcc8
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005dc45
sub ecx, edx
lea eax, [ecx + esi]
mov dword [esp + 0x34], eax
cmp esi, eax
je 0x1005dcc8
push dword [esp + 0x44]
mov edi, dword [esp + 0x24]
push dword [esp + 0x44]
push 0
mov ecx, dword [edi + 0x48]
mov edx, dword [edi + 0x40]
mov eax, dword [edi + 0x28]
add edx, edx
push ecx
mov dword [esp], 0
push dword [esp + 0x44]
movups xmm0, xmmword [ecx + edx*8 - 0x10]
lea ecx, [esp + 0x74]
movss xmm2, dword [eax + 0xc]
push esi
push ecx
push dword [esp + 0x54]
mov ecx, dword [eax + 8]
push edi
movups xmmword [esp + 0x84], xmm0
call fcn.10026e50
mov eax, dword [esp + 0xc]
movss xmm1, dword [esp + 0x14]
movss xmm2, dword [0x10155c78]
movss xmm4, dword [0x10155c1c]
mov edi, dword [eax + 0x20]
movss xmm5, dword [0x10155edc]
movaps xmm0, xmm1
mov dword [esp + 0x20], edi
minss xmm0, xmm2
mulss xmm0, xmm5
addss xmm0, xmm4
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x30]
shl eax, 0x18
movss dword [esp + 0x40], xmm0
movss xmm0, dword [esp + 0x28]
mov dword [esp + 0x34], eax
movss dword [esp + 0x44], xmm0
test eax, eax
je 0x1005dd93
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005dd10
sub ecx, edx
lea eax, [esi + ecx]
mov dword [esp + 0x38], eax
cmp esi, eax
je 0x1005dd93
push dword [esp + 0x44]
mov edi, dword [esp + 0x24]
push dword [esp + 0x44]
push 0
mov ecx, dword [edi + 0x48]
mov edx, dword [edi + 0x40]
mov eax, dword [edi + 0x28]
add edx, edx
push ecx
mov dword [esp], 0
push dword [esp + 0x48]
movups xmm0, xmmword [ecx + edx*8 - 0x10]
lea ecx, [esp + 0x74]
movss xmm2, dword [eax + 0xc]
push esi
push ecx
push dword [esp + 0x50]
mov ecx, dword [eax + 8]
push edi
movups xmmword [esp + 0x84], xmm0
call fcn.10026e50
mov eax, dword [esp + 0xc]
movss xmm1, dword [esp + 0x14]
movss xmm2, dword [0x10155c78]
movss xmm4, dword [0x10155c1c]
mov edi, dword [eax + 0x20]
movss xmm5, dword [0x10155edc]
movaps xmm0, xmm1
mov dword [esp + 0x20], edi
minss xmm0, xmm2
mulss xmm0, xmm5
addss xmm0, xmm4
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x2c]
shl eax, 0x18
movss dword [esp + 0x40], xmm0
movss xmm0, dword [esp + 0x24]
mov dword [esp + 0x34], eax
movss dword [esp + 0x44], xmm0
test eax, eax
je 0x1005de59
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005ddd6
sub ecx, edx
lea eax, [ecx + esi]
mov dword [esp + 0x38], eax
cmp esi, eax
je 0x1005de59
push dword [esp + 0x44]
mov edi, dword [esp + 0x24]
push dword [esp + 0x44]
push 0
mov ecx, dword [edi + 0x48]
mov edx, dword [edi + 0x40]
mov eax, dword [edi + 0x28]
add edx, edx
push ecx
mov dword [esp], 0
push dword [esp + 0x48]
movups xmm0, xmmword [ecx + edx*8 - 0x10]
lea ecx, [esp + 0x74]
movss xmm2, dword [eax + 0xc]
push esi
push ecx
push dword [esp + 0x50]
mov ecx, dword [eax + 8]
push edi
movups xmmword [esp + 0x84], xmm0
call fcn.10026e50
mov eax, dword [esp + 0xc]
movss xmm1, dword [esp + 0x14]
movss xmm2, dword [0x10155c78]
movss xmm4, dword [0x10155c1c]
mov edi, dword [eax + 0x20]
movss xmm5, dword [0x10155edc]
movaps xmm0, xmm1
mov dword [esp + 0x20], edi
minss xmm0, xmm2
mulss xmm0, xmm5
addss xmm0, xmm4
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x10]
shl eax, 0x18
movss dword [esp + 0x40], xmm0
movss xmm0, dword [esp + 0x24]
mov dword [esp + 0x34], eax
movss dword [esp + 0x44], xmm0
test eax, eax
je 0x1005df23
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005dea0
sub ecx, edx
lea eax, [ecx + esi]
mov dword [esp + 0x38], eax
cmp esi, eax
je 0x1005df23
push dword [esp + 0x44]
mov edi, dword [esp + 0x24]
push dword [esp + 0x44]
push 0
mov ecx, dword [edi + 0x48]
mov edx, dword [edi + 0x40]
mov eax, dword [edi + 0x28]
add edx, edx
push ecx
mov dword [esp], 0
push dword [esp + 0x48]
movups xmm0, xmmword [ecx + edx*8 - 0x10]
lea ecx, [esp + 0x74]
movss xmm2, dword [eax + 0xc]
push esi
push ecx
push dword [esp + 0x50]
mov ecx, dword [eax + 8]
push edi
movups xmmword [esp + 0x84], xmm0
call fcn.10026e50
mov eax, dword [esp + 0xc]
movss xmm1, dword [esp + 0x14]
movss xmm2, dword [0x10155c78]
movss xmm4, dword [0x10155c1c]
mov edi, dword [eax + 0x20]
movss xmm5, dword [0x10155edc]
movaps xmm0, xmm1
mov dword [esp + 0x24], edi
minss xmm0, xmm2
mulss xmm0, xmm5
addss xmm0, xmm4
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x10]
shl eax, 0x18
movss dword [esp + 0x40], xmm0
movss xmm0, dword [esp + 0x28]
mov dword [esp + 0x34], eax
movss dword [esp + 0x44], xmm0
test eax, eax
je 0x1005dff1
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005df66
sub ecx, edx
lea eax, [ecx + esi]
mov dword [esp + 0x38], eax
cmp esi, eax
je 0x1005dff1
push dword [esp + 0x44]
mov edi, dword [esp + 0x28]
push dword [esp + 0x44]
push 0
mov ecx, dword [edi + 0x48]
mov edx, dword [edi + 0x40]
mov eax, dword [edi + 0x28]
add edx, edx
push ecx
mov dword [esp], 0
push dword [esp + 0x48]
movups xmm0, xmmword [ecx + edx*8 - 0x10]
lea ecx, [esp + 0x74]
movss xmm2, dword [eax + 0xc]
push esi
push ecx
push dword [esp + 0x50]
mov ecx, dword [eax + 8]
push edi
movups xmmword [esp + 0x84], xmm0
call fcn.10026e50
mov eax, dword [esp + 0xc]
movss xmm1, dword [esp + 0x14]
movss xmm2, dword [0x10155c78]
movss xmm4, dword [0x10155c1c]
mov edi, dword [eax + 0x20]
mov edx, edi
movss xmm5, dword [0x10155edc]
mov dword [esp + 0x28], edx
jmp 0x1005dff7
mov edx, edi
mov dword [esp + 0x28], edi
movss xmm6, dword [esp + 0x18]
movaps xmm0, xmm1
minss xmm0, xmm2
movss dword [esp + 0x44], xmm6
mulss xmm0, xmm5
addss xmm0, xmm4
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x2c]
shl eax, 0x18
mov dword [esp + 0x34], eax
movss dword [esp + 0x40], xmm0
test eax, eax
je 0x1005e0cb
mov ecx, esi
lea eax, [ecx + 1]
mov dword [esp + 0x38], eax
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005e040
sub ecx, dword [esp + 0x38]
lea eax, [ecx + esi]
mov dword [esp + 0x38], eax
cmp esi, eax
je 0x1005e0cb
push dword [esp + 0x44]
mov eax, dword [edx + 0x28]
push dword [esp + 0x44]
mov edi, dword [esp + 0x30]
mov edx, dword [edx + 0x40]
movss xmm2, dword [eax + 0xc]
add edx, edx
push 0
mov ecx, dword [edi + 0x48]
push ecx
mov dword [esp], 0
push dword [esp + 0x48]
movups xmm0, xmmword [ecx + edx*8 - 0x10]
push esi
lea ecx, [esp + 0x78]
push ecx
push dword [esp + 0x50]
mov ecx, dword [eax + 8]
push edi
movups xmmword [esp + 0x84], xmm0
call fcn.10026e50
mov eax, dword [esp + 0xc]
movss xmm1, dword [esp + 0x14]
movss xmm2, dword [0x10155c78]
movss xmm4, dword [0x10155c1c]
mov edi, dword [eax + 0x20]
movss xmm5, dword [0x10155edc]
movss xmm6, dword [esp + 0x18]
movss xmm0, dword [esp + 0x30]
minss xmm1, xmm2
movss dword [esp + 0x40], xmm0
movss dword [esp + 0x44], xmm6
mulss xmm1, xmm5
addss xmm1, xmm4
cvttss2si eax, xmm1
shl eax, 0x18
mov dword [esp + 0x34], eax
test eax, eax
je 0x1005e179
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005e101
sub ecx, edx
lea eax, [ecx + esi]
mov dword [esp + 0x38], eax
cmp esi, eax
je 0x1005e179
push dword [esp + 0x44]
mov ecx, dword [edi + 0x48]
push dword [esp + 0x44]
mov edx, dword [edi + 0x40]
mov eax, dword [edi + 0x28]
add edx, edx
push 0
push ecx
mov dword [esp], 0
push dword [esp + 0x48]
movups xmm0, xmmword [ecx + edx*8 - 0x10]
lea ecx, [esp + 0x74]
movss xmm2, dword [eax + 0xc]
push esi
push ecx
push dword [esp + 0x50]
mov ecx, dword [eax + 8]
push edi
movups xmmword [esp + 0x84], xmm0
call fcn.10026e50
movss xmm2, dword [0x10155c78]
movss xmm4, dword [0x10155c1c]
movss xmm5, dword [0x10155edc]
movss xmm6, dword [esp + 0x18]
mov edi, dword [esp + 0xc]
mov ecx, dword [ebp + 0xc]
movss xmm3, dword [0x10155b60]
movss xmm7, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
test cl, 0x24
je 0x1005e257
mov edx, dword [edi + 0x20]
movzx eax, al
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm3
xorps xmm3, xmm3
comiss xmm3, xmm0
ja 0x1005e25a
minss xmm0, xmm2
addss xmm7, xmm2
addss xmm6, xmm2
mulss xmm0, xmm5
movss dword [esp + 0x40], xmm7
movss dword [esp + 0x44], xmm6
addss xmm0, xmm4
cvttss2si edi, xmm0
shl edi, 0x18
test edi, edi
je 0x1005e25a
mov ecx, esi
lea eax, [ecx + 1]
mov dword [esp + 0x38], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005e1f0
sub ecx, dword [esp + 0x38]
lea eax, [ecx + esi]
mov dword [esp + 0x38], eax
cmp esi, eax
je 0x1005e25a
mov eax, dword [esp + 0xc]
push dword [esp + 0x44]
mov edx, dword [edx + 0x40]
push dword [esp + 0x44]
mov ecx, dword [eax + 0x20]
add edx, edx
push 0
lea eax, [esp + 0x6c]
mov ecx, dword [ecx + 0x48]
push ecx
mov dword [esp], 0
push dword [esp + 0x48]
movups xmm0, xmmword [ecx + edx*8 - 0x10]
mov edx, dword [esp + 0x20]
push esi
push eax
push edi
mov ecx, dword [edx + 0x20]
push ecx
movups xmmword [esp + 0x84], xmm0
mov eax, dword [ecx + 0x28]
movss xmm2, dword [eax + 0xc]
mov ecx, dword [eax + 8]
call fcn.10026e50
xorps xmm3, xmm3
mov eax, dword [esp + 0xc]
movss xmm4, dword [0x10155b60]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp + 8]
movzx ecx, ah
movzx eax, al
movd xmm1, ecx
movzx ecx, byte [ebp + 0xa]
movd xmm2, eax
cvtdq2ps xmm2, xmm2
movd xmm0, ecx
movzx ecx, byte [ebp + 0xb]
cvtdq2ps xmm1, xmm1
movd xmm5, ecx
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm5, xmm5
mulss xmm2, xmm4
mulss xmm1, xmm4
comiss xmm3, xmm2
mulss xmm0, xmm4
mulss xmm5, xmm4
movss xmm4, dword [0x10155c78]
jbe 0x1005e2b8
movaps xmm2, xmm3
jmp 0x1005e2bc
minss xmm2, xmm4
movss xmm7, dword [0x10155edc]
movss xmm6, dword [0x10155c1c]
mulss xmm2, xmm7
addss xmm2, xmm6
cvttss2si ecx, xmm2
shl ecx, 0x10
comiss xmm3, xmm1
jbe 0x1005e2e5
movaps xmm1, xmm3
jmp 0x1005e2e9
minss xmm1, xmm4
mulss xmm1, xmm7
addss xmm1, xmm6
cvttss2si eax, xmm1
shl eax, 8
or ecx, eax
comiss xmm3, xmm0
jbe 0x1005e304
movaps xmm0, xmm3
jmp 0x1005e308
minss xmm0, xmm4
mulss xmm0, xmm7
addss xmm0, xmm6
cvttss2si eax, xmm0
or ecx, eax
comiss xmm3, xmm5
ja 0x1005e322
minss xmm5, xmm4
movaps xmm3, xmm5
mulss xmm3, xmm7
addss xmm3, xmm6
cvttss2si edi, xmm3
shl edi, 0x18
or edi, ecx
test edi, 0xff000000
je 0x1005e3ab
mov ecx, esi
lea eax, [ecx + 1]
mov dword [esp + 0x38], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005e344
sub ecx, dword [esp + 0x38]
lea eax, [ecx + esi]
mov dword [esp + 0x38], eax
cmp esi, eax
je 0x1005e3ab
mov eax, dword [esp + 0xc]
push dword [esp + 0x5c]
mov edx, dword [edx + 0x40]
push dword [esp + 0x5c]
mov ecx, dword [eax + 0x20]
add edx, edx
push 0
lea eax, [esp + 0x6c]
mov ecx, dword [ecx + 0x48]
push ecx
mov dword [esp], 0
push dword [esp + 0x48]
movups xmm0, xmmword [ecx + edx*8 - 0x10]
mov edx, dword [esp + 0x20]
push esi
push eax
push edi
mov ecx, dword [edx + 0x20]
push ecx
movups xmmword [esp + 0x84], xmm0
mov eax, dword [ecx + 0x28]
movss xmm2, dword [eax + 0xc]
mov ecx, dword [eax + 8]
call fcn.10026e50
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x20]
dec dword [ecx + 0x4c]
call fcn.10021660
mov esi, dword [0x1020e2c0]
mov eax, dword [esi + 0x19b0]
mov ecx, dword [eax + 0x284]
dec dword [ecx + 0x4c]
call fcn.10021660
mov ecx, dword [esi + 0x1ab4]
sub ecx, 1
mov dword [esi + 0x1ab4], ecx
jne 0x1005e40c
mov eax, dword [0x1020e2c0]
mov ecx, dword [eax + 0xa4]
test ecx, ecx
jne 0x1005e416
mov eax, dword [eax + 0x98]
mov eax, dword [eax + 0x44]
mov ecx, dword [eax]
call fcn.10013d60
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esi + 0x1abc]
mov ecx, dword [eax + ecx*4 - 4]
call fcn.10013d60
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10