Function at 0x42d620
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
mov eax, edi
mov dword [esp + 0x10], edi
sub eax, ebx
mov ecx, eax
sar ecx, 2
cmp ecx, 0x20
jle 0x42d826
mov edx, dword [ebp + 0xc]
nop dword [eax]
cmp dword [ebp + 8], 0
jle 0x42d886
sar eax, 3
mov ecx, ebx
push edx
lea esi, [ebx + eax*4]
lea eax, [edi - 4]
mov edx, esi
push eax
call fcn.00444190
add esp, 8
lea edi, [esi + 4]
cmp ebx, esi
jae 0x42d69c
mov eax, esi
nop word [eax + eax]
movss xmm1, dword [esi - 4]
movss xmm0, dword [esi]
comiss xmm0, xmm1
ja 0x42d69c
comiss xmm1, xmm0
ja 0x42d69c
lea esi, [eax - 4]
mov eax, esi
cmp ebx, esi
jb 0x42d680
mov eax, dword [esp + 0x10]
cmp edi, eax
jae 0x42d6c5
movss xmm1, dword [esi]
nop dword [eax + eax]
movss xmm0, dword [edi]
comiss xmm1, xmm0
ja 0x42d6c5
comiss xmm0, xmm1
ja 0x42d6c5
add edi, 4
cmp edi, eax
jb 0x42d6b0
mov ecx, edi
mov edx, esi
nop dword [eax]
cmp ecx, eax
jae 0x42d700
movss xmm0, dword [esi]
movss xmm1, dword [ecx]
comiss xmm1, xmm0
ja 0x42d6f9
comiss xmm0, xmm1
ja 0x42d700
cmp edi, ecx
je 0x42d6f6
movss xmm0, dword [edi]
movss dword [edi], xmm1
movss dword [ecx], xmm0
add edi, 4
add ecx, 4
cmp ecx, eax
jb 0x42d6d4
cmp edx, ebx
jbe 0x42d745
lea eax, [edx - 4]
nop word [eax + eax]
movss xmm1, dword [eax]
movss xmm0, dword [esi]
comiss xmm0, xmm1
ja 0x42d735
comiss xmm1, xmm0
ja 0x42d73f
sub esi, 4
cmp esi, eax
je 0x42d735
movss xmm0, dword [esi]
movss dword [esi], xmm1
movss dword [eax], xmm0
sub edx, 4
sub eax, 4
cmp ebx, edx
jb 0x42d710
mov eax, dword [esp + 0x10]
cmp edx, ebx
jne 0x42d779
cmp ecx, eax
je 0x42d7c4
cmp edi, ecx
je 0x42d75b
movss xmm0, dword [esi]
mov eax, dword [edi]
mov dword [esi], eax
movss dword [edi], xmm0
mov eax, dword [ecx]
add edi, 4
movss xmm0, dword [esi]
mov dword [esi], eax
add esi, 4
mov eax, dword [esp + 0x10]
movss dword [ecx], xmm0
add ecx, 4
jmp 0x42d6d0
add edx, 0xfffffffc
cmp ecx, eax
jne 0x42d7ac
sub esi, 4
cmp edx, esi
je 0x42d793
movss xmm0, dword [edx]
mov eax, dword [esi]
mov dword [edx], eax
movss dword [esi], xmm0
mov eax, dword [edi - 4]
sub edi, 4
movss xmm0, dword [esi]
mov dword [esi], eax
mov eax, dword [esp + 0x10]
movss dword [edi], xmm0
jmp 0x42d6d0
movss xmm0, dword [ecx]
mov eax, dword [edx]
mov dword [ecx], eax
add ecx, 4
mov eax, dword [esp + 0x10]
movss dword [edx], xmm0
jmp 0x42d6d0
mov ecx, dword [ebp + 8]
mov eax, ecx
mov edx, dword [esp + 0x10]
sar eax, 2
sar ecx, 1
add ecx, eax
mov eax, esi
mov dword [ebp + 8], ecx
sub eax, ebx
mov ecx, edx
and eax, 0xfffffffc
sub ecx, edi
and ecx, 0xfffffffc
cmp eax, ecx
mov eax, dword [ebp + 0xc]
push eax
push dword [ebp + 8]
jge 0x42d801
mov edx, esi
mov ecx, ebx
call fcn.0042d620
mov ebx, edi
mov edi, dword [esp + 0x18]
jmp 0x42d80e
mov ecx, edi
call fcn.0042d620
mov edi, esi
mov dword [esp + 0x18], edi
mov edx, dword [ebp + 0xc]
mov eax, edi
sub eax, ebx
add esp, 8
mov ecx, eax
sar ecx, 2
cmp ecx, 0x20
jg 0x42d650
cmp ecx, 2
jl 0x42d9cd
cmp ebx, edi
je 0x42d9cd
lea edx, [ebx + 4]
mov esi, edx
cmp esi, edi
je 0x42d9cd
mov eax, 4
mov dword [esp + 0x14], eax
nop dword [eax]
movss xmm1, dword [esi]
mov ecx, esi
movss xmm0, dword [ebx]
comiss xmm0, xmm1
movss dword [esp + 0x1c], xmm1
jbe 0x42d990
push eax
push ebx
push edx
call fcn.004ac940
movss xmm0, dword [esp + 0x28]
lea edx, [ebx + 4]
add esp, 0xc
movss dword [ebx], xmm0
jmp 0x42d9b7
cmp ecx, 0x20
jle 0x42d826
sub edi, ebx
mov eax, edi
mov dword [esp + 0x10], edi
sar eax, 2
mov esi, eax
mov dword [esp + 0x14], eax
sar esi, 1
test esi, esi
jle 0x42d93c
lea ecx, [eax - 1]
mov dword [esp + 0x1c], ecx
sar ecx, 1
mov dword [esp + 0x18], ecx
mov edi, ecx
movss xmm1, dword [ebx + esi*4 - 4]
dec esi
mov edx, esi
mov ecx, esi
cmp esi, edi
jge 0x42d8ec
add ecx, ecx
xor eax, eax
movss xmm0, dword [ebx + ecx*4 + 4]
comiss xmm0, dword [ebx + ecx*4 + 8]
seta al
xor eax, 1
inc eax
add ecx, eax
mov eax, dword [ebx + ecx*4]
mov dword [ebx + edx*4], eax
mov edx, ecx
cmp ecx, edi
jl 0x42d8c4
mov eax, dword [esp + 0x14]
cmp ecx, edi
jne 0x42d8ff
test al, 1
jne 0x42d8ff
mov eax, dword [ebx + eax*4 - 4]
mov dword [ebx + edx*4], eax
mov edx, dword [esp + 0x1c]
lea eax, [edx - 1]
sar eax, 1
cmp esi, edx
jge 0x42d928
nop dword [eax + eax]
movss xmm0, dword [ebx + eax*4]
comiss xmm1, xmm0
jbe 0x42d928
movss dword [ebx + edx*4], xmm0
mov edx, eax
dec eax
sar eax, 1
cmp esi, edx
jl 0x42d910
mov eax, dword [esp + 0x14]
movss dword [ebx + edx*4], xmm1
test esi, esi
jg 0x42d8b5
mov edi, dword [esp + 0x10]
mov edx, dword [ebp + 0xc]
cmp eax, 2
jl 0x42d9cd
cmp eax, 2
jl 0x42d975
movss xmm0, dword [ebx + edi - 4]
mov ecx, ebx
mov eax, dword [ebx]
mov dword [ebx + edi - 4], eax
lea eax, [esp + 0x1c]
push edx
push eax
lea eax, [edi - 4]
movss dword [esp + 0x24], xmm0
sar eax, 2
xor edx, edx
push eax
call fcn.00444310
add esp, 0xc
mov edx, dword [ebp + 0xc]
sub edi, 4
mov eax, edi
sar eax, 2
mov dword [esp + 0x14], eax
cmp eax, 2
jge 0x42d945
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add eax, 0xfffffffc
add eax, ebx
movss xmm0, dword [eax]
comiss xmm0, xmm1
jbe 0x42d9b3
nop
movss dword [ecx], xmm0
mov ecx, eax
movss xmm0, dword [eax - 4]
sub eax, 4
comiss xmm0, xmm1
ja 0x42d9a0
movss dword [ecx], xmm1
mov eax, dword [esp + 0x14]
add esi, 4
add eax, 4
mov dword [esp + 0x14], eax
cmp esi, edi
jne 0x42d850
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret