Function at 0x45a7c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, edx
push esi
mov esi, ecx
mov dword [esp + 8], ebx
mov eax, ebx
mov dword [esp + 0x18], esi
sub eax, esi
and eax, 0xfffffffc
push edi
cmp eax, 0x80
jle 0x45a866
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test edi, edi
jle 0x45a8bc
push edx
push ebx
mov edx, esi
lea ecx, [esp + 0x28]
call fcn.0045adc0
mov edx, dword [esp + 0x28]
mov eax, edi
sar eax, 2
mov ecx, ebx
sub ecx, dword [esp + 0x2c]
add esp, 8
sar edi, 1
and ecx, 0xfffffffc
add edi, eax
mov eax, edx
sub eax, esi
and eax, 0xfffffffc
cmp eax, ecx
mov eax, dword [ebp + 0xc]
push eax
push edi
jge 0x45a83f
mov ecx, esi
call fcn.0045a7c0
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x24], esi
jmp 0x45a852
mov ecx, dword [esp + 0x2c]
mov edx, ebx
call fcn.0045a7c0
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x14], ebx
mov edx, dword [ebp + 0xc]
mov eax, ebx
sub eax, esi
add esp, 8
and eax, 0xfffffffc
cmp eax, 0x80
jg 0x45a7f0
cmp esi, ebx
je 0x45aa3e
lea ebx, [esi + 4]
mov dword [esp + 0x18], ebx
cmp ebx, dword [esp + 0xc]
je 0x45aa3e
nop
mov eax, dword [ebx]
mov ecx, eax
push dword [esi]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
call fcn.00440950
test al, al
je 0x45a9de
lea edi, [ebx + 4]
mov edx, ebx
push edi
mov ecx, esi
call fcn.0045b7b0
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [esi], ecx
mov ebx, edi
mov dword [esp + 0x18], edi
jmp 0x45aa34
sub ebx, esi
mov eax, ebx
mov dword [esp + 0xc], ebx
sar eax, 2
mov ecx, eax
mov dword [esp + 0x1c], eax
sar ecx, 1
test ecx, ecx
jle 0x45a993
dec eax
mov edi, eax
mov dword [esp + 0x20], eax
sar edi, 1
mov dword [esp + 0x18], edi
mov eax, dword [esi + ecx*4 - 4]
dec ecx
mov dword [esp + 0x10], ecx
mov ebx, ecx
mov dword [esp + 0x14], eax
mov edx, ecx
cmp ecx, edi
jge 0x45a92f
nop dword [eax]
lea edi, [edx + edx]
push dword [esi + edi*4 + 4]
mov ecx, dword [esi + edi*4 + 8]
call fcn.00440950
movzx eax, al
lea edx, [edi + 1]
mov edi, dword [esp + 0x18]
xor eax, 1
add edx, eax
mov eax, dword [esi + edx*4]
mov dword [esi + ebx*4], eax
mov ebx, edx
cmp edx, edi
jl 0x45a900
mov ecx, dword [esp + 0x10]
cmp ebx, edi
jne 0x45a946
mov eax, dword [esp + 0x1c]
test al, 1
jne 0x45a946
mov eax, dword [esi + eax*4 - 4]
mov dword [esi + ebx*4], eax
mov ebx, dword [esp + 0x20]
cmp ecx, ebx
jge 0x45a979
nop word [eax + eax]
push dword [esp + 0x14]
lea edi, [ebx - 1]
sar edi, 1
mov ecx, dword [esi + edi*4]
call fcn.00440950
mov ecx, dword [esp + 0x10]
test al, al
je 0x45a975
mov eax, dword [esi + edi*4]
mov dword [esi + ebx*4], eax
mov ebx, edi
cmp ecx, edi
jl 0x45a950
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov dword [esi + ebx*4], eax
test ecx, ecx
jg 0x45a8e4
mov ebx, dword [esp + 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x1c]
cmp eax, 2
jl 0x45aa3e
nop dword [eax]
mov eax, dword [esi + ebx - 4]
mov ecx, esi
mov dword [esp + 0x20], eax
mov eax, dword [esi]
mov dword [esi + ebx - 4], eax
lea eax, [esp + 0x20]
push edx
push eax
lea eax, [ebx - 4]
xor edx, edx
sar eax, 2
push eax
call fcn.0045b3d0
mov edx, dword [ebp + 0xc]
add ebx, 0xfffffffc
mov eax, ebx
add esp, 0xc
and eax, 0xfffffffc
cmp eax, 8
jge 0x45a9a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebx - 4]
mov ecx, dword [esp + 0x14]
lea edi, [ebx - 4]
call fcn.00440950
test al, al
je 0x45aa23
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
nop dword [eax]
mov eax, dword [edi]
mov ecx, ebx
mov dword [esi], eax
mov esi, edi
push dword [edi - 4]
sub edi, 4
call fcn.00440950
test al, al
jne 0x45aa00
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
add ebx, 4
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
mov dword [eax], ecx
cmp ebx, dword [esp + 0xc]
jne 0x45a880
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret