Function at 0x45aa30
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x34]
mov eax, ebx
mov ecx, edi
call fcn.004594f0
cmp eax, 3
je 0x45ac94
mov eax, dword [ebx]
cmp eax, dword [esi]
mov ecx, dword [ebx + 8]
mov eax, dword [esi]
setge dl
cmp ecx, dword [esi + 8]
mov ecx, dword [esi + 4]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 8]
setle byte [esp + 0x30]
test dl, dl
mov byte [esp + 0x2c], dl
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
je 0x45aa8e
add dword [esp + 0x18], 1
cmp byte [esp + 0x30], 0
je 0x45aa9c
sub ecx, 1
mov dword [esp + 0x20], ecx
mov eax, dword [esi + 4]
cmp eax, dword [esi + 0xc]
mov dword [esp + 0x10], eax
jge 0x45ab8f
jmp 0x45aab4
mov dl, byte [esp + 0x2c]
test dl, dl
je 0x45ab15
mov ecx, dword [edi + 4]
mov edx, dword [edi + 0x10]
imul ecx, eax
add ecx, dword [ebx]
lea eax, [edx + ecx*4]
mov dword [esp + 0x14], eax
mov eax, dword [eax]
mov ecx, ebp
shr ecx, 0x18
mov edx, 0x100
sub edx, ecx
mov ecx, eax
and eax, 0xff00ff
shr ecx, 8
imul eax, edx
mov esi, ecx
and esi, 0xffff00ff
imul esi, edx
and ecx, 0xff00ff
imul ecx, edx
mov edx, dword [esp + 0x14]
shr eax, 8
xor eax, esi
mov esi, dword [esp + 0x34]
and eax, 0xff00ff
xor eax, ecx
add eax, ebp
mov dword [edx], eax
mov eax, dword [esp + 0x10]
cmp byte [esp + 0x30], 0
je 0x45ab7b
mov ecx, dword [edi + 4]
mov edx, dword [edi + 0x10]
imul ecx, eax
add ecx, dword [ebx + 8]
lea eax, [edx + ecx*4 - 4]
mov dword [esp + 0x14], eax
mov eax, dword [eax]
mov ecx, ebp
shr ecx, 0x18
mov edx, 0x100
sub edx, ecx
mov ecx, eax
and eax, 0xff00ff
shr ecx, 8
imul eax, edx
mov esi, ecx
and esi, 0xffff00ff
imul esi, edx
and ecx, 0xff00ff
imul ecx, edx
mov edx, dword [esp + 0x14]
shr eax, 8
xor eax, esi
mov esi, dword [esp + 0x34]
and eax, 0xff00ff
xor eax, ecx
add eax, ebp
mov dword [edx], eax
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, dword [esi + 0xc]
mov dword [esp + 0x10], eax
jl 0x45aab0
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx + 0xc]
cmp eax, dword [esi + 0xc]
mov edx, dword [ebx + 4]
setle byte [esp + 0x34]
cmp edx, dword [esi + 4]
jl 0x45ac17
mov eax, dword [esp + 0x18]
cmp eax, ecx
mov dword [esp + 0x30], eax
jge 0x45ac17
mov ecx, ebp
shr ecx, 0x18
mov edx, 0x100
sub edx, ecx
mov ecx, dword [edi + 4]
imul ecx, dword [ebx + 4]
add ecx, eax
mov eax, dword [edi + 0x10]
lea eax, [eax + ecx*4]
mov dword [esp + 0x2c], eax
mov eax, dword [eax]
mov ecx, eax
and eax, 0xff00ff
shr ecx, 8
imul eax, edx
mov esi, ecx
and esi, 0xffff00ff
imul esi, edx
and ecx, 0xff00ff
imul ecx, edx
shr eax, 8
xor eax, esi
and eax, 0xff00ff
xor eax, ecx
mov ecx, dword [esp + 0x2c]
add eax, ebp
mov dword [ecx], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
add eax, 1
cmp eax, ecx
mov dword [esp + 0x30], eax
jl 0x45abba
cmp byte [esp + 0x34], 0
je 0x45ac94
mov eax, dword [esp + 0x18]
cmp eax, ecx
mov dword [esp + 0x34], eax
jge 0x45ac94
mov ecx, ebp
shr ecx, 0x18
mov edx, 0x100
sub edx, ecx
mov ecx, dword [ebx + 0xc]
sub ecx, 1
imul ecx, dword [edi + 4]
add ecx, eax
mov eax, dword [edi + 0x10]
lea eax, [eax + ecx*4]
mov dword [esp + 0x30], eax
mov eax, dword [eax]
mov ecx, eax
and eax, 0xff00ff
shr ecx, 8
imul eax, edx
mov esi, ecx
and esi, 0xffff00ff
imul esi, edx
and ecx, 0xff00ff
imul ecx, edx
shr eax, 8
xor eax, esi
and eax, 0xff00ff
xor eax, ecx
mov ecx, dword [esp + 0x30]
add eax, ebp
mov dword [ecx], eax
mov eax, dword [esp + 0x34]
add eax, 1
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x34], eax
jl 0x45ac36
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 0xc