Function at 0x100198f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10069c2d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
push esi
push edi
mov eax, dword [0x10468f40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x10531940]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov ecx, dword [0x10531944]
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
call edx
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
je 0x10019f60
mov ecx, dword [0x10531a98]
cmp dword [ecx + esi], 0
jle 0x10019f60
mov ecx, dword [0x10531abc]
cmp dword [ecx + esi], 0
je 0x10019f60
mov eax, dword [0x10531aa4]
push ecx
movss xmm0, dword [eax + esi]
subss xmm0, dword [0x10531c38]
movss dword [esp], xmm0
call fcn.10009820
mov ecx, dword [0x10531940]
lea edx, [ebp - 0x14]
add esp, 4
fstp dword [ebp - 0x24]
movss xmm0, dword [ebp - 0x24]
mov eax, dword [ecx]
andps xmm0, xmmword [0x1006c470]
push edx
lea edx, [ebp - 0x50]
movss dword [ebp - 0x1c], xmm0
mov eax, dword [eax + 0x14]
push edx
call eax
call fcn.1003fa20
fsubr dword [0x10519954]
mov eax, dword [0x10531aa0]
fstp dword [ebp - 0x18]
movss xmm0, dword [ebp - 0x18]
movss dword [ebp - 0x24], xmm0
movq xmm0, qword [eax + esi]
mov eax, dword [eax + esi + 8]
movq qword [ebp - 0x5c], xmm0
movss xmm1, dword [ebp - 0x5c]
movss xmm0, dword [ebp - 0x58]
mulss xmm1, xmm1
mov dword [ebp - 0x54], eax
mulss xmm0, xmm0
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x10019a12
sqrtsd xmm0, xmm0
jmp 0x10019a17
call fcn.10047870
cvtsd2ss xmm0, xmm0
mov edx, 1
mov edi, 0xff0000ff
xorps xmm1, xmm1
ucomiss xmm0, xmm1
lahf
xor ecx, ecx
test ah, 0x44
cmovnp ecx, edx
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
comiss xmm0, xmm1
jbe 0x10019bcc
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10531f4c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1051b220]
cmp eax, dword [ecx + 4]
jg 0x10019f74
mov eax, dword [0x10531c20]
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
xorps xmm0, xmm0
add eax, 0xffffffba
push 3
movups xmmword [esi], xmm0
push 0x1006d384
push esi
mov dword [ebp - 0x2c], eax
mov dword [esi + 0x10], 3
mov dword [esi + 0x14], 0xf
call fcn.100438a0
add esp, 0xc
mov byte [esi + 3], 0
push 0x64101010
push 0
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push 0xa
call fcn.1003eec0
movss xmm0, dword [ebp - 0x18]
lea edx, [ebp - 0x24]
xorps xmm1, xmm1
mov dword [ebp - 0x28], 0x3f800000
comiss xmm1, xmm0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
lea esi, [ebp - 0x28]
seta al
test al, al
cmove ecx, edx
comiss xmm0, dword [0x1006c388]
seta al
test al, al
mov eax, dword [0x1053193c]
cmove esi, ecx
mov byte [eax + 0x280], 1
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.1003f620
movd xmm0, dword [0x1051b218]
add esp, 0x40
cvtdq2ps xmm0, xmm0
push dword [0x1051b21c]
mulss xmm0, dword [esi]
cvttss2si eax, xmm0
push eax
mov eax, dword [ebp - 0x14]
add eax, 0xffffffba
push eax
push 0xa
call fcn.1003f700
movss xmm0, dword [ebp - 0x1c]
mov eax, 0xff23be7d
comiss xmm0, dword [0x1006c42c]
mov esi, edi
xorps xmm0, xmm0
cmova esi, eax
mov eax, dword [0x10531c20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
add eax, 0xffffffba
sub esp, 8
mov dword [ebp - 0x30], eax
mov eax, esp
mov dword [ebp - 0x2c], eax
push 3
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 3
mov dword [eax + 0x14], 0xf
push 0x1006d384
push eax
call fcn.100438a0
mov eax, dword [ebp - 0x2c]
add esp, 0xc
push esi
push 0
push 0
push dword [ebp - 0x28]
mov byte [eax + 3], 0
push dword [ebp - 0x30]
push 0xa
call fcn.1003eec0
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
call fcn.1003f700
mov eax, dword [0x1053193c]
add esp, 0x40
mov esi, dword [ebp - 0x20]
mov byte [eax + 0x280], 0
mov eax, dword [0x10531aa0]
movq xmm0, qword [eax + esi]
mov eax, dword [eax + esi + 8]
movq qword [ebp - 0x5c], xmm0
movss xmm1, dword [ebp - 0x58]
movss xmm0, dword [ebp - 0x5c]
mulss xmm0, xmm0
mov dword [ebp - 0x54], eax
mulss xmm1, xmm1
addss xmm1, xmm0
movss xmm0, dword [ebp - 0x54]
mulss xmm0, xmm0
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x10019c17
sqrtsd xmm0, xmm0
jmp 0x10019c1c
call fcn.10047870
cvtsd2ss xmm0, xmm0
comiss xmm0, dword [0x1006d3a8]
jbe 0x10019d26
movss xmm0, dword [ebp - 0x1c]
mov eax, 0xff23be7d
comiss xmm0, dword [0x1006c42c]
mov esi, edi
xorps xmm0, xmm0
cmova esi, eax
mov eax, dword [0x10531c20]
mov dword [ebp - 0x3c], eax
sub esp, 0x18
mov eax, dword [ebp - 0x14]
add eax, 0xffffff9c
mov dword [ebp - 0x38], eax
mov eax, esp
push 3
push 0x1006d384
push eax
movups xmmword [eax], xmm0
mov dword [ebp - 0x40], eax
mov dword [eax + 0x10], 3
mov dword [eax + 0x14], 0xf
call fcn.100438a0
mov eax, dword [ebp - 0x40]
add esp, 0xc
push esi
push 0
push 0
push dword [ebp - 0x3c]
mov byte [eax + 3], 0
push dword [ebp - 0x38]
push 0xa
call fcn.1003eec0
mov eax, dword [0x10531aa0]
mov ecx, dword [ebp - 0x20]
movq xmm0, qword [eax + ecx]
mov eax, 0xff23be7d
movq qword [ebp - 0x5c], xmm0
movss xmm0, dword [ebp - 0x58]
comiss xmm0, dword [0x1006c44c]
xorps xmm0, xmm0
cmova edi, eax
mov eax, dword [0x10531c20]
add esp, 0x18
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x14]
mov esi, esp
add eax, 0xffffffba
mov dword [ebp - 0x3c], eax
push 2
movups xmmword [esi], xmm0
push 0x1006d388
push esi
mov dword [esi + 0x10], 2
mov dword [esi + 0x14], 0xf
call fcn.100438a0
add esp, 0xc
mov byte [esi + 2], 0
push edi
push 0
push 0
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
push 0xa
call fcn.1003eec0
add esp, 0x30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, dword [0x10531aa0]
movq xmm0, qword [eax + esi]
mov eax, dword [eax + esi + 8]
movq qword [ebp - 0x5c], xmm0
movss xmm1, dword [ebp - 0x5c]
movss xmm0, dword [ebp - 0x58]
mulss xmm0, xmm0
mov dword [ebp - 0x54], eax
mulss xmm1, xmm1
addss xmm1, xmm0
movss xmm0, dword [ebp - 0x54]
mulss xmm0, xmm0
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x10019d71
sqrtsd xmm0, xmm0
jmp 0x10019d76
call fcn.10047870
cvtsd2ss xmm0, xmm0
comiss xmm0, dword [0x1006c388]
jbe 0x10019f60
mov eax, dword [0x10531aa0]
movq xmm0, qword [eax + esi]
mov eax, dword [eax + esi + 8]
movq qword [ebp - 0x5c], xmm0
movss xmm1, dword [ebp - 0x5c]
movss xmm0, dword [ebp - 0x58]
mulss xmm0, xmm0
mov dword [ebp - 0x54], eax
mulss xmm1, xmm1
addss xmm1, xmm0
movss xmm0, dword [ebp - 0x54]
mulss xmm0, xmm0
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x10019dd2
sqrtsd xmm0, xmm0
jmp 0x10019dd7
call fcn.10047870
movss xmm1, dword [0x1006d3a8]
cvtsd2ss xmm0, xmm0
comiss xmm1, xmm0
jbe 0x10019f60
mov eax, dword [0x10531f4c]
mov ecx, dword fs:[0x2c]
mov ecx, dword [ecx + eax*4]
mov eax, dword [0x1051b234]
cmp eax, dword [ecx + 4]
jg 0x10019fcc
mov eax, dword [0x10531c20]
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x14]
xorps xmm0, xmm0
add eax, 0xffffffba
push 3
movups xmmword [esi], xmm0
push 0x1006d384
push esi
mov dword [ebp - 0x3c], eax
mov dword [esi + 0x10], 3
mov dword [esi + 0x14], 0xf
call fcn.100438a0
add esp, 0xc
mov byte [esi + 3], 0
push 0x64101010
push 0
push 0
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
push 0xa
call fcn.1003eec0
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0x3f800000
comiss xmm0, dword [ebp - 0x18]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x40], 0
lea esi, [ebp - 0x40]
cmovbe esi, eax
mov eax, dword [0x1053193c]
mov byte [eax + 0x280], 1
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.1003f620
movss xmm0, dword [ebp - 0x18]
lea eax, [ebp - 0x3c]
add esp, 0x40
comiss xmm0, dword [0x1006c388]
movd xmm0, dword [0x1051b22c]
push dword [0x1051b230]
cmovbe eax, esi
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [eax]
cvttss2si eax, xmm0
push eax
mov eax, dword [ebp - 0x14]
add eax, 0xffffffba
push eax
push 0xa
call fcn.1003f700
movss xmm0, dword [ebp - 0x1c]
mov eax, 0xff23be7d
comiss xmm0, dword [0x1006c42c]
xorps xmm0, xmm0
cmova edi, eax
mov eax, dword [0x10531c20]
sub esp, 8
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x14]
mov esi, esp
add eax, 0xffffffba
mov dword [ebp - 0x3c], eax
push 3
movups xmmword [esi], xmm0
push 0x1006d384
push esi
mov dword [esi + 0x10], 3
mov dword [esi + 0x14], 0xf
call fcn.100438a0
add esp, 0xc
mov byte [esi + 3], 0
push edi
push 0
push 0
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
push 0xa
call fcn.1003eec0
push dword [ebp - 0x20]
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
call fcn.1003f700
mov eax, dword [0x1053193c]
add esp, 0x40
mov byte [eax + 0x280], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x1051b220
call fcn.1004210c
add esp, 4
cmp dword [0x1051b220], 0xffffffff
jne 0x10019a64
push 0x1006d384
push dword [0x10531c20]
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 0
push eax
call fcn.1003f650
push 0x1051b220
mov dword [ebp - 4], 0xffffffff
movups xmm0, xmmword [eax]
movups xmmword [0x1051b210], xmm0
call fcn.100420c2
add esp, 0x10
jmp 0x10019a64
push 0x1051b234
call fcn.1004210c
add esp, 4
cmp dword [0x1051b234], 0xffffffff
jne 0x10019e0c
push 0x1006d384
push dword [0x10531c20]
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 1
push eax
call fcn.1003f650
push 0x1051b234
mov dword [ebp - 4], 0xffffffff
movups xmm0, xmmword [eax]
movups xmmword [0x1051b224], xmm0
call fcn.100420c2
add esp, 0x10
jmp 0x10019e0c