Function at 0x432070
Capabilities:
Encode data using xor

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
sub esp, 0x40
mov eax, ecx
mov dword [ebp - 8], edx
push esi
push edi
mov edi, dword [ebx + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], ecx
cmp edi, 1
jne 0x4320bf
push dword [ebx + 0x20]
mov ecx, eax
push dword [ebx + 8]
call fcn.00431530
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebx + 0x28]
mov esi, dword [ebx + 8]
mov dword [ebp - 0xc], ecx
lea ecx, [ebx + 0x28]
push ecx
mov ecx, dword [ebx + 0x14]
push 1
push dword [ebx + 0x1c]
push ecx
push ecx
lea ecx, [ebx + 0x10]
push ecx
push edi
push esi
push edx
lea edx, [ebp - 0x40]
mov ecx, eax
call fcn.00430cd0
movd xmm1, dword [ebp - 0x3c]
add esp, 0x24
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x5ba59c]
movss dword [ebp - 0x18], xmm1
movd xmm1, dword [ebp - 0x38]
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x5ba59c]
movss dword [ebp - 0x20], xmm1
cmp edi, 2
jne 0x4322a1
mov eax, dword [ebp - 0x30]
xor ecx, ecx
test eax, eax
je 0x432133
cmp eax, 0x4000
mov edx, 8
cmovne ecx, edx
mov eax, dword [ebx + 0x10]
mov edx, dword [ebp - 4]
sub eax, ecx
mov edi, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x2c]
add eax, ecx
sub dword [edx + 0x20], eax
cmp dword [ebp - 0x30], 0x2000
cmovg edi, esi
mov dword [ebp - 0x14], edi
mov edi, esi
cmovg edi, dword [ebp - 8]
mov dword [ebp - 0x10], edi
mov edi, dword [ebx + 0xc]
test ecx, ecx
je 0x4321b6
cmp dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x1c]
je 0x4321aa
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
push 1
movss xmm1, dword [edx + 4]
movss xmm0, dword [eax + 4]
mulss xmm1, dword [eax]
xor eax, eax
mulss xmm0, dword [edx]
subss xmm1, xmm0
xorps xmm0, xmm0
comiss xmm0, xmm1
seta al
mov edx, eax
mov dword [ebp - 0x24], eax
call fcn.0041df30
mov eax, dword [ebp - 0x24]
add esp, 4
jmp 0x4321b8
mov edx, 1
call fcn.00425330
jmp 0x4321b8
xor eax, eax
push dword [ebp - 0xc]
mov edx, dword [ebx + 0x14]
add eax, eax
push dword [ebx + 0x24]
mov ecx, 1
sub ecx, eax
push ecx
mov dword [esp], 0x3f800000
push dword [ebx + 0x20]
mov dword [ebp - 0x24], ecx
push dword [ebx + 0x1c]
mov ecx, dword [ebp - 4]
push dword [ebx + 0x18]
push edx
push dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
push 2
call fcn.00431b90
mov edx, dword [ebp - 0x24]
add esp, 0x24
mov ecx, edx
movss xmm3, dword [ebp - 0x18]
neg ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
movd xmm0, ecx
mov ecx, dword [ebp - 0x10]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [eax + 4]
movss dword [ecx], xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [eax]
mov eax, dword [ebp - 4]
movss dword [ecx + 4], xmm0
cmp dword [eax + 4], 0
mov ecx, dword [ebp - 8]
je 0x4324e2
movaps xmm0, xmm3
mulss xmm0, dword [ecx]
movss dword [ecx], xmm0
movaps xmm0, xmm3
mulss xmm0, dword [ecx + 4]
movss dword [ecx + 4], xmm0
movss xmm0, dword [ebp - 0x20]
movaps xmm2, xmm0
mulss xmm0, dword [esi + 4]
mulss xmm2, dword [esi]
movss dword [esi + 4], xmm0
movss dword [esi], xmm2
movss xmm1, dword [ecx]
movaps xmm0, xmm1
subss xmm0, xmm2
movss dword [ecx], xmm0
addss xmm1, dword [esi]
movss dword [esi], xmm1
movss xmm1, dword [ecx + 4]
movaps xmm0, xmm1
subss xmm0, dword [esi + 4]
movss dword [ecx + 4], xmm0
addss xmm1, dword [esi + 4]
movss dword [esi + 4], xmm1
jmp 0x4323dc
mov eax, dword [ebx + 0x10]
sub eax, dword [ebp - 0x34]
cdq
sub eax, edx
mov edx, dword [ebx + 0x10]
sar eax, 1
cmp edx, eax
mov ecx, eax
cmovl ecx, edx
test ecx, ecx
jns 0x4322be
xor eax, eax
jmp 0x4322c3
cmp edx, eax
cmovl eax, edx
mov ecx, dword [ebp - 4]
sub edx, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edx
mov edi, dword [ecx + 0x20]
sub edi, dword [ebp - 0x2c]
mov dword [ebp - 0x24], edi
mov dword [ecx + 0x20], edi
mov edi, dword [ebx + 0xc]
cmp eax, edx
jl 0x432358
mov edx, dword [ebx + 0x28]
push edx
push dword [ebx + 0x24]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebx + 0x1c]
push ecx
mov dword [esp], 0x3f800000
push dword [ebx + 0x20]
push edx
push dword [ebx + 0x18]
mov edx, dword [ebx + 0x14]
push edx
mov edx, dword [ebp - 8]
push eax
push edi
call fcn.00431b90
mov ecx, dword [ebp - 4]
add esp, 0x24
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x24]
add eax, dword [ecx + 0x20]
cmp eax, 0x18
jle 0x432330
cmp dword [ebp - 0x30], 0
je 0x432330
add edx, 0xffffffe8
add edx, eax
mov eax, dword [ebx + 0x14]
mov ecx, eax
sar dword [ebp - 0x1c], cl
push dword [ebp - 0x1c]
movss xmm0, dword [ebp - 0x20]
push 0
push ecx
mov ecx, dword [ebp - 4]
movss dword [esp], xmm0
push 0
push dword [ebx + 0x1c]
push 0
push eax
push edx
mov edx, esi
jmp 0x4323c5
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x28]
sar eax, cl
push eax
push 0
push ecx
movss dword [esp], xmm1
push 0
push dword [ebx + 0x1c]
push 0
push ecx
mov ecx, dword [ebp - 4]
push edx
push edi
mov edx, esi
call fcn.00431b90
mov ecx, dword [ebp - 4]
add esp, 0x24
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
add edx, dword [ecx + 0x20]
mov eax, dword [ebp - 0x10]
cmp edx, 0x18
jle 0x4323a5
cmp dword [ebp - 0x30], 0x4000
je 0x4323a5
add eax, 0xffffffe8
add eax, edx
push dword [ebx + 0x28]
mov edx, dword [ebx + 0x1c]
push dword [ebx + 0x24]
push ecx
mov dword [esp], 0x3f800000
push dword [ebx + 0x20]
push edx
push dword [ebx + 0x18]
mov edx, dword [ebx + 0x14]
push edx
mov edx, dword [ebp - 8]
push eax
push edi
call fcn.00431b90
mov ecx, dword [ebp - 8]
add esp, 0x24
or dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
movss xmm3, dword [ebp - 0x18]
cmp dword [eax + 4], 0
je 0x4324e2
cmp edi, 2
je 0x4323fc
push dword [eax + 0x2c]
movaps xmm2, xmm3
mov edx, esi
push edi
call fcn.00430290
add esp, 8
cmp dword [ebp - 0x40], 0
je 0x4324e2
xor ecx, ecx
test edi, edi
jle 0x4324e2
movaps xmm2, xmmword [0x5baf30]
cmp edi, 2
jb 0x43248b
cmp edi, 0x10
jb 0x43246e
mov edx, edi
lea eax, [esi + 0x20]
and edx, 0xfffffff0
nop dword [eax]
movups xmm0, xmmword [eax - 0x20]
add ecx, 0x10
lea eax, [eax + 0x40]
xorps xmm0, xmm2
movups xmmword [eax - 0x60], xmm0
movups xmm0, xmmword [eax - 0x50]
xorps xmm0, xmm2
movups xmmword [eax - 0x50], xmm0
movups xmm0, xmmword [eax - 0x40]
xorps xmm0, xmm2
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [eax - 0x30]
xorps xmm0, xmm2
movups xmmword [eax - 0x30], xmm0
cmp ecx, edx
jl 0x432430
mov eax, edi
and al, 0xf
cmp al, 2
jb 0x432487
mov eax, edi
and eax, 0xfffffffe
movsd xmm0, qword [esi + ecx*4]
xorps xmm0, xmm2
movsd qword [esi + ecx*4], xmm0
add ecx, 2
cmp ecx, eax
jl 0x432473
cmp ecx, edi
jge 0x4324e2
mov eax, edi
sub eax, ecx
cmp eax, 4
jl 0x4324d0
mov edx, edi
lea eax, [esi + 8]
sub edx, ecx
lea eax, [eax + ecx*4]
sub edx, 4
shr edx, 2
inc edx
lea ecx, [ecx + edx*4]
nop dword [eax + eax]
lea eax, [eax + 0x10]
movups xmm0, xmmword [eax - 0x18]
xorps xmm0, xmm2
movups xmmword [eax - 0x18], xmm0
sub edx, 1
jne 0x4324b0
cmp ecx, edi
jge 0x4324e2
nop word [eax + eax]
movss xmm0, dword [esi + ecx*4]
xorps xmm0, xmm2
movss dword [esi + ecx*4], xmm0
inc ecx
cmp ecx, edi
jl 0x4324d0
mov eax, dword [ebp - 0xc]
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret