Function at 0x52c1f0
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 0x5b1978
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
push esi
push edi
mov eax, dword [0x5bd344]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ecx
mov eax, dword [ebx + 0x10]
mov esi, dword [ebx + 0xc]
test eax, eax
jg 0x52c244
mov dword [ebp - 0x14], 0
jmp 0x52c25b
cmp eax, dword [esi + 0x4c]
jge 0x52c255
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x52c255
mov eax, dword [ecx + eax*4]
jmp 0x52c258
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x14], eax
mov edi, dword [ebx + 0x1c]
mov ecx, dword [edx + 0x2a8]
push 1
push 1
lea eax, [edi + 1]
mov dword [ebp - 0x1c], edi
push eax
call fcn.004a7870
mov ecx, dword [ebx + 0x18]
xorps xmm4, xmm4
mov dword [ebp - 0x20], eax
mov edx, ecx
sub eax, edi
cmp dword [ebx + 0x1c], 0
lea edi, [eax + ecx]
jle 0x52c2db
nop word [eax + eax]
mov ecx, edi
sub ecx, eax
cmp ecx, dword [ebp - 0x14]
jl 0x52c2db
mov eax, dword [esi + 0x38]
movss xmm0, dword [eax + edi*4]
subss xmm0, dword [eax + ecx*4]
comiss xmm0, xmm4
ja 0x52c2db
mov eax, dword [ebp - 0x1c]
push 1
dec eax
push 0xffffffffffffffff
push eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x2a8]
call fcn.004a7870
mov ecx, eax
xorps xmm4, xmm4
mov eax, dword [ebp - 0x20]
mov edx, ecx
sub edx, dword [ebx + 0x1c]
sub eax, ecx
add edx, dword [ebx + 0x18]
mov dword [ebp - 0x1c], ecx
test ecx, ecx
jg 0x52c290
xor ecx, ecx
mov eax, edi
test edx, edx
cmovns ecx, edx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ecx
sub eax, ecx
mov ecx, dword [ebx + 0x10]
inc ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x18], eax
test ecx, ecx
jg 0x52c2fe
xor eax, eax
jmp 0x52c312
cmp ecx, dword [esi + 0x4c]
jge 0x52c30f
mov eax, dword [esi + 4]
test eax, eax
je 0x52c30f
mov eax, dword [eax + ecx*4]
jmp 0x52c312
mov eax, dword [esi + 0x18]
cmp edi, eax
jge 0x52c368
cmp edi, dword [esi + 0x18]
jg 0x52c368
push 1
lea eax, [edx + 1]
mov esi, edx
push 1
push eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x2a8]
call fcn.004a7870
mov edx, eax
xorps xmm4, xmm4
mov eax, dword [ebx + 0xc]
mov edi, edx
sub edi, dword [ebx + 0x1c]
add edi, dword [ebx + 0x18]
mov ecx, dword [eax + 0x38]
mov eax, edi
sub eax, edx
add eax, esi
movss xmm0, dword [ecx + edi*4]
subss xmm0, dword [ecx + eax*4]
comiss xmm0, xmm4
ja 0x52c368
mov esi, dword [ebx + 0xc]
mov eax, edi
sub eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
jmp 0x52c2f3
mov esi, dword [ebx + 0xc]
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x14]
movd xmm0, dword [ebx + 0x14]
mov ecx, dword [esi + 0x38]
mov eax, dword [ebp - 0x18]
movss xmm1, dword [esi + 0x50]
add eax, edx
cvtdq2ps xmm0, xmm0
movss xmm2, dword [ecx + edx*4]
subss xmm2, dword [ecx + edi*4]
ucomiss xmm1, xmm4
addss xmm2, xmm0
movss dword [ebx + 0x24], xmm2
movss xmm3, dword [ecx + eax*4]
subss xmm3, dword [ecx + edi*4]
lahf
addss xmm3, xmm0
movss dword [ebx + 0x2c], xmm3
test ah, 0x44
jnp 0x52c3ce
test edi, edi
je 0x52c3ce
movaps xmm0, xmm1
addss xmm1, xmm3
addss xmm0, xmm2
movss dword [ebx + 0x2c], xmm1
movss dword [ebx + 0x24], xmm0
mov eax, dword [esi + 0x34]
mov esi, dword [ebx + 8]
movzx eax, byte [edx + eax]
mov ecx, dword [esi + 0x14]
imul edx, eax, 0x4c
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0x44dcc0
mov eax, dword [edx + ecx + 0x48]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 4], 0
push dword [ebx + 0x20]
mov edi, dword [ebp - 0x28]
push dword [edx + ecx + 0x34]
mov eax, dword [eax + 0x30]
push dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
push eax
mov eax, dword [esi + 0x50]
mov edi, dword [edi]
push ecx
mov ecx, dword [ebp - 0x28]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x44e1b0]
lea eax, [ebp - 0x34]
cvtpd2ps xmm0, xmm0
addss xmm0, dword [ebx + 0x28]
movss dword [esp], xmm0
movups xmm0, xmmword [ebx + 0x24]
push eax
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
call dword [edi + 0x54]
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