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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa90
mov eax, dword [0x1036a00c]
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 0x101fe56b
mov ecx, esi
call fcn.10165fb0
movzx eax, al
mov dword [esi + 0x24], eax
test al, 0xf
jne 0x101fe57d
lea ecx, [esp + 0x98]
call fcn.10165f20
jmp 0x101fe594
lea eax, [esp + 0x98]
mov ecx, esi
push eax
call fcn.10167250
test al, al
je 0x101fe88c
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.10167940
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 0x101fe88c
comiss xmm0, xmm1
jae 0x101fe88c
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.1018ac90
mov esi, eax
lea ecx, [esp + 0x5a8]
push esi
call fcn.1015b970
movd xmm1, dword [esp + 8]
lea ecx, [esp + 0x5a8]
movd xmm0, edi
cvtdq2ps xmm2, xmm0
cvtdq2ps xmm1, xmm1
xorps xmm2, xmmword [0x10300a00]
xorps xmm1, xmmword [0x10300a00]
call fcn.1015d3b0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x5a8]
push 0
push 0
push dword [eax + 0x2c]
call fcn.10162b40
push dword [esp + 0x38]
lea ecx, [esp + 0xc4]
call fcn.1015b970
mov eax, dword [ebp + 0x10]
movd xmm2, dword [eax + 4]
movd xmm1, dword [eax]
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm1, xmm1
xorps xmm2, xmmword [0x10300a00]
xorps xmm1, xmmword [0x10300a00]
lea ecx, [esp + 0xc0]
call fcn.1015d3b0
push dword [esp + 0x3c]
lea ecx, [esp + 0xc4]
call fcn.1015d680
lea ecx, [esp + 0x40]
call fcn.1014d6c0
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 0x101fe855
cmp dword [ecx + 0x1c], 0
jle 0x101fe855
cmp dword [ecx], 0
je 0x101fe855
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.1014d850
lea ecx, [esp + 0xc0]
call fcn.1015bb00
lea ecx, [esp + 0x5a8]
call fcn.1015bb00
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x101fe88c
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.102af9d5
mov esp, ebp
pop ebp
ret 0x10