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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x19a8
call fcn.100ea030
push esi
push edi
mov edi, dword [0x10137df8]
mov esi, ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x44], edi
cmp byte [edi + 0x16c], 0
je 0x1008813f
mov eax, dword [0x10137df4]
mov eax, dword [eax + 0x14]
movss xmm0, dword [eax]
mov eax, dword [ebp + 8]
movaps xmm1, xmm0
movss dword [esp + 0x54], xmm0
movd xmm0, dword [edi + 0x17c]
cvtdq2ps xmm0, xmm0
subss xmm1, dword [eax]
mulss xmm0, dword [0x1012ac2c]
comiss xmm0, xmm1
ja 0x1008813f
cmp byte [edi + 0x170], 0
je 0x10087627
mov eax, dword [esi]
mov eax, dword [eax + 0x5f4]
call eax
movzx eax, ax
cmp ax, 0x11
je 0x1008760f
cmp ax, 0x63
je 0x1008760f
cmp ax, 0x4d
jne 0x10087627
mov eax, dword [0x10139208]
mov ecx, dword [eax]
call fcn.1006a090
mov eax, dword [eax]
shr eax, 1
test al, 1
je 0x1008813f
xor eax, eax
mov ecx, esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x24], ax
call fcn.1006f9c0
mov ecx, dword [edi + 0x178]
mov byte [esp + 0x13], al
test cl, 4
je 0x10087661
test al, al
je 0x10087657
mov byte [esp + 0x20], 1
jmp 0x10087687
mov dword [esp + 0x22], 0x1010101
jmp 0x1008767e
mov al, cl
shr ecx, 1
and al, 1
and cl, 1
mov byte [esp + 0x20], al
mov byte [esp + 0x22], cl
mov byte [esp + 0x23], cl
mov byte [esp + 0x24], cl
mov byte [esp + 0x25], cl
mov ax, word [esp + 0x24]
mov dword [esp + 0x50], eax
mov esi, dword [0x1013d228]
mov eax, 0x2e8ba2e9
mov ecx, dword [0x1013d224]
sub esi, ecx
push dword [esp + 0x54]
imul esi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x1013d228]
push eax
call fcn.10085680
mov esi, dword [0x1013d228]
mov eax, 0x2e8ba2e9
mov ecx, dword [0x1013d224]
sub esi, ecx
push dword [esp + 0x54]
imul esi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x1013d228]
push eax
call fcn.10085910
mov eax, dword [0x10139208]
movss xmm1, dword [0x1012af44]
mov byte [esp + 0xb], 0
movss dword [esp + 0x58], xmm1
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov eax, dword [0x10139208]
mov esi, dword [eax]
mov ecx, esi
call fcn.1006fc70
mov edx, dword [esi]
mov ecx, esi
mov edi, eax
mov edx, dword [edx + 0x24]
call edx
movss xmm0, dword [edi]
movss xmm1, dword [edi + 4]
movss xmm2, dword [edi + 8]
addss xmm1, dword [eax + 4]
addss xmm0, dword [eax]
addss xmm2, dword [eax + 8]
mov esi, dword [esp + 0x4c]
movss dword [esp + 0x38], xmm1
movss dword [esp + 0x1c], xmm0
unpcklps xmm0, xmm1
movss xmm1, dword [esi + 0x10]
mulss xmm1, dword [0x1012ac50]
movss dword [esp + 0xd8], xmm2
mov eax, dword [esp + 0xd8]
movss dword [esp + 0x2c], xmm2
movss xmm2, dword [esi + 0xc]
mulss xmm2, dword [0x1012ac50]
mov dword [esp + 0xbc], eax
movups xmmword [esp + 0x100], xmm0
movq qword [esp + 0xb4], xmm0
movaps xmm0, xmm1
movaps xmm1, xmm2
call fcn.1010c690
movaps xmmword [esp + 0xc0], xmm0
movss xmm0, dword [esi + 0xc]
mulss xmm0, dword [0x1012ac50]
call fcn.1010db0b
movaps xmm4, xmmword [esp + 0xc0]
movaps xmm3, xmm0
movaps xmm1, xmm4
movaps xmm0, xmm4
shufps xmm1, xmm4, 1
mulss xmm1, xmm3
mulss xmm0, xmm3
mulss xmm1, dword [0x1012aefc]
mulss xmm0, dword [0x1012aefc]
addss xmm1, dword [esp + 0x1c]
movss dword [esp + 0x80], xmm1
mov eax, dword [esp + 0x44]
addss xmm0, dword [esp + 0x38]
shufps xmm4, xmm4, 0xe
mulss xmm4, dword [0x1012af88]
mov cl, byte [eax + 0x174]
mov eax, dword [eax + 0x174]
and cl, 1
shr eax, 1
addss xmm4, dword [esp + 0x2c]
and eax, 0xffffff01
mov byte [esp + 0x33], cl
mov ecx, dword [0x1013d228]
mov dword [esp + 0x5c], eax
mov eax, dword [0x1013d224]
movss dword [esp + 0x84], xmm0
movss dword [esp + 0x88], xmm4
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], ecx
cmp eax, ecx
je 0x1008813f
mov esi, dword [esp + 0x2c]
lea edx, [eax + 0x24]
mov dword [esp + 0x18], edx
mov ecx, eax
nop dword [eax + eax]
cmp dword [edx + 4], 0
je 0x10088147
cmp byte [edx - 0x10], 0
je 0x10088147
cmp dword [edx - 0x20], 0
je 0x10088147
mov eax, dword [0x10137e08]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax + 0x18]
push dword [edx]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov edi, eax
mov dword [esp + 0x38], edi
test edi, edi
je 0x1008804b
mov ecx, edi
call fcn.1006a090
mov ecx, dword [eax]
shr ecx, 4
test cl, 1
je 0x100878cd
cmp byte [esp + 0x33], 0
jne 0x1008804b
mov ecx, edi
call fcn.1006a090
mov eax, dword [eax]
shr eax, 5
test al, 1
jne 0x1008791d
mov ecx, edi
call fcn.1006fce0
mov eax, dword [eax]
shr eax, 0x13
test al, 1
jne 0x1008791d
mov ecx, edi
call fcn.1006a090
mov eax, dword [eax]
shr eax, 8
test al, 1
jne 0x1008791d
mov ecx, edi
call fcn.1006fce0
mov eax, dword [eax]
shr eax, 0x14
test al, 1
jne 0x1008791d
mov ecx, edi
call fcn.1006a090
mov eax, dword [eax]
shr eax, 0xe
test al, 1
je 0x10087928
cmp byte [esp + 0x5c], 0
jne 0x1008804b
mov eax, dword [0x10139208]
mov esi, dword [eax]
call fcn.100e6cf0
test al, al
je 0x1008793f
mov edx, 1
jmp 0x10087958
mov ecx, esi
call fcn.10069c90
mov ecx, edi
mov esi, eax
call fcn.10069c90
mov ecx, dword [esi]
xor edx, edx
cmp ecx, dword [eax]
setne dl
test dl, dl
jne 0x1008796c
mov eax, dword [esp + 0x44]
cmp byte [eax + 0x16e], dl
je 0x10088055
mov ecx, dword [edi + 0x854]
lea eax, [edi + 0x854]
mov dword [esp + 0x3c], eax
lea edx, [esp + 0x1c]
test ecx, ecx
mov dword [esp + 0x1c], 0
cmovns edx, eax
cmp ecx, 0x80
mov eax, 0x10122fa4
cmovle eax, edx
mov eax, dword [eax]
lea eax, [eax + eax*2]
shl eax, 4
push eax
push dword [edi + 0x848]
lea eax, [esp + 0x1b8]
push eax
call fcn.100ea8d0
mov eax, dword [edi]
add esp, 0xc
mov ecx, edi
mov eax, dword [eax + 0xc]
call eax
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov ecx, eax
call edx
mov ecx, edi
movq xmm0, qword [eax]
movq qword [esp + 0xc0], xmm0
mov eax, dword [eax + 8]
mov dword [esp + 0xc8], eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
call eax
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
mov ecx, edi
movq xmm0, qword [eax]
movq qword [esp + 0xf4], xmm0
mov eax, dword [eax + 8]
mov dword [esp + 0xfc], eax
mov eax, dword [edi]
mov eax, dword [eax + 0x24]
call eax
mov ecx, edi
movq xmm0, qword [eax]
movq qword [esp + 0xdc], xmm0
mov eax, dword [eax + 8]
mov dword [esp + 0xe4], eax
mov eax, dword [edi]
mov eax, dword [eax + 0x28]
call eax
mov ecx, edi
movq xmm0, qword [eax]
movq qword [esp + 0xe8], xmm0
mov eax, dword [eax + 8]
mov dword [esp + 0xf0], eax
call fcn.10079ed0
mov eax, dword [0x10137df8]
or esi, 0xffffffff
cmp byte [eax + 0x1ec], 0
jne 0x10087a71
cmp byte [eax + 0x1f4], 0
je 0x10087caf
mov eax, dword [esp + 0x44]
cmp byte [eax + 0x16f], 0
je 0x10087caf
mov edx, dword [esp + 0x18]
xor edi, edi
movss xmm0, dword [0x1012ae7c]
movss dword [esp + 0x40], xmm0
mov dword [esp + 0x34], edi
cmp dword [edx + 4], edi
jle 0x10088059
mov ecx, dword [edx]
mov eax, dword [edx - 4]
add ecx, edi
dec eax
and ecx, eax
mov eax, dword [edx - 8]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x1c], eax
movss xmm0, dword [eax + 0x6c]
call fcn.10074440
test al, al
je 0x10087c92
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 0x178]
test al, 1
jne 0x10087aea
test al, 4
je 0x10087bb2
cmp byte [esp + 0x13], 0
je 0x10087bb2
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov dword [esp + 0xc], eax
cmp edi, eax
je 0x10087ca6
movss xmm0, dword [esp + 0x40]
nop word [eax + eax]
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0xb4]
add eax, 0xc
movss dword [esp + 0x48], xmm0
push eax
mov edx, edi
call fcn.100992a0
movss dword [esp + 0x68], xmm0
fld dword [esp + 0x68]
movss dword [esp + 0x6c], xmm1
fstp dword [esp + 0x28]
movss xmm1, dword [esp + 0x28]
fld dword [esp + 0x6c]
fstp dword [esp + 0x28]
movss xmm0, dword [esp + 0x28]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm1, xmm0
xorps xmm0, xmm0
sqrtss xmm0, xmm1
movss dword [esp + 0x28], xmm0
fld dword [esp + 0x28]
movss xmm0, dword [esp + 0x40]
fstp dword [esp + 0x28]
movss xmm1, dword [esp + 0x28]
comiss xmm0, xmm1
jbe 0x10087b8f
movaps xmm0, xmm1
movss dword [esp + 0x40], xmm0
movss xmm2, dword [esp + 0x48]
mov eax, dword [esp + 0x34]
comiss xmm2, xmm1
cmovbe eax, esi
add edi, 0xc
mov esi, eax
cmp edi, dword [esp + 0xc]
jne 0x10087b10
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 0x178]
test al, 2
jne 0x10087bd7
test al, 4
je 0x10087c92
cmp byte [esp + 0x13], 0
jne 0x10087c92
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov dword [esp + 0x28], eax
cmp edi, eax
je 0x10087c8e
movss xmm0, dword [esp + 0x40]
nop
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0xb4]
add eax, 0xc
movss dword [esp + 0x48], xmm0
push eax
mov edx, edi
call fcn.100992a0
movss dword [esp + 0x74], xmm0
fld dword [esp + 0x74]
movss dword [esp + 0x78], xmm1
fstp dword [esp + 0xc]
movss xmm1, dword [esp + 0xc]
fld dword [esp + 0x78]
fstp dword [esp + 0xc]
movss xmm0, dword [esp + 0xc]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm1, xmm0
xorps xmm0, xmm0
sqrtss xmm0, xmm1
movss dword [esp + 0xc], xmm0
fld dword [esp + 0xc]
movss xmm0, dword [esp + 0x40]
fstp dword [esp + 0xc]
movss xmm1, dword [esp + 0xc]
comiss xmm0, xmm1
jbe 0x10087c6f
movaps xmm0, xmm1
movss dword [esp + 0x40], xmm0
movss xmm2, dword [esp + 0x48]
mov eax, dword [esp + 0x34]
comiss xmm2, xmm1
cmovbe eax, esi
add edi, 0xc
mov esi, eax
cmp edi, dword [esp + 0x28]
jne 0x10087bf0
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x18]
inc edi
mov dword [esp + 0x34], edi
cmp edi, dword [edx + 4]
jl 0x10087aa3
jmp 0x10087cec
mov edi, dword [esp + 0x34]
jmp 0x10087bb6
mov edx, dword [esp + 0x18]
mov edi, dword [edx + 4]
sub edi, 1
js 0x10088059
nop
mov ecx, dword [edx]
mov eax, dword [edx - 4]
add ecx, edi
dec eax
and ecx, eax
mov eax, dword [edx - 8]
mov eax, dword [eax + ecx*4]
movss xmm0, dword [eax + 0x6c]
call fcn.10074440
mov edx, dword [esp + 0x18]
test al, al
mov ecx, edi
cmove ecx, esi
sub edi, 1
mov esi, ecx
jns 0x10087cc0
cmp esi, 0xffffffff
jle 0x10088059
mov ecx, dword [edx]
mov eax, dword [edx - 4]
add ecx, esi
dec eax
mov dword [esp + 0xc], 0
and ecx, eax
mov eax, dword [edx - 8]
lea edx, [esp + 0xc]
mov edi, dword [eax + ecx*4]
mov eax, dword [esp + 0x3c]
lea esi, [edi + 0x70]
mov ecx, dword [eax]
test ecx, ecx
mov dword [esp + 0x3c], esi
cmovns edx, eax
cmp ecx, 0x80
mov eax, 0x10122650
cmovle eax, edx
mov eax, dword [eax]
lea eax, [eax + eax*2]
shl eax, 4
push eax
push esi
mov esi, dword [esp + 0x40]
push dword [esi + 0x848]
call fcn.100ea8d0
add esp, 0xc
lea eax, [edi + 0x18]
mov ecx, esi
push eax
mov eax, dword [0x10137df4]
mov eax, dword [eax + 0x90]
call eax
lea eax, [edi + 0x24]
mov ecx, esi
push eax
mov eax, dword [0x10137df4]
mov eax, dword [eax + 0x94]
call eax
mov eax, dword [0x10137df4]
mov ecx, dword [esp + 0x38]
mov esi, dword [eax + 0x98]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea ecx, [edi + 0x54]
push ecx
lea ecx, [edi + 0x48]
push ecx
mov ecx, eax
call esi
mov eax, dword [esp + 0x44]
movss xmm0, dword [edi + 0x6c]
mov edi, dword [esp + 0x38]
movss dword [esp + 0x58], xmm0
lea ecx, [edi + 4]
mov al, byte [eax + 0x16e]
movq xmm0, qword [esp + 0x80]
mov byte [esp + 0xb], al
mov eax, dword [esp + 0x88]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x50]
mov word [esp + 0x64], ax
mov eax, dword [ecx]
movq qword [esp + 0x8c], xmm0
movups xmm0, xmmword [esp + 0x100]
mov eax, dword [eax + 0x24]
movq qword [esp + 0x98], xmm0
call eax
mov edx, eax
test edx, edx
je 0x10087f70
mov eax, dword [0x10137e08]
push edx
mov ecx, dword [eax + 0x40]
mov eax, dword [ecx]
mov eax, dword [eax + 0x70]
call eax
mov ecx, eax
test ecx, ecx
je 0x10087f70
cmp dword [ecx + 0xac], 0
jle 0x10087f70
mov eax, dword [ecx + 0xb0]
add eax, ecx
mov dword [esp + 0x1c], eax
je 0x10087f70
xor edi, edi
cmp byte [esp + edi + 0x60], 0
je 0x10087f62
lea ecx, [esp + 0x8c]
mov edx, edi
push ecx
lea ecx, [esp + 0x9c]
push ecx
mov ecx, dword [esp + 0x44]
push eax
call fcn.10099390
test al, al
je 0x10087f5e
cmp byte [esp + 0xb], 0
lea ecx, [esp + 0x16c]
mov eax, dword [0x10137e08]
xorps xmm0, xmm0
movq qword [esp + 0x128], xmm0
mov dword [esp + 0x130], 0
mov dword [esp + 0x134], 0
mov dword [esp + 0x138], 0
mov esi, dword [eax + 0x14]
mov eax, dword [0x10139208]
mov eax, dword [eax]
je 0x10087f02
mov dword [esp + 0xa8], eax
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x9c]
mov dword [esp + 0xa8], 0x10122648
push eax
call fcn.1006f650
lea ecx, [esp + 0x110]
push ecx
lea ecx, [esp + 0xa8]
jmp 0x10087f38
mov dword [esp + 0xb0], eax
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x9c]
mov dword [esp + 0xb0], 0x10122654
push eax
call fcn.1006f650
lea ecx, [esp + 0x110]
push ecx
lea ecx, [esp + 0xb0]
mov eax, dword [esi]
push ecx
push 0x46004003
lea ecx, [esp + 0x178]
mov eax, dword [eax + 0x10]
push ecx
mov ecx, esi
call eax
mov eax, dword [esp + 0x15c]
test eax, eax
jne 0x10088023
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, 6
jb 0x10087e51
mov edi, dword [esp + 0x38]
mov byte [esp + 0xb], 0
mov ecx, dword [edi + 0x854]
lea eax, [edi + 0x854]
test ecx, ecx
mov dword [esp + 0x3c], 0
lea edx, [esp + 0x3c]
cmovns edx, eax
cmp ecx, 0x80
mov eax, 0x10122650
cmovle eax, edx
mov eax, dword [eax]
lea eax, [eax + eax*2]
shl eax, 4
push eax
lea eax, [esp + 0x1b4]
push eax
push dword [edi + 0x848]
call fcn.100ea8d0
add esp, 0xc
lea eax, [esp + 0xdc]
mov ecx, edi
push eax
mov eax, dword [0x10137df4]
mov eax, dword [eax + 0x90]
call eax
lea eax, [esp + 0xe8]
mov ecx, edi
push eax
mov eax, dword [0x10137df4]
mov eax, dword [eax + 0x94]
call eax
mov eax, dword [0x10137df4]
mov ecx, edi
mov esi, dword [eax + 0x98]
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
call eax
lea ecx, [esp + 0xf4]
push ecx
lea ecx, [esp + 0xc4]
push ecx
mov ecx, eax
call esi
mov al, byte [esp + 0xb]
test al, al
jne 0x10088083
mov edx, dword [esp + 0x18]
jmp 0x1008805d
mov edi, dword [esp + 0x38]
cmp eax, edi
je 0x10088041
movss xmm0, dword [esp + 0x13c]
comiss xmm0, dword [0x1012ad1c]
jbe 0x10087f70
mov byte [esp + 0xb], 1
jmp 0x10087f75
mov edx, dword [esp + 0x18]
mov al, byte [esp + 0xb]
jmp 0x10088061
mov edx, dword [esp + 0x18]
mov al, byte [esp + 0xb]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
add ecx, 0x2c
add edx, 0x2c
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
cmp ecx, esi
jne 0x10087870
test al, al
je 0x1008813f
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x3c]
mov eax, dword [0x1013a734]
or dword [edx + 0x24], 1
mov eax, dword [eax + 0x1c]
movss xmm2, dword [eax + 0x2c]
mov eax, dword [0x1013a730]
movss dword [esp + 0x48], xmm2
mov eax, dword [eax + 0x1c]
movss xmm1, dword [eax + 0x2c]
mov eax, dword [0x1013a72c]
movss dword [esp + 0x3c], xmm1
mov eax, dword [eax + 0x1c]
movss xmm0, dword [eax + 0x2c]
lea eax, [esp + 0xc]
comiss xmm0, xmm1
movss dword [esp + 0xc], xmm0
cmovae ecx, eax
lea eax, [esp + 0x48]
comiss xmm2, xmm0
cmovae eax, ecx
movss xmm0, dword [eax]
mov eax, dword [0x1013a724]
test eax, eax
jne 0x100880ee
mov eax, dword [0x1013a720]
mov eax, dword [eax + 0x1c]
movss xmm1, dword [eax + 0x2c]
mov eax, dword [0x1013a728]
divss xmm0, xmm1
mov eax, dword [eax + 0x1c]
maxss xmm0, dword [eax + 0x2c]
mov eax, dword [0x10137df4]
mov eax, dword [eax + 0x14]
addss xmm0, dword [esp + 0x58]
divss xmm0, dword [eax + 0x1c]
addss xmm0, dword [0x1012acd8]
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x54]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov eax, dword [ebp + 0xc]
movss dword [eax], xmm0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov al, byte [esp + 0xb]
jmp 0x10088065