Function at 0x10175810
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 0x10321f51
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x1043900c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x40], edx
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0x10]
mov edi, dword [ebx + 0x18]
mov esi, dword [ebx + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x28], eax
add eax, 0x30
push 0x1800
mov dword [ebp - 0x4c], ecx
lea ecx, [edx + 0x14853c]
push eax
push ecx
mov dword [ebp - 0x44], edi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0x28]
add esp, 0xc
mov eax, dword [ecx + 0x5054]
push 0
push ecx
mov dword [esi], eax
call fcn.10173fa0
mov esi, dword [ebp - 0x2c]
xorps xmm1, xmm1
mov edx, dword [ebp - 0x28]
mov dword [edi], 0xbf800000
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov eax, dword [edx]
test eax, eax
jne 0x101758c7
or eax, 0xffffffff
jmp 0x101758cd
mov eax, dword [eax + 0x100]
movss xmm2, dword [ebx + 0x1c]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm2, xmm0
jbe 0x101758eb
inc eax
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ebx + 0x1c], xmm0
mov eax, dword [0x1060b5e0]
mov eax, dword [eax + 0xaa8]
test eax, eax
jne 0x10175902
xorps xmm0, xmm0
xorps xmm2, xmm2
jmp 0x10175927
movq xmm0, qword [eax + 0x138]
mov eax, dword [eax + 0x140]
movq qword [ebp - 0x3c], xmm0
movss xmm0, dword [ebp - 0x38]
movss xmm1, dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
movss xmm2, dword [ebp - 0x34]
subss xmm0, dword [edx + 0x4858]
subss xmm1, dword [edx + 0x4854]
subss xmm2, dword [edx + 0x485c]
mulss xmm0, xmm0
mulss xmm1, xmm1
mulss xmm2, xmm2
addss xmm0, xmm1
addss xmm0, xmm2
comiss xmm0, dword [0x1041f11c]
ja 0x10175a4e
mov eax, dword fs:[0x2c]
mov ecx, dword [0x104c14e0]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10612318]
cmp eax, dword [ecx + 4]
jg 0x10175a70
jmp 0x10175985
mov edx, dword [ebp - 0x28]
mov eax, dword [0x106122fc]
mov edi, dword [0x106122f8]
mov dword [ebp - 0x50], eax
cmp edi, eax
je 0x10175a43
jmp 0x101759a3
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x40]
mov eax, dword [edi]
add ecx, 0x14853c
push ecx
push eax
push dword [edx]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.10173b60
mov eax, dword [0x106111d8]
lea ecx, [ebp - 0x20]
mov esi, dword [ebp - 0x28]
push 0
push ecx
mov eax, dword [eax]
mov esi, dword [esi]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [0x1060b5e0]
mov ecx, dword [eax + 0xaa8]
call fcn.100beed0
push esi
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [0x106111d8]
push eax
call dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
fstp dword [ebp - 0x30]
movss xmm1, dword [ebp - 0x30]
comiss xmm1, dword [ebx + 0x1c]
jbe 0x10175a37
mov eax, dword [ebp - 0x44]
comiss xmm1, dword [eax]
jbe 0x10175a37
mov edx, dword [ebp - 0x4c]
movss xmm0, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x48]
mov dword [edx], ecx
movss dword [esi], xmm0
movss xmm0, dword [ebp - 0x38]
movss dword [esi + 4], xmm0
movss xmm0, dword [ebp - 0x34]
movss dword [esi + 8], xmm0
movss dword [eax], xmm1
add edi, 4
cmp edi, dword [ebp - 0x50]
jne 0x101759a0
push dword [ebp - 0x28]
mov ecx, dword [ebp - 0x40]
call fcn.10174100
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.102bb91c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x18
push 0x10612318
call fcn.102bba07
add esp, 4
cmp dword [0x10612318], 0xffffffff
jne 0x10175982
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
movaps xmm0, xmmword [0x1041f300]
lea eax, [ebp - 0x14]
push ecx
push eax
push ecx
mov ecx, 0x106122f8
movups xmmword [ebp - 0x24], xmm0
call fcn.1017ce70
push 0x103323e0
call fcn.102bbda4
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x10612318
call fcn.102bb9b6
add esp, 4
jmp 0x10175982