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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x138
mov eax, dword [0x766480]
xor eax, esp
mov dword [esp + 0x134], eax
push esi
mov esi, ecx
mov ecx, dword [sym.imp.WINMM.dll_timeGetTime]
push edi
mov dword [esp + 0x34], esi
cmp byte [esi + 0x180], 0
lea edi, [esi + 0x178]
lea eax, [esi + 0x174]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], eax
jne 0x5be3ee
call ecx
mov ecx, dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [edi], eax
mov dword [esi + 0x174], eax
mov byte [esi + 0x180], 1
jmp 0x5be3f6
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], eax
call ecx
mov ecx, eax
mov eax, dword [esp + 0x38]
mov dword [edi], ecx
sub ecx, dword [eax]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
mov dword [esp + 0x48], edi
test edi, edi
jle 0x5bf570
mov dword [esp + 0x4c], 0x23
nop dword [eax]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [ecx], eax
mov ecx, dword [esp + 0x38]
mov dword [ecx], eax
mov ecx, dword [esi + 0x184]
mov eax, ecx
cdq
idiv dword [esp + 0x4c]
test edx, edx
jne 0x5be474
xor eax, eax
cmp dword [esi], eax
setle al
mov dword [esi], eax
cmp dword [esi + 0x44], 0
lea eax, [ecx + 1]
mov dword [esi + 0x184], eax
mov dword [esp + 0x44], 0
jle 0x5bf563
xor edi, edi
mov dword [esp + 0x24], edi
nop word [eax + eax]
mov eax, dword [esi + 0x54]
movss xmm0, dword [edi + eax + 0x68]
addss xmm0, dword [edi + eax + 4]
movss dword [edi + eax + 4], xmm0
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x54]
movd xmm1, dword [eax + 0x14]
movd xmm2, dword [eax + 0x10]
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm2, xmm2
mulss xmm1, dword [edi + ecx + 4]
comiss xmm1, xmm2
jb 0x5be51e
movaps xmm0, xmm1
divss xmm0, xmm2
mulss xmm0, xmm2
subss xmm1, xmm0
movss dword [edi + ecx + 4], xmm1
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x54]
movd xmm0, dword [eax + 0x14]
movss xmm1, dword [edi + ecx + 4]
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
xorps xmm0, xmm0
movss dword [edi + ecx + 4], xmm1
mov eax, dword [esi + 0x54]
comiss xmm0, dword [edi + eax + 4]
jb 0x5be51e
mov dword [edi + eax + 4], 0
mov ecx, dword [esi + 0x54]
movq xmm0, qword [edi + ecx + 8]
movq qword [edi + ecx + 0x14], xmm0
mov eax, dword [edi + ecx + 0x10]
mov dword [edi + ecx + 0x1c], eax
mov ecx, dword [esi + 0x54]
movq xmm0, qword [edi + ecx + 0x48]
movq qword [edi + ecx + 0x54], xmm0
mov eax, dword [edi + ecx + 0x50]
mov dword [edi + ecx + 0x5c], eax
mov eax, dword [esi + 0x54]
movss xmm0, dword [edi + eax + 0x48]
addss xmm0, dword [edi + eax + 8]
movss dword [edi + eax + 8], xmm0
movss xmm0, dword [edi + eax + 0x4c]
addss xmm0, dword [edi + eax + 0xc]
movss dword [edi + eax + 0xc], xmm0
movss xmm0, dword [edi + eax + 0x50]
addss xmm0, dword [edi + eax + 0x10]
movss dword [edi + eax + 0x10], xmm0
cmp dword [esi], 0
mov edx, dword [esi + 0x54]
mov eax, dword [esi + 0x44]
movss xmm0, dword [0x710d0c]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
je 0x5bec27
xor ecx, ecx
mov dword [esp + 8], 0xffffffff
lea eax, [edi + edx]
mov dword [esp + 0x74], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
movss dword [esp + 0x18], xmm0
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x10], ecx
jle 0x5be7ce
lea esi, [edx + 0x10]
mov edi, eax
lea eax, [esi - 0x10]
cmp edi, eax
je 0x5be65f
movss xmm1, dword [edi + 8]
movss xmm2, dword [edi + 0xc]
subss xmm2, dword [esi - 4]
subss xmm1, dword [esi - 8]
movss xmm0, dword [edi + 0x10]
subss xmm0, dword [esi]
mulss xmm2, xmm2
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm2, xmm1
xorps xmm1, xmm1
addss xmm2, xmm0
cvtps2pd xmm0, xmm2
ucomisd xmm1, xmm0
ja 0x5be630
sqrtsd xmm0, xmm0
jmp 0x5be635
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
movss xmm1, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
cvtsd2ss xmm0, xmm0
comiss xmm1, xmm0
jbe 0x5be65f
mov eax, ecx
movss dword [esp + 0x18], xmm0
movaps xmm3, xmm0
mov dword [esp + 8], eax
movss dword [esp + 0x40], xmm3
jmp 0x5be669
mov eax, dword [esp + 8]
movss xmm3, dword [esp + 0x40]
inc ecx
add esi, 0x7c
mov dword [esp + 0x20], ecx
cmp ecx, dword [esp + 0x10]
jl 0x5be5e6
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x24]
mov ecx, dword [esi + 0x54]
cmp eax, 0xffffffff
je 0x5be7ce
imul eax, eax, 0x7c
movss xmm0, dword [eax + ecx + 8]
movss xmm1, dword [eax + ecx + 0xc]
movss xmm2, dword [eax + ecx + 0x10]
mov eax, dword [esp + 0xc]
subss xmm0, dword [eax + 8]
subss xmm1, dword [eax + 0xc]
subss xmm2, dword [eax + 0x10]
movss dword [esp + 0x74], xmm0
movss xmm0, dword [0x7012b4]
comiss xmm0, xmm3
movss dword [esp + 0x78], xmm1
movss dword [esp + 0x7c], xmm2
jbe 0x5be754
lea eax, [esp + 0x74]
push eax
push eax
call fcn.00402aa2
movss xmm1, dword [0x710cd0]
movss xmm0, dword [esp + 0x74]
movss xmm2, dword [esp + 0x78]
movss xmm3, dword [esp + 0x7c]
mulss xmm0, xmm1
mulss xmm2, xmm1
mulss xmm3, xmm1
movss dword [esp + 0x74], xmm0
addss xmm0, dword [esp + 0x68]
movss dword [esp + 0x78], xmm2
addss xmm2, dword [esp + 0x6c]
movss dword [esp + 0x7c], xmm3
addss xmm3, dword [esp + 0x70]
movss dword [esp + 0x30], xmm0
movss dword [esp + 0x68], xmm0
movss dword [esp + 0x20], xmm2
movss dword [esp + 0x6c], xmm2
movss dword [esp + 8], xmm3
movss dword [esp + 0x70], xmm3
jmp 0x5be7f2
comiss xmm3, xmm0
jbe 0x5be7ce
lea eax, [esp + 0x74]
push eax
push eax
call fcn.00402aa2
movss xmm3, dword [0x70c430]
movss xmm0, dword [esp + 0x74]
movss xmm1, dword [esp + 0x78]
movss xmm2, dword [esp + 0x7c]
mulss xmm0, xmm3
mulss xmm1, xmm3
mulss xmm2, xmm3
movss dword [esp + 0x74], xmm0
addss xmm0, dword [esp + 0x68]
movss dword [esp + 0x78], xmm1
addss xmm1, dword [esp + 0x6c]
movss dword [esp + 0x7c], xmm2
addss xmm2, dword [esp + 0x70]
movss dword [esp + 0x30], xmm0
movss dword [esp + 0x68], xmm0
movss dword [esp + 0x20], xmm1
movss dword [esp + 0x6c], xmm1
movss dword [esp + 0x70], xmm2
jmp 0x5be7ec
movss xmm1, dword [esp + 0x6c]
movss xmm2, dword [esp + 0x70]
movss dword [esp + 0x20], xmm1
movss xmm1, dword [esp + 0x68]
movss dword [esp + 0x30], xmm1
movss dword [esp + 8], xmm2
mov eax, dword [esi + 0x54]
or edx, 0xffffffff
movss xmm0, dword [0x710d0c]
xor ecx, ecx
mov dword [esp + 0x14], eax
add eax, edi
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x44]
movss dword [esp + 0x10], xmm0
mov dword [esp + 0x18], edx
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], eax
test eax, eax
jle 0x5be99a
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
add esi, 0x10
lea eax, [esi - 0x10]
cmp edi, eax
je 0x5be8c9
movss xmm1, dword [edi + 8]
movss xmm2, dword [edi + 0xc]
subss xmm2, dword [esi - 4]
subss xmm1, dword [esi - 8]
movss xmm0, dword [edi + 0x10]
subss xmm0, dword [esi]
mulss xmm2, xmm2
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm2, xmm1
xorps xmm1, xmm1
addss xmm2, xmm0
cvtps2pd xmm0, xmm2
ucomisd xmm1, xmm0
ja 0x5be89f
sqrtsd xmm0, xmm0
jmp 0x5be8a4
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
movss xmm1, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
cvtsd2ss xmm0, xmm0
comiss xmm1, xmm0
jbe 0x5be8c5
mov edx, ecx
movss dword [esp + 0x10], xmm0
mov dword [esp + 0x18], edx
jmp 0x5be8c9
mov edx, dword [esp + 0x18]
inc ecx
add esi, 0x7c
mov dword [esp + 0xc], ecx
cmp ecx, dword [esp + 0x28]
jl 0x5be855
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x24]
mov ecx, dword [esi + 0x54]
cmp edx, 0xffffffff
je 0x5be99a
imul eax, edx, 0x7c
movq xmm0, qword [eax + ecx + 0x48]
movq qword [esp + 0x8c], xmm0
mov eax, dword [eax + ecx + 0x50]
mov dword [esp + 0x94], eax
lea eax, [esp + 0x8c]
push eax
push eax
call fcn.00402aa2
movss xmm3, dword [0x70584c]
movss xmm0, dword [esp + 0x8c]
movss xmm1, dword [esp + 0x90]
movss xmm2, dword [esp + 0x94]
mulss xmm0, xmm3
mulss xmm1, xmm3
mulss xmm2, xmm3
movss dword [esp + 0x8c], xmm0
addss xmm0, dword [esp + 0x68]
movss dword [esp + 0x90], xmm1
addss xmm1, dword [esp + 0x6c]
movss dword [esp + 0x94], xmm2
addss xmm2, dword [esp + 0x70]
movss dword [esp + 0x30], xmm0
movss dword [esp + 0x68], xmm0
movss dword [esp + 0x20], xmm1
movss dword [esp + 0x6c], xmm1
movss dword [esp + 8], xmm2
movss dword [esp + 0x70], xmm2
mov eax, dword [esi + 0x44]
xorps xmm0, xmm0
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0
movss dword [esp + 0xc], xmm0
movss dword [esp + 0x80], xmm0
movss dword [esp + 0x24], xmm0
movss dword [esp + 0x84], xmm0
movss dword [esp + 0x18], xmm0
movss dword [esp + 0x88], xmm0
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x5beb8e
lea esi, [ecx + 0x10]
nop dword [eax + eax]
movss xmm1, dword [edi + ecx + 0xc]
subss xmm1, dword [esi - 4]
movss xmm2, dword [edi + ecx + 8]
subss xmm2, dword [esi - 8]
movss xmm0, dword [edi + ecx + 0x10]
subss xmm0, dword [esi]
mulss xmm1, xmm1
mulss xmm2, xmm2
mulss xmm0, xmm0
addss xmm1, xmm2
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x5bea36
sqrtsd xmm0, xmm0
jmp 0x5bea3b
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
movss xmm1, dword [0x7012b4]
movss xmm2, dword [esp + 0xc]
movss xmm3, dword [esp + 0x24]
movss xmm4, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
cvtsd2ss xmm0, xmm0
comiss xmm1, xmm0
jbe 0x5beaa2
addss xmm2, dword [esi - 8]
inc eax
mov dword [esp + 0x10], eax
movss dword [esp + 0x80], xmm2
addss xmm3, dword [esi - 4]
movss dword [esp + 0xc], xmm2
movss dword [esp + 0x84], xmm3
addss xmm4, dword [esi]
movss dword [esp + 0x24], xmm3
movss dword [esp + 0x18], xmm4
movss dword [esp + 0x88], xmm4
mov ecx, dword [esp + 0x14]
add esi, 0x7c
sub dword [esp + 0x1c], 1
jne 0x5be9f0
test eax, eax
je 0x5beb8e
movss xmm1, dword [0x70196c]
movd xmm0, eax
mov eax, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
mulss xmm2, xmm1
mulss xmm3, xmm1
subss xmm2, dword [edi + eax + 8]
mulss xmm4, xmm1
subss xmm3, dword [edi + eax + 0xc]
subss xmm4, dword [edi + eax + 0x10]
lea eax, [esp + 0x80]
movss dword [esp + 0x80], xmm2
push eax
push eax
movss dword [esp + 0x8c], xmm3
movss dword [esp + 0x90], xmm4
call fcn.00402aa2
movss xmm0, dword [0x70584c]
movss xmm1, dword [esp + 0x80]
movss xmm2, dword [esp + 0x84]
movss xmm3, dword [esp + 0x88]
mulss xmm1, xmm0
mulss xmm2, xmm0
mulss xmm3, xmm0
movss dword [esp + 0x80], xmm1
addss xmm1, dword [esp + 0x68]
movss dword [esp + 0x84], xmm2
addss xmm2, dword [esp + 0x6c]
movss dword [esp + 0x88], xmm3
addss xmm3, dword [esp + 0x70]
movss dword [esp + 0x30], xmm1
movss dword [esp + 0x68], xmm1
movss dword [esp + 0x6c], xmm2
movss dword [esp + 0x70], xmm3
jmp 0x5beba0
movss xmm3, dword [esp + 8]
movss xmm2, dword [esp + 0x20]
movss xmm1, dword [esp + 0x30]
movaps xmm0, xmm1
mulss xmm2, xmm2
mulss xmm0, xmm1
xorps xmm1, xmm1
mulss xmm3, xmm3
addss xmm2, xmm0
addss xmm2, xmm3
cvtps2pd xmm0, xmm2
ucomisd xmm1, xmm0
ja 0x5bebc9
sqrtsd xmm0, xmm0
jmp 0x5bebce
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
cvtsd2ss xmm0, xmm0
comiss xmm0, dword [0x70584c]
jbe 0x5bedb1
lea eax, [esp + 0x68]
push eax
push eax
call fcn.00402aa2
movss xmm2, dword [0x70584c]
movss xmm0, dword [esp + 0x6c]
movss xmm1, dword [esp + 0x68]
mulss xmm0, xmm2
mulss xmm1, xmm2
movss dword [esp + 0x6c], xmm0
movss xmm0, dword [esp + 0x70]
mulss xmm0, xmm2
movss dword [esp + 0x68], xmm1
movss dword [esp + 0x70], xmm0
jmp 0x5bedb7
movss dword [esp + 0x14], xmm0
lea ecx, [edi + edx]
mov dword [esp + 0x1c], ecx
test eax, eax
jle 0x5beda9
mov edi, dword [esp + 0x10]
lea esi, [edx + 0x10]
lea eax, [esi - 0x10]
cmp ecx, eax
je 0x5becfd
movss xmm0, dword [ecx + 0xc]
subss xmm0, dword [esi - 4]
movss xmm2, dword [ecx + 8]
subss xmm2, dword [esi - 8]
movss xmm3, dword [ecx + 0x10]
subss xmm3, dword [esi]
movaps xmm1, xmm0
movss dword [esp + 0x10], xmm0
mulss xmm1, xmm0
movaps xmm0, xmm2
movss dword [esp + 0x28], xmm2
mulss xmm0, xmm2
movss dword [esp + 0x18], xmm3
addss xmm1, xmm0
movaps xmm0, xmm3
mulss xmm0, xmm3
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x5becac
sqrtsd xmm0, xmm0
jmp 0x5becb1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
mov ecx, dword [esp + 0x1c]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss xmm0, dword [esp + 0x14]
comiss xmm0, xmm1
jbe 0x5becfd
movss xmm0, dword [esp + 0x28]
movss dword [esp + 0xd8], xmm0
movss xmm0, dword [esp + 0x10]
movss dword [esp + 0xdc], xmm0
movss xmm0, dword [esp + 0x18]
movss dword [esp + 0xe0], xmm0
movaps xmm0, xmm1
movss dword [esp + 0x14], xmm0
add esi, 0x7c
sub edi, 1
jne 0x5bec43
movss xmm1, dword [0x7012b4]
comiss xmm1, xmm0
mov edi, dword [esp + 0x24]
jbe 0x5beda9
lea eax, [esp + 0xd8]
push eax
push eax
call fcn.00402aa2
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x130]
add esi, 0x48
add esi, edi
push esi
push eax
call fcn.00402aa2
movss xmm0, dword [esp + 0xd8]
addss xmm0, dword [esp + 0x130]
movss xmm1, dword [0x70584c]
mulss xmm0, xmm1
addss xmm0, dword [esi]
movss dword [esi], xmm0
movss xmm0, dword [esp + 0x134]
addss xmm0, dword [esp + 0xdc]
mulss xmm0, xmm1
addss xmm0, dword [esi + 4]
movss dword [esi + 4], xmm0
movss xmm0, dword [esp + 0x138]
addss xmm0, dword [esp + 0xe0]
mulss xmm0, xmm1
addss xmm0, dword [esi + 8]
movss dword [esi + 8], xmm0
movss xmm1, dword [esp + 0x68]
jmp 0x5bedb7
movss xmm1, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov eax, dword [esi + 0x54]
addss xmm1, dword [edi + eax + 0x48]
movss dword [edi + eax + 0x48], xmm1
movss xmm0, dword [esp + 0x6c]
addss xmm0, dword [edi + eax + 0x4c]
movss dword [edi + eax + 0x4c], xmm0
movss xmm0, dword [esp + 0x70]
addss xmm0, dword [edi + eax + 0x50]
movss dword [edi + eax + 0x50], xmm0
mov eax, dword [esi + 0x54]
movss xmm0, dword [edi + eax + 0x4c]
mulss xmm0, dword [0x70f03c]
movss dword [edi + eax + 0x4c], xmm0
mov esi, dword [esi + 0x54]
movss xmm1, dword [edi + esi + 0x4c]
movss xmm2, dword [edi + esi + 0x48]
movss xmm0, dword [edi + esi + 0x50]
mulss xmm2, xmm2
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm2, xmm1
xorps xmm1, xmm1
addss xmm2, xmm0
cvtps2pd xmm0, xmm2
ucomisd xmm1, xmm0
ja 0x5bee40
sqrtsd xmm0, xmm0
jmp 0x5bee45
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
cvtsd2ss xmm0, xmm0
comiss xmm0, dword [0x70174c]
movss dword [edi + esi + 0x2c], xmm0
mov esi, dword [esp + 0x34]
jbe 0x5beeb1
mov eax, dword [esi + 0x54]
add eax, 0x48
add eax, edi
push eax
push eax
call fcn.00402aa2
mov eax, dword [esi + 0x54]
movss xmm1, dword [0x70174c]
movss xmm0, dword [edi + eax + 0x48]
mulss xmm0, xmm1
movss dword [edi + eax + 0x48], xmm0
movss xmm0, dword [edi + eax + 0x4c]
mulss xmm0, xmm1
movss dword [edi + eax + 0x4c], xmm0
movss xmm0, dword [edi + eax + 0x50]
mulss xmm0, xmm1
movss dword [edi + eax + 0x50], xmm0
mov eax, dword [esi + 0x54]
mov dword [edi + eax + 0x2c], 0x3f000000
mov eax, dword [esi + 0x54]
movss xmm1, dword [esi + 0x68]
movaps xmm0, xmm1
mulss xmm0, dword [edi + eax + 0x48]
movss dword [edi + eax + 0x48], xmm0
movaps xmm0, xmm1
mulss xmm0, dword [edi + eax + 0x4c]
mulss xmm1, dword [edi + eax + 0x50]
movss dword [edi + eax + 0x4c], xmm0
movss dword [edi + eax + 0x50], xmm1
mov eax, dword [esi + 0x17c]
sub eax, 1
jne 0x5bf0c3
mov eax, dword [esi + 0x184]
mov ecx, 0x1e
cdq
idiv ecx
test edx, edx
jne 0x5bf0c3
mov esi, dword [esi + 0x54]
add esi, edi
mov dword [esp + 0xd0], edx
push ecx
mov dword [esp + 0xd0], edx
mov dword [esp + 0xcc], edx
mov eax, dword [esi + 0x50]
movq xmm0, qword [esi + 0x48]
mov dword [esp + 0x5c], eax
xor eax, eax
cmp dword [0x74275c], eax
movq qword [esp + 0x54], xmm0
movss xmm0, dword [esp + 0x54]
setle al
movss dword [esp + 0x124], xmm0
movss xmm0, dword [esp + 0x58]
movss dword [esp + 0x128], xmm0
movss xmm0, dword [esp + 0x5c]
lea eax, [eax*2 - 1]
movss dword [esp + 0x12c], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov dword [0x74275c], eax
lea eax, [esp + 0x9c]
mov dword [esp + 0xc8], edx
mov dword [esp + 0xc0], edx
mov dword [esp + 0xbc], edx
mov dword [esp + 0xb8], edx
mulss xmm0, dword [0x70641c]
mov dword [esp + 0xb4], edx
mov dword [esp + 0xac], edx
mov dword [esp + 0xa8], edx
mulss xmm0, dword [0x710cec]
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa0], edx
mov dword [esp + 0xd8], 0x3f800000
movss dword [esp], xmm0
push eax
mov dword [esp + 0xc8], 0x3f800000
mov dword [esp + 0xb4], 0x3f800000
mov dword [esp + 0xa0], 0x3f800000
mov dword [esp + 0x124], edx
mov dword [esp + 0x11c], edx
mov dword [esp + 0x118], edx
mov dword [esp + 0x114], edx
mov dword [esp + 0x110], edx
mov dword [esp + 0x108], edx
mov dword [esp + 0x104], edx
mov dword [esp + 0x100], edx
mov dword [esp + 0xfc], edx
mov dword [esp + 0x134], 0x3f800000
mov dword [esp + 0x120], 0x3f800000
mov dword [esp + 0x10c], 0x3f800000
mov dword [esp + 0xf8], 0x3f800000
call fcn.00403da3
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0xf4]
push eax
lea eax, [esp + 0xa0]
push eax
call fcn.0040332c
movss xmm0, dword [esp + 0xc8]
movss dword [esi + 0x48], xmm0
movss xmm0, dword [esp + 0xcc]
movss dword [esi + 0x4c], xmm0
movss xmm0, dword [esp + 0xd0]
movss dword [esi + 0x50], xmm0
mov esi, dword [esp + 0x34]
mov eax, dword [esi + 0x54]
add eax, edi
mov dword [esp + 0xd0], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0xcc], 0
mov dword [esp + 0xc8], 0
movq xmm0, qword [eax + 0x48]
mov eax, dword [eax + 0x50]
movq qword [esp + 0x5c], xmm0
movss xmm0, dword [esp + 0x5c]
movss dword [esp + 0x120], xmm0
movss xmm0, dword [esp + 0x60]
mov dword [esp + 0x64], eax
mov eax, dword [esi + 0x17c]
movss dword [esp + 0x124], xmm0
movss xmm0, dword [esp + 0x64]
mov dword [esp + 0xc4], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xd4], 0x3f800000
mov dword [esp + 0xc0], 0x3f800000
mov dword [esp + 0xac], 0x3f800000
mov dword [esp + 0x98], 0x3f800000
mov dword [esp + 0x11c], 0
mov dword [esp + 0x114], 0
mov dword [esp + 0x110], 0
mov dword [esp + 0x10c], 0
mov dword [esp + 0x108], 0
mov dword [esp + 0x100], 0
mov dword [esp + 0xfc], 0
mov dword [esp + 0xf8], 0
mov dword [esp + 0xf4], 0
mov dword [esp + 0x12c], 0x3f800000
mov dword [esp + 0x118], 0x3f800000
mov dword [esp + 0x104], 0x3f800000
mov dword [esp + 0xf0], 0x3f800000
movss dword [esp + 0x128], xmm0
sub eax, 0
je 0x5bf264
sub eax, 1
jne 0x5bf279
push ecx
mov dword [esp], 0x3e860a92
jmp 0x5bf26c
push ecx
mov dword [esp], 0x3d0efa35
lea eax, [esp + 0x9c]
push eax
call fcn.00403da3
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0xf4]
push eax
lea eax, [esp + 0xa0]
push eax
call fcn.0040332c
mov eax, dword [esp + 0x28]
movss xmm1, dword [esi + 0x24]
movss xmm2, dword [esi + 0x58]
movss xmm4, dword [esi + 0x60]
movss xmm3, dword [eax + 8]
movss xmm5, dword [esp + 0xd0]
movaps xmm0, xmm3
movss xmm6, dword [esp + 0xcc]
subss xmm0, xmm1
movss xmm7, dword [esp + 0xc8]
comiss xmm0, xmm2
ja 0x5bf2de
subss xmm1, xmm3
comiss xmm1, xmm2
jbe 0x5bf2ed
movss dword [eax + 0x48], xmm7
movss dword [eax + 0x4c], xmm6
movss dword [eax + 0x50], xmm5
movss xmm2, dword [eax + 0x10]
movss xmm1, dword [esi + 0x2c]
movaps xmm0, xmm2
subss xmm0, xmm1
comiss xmm0, xmm4
ja 0x5bf30c
subss xmm1, xmm2
comiss xmm1, xmm4
jbe 0x5bf31b
movss dword [eax + 0x48], xmm7
movss dword [eax + 0x4c], xmm6
movss dword [eax + 0x50], xmm5
mov ecx, dword [esi + 0x54]
add ecx, edi
mov dword [esp + 8], ecx
movss xmm1, dword [ecx + 0x48]
movss xmm2, dword [ecx + 0x54]
ucomiss xmm1, xmm2
lahf
test ah, 0x44
jp 0x5bf359
movss xmm0, dword [ecx + 0x4c]
ucomiss xmm0, dword [ecx + 0x58]
lahf
test ah, 0x44
jp 0x5bf359
movss xmm0, dword [ecx + 0x50]
ucomiss xmm0, dword [ecx + 0x5c]
lahf
test ah, 0x44
jnp 0x5bf546
movss xmm4, dword [ecx + 0x50]
lea eax, [esp + 0xe4]
movss xmm6, dword [ecx + 0x4c]
movaps xmm7, xmm1
subss xmm7, xmm2
movaps xmm1, xmm4
subss xmm1, dword [ecx + 0x5c]
movaps xmm2, xmm6
movaps xmm0, xmm4
subss xmm2, dword [ecx + 0x58]
movaps xmm3, xmm4
mulss xmm3, xmm7
push eax
movaps xmm5, xmm1
movss dword [esp + 0x20], xmm1
mulss xmm0, xmm2
push eax
mulss xmm5, xmm6
movss dword [esp + 0x30], xmm2
mulss xmm2, dword [ecx + 0x48]
subss xmm5, xmm0
movss dword [esp + 0x1c], xmm7
movaps xmm0, xmm1
mulss xmm0, dword [ecx + 0x48]
subss xmm3, xmm0
movaps xmm0, xmm6
mulss xmm0, xmm7
subss xmm2, xmm0
movaps xmm1, xmm3
mulss xmm3, dword [ecx + 0x48]
mulss xmm1, xmm4
movaps xmm0, xmm2
mulss xmm2, dword [ecx + 0x48]
mulss xmm0, xmm6
subss xmm1, xmm0
movaps xmm0, xmm5
mulss xmm0, xmm4
mulss xmm5, xmm6
subss xmm2, xmm0
movss dword [esp + 0xec], xmm1
subss xmm5, xmm3
movss dword [esp + 0xf0], xmm2
movss dword [esp + 0xf4], xmm5
call fcn.00402aa2
movss xmm0, dword [esp + 0x14]
mulss xmm0, dword [esp + 0xe4]
movss xmm1, dword [esp + 0x28]
mulss xmm1, dword [esp + 0xe8]
addss xmm1, xmm0
movss xmm0, dword [esp + 0x1c]
mulss xmm0, dword [esp + 0xec]
addss xmm1, xmm0
xorps xmm0, xmm0
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x5bf462
movss dword [esp + 0x14], xmm0
jmp 0x5bf49a
fld qword [0x710cf8]
cvtps2pd xmm0, xmm1
movsd qword [esp + 0x28], xmm0
fld qword [esp + 0x28]
call sub.api_ms_win_crt_math_l1_1_0.dll__CIatan2
movss xmm1, dword [0x710cf0]
fstp qword [esp + 0x28]
movsd xmm0, qword [esp + 0x28]
cvtpd2ps xmm0, xmm0
subss xmm1, xmm0
movss dword [esp + 0x14], xmm1
mov eax, dword [esp + 8]
movss xmm1, dword [eax + 0x50]
movss xmm3, dword [eax + 0x48]
movaps xmm2, xmm1
mulss xmm2, xmm1
movss dword [esp + 0x1c], xmm1
movaps xmm1, xmm3
mulss xmm1, xmm3
movss dword [esp + 0x28], xmm3
addss xmm2, xmm1
xorps xmm1, xmm1
cvtps2pd xmm0, xmm2
ucomisd xmm1, xmm0
ja 0x5bf4d8
sqrtsd xmm0, xmm0
jmp 0x5bf4dd
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
mov eax, dword [esp + 8]
movss xmm1, dword [eax + 0x4c]
cvtps2pd xmm1, xmm1
divsd xmm1, xmm0
movaps xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_atan_precise
xorps xmm0, xmmword [0x710d20]
mov eax, dword [esp + 8]
cvtsd2ss xmm0, xmm0
movss dword [eax + 0x20], xmm0
movss xmm0, dword [esp + 0x28]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x28], xmm0
movss xmm0, dword [esp + 0x1c]
fld qword [esp + 0x28]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x28], xmm0
fld qword [esp + 0x28]
call sub.api_ms_win_crt_math_l1_1_0.dll__CIatan2
mov eax, dword [esp + 8]
movss xmm0, dword [esp + 0x14]
fstp dword [eax + 0x24]
movss dword [eax + 0x28], xmm0
mov edx, dword [esp + 0x44]
add edi, 0x7c
inc edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x44], edx
cmp edx, dword [esi + 0x44]
jl 0x5be4a0
mov edi, dword [esp + 0x48]
sub edi, 1
mov dword [esp + 0x48], edi
jne 0x5be430
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
xor ecx, esp
call fcn.006dfb52
mov esp, ebp
pop ebp
ret