Function at 0x4479e0
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
sar eax, 3
push edi
cmp eax, 0x20
jle 0x447a75
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
test edi, edi
jle 0x447ae6
push ecx
push ebx
lea eax, [esp + 0x28]
push esi
push eax
call fcn.00446d80
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 0x447a53
push edx
push esi
call fcn.004479e0
mov esi, ebp
mov dword [esp + 0x3c], esi
jmp 0x447a62
push ebx
push ebp
call fcn.004479e0
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x40], ebx
mov ecx, dword [esp + 0x48]
mov eax, ebx
sub eax, esi
add esp, 0x10
sar eax, 3
cmp eax, 0x20
jg 0x447a03
cmp eax, 2
jl 0x447cdf
cmp esi, ebx
je 0x447cdf
lea ebx, [esi + 8]
mov dword [esp + 0x1c], ebx
cmp ebx, dword [esp + 0x30]
je 0x447cdf
lea eax, [ebx - 8]
mov dword [esp + 0x14], eax
nop
push dword [esi + 4]
mov eax, dword [ebx + 4]
mov ebp, ebx
push dword [esi]
mov edi, dword [ebx]
push eax
push edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], eax
call fcn.0044a5e0
add esp, 0x10
test al, al
je 0x447c65
mov eax, ebx
sub eax, esi
push eax
lea eax, [esi + 8]
push esi
push eax
call fcn.004b99d0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x447cc9
cmp eax, 0x20
jle 0x447a75
mov edx, ebx
sub edx, esi
sar edx, 3
mov ebp, edx
mov dword [esp + 0x10], edx
sar ebp, 1
test ebp, ebp
jle 0x447c02
lea edi, [edx - 1]
sar edi, 1
lea ecx, [esi + ebp*8]
mov dword [esp + 0x2c], edi
nop
mov eax, dword [ecx - 8]
sub ecx, 8
dec ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ecx
mov ebx, ebp
mov dword [esp + 0x1c], ebp
mov eax, dword [ecx + 4]
mov ecx, ebp
mov dword [esp + 0x18], eax
cmp ebp, edi
jge 0x447b84
mov ebp, dword [esp + 0x2c]
nop word [eax + eax]
lea edi, [ecx + ecx]
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.0044a5e0
movzx ecx, al
add esp, 0x10
xor ecx, 1
inc ecx
add ecx, edi
mov eax, dword [esi + ecx*8]
mov dword [esi + ebx*8], eax
mov eax, dword [esi + ecx*8 + 4]
mov dword [esi + ebx*8 + 4], eax
mov ebx, ecx
cmp ecx, ebp
jl 0x447b40
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x2c]
cmp ecx, edi
jne 0x447b9f
test dl, 1
jne 0x447b9f
mov eax, dword [esi + edx*8 - 8]
mov dword [esi + ebx*8], eax
mov eax, dword [esi + edx*8 - 4]
mov dword [esi + ebx*8 + 4], eax
lea ebx, [edx - 1]
cmp ebp, ebx
jge 0x447bdb
push dword [esp + 0x18]
lea edi, [ebx - 1]
push dword [esp + 0x18]
sar edi, 1
push dword [esi + edi*8 + 4]
push dword [esi + edi*8]
call fcn.0044a5e0
add esp, 0x10
test al, al
je 0x447bd7
mov eax, dword [esi + edi*8]
mov dword [esi + ebx*8], eax
mov eax, dword [esi + edi*8 + 4]
mov dword [esi + ebx*8 + 4], eax
mov ebx, edi
cmp ebp, edi
jl 0x447ba3
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov dword [esi + ebx*8], eax
mov eax, dword [esp + 0x18]
mov dword [esi + ebx*8 + 4], eax
test ebp, ebp
jg 0x447b10
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
cmp edx, 2
jl 0x447cdf
lea edi, [ebx - 8]
nop
cmp edx, 2
jl 0x447c45
mov eax, dword [edi]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x24], eax
mov eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
lea eax, [esp + 0x20]
push ecx
push eax
mov eax, edi
sub eax, esi
sar eax, 3
push eax
push 0
push esi
call fcn.00447140
add esp, 0x14
mov ecx, dword [esp + 0x38]
sub edi, 8
mov eax, edi
sub eax, esi
add eax, 8
sar eax, 3
mov edx, eax
cmp eax, 2
jge 0x447c10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x14]
mov edi, eax
push dword [eax + 4]
push dword [eax]
push dword [ebx + 4]
push dword [ebx]
call fcn.0044a5e0
add esp, 0x10
test al, al
je 0x447cbb
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
nop dword [eax]
mov eax, dword [edi]
mov dword [ebp], eax
mov eax, dword [edi + 4]
mov dword [ebp + 4], eax
mov ebp, edi
push dword [edi - 4]
sub edi, 8
push dword [edi]
push ebx
push esi
call fcn.0044a5e0
add esp, 0x10
test al, al
jne 0x447c90
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [ebp], eax
mov eax, dword [esp + 0x10]
mov dword [ebp + 4], eax
add dword [esp + 0x14], 8
add ebx, 8
mov dword [esp + 0x1c], ebx
cmp ebx, dword [esp + 0x30]
jne 0x447aa0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret