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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa90
mov eax, dword [0x1036900c]
xor eax, esp
mov dword [esp + 0xa8c], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [esp + 0x38], eax
mov edi, ecx
mov eax, dword [esi + 0x24]
mov dword [esp + 0x14], edi
mov dword [esp + 0x3c], esi
test al, al
jns 0x101fe40b
mov ecx, esi
call fcn.10165e20
movzx eax, al
mov dword [esi + 0x24], eax
test al, 0xf
jne 0x101fe41d
lea ecx, [esp + 0x98]
call fcn.10165d90
jmp 0x101fe434
lea eax, [esp + 0x98]
mov ecx, esi
push eax
call fcn.101670c0
test al, al
je 0x101fe72c
movd xmm0, dword [esi + 0x28]
lea eax, [esp + 0x88]
cvtdq2ps xmm0, xmm0
push eax
push eax
lea ecx, [esp + 0xa0]
movss dword [esp + 0x90], xmm0
movd xmm0, dword [esi + 0x2c]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x94], xmm0
movd xmm0, dword [esi + 0x30]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x98], xmm0
movd xmm0, dword [esi + 0x34]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x9c], xmm0
call fcn.101677b0
movss xmm2, dword [edi + 0x30]
movss xmm3, dword [edi + 0x38]
minss xmm3, dword [esp + 0x90]
movss xmm0, dword [edi + 0x34]
movss xmm1, dword [edi + 0x3c]
maxss xmm2, dword [esp + 0x88]
maxss xmm0, dword [esp + 0x8c]
minss xmm1, dword [esp + 0x94]
movss dword [esp + 0x28], xmm3
comiss xmm2, xmm3
movss dword [esp + 0x18], xmm0
movss dword [esp + 0x20], xmm1
jae 0x101fe72c
comiss xmm0, xmm1
jae 0x101fe72c
movss dword [esp + 0x8c], xmm0
sub esp, 8
cvtps2pd xmm0, xmm2
movss dword [esp + 0x90], xmm2
movsd qword [esp + 0x10], xmm0
fld qword [esp + 0x10]
fstp qword [esp]
movss dword [esp + 0x98], xmm3
movss dword [esp + 0x9c], xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
fstp qword [esp + 0x10]
movsd xmm0, qword [esp + 0x10]
cvtpd2ps xmm0, xmm0
cvttss2si esi, xmm0
movss xmm0, dword [esp + 0x20]
cvtps2pd xmm0, xmm0
mov dword [esp + 0x10], esi
movsd qword [esp + 0x20], xmm0
fld qword [esp + 0x20]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
fstp qword [esp + 0x20]
movsd xmm0, qword [esp + 0x20]
cvtpd2ps xmm0, xmm0
cvttss2si edi, xmm0
movss xmm0, dword [esp + 0x28]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x28], xmm0
fld qword [esp + 0x28]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [esp + 0x28]
movsd xmm0, qword [esp + 0x28]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x28]
cvtps2pd xmm0, xmm0
sub eax, edi
push eax
sub esp, 8
movsd qword [esp + 0x34], xmm0
fld qword [esp + 0x34]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
mov ecx, dword [esp + 0x40]
add esp, 8
fstp qword [esp + 0x2c]
movsd xmm0, qword [esp + 0x2c]
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
sub eax, esi
push eax
call fcn.1018ab00
mov esi, eax
lea ecx, [esp + 0x5a8]
push esi
call fcn.1015b7d0
movd xmm1, dword [esp + 8]
lea ecx, [esp + 0x5a8]
movd xmm0, edi
cvtdq2ps xmm2, xmm0
cvtdq2ps xmm1, xmm1
xorps xmm2, xmmword [0x102ff980]
xorps xmm1, xmmword [0x102ff980]
call fcn.1015d210
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x5a8]
push 0
push 0
push dword [eax + 0x2c]
call fcn.101629a0
push dword [esp + 0x38]
lea ecx, [esp + 0xc4]
call fcn.1015b7d0
mov eax, dword [ebp + 0x10]
movd xmm2, dword [eax + 4]
movd xmm1, dword [eax]
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm1, xmm1
xorps xmm2, xmmword [0x102ff980]
xorps xmm1, xmmword [0x102ff980]
lea ecx, [esp + 0xc0]
call fcn.1015d210
push dword [esp + 0x3c]
lea ecx, [esp + 0xc4]
call fcn.1015d4e0
lea ecx, [esp + 0x40]
call fcn.1014d510
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x44]
mov eax, dword [esp + 0x80]
shl ecx, 0x1c
xor ecx, eax
and ecx, 0x30000000
xor eax, ecx
mov ecx, esi
mov dword [esp + 0x80], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x78]
call eax
mov ecx, eax
cmp dword [ecx + 0x18], 0
jle 0x101fe6f5
cmp dword [ecx + 0x1c], 0
jle 0x101fe6f5
cmp dword [ecx], 0
je 0x101fe6f5
lea eax, [esp + 0x40]
movd xmm0, edi
push eax
mov eax, dword [esp + 0xc4]
sub esp, 8
cvtdq2ps xmm0, xmm0
movss dword [esp + 4], xmm0
movd xmm0, dword [esp + 0x14]
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
push ecx
lea ecx, [esp + 0xd0]
call dword [eax + 0x90]
lea ecx, [esp + 0x40]
call fcn.1014d6a0
lea ecx, [esp + 0xc0]
call fcn.1015b960
lea ecx, [esp + 0x5a8]
call fcn.1015b960
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x101fe72c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esp + 0xa94]
pop edi
pop esi
xor ecx, esp
call fcn.102af895
mov esp, ebp
pop ebp
ret 0x10