Function at 0x445460
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x24]
mov eax, ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
sub eax, esi
and eax, 0xfffffff8
push edi
cmp eax, 0x100
jle 0x4454f9
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
test edi, edi
jle 0x445562
push edx
push ebx
lea eax, [esp + 0x28]
push esi
push eax
call fcn.00444990
mov edx, dword [esp + 0x30]
mov eax, edi
mov ebp, dword [esp + 0x34]
mov ecx, ebx
sar eax, 2
add esp, 0x10
sar edi, 1
sub ecx, ebp
add edi, eax
and ecx, 0xfffffff8
mov eax, edx
sub eax, esi
and eax, 0xfffffff8
cmp eax, ecx
mov eax, dword [esp + 0x38]
push eax
push edi
jge 0x4454d5
push edx
push esi
call fcn.00445460
mov esi, ebp
mov dword [esp + 0x3c], esi
jmp 0x4454e4
push ebx
push ebp
call fcn.00445460
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x40], ebx
mov edx, dword [esp + 0x48]
mov eax, ebx
sub eax, esi
add esp, 0x10
and eax, 0xfffffff8
cmp eax, 0x100
jg 0x445485
cmp esi, ebx
je 0x445746
lea edi, [esi + 8]
mov dword [esp + 0x1c], edi
cmp edi, ebx
je 0x445746
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x18], esi
push dword [esi + 4]
mov ecx, dword [edi + 4]
mov ebx, edi
push dword [esi]
mov eax, dword [edi]
push ecx
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
call fcn.00448f90
add esp, 0x10
test al, al
je 0x4456ce
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + 8]
push esi
push eax
call fcn.004ad000
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
jmp 0x445732
sub ebx, esi
mov ecx, ebx
mov dword [esp + 0x30], ebx
sar ecx, 3
mov ebp, ecx
mov dword [esp + 0x14], ecx
sar ebp, 1
test ebp, ebp
jle 0x445670
lea eax, [ecx - 1]
mov edi, eax
mov dword [esp + 0x20], eax
sar edi, 1
mov dword [esp + 0x2c], edi
nop dword [eax]
mov eax, dword [esi + ebp*8 - 8]
dec ebp
mov dword [esp + 0x18], eax
mov ebx, ebp
mov dword [esp + 0x1c], ebp
mov edx, ebp
mov eax, dword [esi + ebp*8 + 4]
mov dword [esp + 0x10], eax
cmp ebp, edi
jge 0x4455f5
mov ebp, dword [esp + 0x2c]
lea edi, [edx + edx]
push dword [esi + edi*8 + 0xc]
push dword [esi + edi*8 + 8]
push dword [esi + edi*8 + 0x14]
push dword [esi + edi*8 + 0x10]
call fcn.00448f90
movzx edx, al
add esp, 0x10
xor edx, 1
inc edx
add edx, edi
mov eax, dword [esi + edx*8]
mov ecx, dword [esi + edx*8 + 4]
mov dword [esi + ebx*8], eax
mov dword [esi + ebx*8 + 4], ecx
mov ebx, edx
cmp edx, ebp
jl 0x4455b1
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x2c]
cmp ebx, edi
jne 0x445611
test cl, 1
jne 0x445611
mov eax, dword [esi + ecx*8 - 8]
mov ecx, dword [esi + ecx*8 - 4]
mov dword [esi + ebx*8], eax
mov dword [esi + ebx*8 + 4], ecx
mov ebx, dword [esp + 0x20]
cmp ebp, ebx
jge 0x44564d
push dword [esp + 0x10]
lea edi, [ebx - 1]
push dword [esp + 0x1c]
sar edi, 1
push dword [esi + edi*8 + 4]
push dword [esi + edi*8]
call fcn.00448f90
add esp, 0x10
test al, al
je 0x445649
mov eax, dword [esi + edi*8]
mov ecx, dword [esi + edi*8 + 4]
mov dword [esi + ebx*8], eax
mov dword [esi + ebx*8 + 4], ecx
mov ebx, edi
cmp ebp, edi
jl 0x445615
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esi + ebx*8], eax
mov eax, dword [esp + 0x10]
mov dword [esi + ebx*8 + 4], eax
test ebp, ebp
jg 0x445590
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
cmp ecx, 2
jl 0x445746
nop dword [eax]
mov eax, dword [esi + ebx - 8]
mov ecx, dword [esi + ebx - 4]
mov dword [esp + 0x20], eax
mov eax, dword [esi]
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 4]
mov dword [esi + ebx - 8], eax
lea eax, [esp + 0x20]
push edx
push eax
lea eax, [ebx - 8]
mov dword [esi + ebx - 4], ecx
sar eax, 3
push eax
push 0
push esi
call fcn.00444da0
mov edx, dword [esp + 0x4c]
add ebx, 0xfffffff8
mov eax, ebx
add esp, 0x14
and eax, 0xfffffff8
cmp eax, 0x10
jge 0x445680
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x18]
mov edi, eax
push dword [eax + 4]
push dword [eax]
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.00448f90
add esp, 0x10
test al, al
je 0x445721
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov ebx, edi
push dword [edi - 4]
sub edi, 8
push dword [edi]
push esi
push ebp
call fcn.00448f90
add esp, 0x10
test al, al
jne 0x4456f7
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
mov dword [ebx], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 4], eax
add dword [esp + 0x18], 8
add edi, 8
mov dword [esp + 0x1c], edi
cmp edi, ebp
jne 0x445518
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret