Function at 0x459ec0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov ebx, dword [esi + 0xc]
mov edi, dword [esi + 0x20]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], edi
cmp edi, ebx
jge 0x45a16a
cmp dword [esi + 0x24], ebx
jge 0x459f48
test ebx, ebx
je 0x459f02
lea eax, [ebx*4]
push 0x10
push eax
call fcn.0048cfb0
mov edx, dword [esi + 0x20]
add esp, 8
mov dword [ebp - 4], eax
jmp 0x459f0b
mov dword [ebp - 4], 0
mov edx, edi
xor ecx, ecx
test edx, edx
jle 0x459f25
mov ebx, dword [ebp - 4]
mov eax, dword [esi + 0x28]
mov eax, dword [eax + ecx*4]
mov dword [ebx + ecx*4], eax
inc ecx
cmp ecx, edx
jl 0x459f14
mov ebx, dword [ebp - 8]
mov eax, dword [esi + 0x28]
test eax, eax
je 0x459f3b
cmp byte [esi + 0x2c], 0
je 0x459f3b
push eax
call fcn.0048cfc0
add esp, 4
mov eax, dword [ebp - 4]
mov byte [esi + 0x2c], 1
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], ebx
mov edx, ebx
mov ecx, edi
sub edx, edi
cmp edx, 4
jb 0x459fb1
mov eax, dword [esi + 0x28]
lea ecx, [eax + edi*4]
lea eax, [eax + ebx*4]
mov dword [ebp - 0xc], ecx
add eax, 0xfffffffc
mov dword [ebp - 4], eax
lea eax, [esi + 0x28]
cmp ecx, eax
mov ecx, edi
ja 0x459f73
cmp dword [ebp - 4], eax
jae 0x459fb1
and edx, 0x80000003
jns 0x459f80
dec edx
or edx, 0xfffffffc
inc edx
mov eax, ebx
sub eax, edx
add ecx, 4
cmp ecx, eax
jl 0x459f84
sub eax, edi
mov dword [ebp - 4], ecx
mov edi, dword [ebp - 0xc]
add eax, 3
cdq
and edx, 3
lea ecx, [edx + eax]
xor eax, eax
sar ecx, 2
shl ecx, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 4]
cmp ecx, ebx
jge 0x459fc0
mov eax, dword [esi + 0x28]
mov dword [eax + ecx*4], 0
inc ecx
cmp ecx, ebx
jl 0x459fb1
mov dword [esi + 0x20], ebx
mov edi, dword [esi + 0x34]
cmp ebx, edi
jl 0x45a0bf
jle 0x45a039
cmp dword [esi + 0x38], ebx
jge 0x45a039
test ebx, ebx
je 0x459ff3
lea eax, [ebx*4]
push 0x10
push eax
call fcn.0048cfb0
mov edx, dword [esi + 0x34]
add esp, 8
mov dword [ebp - 4], eax
jmp 0x459ffc
mov dword [ebp - 4], 0
mov edx, edi
xor ecx, ecx
test edx, edx
jle 0x45a016
mov ebx, dword [ebp - 4]
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + ecx*4]
mov dword [ebx + ecx*4], eax
inc ecx
cmp ecx, edx
jl 0x45a005
mov ebx, dword [ebp - 8]
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45a02c
cmp byte [esi + 0x40], 0
je 0x45a02c
push eax
call fcn.0048cfc0
add esp, 4
mov eax, dword [ebp - 4]
mov byte [esi + 0x40], 1
mov dword [esi + 0x3c], eax
mov dword [esi + 0x38], ebx
mov edx, ebx
mov ecx, edi
sub edx, edi
cmp edi, ebx
jge 0x45a0bf
cmp edx, 4
jb 0x45a0b0
mov eax, dword [esi + 0x3c]
lea ecx, [eax + edi*4]
lea eax, [eax + ebx*4]
mov dword [ebp - 8], ecx
add eax, 0xfffffffc
mov dword [ebp - 0xc], eax
lea eax, [esi + 0x3c]
cmp ecx, eax
mov ecx, edi
ja 0x45a068
cmp dword [ebp - 0xc], eax
jae 0x45a0b0
and edx, 0x80000003
jns 0x45a075
dec edx
or edx, 0xfffffffc
inc edx
mov eax, ebx
sub eax, edx
nop dword [eax]
add ecx, 4
cmp ecx, eax
jl 0x45a080
sub eax, edi
mov dword [ebp - 0xc], ecx
mov edi, dword [ebp - 8]
add eax, 3
cdq
and edx, 3
lea ecx, [edx + eax]
xor eax, eax
sar ecx, 2
shl ecx, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, ebx
jge 0x45a0bf
nop dword [eax]
mov eax, dword [esi + 0x3c]
mov dword [eax + ecx*4], 0
inc ecx
cmp ecx, ebx
jl 0x45a0b0
xor ecx, ecx
mov dword [esi + 0x34], ebx
test ebx, ebx
jle 0x45a0f0
nop dword [eax + eax]
mov eax, dword [esi + 0x28]
mov dword [eax + ecx*4], 0xffffffff
inc ecx
cmp ecx, ebx
jl 0x45a0d0
xor ecx, ecx
mov eax, dword [esi + 0x3c]
mov dword [eax + ecx*4], 0xffffffff
inc ecx
cmp ecx, ebx
jl 0x45a0e1
mov edi, dword [ebp - 0x10]
xor ebx, ebx
test edi, edi
jle 0x45a16a
xor eax, eax
mov dword [ebp - 8], eax
nop
mov ecx, dword [esi + 0x10]
add ecx, eax
mov eax, dword [ecx + 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ecx]
shl edx, 0x10
or edx, dword [eax + 0xc]
mov eax, edx
shl eax, 0xf
not eax
add edx, eax
mov eax, edx
shr eax, 0xa
xor eax, edx
lea edx, [eax + eax*8]
mov eax, edx
shr eax, 6
xor edx, eax
mov eax, edx
shl eax, 0xb
not eax
add edx, eax
mov eax, dword [esi + 0xc]
dec eax
mov ecx, edx
shr ecx, 0x10
xor ecx, edx
and ecx, eax
mov eax, dword [esi + 0x28]
lea edx, [ecx*4]
mov ecx, dword [esi + 0x3c]
mov eax, dword [edx + eax]
mov dword [ecx + ebx*4], eax
mov eax, dword [esi + 0x28]
mov dword [edx + eax], ebx
inc ebx
mov eax, dword [ebp - 8]
add eax, 0x10
mov dword [ebp - 8], eax
cmp ebx, edi
jl 0x45a100
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret