Function at 0x10028170
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1007700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov ebx, dword [ebp + 8]
xor edx, edx
movss xmm3, dword [0x10070a6c]
mov dword [ebp - 0x10], ebx
xorps xmm2, xmm2
mov esi, dword [edi + 0x2c]
mov eax, dword [edi + 0xbc]
shl esi, 4
inc eax
sub esi, dword [edi + 0x2c]
shl esi, 2
div esi
mov esi, dword [edi + 0xe0]
mov dword [edi + 0xbc], edx
test esi, esi
je 0x1002822c
cmp dword [esi + 0x10], 0
je 0x10028227
mov ecx, esi
call fcn.10027cf0
test eax, eax
je 0x1002821f
mov eax, dword [esi + 0x10]
lea edx, [ebp - 8]
mov dword [ebp - 8], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
movss xmm1, dword [esi + 0x28]
movss xmm0, dword [ebp - 8]
movss xmm3, dword [0x10070a6c]
mulss xmm0, dword [0x10070a80]
mulss xmm1, xmm3
addss xmm1, xmm0
movss xmm0, dword [0x10070a60]
comiss xmm0, xmm1
movss dword [esi + 0x28], xmm1
jbe 0x10028227
mov dword [esi + 0x28], 0
jmp 0x10028227
movss xmm3, dword [0x10070a6c]
movss xmm2, dword [esi + 0x28]
cmp dword [edi + 0xc4], 0
je 0x100282b3
movss xmm1, dword [edi + 0xd0]
movaps xmm0, xmm2
mulss xmm1, dword [0x10070a80]
mulss xmm0, xmm3
addss xmm1, xmm0
movss xmm0, dword [0x10070a68]
comiss xmm0, xmm1
movss dword [edi + 0xd0], xmm1
jbe 0x1002827b
mov dword [edi + 0xcc], 0
mov dword [edi + 0xc8], 0x3f800000
jmp 0x100282b3
comiss xmm1, dword [edi + 0xcc]
jbe 0x100282b3
movss xmm0, dword [0x10070a84]
divss xmm0, xmm1
movss dword [edi + 0xcc], xmm1
comiss xmm0, dword [0x10070ae0]
movss dword [edi + 0xc8], xmm0
jbe 0x100282b3
mov dword [edi + 0xc8], 0x40800000
mov esi, dword [edi + 0xd4]
mov eax, esi
shr eax, 0x1f
movd xmm0, esi
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x10070b70]
cvtpd2ps xmm1, xmm0
movss xmm0, dword [edi + 0xc8]
mulss xmm0, xmm2
movss dword [ebp - 0xc], xmm1
mulss xmm0, xmm1
call fcn.10034770
cmp eax, esi
cmovae eax, esi
cmp eax, dword [edi + 0xb4]
ja 0x10028302
cmp eax, dword [edi + 0xb8]
jbe 0x1002830e
mov dword [edi + 0xb4], eax
mov dword [edi + 0xb8], eax
test eax, eax
jne 0x1002831e
cmp dword [edi + 0xb8], eax
je 0x10028cc7
mov ecx, dword [edi + 0x10]
mov eax, ecx
cmp dword [edi + 0xc], ecx
mov esi, ecx
cdq
cmova esi, dword [edi + 0xc]
sub eax, edx
mov ecx, eax
shr esi, 1
sar ecx, 1
mov eax, esi
sub eax, ecx
mov dword [ebp - 0x1c], esi
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0xc]
cdq
sub eax, edx
mov ecx, eax
mov eax, esi
sar ecx, 1
sub eax, ecx
mov ecx, dword [edi + 0x88]
cdq
and ecx, 0xf0000
xor eax, edx
sub eax, edx
mov dword [ebp - 0x14], eax
cmp ecx, 0x50000
ja 0x100288f1
je 0x100287af
cmp ecx, 0x30000
ja 0x100286ab
je 0x100285b1
cmp ecx, 0x10000
je 0x100284b2
cmp ecx, 0x20000
jne 0x10028911
xor edx, edx
mov dword [ebp - 0x18], edx
cmp dword [edi + 0xc], edx
jle 0x10028c88
movss xmm3, dword [0x10070a84]
mov ecx, dword [edi + 0x10]
mov eax, ecx
shr eax, 0x1f
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x10070b70]
mov eax, dword [edi + 0xb8]
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10070b70]
mov eax, dword [edi + 0xb4]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mulss xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x10070b70]
xor eax, eax
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
subss xmm2, xmm1
cvttss2si esi, xmm2
test esi, esi
cmovs esi, eax
cmp esi, ecx
jge 0x100284a0
nop dword [eax]
mov edx, dword [edi + 0x10]
movaps xmm2, xmm3
mov eax, edx
movd xmm1, esi
shr eax, 0x1f
cvtdq2ps xmm1, xmm1
movd xmm0, edx
cvtdq2pd xmm0, xmm0
imul edx, dword [ebp - 0x18]
addsd xmm0, qword [eax*8 + 0x10070b70]
mov eax, dword [edi + 0xb4]
add edx, esi
inc esi
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
subss xmm2, xmm1
addsd xmm0, qword [eax*8 + 0x10070b70]
mov eax, dword [edi + 0xdc]
cvtpd2ps xmm0, xmm0
mulss xmm2, xmm0
cvttss2si ecx, xmm2
mov eax, dword [eax + ecx*4]
mov dword [ebx + edx*4], eax
cmp esi, dword [edi + 0x10]
jl 0x10028430
mov edx, dword [ebp - 0x18]
inc edx
mov dword [ebp - 0x18], edx
cmp edx, dword [edi + 0xc]
jl 0x100283b8
jmp 0x10028c88
xor edx, edx
mov dword [ebp - 0x18], edx
cmp dword [edi + 0xc], edx
jle 0x10028c88
movss xmm3, dword [0x10070a84]
nop dword [eax + eax]
mov eax, dword [edi + 0xb8]
mov ecx, dword [edi + 0x10]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10070b70]
mov eax, ecx
shr eax, 0x1f
cvtpd2ps xmm1, xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x10070b70]
mov eax, dword [edi + 0xd4]
cvtpd2ps xmm0, xmm0
mulss xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10070b70]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
addss xmm1, xmm3
cvttss2si eax, xmm1
cmp ecx, eax
cmovl eax, ecx
xor esi, esi
mov dword [ebp - 0xc], eax
test eax, eax
jle 0x1002859f
movd xmm2, eax
cvtdq2ps xmm2, xmm2
nop
mov eax, dword [edi + 0xb4]
movd xmm1, esi
cvtdq2ps xmm1, xmm1
mov ecx, dword [edi + 0x10]
movd xmm0, eax
divss xmm1, xmm2
shr eax, 0x1f
imul ecx, dword [ebp - 0x18]
cvtdq2pd xmm0, xmm0
add ecx, esi
inc esi
addsd xmm0, qword [eax*8 + 0x10070b70]
mov eax, dword [edi + 0xdc]
cvtpd2ps xmm0, xmm0
mulss xmm1, xmm0
cvttss2si edx, xmm1
mov eax, dword [eax + edx*4]
mov dword [ebx + ecx*4], eax
cmp esi, dword [ebp - 0xc]
jl 0x10028550
mov edx, dword [ebp - 0x18]
inc edx
mov dword [ebp - 0x18], edx
cmp edx, dword [edi + 0xc]
jl 0x100284d0
jmp 0x10028c88
mov eax, dword [edi + 0xb8]
mov ecx, dword [edi + 0xc]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10070b70]
mov eax, ecx
shr eax, 0x1f
cvtpd2ps xmm1, xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x10070b70]
mov eax, dword [edi + 0xb4]
cvtpd2ps xmm0, xmm0
mulss xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10070b70]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
addss xmm1, dword [0x10070a84]
cvttss2si eax, xmm1
cmp ecx, eax
cmovl eax, ecx
xor esi, esi
mov dword [ebp - 8], eax
test eax, eax
jle 0x10028c88
movd xmm2, eax
cvtdq2ps xmm2, xmm2
nop word [eax + eax]
mov eax, dword [edi + 0xb4]
xor edx, edx
movd xmm1, esi
cvtdq2ps xmm1, xmm1
movd xmm0, eax
divss xmm1, xmm2
shr eax, 0x1f
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x10070b70]
cvtpd2ps xmm0, xmm0
mulss xmm1, xmm0
cmp dword [edi + 0x10], edx
jle 0x100286a0
cvttss2si eax, xmm1
shl eax, 2
mov dword [ebp - 0xc], eax
nop
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0xdc]
mov ebx, dword [ebp - 0xc]
imul ecx, esi
mov eax, dword [ebx + eax]
mov ebx, dword [ebp - 0x10]
add ecx, edx
inc edx
mov dword [ebx + ecx*4], eax
cmp edx, dword [edi + 0x10]
jl 0x10028680
inc esi
cmp esi, dword [ebp - 8]
jl 0x10028640
jmp 0x10028c88
cmp ecx, 0x40000
jne 0x10028911
mov ecx, dword [edi + 0xc]
mov eax, ecx
shr eax, 0x1f
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x10070b70]
mov eax, dword [edi + 0xb8]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10070b70]
xor eax, eax
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
divss xmm0, dword [ebp - 0xc]
subss xmm1, xmm0
cvttss2si esi, xmm1
test esi, esi
cmovs esi, eax
cmp esi, ecx
jge 0x10028c88
movss xmm3, dword [0x10070a84]
nop word [eax + eax]
mov eax, dword [edi + 0xc]
movaps xmm2, xmm3
movd xmm1, esi
xor edx, edx
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10070b70]
mov eax, dword [edi + 0xb4]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
subss xmm2, xmm1
addsd xmm0, qword [eax*8 + 0x10070b70]
cvtpd2ps xmm0, xmm0
mulss xmm2, xmm0
cmp dword [edi + 0x10], edx
jle 0x100287a0
cvttss2si eax, xmm2
shl eax, 2
mov dword [ebp - 0xc], eax
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0xdc]
mov ebx, dword [ebp - 0xc]
imul ecx, esi
mov eax, dword [ebx + eax]
mov ebx, dword [ebp - 0x10]
add ecx, edx
inc edx
mov dword [ebx + ecx*4], eax
cmp edx, dword [edi + 0x10]
jl 0x10028780
inc esi
cmp esi, dword [edi + 0xc]
jl 0x10028720
jmp 0x10028c88
mov ecx, dword [edi + 0xc]
xor eax, eax
mov dword [ebp - 0x10], eax
test ecx, ecx
jle 0x10028c88
mov ecx, esi
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
nop word [eax + eax]
cmp dword [edi + 0x10], 0
mov dword [ebp - 0x14], 0
jle 0x100288db
mov eax, ecx
movd xmm1, esi
cdq
mov ecx, esi
xor eax, edx
sub eax, edx
sub ecx, eax
cvtdq2ps xmm1, xmm1
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x10070a88]
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
cvtsd2ss xmm0, xmm0
mov ecx, esi
sub ecx, dword [ebp - 0x18]
mov dword [ebp - 8], ecx
movss dword [ebp - 0x1c], xmm0
nop
mov eax, dword [edi + 0xb8]
movd xmm1, esi
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10070b70]
mov eax, ecx
mov ecx, esi
cdq
xor eax, edx
sub eax, edx
cvtpd2ps xmm0, xmm0
sub ecx, eax
movss dword [ebp - 0x20], xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x10070a88]
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
movss xmm2, dword [ebp - 0x20]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0xdc]
imul ecx, dword [ebp - 0x10]
movaps xmm0, xmm2
addss xmm1, dword [ebp - 0x1c]
mulss xmm0, dword [0x10070a7c]
mulss xmm2, dword [0x10070a70]
add ecx, dword [ebp - 0x14]
mulss xmm1, xmm0
mulss xmm1, dword [0x10070a74]
addss xmm1, xmm2
cvttss2si edx, xmm1
mov eax, dword [eax + edx*4]
mov dword [ebx + ecx*4], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
inc eax
dec ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], ecx
cmp eax, dword [edi + 0x10]
jl 0x10028820
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
inc eax
dec ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
cmp eax, dword [edi + 0xc]
jl 0x100287d0
jmp 0x10028c88
cmp ecx, 0x60000
je 0x10028b58
cmp ecx, 0x70000
je 0x10028a50
cmp ecx, 0x80000
je 0x10028953
mov eax, dword [edi + 0x10]
xor edx, edx
imul eax, dword [edi + 0xc]
test eax, eax
je 0x10028c88
nop dword [eax]
nop word [eax + eax]
mov ecx, dword [edi + 0xb8]
mov eax, dword [edi + 0xdc]
mov eax, dword [eax + ecx*4]
mov dword [ebx + edx*4], eax
inc edx
mov eax, dword [edi + 0xc]
imul eax, dword [edi + 0x10]
cmp edx, eax
jb 0x10028930
jmp 0x10028c88
mov ecx, dword [edi + 0xc]
xor eax, eax
mov dword [ebp - 0x10], eax
test ecx, ecx
jle 0x10028c88
movss xmm5, dword [0x10070a7c]
mov ecx, esi
sub ecx, dword [ebp - 0x14]
movss xmm6, dword [0x10070a74]
movss xmm7, dword [0x10070a70]
mov dword [ebp - 8], ecx
cmp dword [edi + 0x10], 0
mov dword [ebp - 0x20], 0
jle 0x10028a3a
mov eax, ecx
movd xmm4, esi
cdq
mov ecx, esi
mov esi, dword [ebp - 0x20]
xor eax, edx
sub eax, edx
sub ecx, dword [ebp - 0x18]
cvtdq2ps xmm4, xmm4
mov dword [ebp - 0xc], ecx
movd xmm3, eax
cvtdq2ps xmm3, xmm3
divss xmm3, xmm4
nop dword [eax + eax]
mov eax, dword [edi + 0xb8]
movd xmm0, eax
shr eax, 0x1f
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x10070b70]
mov eax, ecx
mov ecx, dword [edi + 0x10]
cdq
xor eax, edx
imul ecx, dword [ebp - 0x10]
sub eax, edx
cvtpd2ps xmm2, xmm0
add ecx, esi
inc esi
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mov eax, dword [edi + 0xdc]
movaps xmm0, xmm2
mulss xmm2, xmm7
divss xmm1, xmm4
mulss xmm0, xmm5
addss xmm1, xmm3
mulss xmm1, xmm0
mulss xmm1, xmm6
addss xmm1, xmm2
cvttss2si edx, xmm1
mov eax, dword [eax + edx*4]
mov dword [ebx + ecx*4], eax
mov ecx, dword [ebp - 0xc]
dec ecx
mov dword [ebp - 0xc], ecx
cmp esi, dword [edi + 0x10]
jl 0x100289c0
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
inc eax
dec ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ecx
cmp eax, dword [edi + 0xc]
jl 0x10028983
jmp 0x10028c88
mov ecx, dword [edi + 0xc]
xor eax, eax
mov dword [ebp - 8], eax
test ecx, ecx
jle 0x10028c88
movss xmm5, dword [0x10070a7c]
mov ecx, esi
sub ecx, dword [ebp - 0x14]
movss xmm6, dword [0x10070a74]
movss xmm7, dword [0x10070a70]
mov dword [ebp - 0x14], ecx
cmp dword [edi + 0x10], 0
mov dword [ebp - 0x10], 0
jle 0x10028b42
mov eax, ecx
movd xmm4, esi
cdq
mov ecx, esi
xor eax, edx
sub eax, edx
sub ecx, eax
cvtdq2ps xmm4, xmm4
movd xmm3, ecx
mov ecx, esi
sub ecx, dword [ebp - 0x18]
cvtdq2ps xmm3, xmm3
mov dword [ebp - 0xc], ecx
divss xmm3, xmm4
nop word [eax + eax]
mov eax, dword [edi + 0xb8]
movd xmm0, eax
shr eax, 0x1f
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x10070b70]
mov eax, ecx
mov ecx, esi
cdq
xor eax, edx
sub eax, edx
sub ecx, eax
mov eax, dword [edi + 0xdc]
cvtpd2ps xmm2, xmm0
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
mov ecx, dword [edi + 0x10]
imul ecx, dword [ebp - 8]
movaps xmm0, xmm2
divss xmm1, xmm4
add ecx, dword [ebp - 0x10]
mulss xmm0, xmm5
addss xmm1, xmm3
mulss xmm2, xmm7
mulss xmm1, xmm0
mulss xmm1, xmm6
addss xmm1, xmm2
cvttss2si edx, xmm1
mov eax, dword [eax + edx*4]
mov dword [ebx + ecx*4], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
inc eax
dec ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
cmp eax, dword [edi + 0x10]
jl 0x10028ac0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
inc eax
dec ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], ecx
cmp eax, dword [edi + 0xc]
jl 0x10028a80
jmp 0x10028c88
mov ecx, dword [edi + 0xc]
xor eax, eax
mov dword [ebp - 0x10], eax
test ecx, ecx
jle 0x10028c88
mov ecx, esi
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ecx
cmp dword [edi + 0x10], 0
mov dword [ebp - 8], 0
jle 0x10028c77
mov eax, ecx
movd xmm1, esi
cdq
xor eax, edx
sub eax, edx
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x10070a88]
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
cvtsd2ss xmm0, xmm0
mov ecx, esi
sub ecx, dword [ebp - 0x18]
mov dword [ebp - 0xc], ecx
movss dword [ebp - 0x20], xmm0
nop dword [eax + eax]
mov eax, dword [edi + 0xb8]
movd xmm1, esi
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10070b70]
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
cvtpd2ps xmm0, xmm0
movss dword [ebp - 0x1c], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x10070a88]
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
movss xmm2, dword [ebp - 0x1c]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0xdc]
imul ecx, dword [ebp - 0x10]
movaps xmm0, xmm2
addss xmm1, dword [ebp - 0x20]
mulss xmm0, dword [0x10070a7c]
mulss xmm2, dword [0x10070a70]
add ecx, dword [ebp - 8]
mulss xmm1, xmm0
mulss xmm1, dword [0x10070a74]
addss xmm1, xmm2
cvttss2si edx, xmm1
mov eax, dword [eax + edx*4]
mov dword [ebx + ecx*4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
inc eax
dec ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
cmp eax, dword [edi + 0x10]
jl 0x10028bc0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
inc eax
dec ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
cmp eax, dword [edi + 0xc]
jl 0x10028b70
mov eax, dword [edi + 0xb8]
movss xmm1, dword [edi + 0xc0]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10070b70]
cvtpd2ps xmm0, xmm0
comiss xmm0, xmm1
jbe 0x10028cb9
subss xmm0, xmm1
jmp 0x10028cbc
xorps xmm0, xmm0
call fcn.10034770
mov dword [edi + 0xb8], eax
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10033482
mov esp, ebp
pop ebp
ret 4